:root {
  color-scheme: light;
  --topbar: #6d35c5;
  --page: #ededed;
  --panel: #ffffff;
  --panel-soft: #f8f8f8;
  --text: #5f6870;
  --strong: #33373a;
  --muted: #8a9298;
  --line: #dddddd;
  --accent: #0b95d8;
  --clock: #5d6266;
  --button: #7b4ad8;
  --button-hover: #6336b8;
  --digit-face: #555555;
  --clock-selected: #5d6266;
  --shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

body.dark {
  color-scheme: dark;
  --topbar: #333333;
  --page: #000000;
  --panel: #151515;
  --panel-soft: #121212;
  --text: #d8d8d8;
  --strong: #f0f0f0;
  --muted: #a5a5a5;
  --line: #4d4d4d;
  --accent: #ff9200;
  --clock: #ff9200;
  --button: #43b26f;
  --button-hover: #58c982;
  --digit-face: #ff9200;
  --clock-selected: #ff9200;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  --clock-scale: 1;
  --timer-scale: 1;
}

body.fullscreen-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--topbar);
  color: #fff;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.brand span {
  font-size: 24px;
}

.brand small {
  align-self: center;
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topnav button,
.icon-btn,
.plain-icon {
  border: 0;
  background: transparent;
  color: inherit;
}

.topnav .nav-link {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  transition: background-color .16s ease, color .16s ease;
}

.topnav .nav-link:hover {
  background: rgba(255, 255, 255, .16);
}

.menu {
  position: relative;
}

.menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 170px;
  display: none;
  padding: 8px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}

.menu-popover.is-open {
  display: grid;
}

.menu-popover button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--text);
  transition: background-color .16s ease, color .16s ease;
}

.menu-popover button:hover {
  background: color-mix(in srgb, var(--button), transparent 86%);
  color: var(--strong);
}

.icon-btn,
.plain-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  transition: background-color .16s ease, transform .16s ease;
}

.icon-btn:hover,
.plain-icon:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-1px);
}

.theme-icon,
.palette-icon,
.alarm-icon,
.clock-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  position: relative;
}

.theme-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 0 50%, transparent 50%);
}

