.civil-world-grid {grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin-block-start: 1rem;}
.civil-world-card {display: flex; min-width: 0; flex-direction: column; gap: .4rem; overflow-wrap: anywhere;}
.civil-world-card .tool-metric-label {margin: 0;}
.world-clock-day:not(:empty) {margin-inline-start: .5em;}
.civil-world-card .tool-actions {margin-block-start: auto; padding-block-start: .35rem;}
.civil-world-card .tool-actions > :is(button, a) {min-height: 44px; text-align: center;}
.civil-world-reorder {display: flex; flex-wrap: wrap; gap: .4rem;}
.civil-world-card .civil-world-reorder button {min-width: 44px; min-height: 44px; padding-inline: .5rem;}
.world-clock-controls {margin-block-start: .75rem;}
@media (max-width: 420px) {
    .world-clock-controls + .tool-actions {gap: .55rem;}
    .world-clock-controls + .tool-actions button {padding-inline: .75rem;}
}
#time-zone-converter select.tool-field-control {-webkit-appearance: none; appearance: none; min-height: 46px; padding-inline: 12px 36px; background-image: var(--site-select-arrow); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px;}
html[dir="rtl"] #time-zone-converter select.tool-field-control:not([dir="ltr"]) {background-position: left 12px center;}
.world-clock-list {--clock-row-columns: 44px minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .7fr) minmax(0, 1.8fr); margin-block-start: 1rem; max-block-size: min(62vh, 37rem); overflow: auto; border: 1px solid var(--site-border, #d1d5db); border-radius: 10px; background: var(--site-surface, #fff);}
.world-clock-row, .world-clock-head {display: grid; grid-template-columns: var(--clock-row-columns); align-items: center; gap: .55rem; padding: .4rem .75rem;}
.world-clock-head {font-size: .8rem; font-weight: 600; color: var(--site-muted, #475569); background: var(--site-surface-muted, #f8fafc);}
.world-clock-row {position: relative; min-block-size: 66px; border-block-start: 1px solid var(--site-border, #d1d5db); color: var(--site-text, #111827);}
.world-clock-current {background: var(--site-accent-soft, #eff6ff);}
.world-clock-row > *, .world-clock-head > * {min-inline-size: 0; overflow-wrap: anywhere;}
.world-clock-city {font-weight: 650;}
.world-clock-meta, .world-clock-calendar {font-size: .8rem; line-height: 1.35; color: var(--site-muted, #475569);}
.world-clock-reading {display: grid; justify-items: start; gap: .12rem;}
.world-clock-time {font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap;}
.world-clock-calendar {display: flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .4rem;}
.world-clock-calendar .world-clock-day {margin-inline-start: 0;}
.world-clock-calendar bdi, .world-clock-offset bdi {display: inline-block; white-space: nowrap;}
.world-clock-offset {font-size: .86rem; font-variant-numeric: tabular-nums;}
.world-clock-offset-label {position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap;}
.world-clock-actions {display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .15rem .35rem;}
.world-clock-action {min-block-size: 44px; display: inline-flex; align-items: center; justify-content: center; padding-inline: .45rem; border-radius: 6px; text-align: center; font-size: .85rem; color: var(--site-accent, #2563eb);}
.world-clock-action:hover, .world-clock-grip:hover:not(:disabled) {background: var(--site-surface-muted, #f8fafc);}
.world-clock-action:focus-visible, .world-clock-grip:focus-visible {outline: 2px solid var(--site-accent, #2563eb); outline-offset: -2px;}
.world-clock-grip, .world-clock-remove {min-inline-size: 44px; min-block-size: 44px; display: grid; place-items: center; border-radius: 6px; color: var(--site-muted, #475569);}
.world-clock-grip {touch-action: none; cursor: grab;}
.world-clock-grip:disabled {opacity: .35; cursor: default;}
.world-clock-grip::before {content: ""; inline-size: 12px; block-size: 18px; background: radial-gradient(circle, currentColor 1.2px, transparent 1.6px) 0 0 / 6px 6px;}
.world-clock-remove {font-size: 1.25rem;}
.world-clock-list.is-reordering, .world-clock-list.is-reordering .world-clock-grip {cursor: grabbing; user-select: none;}
.world-clock-row.is-reorder-source {opacity: .5;}
.world-clock-row.is-reorder-before::after, .world-clock-row.is-reorder-after::after {content: ""; position: absolute; inset-inline: 0; block-size: 2px; inset-block-start: 0; z-index: 1; background: var(--site-accent, #2563eb); pointer-events: none;}
.world-clock-row.is-reorder-after::after {inset-block: auto 0;}
.world-clock-drag-preview {position: fixed; z-index: 1000; max-inline-size: min(230px, calc(100vw - 16px)); padding: .45rem .7rem; border: 1px solid var(--site-accent, #2563eb); border-radius: 7px; background: var(--site-surface, #fff); color: var(--site-text, #111827); box-shadow: 0 4px 14px rgb(15 23 42 / .2); overflow-wrap: anywhere; pointer-events: none;}
@media (max-width: 720px) {
    .world-clock-head {display: none;}
    .world-clock-row {grid-template-columns: 44px minmax(0, 1fr) minmax(78px, .95fr); gap: .2rem .5rem; grid-template-areas: "grip city reading" "grip offset reading" "actions actions actions";}
    .world-clock-row > :first-child {grid-area: grip;}
    .world-clock-city {grid-area: city;}
    .world-clock-reading {grid-area: reading; justify-items: end;}
    .world-clock-time {font-size: 1.125rem;}
    .world-clock-calendar {justify-content: flex-end;}
    .world-clock-offset {grid-area: offset;}
    .world-clock-offset bdi:not(:empty) {padding-inline: .35rem; border-radius: 4px; background: var(--site-surface-muted, #f8fafc);}
    .world-clock-actions {grid-area: actions;}
}
.event-countdown-target {text-align: center; overflow-wrap: anywhere;}
.event-countdown-target bdi {white-space: nowrap;}
.event-countdown-title {max-width: 100%; overflow-wrap: anywhere; text-align: center; font-weight: 600;}
.event-countdown-days {font-weight: 600;}
.time-tool-page .tool-form-field[hidden], #time-zone-converter .tool-form-field[hidden] {display: none;}
.countdown-stage[data-mode="date"] .time-display-value {font-size: min(clamp(1.55rem, 7vw, 5.75rem), 12vh);}
.countdown-stage[data-mode="date"] .countdown-progress {display: none;}
