.world-page { max-width: 1280px; margin: 0 auto; padding: 28px 20px 32px; }
.back-link { margin-left: auto; color: #f0f0f0; font-size: .95rem; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 8px 0 24px; }
.eyebrow { margin: 0 0 7px; color: #1a73e8; font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.page-heading h1 { max-width: 780px; margin: 0; font-size: 2.35rem; line-height: 1.2; }
.page-intro { margin: 10px 0 0; color: #5f6368; line-height: 1.55; }
.city-count { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #d5e6fb; border-radius: 4px; background: #eef5ff; color: #245da2; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.local-time-panel { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(180px, 290px); align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #d8e2ec; border-left: 4px solid #3d7db7; background: #f7fafc; }
.local-symbol { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e5f1fb; color: #205f94; font-size: 1.4rem; }
.local-time-panel h2 { margin: 0 0 3px; font-size: 1rem; }
.local-time-panel p { margin: 0; }
#localCity { color: #4f5f6b; }
#localZone { display: inline-block; margin-top: 3px; color: #6c7880; font-size: .8rem; }
.local-disclaimer { color: #69767f; font-size: .78rem; line-height: 1.4; }
.clock-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 22px 0 14px; }
.format-control { display: grid; gap: 5px; color: #454f56; font-size: .86rem; font-weight: 650; }
.format-control select, .search-row input { min-height: 40px; border: 1px solid #c9d2d8; border-radius: 4px; background: #fff; color: #333; font: inherit; padding: 8px 10px; }
.primary-button, .secondary-button { min-height: 40px; border: 1px solid #1a73e8; border-radius: 4px; background: #1a73e8; color: #fff; cursor: pointer; font: inherit; font-weight: 650; padding: 8px 14px; }
.primary-button:hover:not(:disabled) { background: #1558b0; border-color: #1558b0; }
.primary-button:disabled { cursor: not-allowed; opacity: .5; }
.secondary-button { border-color: #c7d1d9; background: #fff; color: #394c5a; }
.secondary-button:hover { background: #f1f5f8; }
.text-button { border: 0; background: transparent; color: #1a5ea4; cursor: pointer; font: inherit; font-weight: 650; padding: 8px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #ccd5dc; border-radius: 4px; background: #fff; color: #35434d; cursor: pointer; font: inherit; font-size: 1.35rem; }
:focus-visible { outline: 3px solid #f0a93b; outline-offset: 2px; }
.clock-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.clock-card { display: flex; min-width: 0; min-height: 232px; flex-direction: column; padding: 15px; border: 1px solid #d8dde1; border-top: 3px solid #6c92b1; background: #fff; }
.clock-card.home-city { border-top-color: #1a73e8; }
.clock-card-header { display: flex; min-width: 0; align-items: flex-start; gap: 8px; }
.city-identity { display: flex; min-width: 0; flex: 1; align-items: flex-start; gap: 9px; }
.city-flag { flex: 0 0 auto; font-size: 1.25rem; line-height: 1.5; }
.city-heading { min-width: 0; }
.city-name { overflow-wrap: anywhere; margin: 0; color: #26333b; font-size: 1rem; line-height: 1.3; }
.city-country { margin: 3px 0 0; color: #69767e; font-size: .82rem; }
.home-badge { display: inline-block; margin-top: 6px; padding: 2px 6px; border-radius: 3px; background: #e7f1fc; color: #245d99; font-size: .72rem; font-weight: 700; }
.city-time { margin: 20px 0 3px; color: #1f2d36; font-size: 2rem; font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.1; white-space: nowrap; }
.city-date { margin: 0; color: #4e5c65; font-size: .88rem; line-height: 1.4; }
.day-badge { display: inline-block; margin-top: 6px; color: #56636b; font-size: .75rem; font-weight: 650; }
.day-badge.today { color: #3e6c42; }
.city-zone { overflow-wrap: anywhere; margin: 8px 0 0; color: #718087; font-size: .75rem; line-height: 1.35; }
.city-offset { margin: 4px 0 0; color: #315d82; font-size: .79rem; line-height: 1.35; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: auto -6px -6px; padding-top: 12px; }
.card-actions .text-button { min-height: 36px; font-size: .78rem; }
.card-actions .remove-button { margin-left: auto; color: #8b3e37; }
.clock-error { margin: auto 0; color: #9a3732; font-size: .88rem; line-height: 1.4; }
.storage-notice, .limit-notice { margin: 0 0 12px; padding: 10px 12px; border: 1px solid #e8d39d; background: #fff9e9; color: #644e1e; font-size: .88rem; line-height: 1.45; }
.empty-state { padding: 38px 20px; border: 1px dashed #aab9c5; background: #f8fafb; text-align: center; }
.empty-state h2 { margin: 8px 0; font-size: 1.25rem; }
.empty-state p { max-width: 480px; margin: 0 auto 18px; color: #5f6d76; line-height: 1.5; }
.empty-icon { color: #477da5; font-size: 2rem; }
.undo-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 8px 12px; background: #edf4fa; color: #354e61; font-size: .88rem; }
.information-section { max-width: 860px; margin-top: 42px; padding-top: 24px; border-top: 1px solid #d8dde1; color: #45525b; line-height: 1.65; }
.information-section h2 { margin: 18px 0 7px; color: #303a41; font-size: 1.2rem; }
.information-section > h2:first-child { margin-top: 0; }
.information-section p { margin: 0 0 12px; }
.information-section details { border-top: 1px solid #e2e6e9; padding: 12px 0; }
.information-section details:last-child { border-bottom: 1px solid #e2e6e9; }
.information-section summary { color: #303d46; cursor: pointer; font-weight: 650; }
.information-section details p { margin: 8px 0 0; }
.related-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 28px; padding: 16px 0; border-top: 1px solid #d8dde1; }
.related-tools h2 { margin: 0 8px 0 0; font-size: 1rem; }
.related-tools a { color: #1a5ea4; font-size: .9rem; }
.world-page .site-footer { display: flex; justify-content: center; gap: 10px; margin-top: 14px; color: #646d73; font-size: .88rem; }
.world-page .site-footer a { color: inherit; }
[hidden] { display: none !important; }
.city-dialog { position: fixed; width: min(540px, calc(100% - 28px)); max-height: min(680px, calc(100% - 32px)); padding: 24px; border: 1px solid #cbd5dc; border-radius: 6px; background: #fff; color: #303940; box-shadow: 0 18px 60px #172b3b38; }
.city-dialog::backdrop { background: #172b3b80; }
.dialog-close-form { position: absolute; top: 12px; right: 12px; }
.dialog-close { font-size: 1.5rem; line-height: 1; }
.city-dialog h2 { margin: 0; font-size: 1.35rem; }
.dialog-intro { margin: 7px 0 16px; color: #66737b; font-size: .9rem; }
.search-row { display: flex; gap: 8px; }
.search-row input { min-width: 0; flex: 1; }
.dialog-status { min-height: 20px; margin: 10px 0 5px; color: #68767d; font-size: .82rem; }
.city-results { display: grid; max-height: 390px; gap: 5px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.city-result-button { display: grid; width: 100%; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid #e0e5e8; border-radius: 4px; background: #fff; color: #2d3941; cursor: pointer; padding: 10px; text-align: left; }
.city-result-button:hover, .city-result-button:focus-visible { border-color: #8aaecb; background: #f2f7fb; }
.result-flag { font-size: 1.2rem; }
.result-name { min-width: 0; font-weight: 650; overflow-wrap: anywhere; }
.result-country { display: block; margin-top: 2px; color: #68757d; font-size: .78rem; font-weight: 400; }
.result-zone { max-width: 145px; overflow-wrap: anywhere; color: #68757d; font-size: .73rem; text-align: right; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 1050px) {
  .clock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .world-page { padding: 20px 16px 28px; }
  .page-heading h1 { font-size: 1.85rem; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .local-time-panel { grid-template-columns: 42px minmax(0, 1fr); }
  .local-disclaimer { grid-column: 2; }
  .clock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .clock-card { min-height: 228px; padding: 12px; }
  .city-time { font-size: clamp(1.45rem, 6vw, 1.9rem); }
  .city-name { font-size: .93rem; }
  .card-actions { gap: 0; }
  .card-actions .text-button { padding-inline: 5px; }
}

@media (max-width: 380px) {
  .clock-grid { grid-template-columns: 1fr; }
  .clock-card { min-height: 210px; }
  .city-time { font-size: 2rem; }
  .clock-toolbar { align-items: stretch; flex-direction: column; }
  .clock-toolbar .primary-button { width: 100%; }
  .world-page .site-footer { flex-wrap: wrap; }
}