.palette-icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 70% 32%, #7b4ad8 0 11%, transparent 12%),
    radial-gradient(circle at 68% 66%, #2d87d3 0 11%, transparent 12%),
    radial-gradient(circle at 33% 70%, #4db56b 0 11%, transparent 12%),
    radial-gradient(circle at 51% 52%, #ff9700 0 11%, transparent 12%),
    currentColor;
}

.color-popover {
  min-width: 180px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
  flex: 0 0 14px;
}

.color-swatch.orange { background: #ff9700; }
.color-swatch.white { background: #ffffff; }
.color-swatch.purple { background: #7b4ad8; }
.color-swatch.blue { background: #2d87d3; }
.color-swatch.green { background: #44b06c; }

.alarm-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.alarm-icon::before,
.alarm-icon::after {
  content: "";
  position: absolute;
  top: -6px;
  width: 8px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 8px 8px 2px 2px;
}

.alarm-icon::before {
  left: -5px;
  transform: rotate(-28deg);
}

.alarm-icon::after {
  right: -5px;
  transform: rotate(28deg);
}

.clock-icon {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 4px;
  width: 2px;
  height: 7px;
  background: currentColor;
  transform-origin: bottom center;
}

.clock-icon::after {
  height: 6px;
  transform: rotate(90deg);
}

.shell {
  padding: 84px 26px 34px;
}

.panel {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  min-height: 350px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-actions {
  position: absolute;
  top: 18px;
  right: 16px;
  display: flex;
  gap: 2px;
  color: var(--muted);
}

.hero-content {
  text-align: center;
  padding: 40px 20px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(24px, 2.3vw, 33px);
  font-weight: 300;
}

.date-line {
  margin: 20px 0 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 300;
}

.clock-mount {
  min-height: 112px;
  display: grid;
  place-items: center;
}

.clock-mount .seg-digit {
  --seg-w: calc(clamp(38px, 5.5vw, 76px) * var(--clock-scale));
}

.clock-mount .seg-colon {
  --seg-w: calc(clamp(38px, 5.5vw, 76px) * var(--clock-scale));
  --seg-h: calc(var(--seg-w) * 1.62);
  --seg-t: calc(var(--seg-w) * .16);
}

.clock-mount .analog-clock {
  --size: min(calc(220px * var(--clock-scale)), 74vw);
}

.digital-clock {
  --clock: var(--clock-selected);
  color: var(--clock-selected);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, .55vw, 8px);
}

.seg-digit {
  --seg-w: clamp(38px, 5.5vw, 76px);
  --seg-h: calc(var(--seg-w) * 1.55);
  --seg-t: calc(var(--seg-w) * .18);
  --seg-gap: calc(var(--seg-t) * .14);
  width: var(--seg-w);
  height: var(--seg-h);
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.segment {
  position: absolute;
  background: transparent;
  transition: background-color .12s ease;
  overflow: visible;
}

.segment.on {
  background: var(--digit-face);
  box-shadow: none;
}

.segment.a,
.segment.d,
.segment.g {
  left: calc(var(--seg-t) * .72);
  width: calc(100% - var(--seg-t) * 1.44);
  height: var(--seg-t);
  clip-path: polygon(7% 0, 93% 0, 100% 50%, 93% 100%, 7% 100%, 0 50%);
}

.segment.a { top: 0; }
.segment.g { top: calc(50% - var(--seg-t) / 2); }
.segment.d { bottom: 0; }

.segment.b,
.segment.c,
.segment.e,
.segment.f {
  width: var(--seg-t);
  height: calc(50% - var(--seg-t) * .74);
  clip-path: polygon(50% 0, 100% 9%, 100% 91%, 50% 100%, 0 91%, 0 9%);
}

.segment.b,
.segment.c {
  right: 0;
}

.segment.e,
.segment.f {
  left: 0;
}

.segment.b,
.segment.f {
  top: calc(var(--seg-t) * .5 + var(--seg-gap));
}

.segment.c,
.segment.e {
  bottom: calc(var(--seg-t) * .5 + var(--seg-gap));
}

.seg-colon {
  width: calc(var(--seg-w, clamp(38px, 5.5vw, 76px)) * .24);
  height: var(--seg-h, calc(clamp(38px, 5.5vw, 76px) * 1.62));
  position: relative;
  display: inline-block;
}

.seg-colon::before,
.seg-colon::after {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(var(--seg-t, 10px) * .82);
  height: calc(var(--seg-t, 10px) * .82);
  background: var(--clock);
  transform: translateX(-50%);
  clip-path: polygon(15% 0, 85% 0, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0 85%, 0 15%);
}

.seg-colon::before { top: 31%; }
.seg-colon::after { bottom: 31%; }

.seg-label {
  align-self: end;
  margin: 0 -2px 12px;
  color: var(--clock);
  font-size: clamp(16px, 2vw, 31px);
  line-height: 1;
}

.analog-clock {
  --size: min(220px, 48vw);
  width: var(--size);
  height: var(--size);
  position: relative;
  border: 8px solid var(--clock-selected);
  border-radius: 50%;
  color: var(--clock-selected);
}

.analog-clock.clean {
  border-width: 0;
}

.analog-clock:not(.clean)::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--clock-selected), transparent 70%);
  border-radius: 50%;
}

.tick {
  position: absolute;
  inset: 14px;
  transform: rotate(calc(var(--i) * 30deg));
}

.tick::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 13px;
  background: currentColor;
  transform: translateX(-50%);
}

.tick.cardinal {
  inset: 10px;
}

.tick.cardinal::after {
  width: 2px;
  height: 18px;
  opacity: .9;
}

.hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(var(--angle));
}

.hand.hour {
  height: 29%;
  width: 7px;
}

.hand.minute {
  height: 39%;
}

.hand.second {
  height: 43%;
  width: 2px;
  background: #d94444;
}

.pin {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.controls {
  margin-top: 22px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

select,
input {
  min-width: min(290px, 100%);
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 12px;
  background: var(--panel-soft);
  color: var(--strong);
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

body:not(.time-active) .time-view,
body:not(.clock-active) .clock-only {
  display: none;
}

.city-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.city-card {
  min-height: 120px;
  background: var(--panel);
}

.city-head {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.city-actions {
  color: var(--muted);
  display: flex;
  gap: 9px;
}

.city-time {
  padding: 18px 10px 12px;
  text-align: center;
}

.city-time strong {
  --clock: var(--clock-selected);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  color: var(--clock-selected);
  line-height: 1;
}

.city-time .seg-digit {
  --seg-w: 15px;
}

.city-time .seg-colon {
  --seg-w: 15px;
  --seg-h: calc(var(--seg-w) * 1.62);
  --seg-t: calc(var(--seg-w) * .16);
}

.city-time .seg-colon::before,
.city-time .seg-colon::after {
  width: calc(var(--seg-t) * .82);
  height: calc(var(--seg-t) * .82);
}

.city-time span {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.popular,
.help,
.alarm-panel,
.holidays-panel,
.timer-panel {
  margin-top: 22px;
  padding: 18px;
}

.popular h2,
.help h2,
.holidays-panel h1,
.section-title h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
}

.popular-list {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  columns: 4;
}

.popular-list button {
  display: block;
  width: 100%;
  padding: 4px 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #1197e5;
  text-align: left;
  transition: color .16s ease, background-color .16s ease, padding-left .16s ease;
}

.popular-list button:hover {
  padding-left: 8px;
  background: color-mix(in srgb, var(--button), transparent 90%);
  color: var(--button);
}

.help {
  line-height: 1.7;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.primary-btn {
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  min-height: 38px;
  padding: 0 16px;
  font-weight: 700;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.secondary-btn,
.warning-btn {
  border: 0;
  border-radius: 4px;
  min-height: 38px;
  padding: 0 16px;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.secondary-btn {
  background: var(--accent);
  color: #fff;
}

.warning-btn {
  background: #b58512;
  color: #fff;
}

.secondary-btn:hover,
.warning-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.primary-btn:hover {
  background: var(--button-hover);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--button), transparent 72%);
  transform: translateY(-1px);
}

.alarm-form {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}

.sound-picker {
  display: flex;
  gap: 8px;
}

.sound-picker select {
  min-width: 220px;
}

.sound-preview {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.sound-preview:hover {
  background: var(--button-hover);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--button), transparent 72%);
  transform: translateY(-1px);
}

.alarm-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.alarm-row {
  display: grid;
  grid-template-columns: 88px 1fr 130px auto auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.alarm-row time {
  color: var(--clock);
  font-size: 26px;
  font-weight: 700;
  font-family: "Courier New", monospace;
}

.alarm-row small {
  color: var(--muted);
  font-weight: 700;
}

.range-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.holiday-list {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.holiday-year {
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.holiday-year h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--strong);
  font-size: 18px;
  font-weight: 500;
}

.holiday-table {
  width: 100%;
  border-collapse: collapse;
}

.holiday-table th,
.holiday-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.holiday-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.holiday-table tr:last-child td {
  border-bottom: 0;
}

.switch {
  width: 48px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #888;
  padding: 3px;
}

.switch::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s ease;
}

.switch.is-on {
  background: var(--button);
}

.switch.is-on::before {
  transform: translateX(22px);
}

.delete-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 4px;
  min-height: 34px;
  padding: 0 10px;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.delete-btn:hover {
  border-color: var(--button);
  background: color-mix(in srgb, var(--button), transparent 90%);
  color: var(--button);
}

.alarm-notice {
  position: fixed;
  z-index: 11;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 44px));
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .22);
}

.alarm-notice strong {
  display: block;
  color: var(--clock);
  font-size: 24px;
  margin-bottom: 6px;
}

.alarm-notice p {
  margin: 0 0 14px;
}

.timer-panel {
  position: relative;
  background: #000;
  color: #237bd4;
}

.timer-control-actions {
  color: #237bd4;
}

body:not(.dark) .timer-panel {
  background: var(--panel);
  color: var(--button);
}

body:not(.dark) .timer-control-actions,
body:not(.dark) .timer-title,
body:not(.dark) .timer-target {
  color: var(--clock-selected);
}

body:not(.dark) .timer-display {
  --clock: var(--clock-selected);
}

.timer-stage {
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 30px;
  text-align: center;
}

.timer-title {
  min-height: 56px;
  margin: 0;
  color: #237bd4;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 300;
}

.timer-display {
  --clock: var(--clock-selected);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1vw, 16px);
}

.timer-display .seg-digit {
  --seg-w: calc(clamp(50px, 8.5vw, 105px) * var(--timer-scale));
}

.timer-display .seg-colon {
  --seg-w: calc(clamp(50px, 8.5vw, 105px) * var(--timer-scale));
  --seg-h: calc(var(--seg-w) * 1.62);
  --seg-t: calc(var(--seg-w) * .16);
}

.timer-display .seg-label {
  font-size: calc(clamp(16px, 2vw, 31px) * var(--timer-scale));
}

.timer-target {
  min-height: 44px;
  margin: 0;
  color: var(--clock-selected);
  font-size: clamp(22px, 4vw, 46px);
  font-weight: 300;
}

.timer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.timer-dialog {
  width: min(596px, calc(100vw - 24px));
  padding: 0;
  border: 0;
  background: #626262;
  color: #fff;
}

.timer-dialog::backdrop {
  background: rgba(0, 0, 0, .48);
}

.dialog-head {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #4b4b4b;
}

.dialog-head h2 {
  margin: 0;
  font-weight: 300;
  font-size: 25px;
}

.dialog-head button {
  border: 0;
  background: transparent;
  color: #cfcfcf;
  font-size: 30px;
}

.timer-dialog form {
  display: grid;
  gap: 22px;
}

.timer-mode-row,
.timer-fields,
.wide-label,
.check-line {
  margin: 0 18px;
}

.timer-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding-top: 4px;
}

.radio-line,
.check-line {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 400;
}

.radio-line input,
.check-line input {
  min-width: 20px;
  width: 20px;
  height: 20px;
  accent-color: #159be8;
}

.timer-fields {
  display: grid;
  gap: 28px;
}

.timer-fields.three {
  grid-template-columns: repeat(3, 1fr);
}

.timer-fields.two,
.timer-fields.sound-row {
  grid-template-columns: 1fr 1fr;
}

.timer-dialog label {
  color: #fff;
  font-weight: 400;
}

.timer-dialog input,
.timer-dialog select {
  background: #fff;
  color: #5d6870;
  border-color: #fff;
}

.timer-dialog .wide-label input {
  width: 100%;
}

.dialog-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 8px;
  padding: 16px 14px;
  border-top: 1px solid #d5d5d5;
}

#dateFields {
  display: none;
}

.timer-dialog.date-mode #dateFields {
  display: grid;
}

.timer-dialog.date-mode #durationFields {
  display: none;
}

.fullscreen-clock {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: none;
  place-items: center;
  background: #fff;
  color: #111;
}

body.dark .fullscreen-clock {
  background: #000;
  color: #fff;
}

.fullscreen-clock.is-open {
  display: grid;
}

.fullscreen-mount {
  display: grid;
  place-items: center;
}

.fullscreen-actions {
  position: absolute;
  top: 18px;
  right: 22px;
  display: flex;
  gap: 6px;
  color: currentColor;
}

.fullscreen-clock .digital-clock {
  color: var(--clock-selected);
  --clock: var(--clock-selected);
}

.fullscreen-clock .seg-digit {
  --seg-w: calc(clamp(54px, 9vw, 130px) * var(--clock-scale));
}

.fullscreen-clock .seg-colon {
  --seg-w: calc(clamp(54px, 9vw, 130px) * var(--clock-scale));
  --seg-h: calc(var(--seg-w) * 1.62);
  --seg-t: calc(var(--seg-w) * .16);
}

.fullscreen-clock .timer-display {
  --clock: var(--clock-selected);
}

.fullscreen-clock .timer-stage {
  min-height: 0;
  color: currentColor;
}

.fullscreen-clock .timer-title,
.fullscreen-clock .timer-target {
  color: currentColor;
}

.fullscreen-clock .timer-display .seg-digit {
  --seg-w: calc(clamp(48px, 9vw, 120px) * var(--timer-scale));
}

.fullscreen-clock .timer-display .seg-colon {
  --seg-w: calc(clamp(48px, 9vw, 120px) * var(--timer-scale));
  --seg-h: calc(var(--seg-w) * 1.62);
  --seg-t: calc(var(--seg-w) * .16);
}

.fullscreen-clock .analog-clock {
  --clock: currentColor;
  --size: min(calc(68vh * var(--clock-scale)), calc(68vw * var(--clock-scale)));
}

.fullscreen-clock p {
  display: none;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--button);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
}

body.clock-white:not(.dark) .digital-clock,
body.clock-white:not(.dark) .timer-display,
body.clock-white:not(.dark) .city-time strong,
body.clock-white:not(.dark) .analog-clock,
body.clock-white:not(.dark) .timer-title,
body.clock-white:not(.dark) .timer-target {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, .35));
}

@media (max-width: 1100px) {
  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .popular-list {
    columns: 2;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 0 12px;
  }

  .topnav {
    gap: 6px;
  }

  .topnav .nav-link {
    display: inline-grid;
  }

  .shell {
    padding: 74px 12px 24px;
  }

  .hero {
    min-height: 280px;
  }

  .city-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .popular-list {
    columns: 1;
  }

  .alarm-row {
    grid-template-columns: 1fr auto;
  }

  .alarm-row small {
    grid-column: 1 / -1;
  }

  .holiday-table th,
  .holiday-table td {
    padding: 10px 8px;
  }
}
