@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #090613;
  --ink: #f4efff;
  --muted: #b3a8cb;
  --faint: #8d7da8;
  --accent: #bb9aef;
  --glass-top: rgba(225, 207, 255, .115);
  --glass-bottom: rgba(143, 99, 201, .055);
  --glass-edge: rgba(222, 197, 255, .24);
  --glass-shine: rgba(249, 239, 255, .67);
  --glass-shadow: rgba(0, 0, 0, .32);
  --selection: rgba(176, 131, 242, .12);
  --control-border: rgba(204, 177, 246, .13);
  --star-color: 226, 210, 255;
  --nebula-one: #552495;
  --nebula-two: #663694;
  --halo: #311842;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f5f1fc;
  --ink: #38214f;
  --muted: #786486;
  --faint: #756088;
  --accent: #8353bd;
  --glass-top: rgba(255, 255, 255, .57);
  --glass-bottom: rgba(240, 226, 255, .3);
  --glass-edge: rgba(255, 255, 255, .92);
  --glass-shine: rgba(255, 255, 255, 1);
  --glass-shadow: rgba(97, 50, 147, .12);
  --selection: rgba(140, 94, 193, .12);
  --control-border: rgba(111, 70, 156, .13);
  --star-color: 138, 94, 178;
  --nebula-one: #c09ae8;
  --nebula-two: #dbbbed;
  --halo: #e6d9f2;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 280px; min-height: 100%; background: var(--background); }
body {
  margin: 0;
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--background);
  transition: color .6s, background .6s;
  isolation: isolate;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.skip-link{position:fixed;z-index:2000;left:max(16px,env(safe-area-inset-left));top:max(16px,env(safe-area-inset-top));transform:translateY(calc(-100% - 32px));padding:12px 18px;border:1px solid var(--accent);border-radius:999px;background:var(--background);color:var(--ink);font-size:14px;text-decoration:none}.skip-link:focus{transform:none}#app-main:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
.alarm-undo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;padding:6px 10px;border:1px solid var(--control-border);border-radius:12px;background:var(--selection);color:var(--muted);font-size:11px}.alarm-undo button{min-height:36px;padding:4px 10px;border:0;border-radius:8px;background:transparent;color:var(--accent);font:inherit;cursor:pointer}
button { cursor: pointer; }
button svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: #9468cc66; }

.sky-window { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform-origin: 0 0; overflow: hidden; background: var(--background); transition: background .7s; }
.nebula { position: absolute; border-radius: 50%; opacity: .29; transition: background .7s, opacity .7s; }
.nebula-one { width: 78%; height: 90%; left: 31%; top: -39%; background: radial-gradient(ellipse, var(--nebula-one) 0, transparent 65%); transform: rotate(-30deg); }
.nebula-two { width: 90%; height: 65%; left: -49%; top: 49%; background: radial-gradient(ellipse, var(--nebula-two) 0, transparent 68%); transform: rotate(-24deg); opacity: .19; }
.sky-halo { position: absolute; width: 105%; height: 95%; left: 3%; top: 14%; background: radial-gradient(ellipse, var(--halo), transparent 59%); opacity: .55; }
.sky[data-compact="true"] .nebula-one { width: 150%; height: 80%; left: -15%; top: -30%; }
.sky[data-compact="true"] .nebula-two { width: 160%; left: -90%; }
#stars, #far-stars { width: 100%; height: 100%; position: absolute; inset: 0; }
#far-stars { opacity: .9; }
.sky-grain { display: none; }
[data-theme="light"] .nebula-one { opacity: .36; }
[data-theme="light"] .nebula-two { opacity: .4; }

.header { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 36px 48px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 24px; font-weight: 450; letter-spacing: -.9px; text-decoration: none; }
.brand-icon { width: 31px; height: 31px; color: var(--accent); }
.brand-dot { color: var(--accent); }
.theme-switch { display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid var(--control-border); border-radius: 15px; }
.theme-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: 0; border-radius: 10px; color: var(--faint); transition: color .25s, background .25s; }
.theme-button:hover { color: var(--ink); }
.theme-button.is-active { background: var(--selection); color: var(--accent); }
.theme-button svg { width: 18px; height: 18px; }

.header-tools { display:flex; align-items:center; gap:16px; min-width:0; }
.alexa-button { display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:8px 12px; border:1px solid var(--control-border); border-radius:14px; background:var(--glass-bottom); color:var(--muted); font-size:11px; }
.alexa-button:hover { color:var(--accent); background:var(--selection); }
.alexa-button svg { width:18px; height:18px; color:var(--accent); }
.alexa-indicator { width:5px; height:5px; border-radius:50%; background:var(--accent); }
.alexa-dialog { width:min(550px,calc(100vw - 32px)); max-height:calc(100dvh - 40px); padding:28px; border:1px solid var(--glass-edge); border-radius:26px; color:var(--ink); background:var(--background); box-shadow:0 24px 100px -36px var(--glass-shadow); overflow:auto; overscroll-behavior:contain; }
.alexa-dialog::backdrop { background:rgba(8,4,20,.62); }
.alexa-heading-row { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.alexa-heading-row h2 { font-size:27px; font-weight:350; margin:6px 0 0; letter-spacing:-.6px; }
.alexa-heading-row h2 span { color:var(--accent); }
.alexa-description,.alexa-note { font-size:11px; line-height:1.8; color:var(--muted); overflow-wrap:anywhere; }
.alexa-description { margin:18px 0; font-size:12px; }
.alexa-status { padding:11px 14px; border:1px solid var(--control-border); border-radius:12px; color:var(--accent); background:var(--selection); font-size:12px; line-height:1.7; }
.alexa-dialog label { display:block; color:var(--muted); font-size:11px; line-height:1.7; margin:16px 0 8px; }
.alexa-dialog input { display:block; width:100%; min-width:0; min-height:44px; margin-top:6px; padding:11px 12px; border:1px solid var(--control-border); border-radius:9px; color:var(--ink); background:var(--selection); font:inherit; font-size:13px; }
.alexa-dialog input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.alexa-dialog input::placeholder { color:var(--faint); }
.alexa-primary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 17px; background:var(--accent); color:var(--background); border:0; border-radius:11px; font:inherit; font-size:12px; text-decoration:none; }
.alexa-link { min-height:44px; padding:8px 0; color:var(--accent); border:0; background:transparent; font-size:11px; text-align:left; }
.alexa-card { padding:16px; margin:16px 0; border:1px solid var(--control-border); border-radius:14px; background:var(--glass-bottom); }
.alexa-card label:first-child { margin-top:0; }
.alexa-card p:last-child { margin-bottom:0; }
.alexa-label { margin:0 0 8px; font-size:9px; letter-spacing:1.7px; color:var(--faint); }
.alexa-zone { font-size:14px; line-height:1.7; margin:0; color:var(--ink); overflow-wrap:anywhere; }
.alexa-code { margin:12px 0; font-size:29px; letter-spacing:5px; color:var(--accent); font-variant-numeric:tabular-nums; }
.alexa-connection-actions { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.alexa-examples { margin-top:24px; padding-top:20px; border-top:1px solid var(--control-border); }
.alexa-examples p:not(.alexa-label) { color:var(--muted); font-size:11px; line-height:1.8; margin:12px 0; }
.alexa-setup { margin-top:22px; border-top:1px solid var(--control-border); padding-top:10px; font-size:11px; color:var(--muted); line-height:1.9; }
.alexa-setup summary { cursor:pointer; padding:10px 0; color:var(--accent); }
.alexa-setup ol { padding-left:20px; }
.alexa-setup li { margin:12px 0; padding-left:3px; }
.alexa-setup a { color:var(--accent); text-underline-offset:4px; }
.alexa-downloads { display:flex; flex-wrap:wrap; gap:10px 20px; }
.alexa-downloads a { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:480px) { .header-tools { gap:8px; }.alexa-button { padding:8px; font-size:10px; }.alexa-dialog { padding:20px; }.alexa-dialog input { font-size:16px; }.alexa-code { font-size:24px; letter-spacing:3px; } }
@media(max-width:360px) { body>.header { gap:8px; padding-left:16px; padding-right:16px; }.alexa-button { width:40px; min-width:40px; font-size:0; gap:0; justify-content:center; }.alexa-indicator { position:absolute; margin:0 0 20px 23px; }.header-tools { gap:6px; } }

.main { display: flex; align-items: center; justify-content: center; min-width: 0; width: 100%; min-height: 360px; padding: 70px 24px 76px; }
.clock-scene { position: relative; width: min(100%, 744px); min-width: 0; max-width: 100%; display: flex; flex-direction: column; align-items: center; animation: arrive 1.2s ease both; }
.clock-panel, .timer-panel, .stopwatch-panel { display: flex; flex-direction: column; align-items: center; min-width: 0; width: 100%; }
.mode-switch { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; max-width: 100%; gap: 8px; margin-bottom: 31px; padding: 3px; border-bottom: 1px solid var(--control-border); }
.mode-button { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; color: var(--faint); font-size: 11px; background: transparent; border: 0; border-radius: 9px; transition: color .2s, background .2s; }
.mode-button:hover { color: var(--ink); background: var(--selection); }
.mode-button[aria-selected="true"] { color: var(--accent); }
.mode-button[aria-selected="true"]::after { content: ""; position: absolute; bottom: -4px; height: 1px; left: 14px; right: 14px; background: var(--accent); }
.mode-button svg { width: 16px; height: 16px; stroke-width: 1.15; }
.timer-badge { padding: 3px 5px; border-radius: 5px; background: var(--selection); color: var(--accent); font-size: 8px; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.timer-badge.is-finished { color: var(--ink); }
[data-tool="timer"] .main { padding-top: 28px; padding-bottom: 30px; }
[data-tool="stopwatch"] .main { padding-top: 44px; padding-bottom: 46px; }
.stopwatch-actions { margin-top: 22px; }
.stopwatch-note { margin: 18px 20px 0; color: var(--faint); font-size: 10px; line-height: 1.7; text-align: center; }
.stopwatch-precision { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 8px; padding: 10px 8px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.stopwatch-precision:hover { color: var(--ink); }
.precision-track { position: relative; width: 29px; height: 16px; border-radius: 12px; border: 1px solid var(--control-border); background: var(--selection); transition: background .2s; }
.precision-track::after { content: ""; position: absolute; width: 10px; height: 10px; top: 2px; left: 2px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.stopwatch-precision[aria-pressed="true"] .precision-track { background: #8454ac; border-color: #8454ac; }
.stopwatch-precision[aria-pressed="true"] .precision-track::after { transform: translateX(13px); background: #faf6ff; }
.stopwatch-fraction { align-self: stretch; justify-content: flex-end; }
.stopwatch-fraction-digits { width: 3.8ch; color: var(--accent); font-size: clamp(18px, 2.6vw, 40px); font-weight: 300; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: 0; text-align: center; }
.stopwatch-fraction .unit-label { font-size: 8px; letter-spacing: 1px; padding-left: 0; }
.clock[data-precision="milliseconds"] .digits { font-size: clamp(54px, 8.5vw, 108px); }
.clock[data-precision="milliseconds"] .colon { font-size: clamp(46px, 7.2vw, 90px); }
.timer-heading-row { margin-bottom: 25px; }
.timer-pill { min-height: 194px; }
.timer-pill .clock { padding: 18px 38px; }
.timer-display .timer-input { width: 2.15ch; margin: 0; padding: 0; border: 0; border-radius: 8px; outline: none; background: transparent; color: var(--ink); text-align: center; font-family: inherit; font-size: clamp(62px, 9vw, 112px); appearance: textfield; -moz-appearance: textfield; }
.timer-input::-webkit-inner-spin-button, .timer-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.timer-input:not([readonly]):focus { background: var(--selection); box-shadow: 0 1px 0 var(--accent); }
.timer-input:focus-visible { box-shadow: 0 1px 0 var(--accent); }
.timer-input[readonly] { cursor: default; }
.time-step-button { display: grid; place-items: center; width: 32px; min-height: 28px; padding: 4px 6px; border: 1px solid var(--control-border); border-radius: 8px; background: transparent; color: var(--accent); transition: background .15s, color .15s; }
.time-step-button svg { width: 17px; height: 17px; stroke-width: 1.3; }
.time-step-button:hover:not(:disabled) { background: var(--selection); color: var(--ink); }
.time-step-button:disabled { color: var(--faint); opacity: .3; cursor: default; }
.timer-step-button { width: 44px; min-height: 32px; border-color: transparent; }
.timer-step-button:first-child { margin-bottom: 3px; }
.timer-step-button + .unit-label { margin-top: 6px; }
.timer-display .clock-unit { gap: 2px; }
.time-adjustments { display: flex; justify-content: flex-end; gap: 6px; flex-shrink: 0; }
.time-step-group { display: grid; justify-items: center; gap: 3px; }
.time-step-group > span { color: var(--faint); font-size: 8px; line-height: 1.4; }
.agenda-time-field { min-width: 0; }
.agenda-time-field .time-adjustments { margin-top: 7px; }
.timer-status { margin: 20px 16px 0; min-height: 16px; font-size: 11px; line-height: 1.6; color: var(--muted); text-align: center; }
.timer-presets { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.timer-presets button { min-height: 31px; padding: 7px 12px; border: 1px solid var(--control-border); border-radius: 8px; background: transparent; color: var(--muted); font-size: 10px; }
.timer-presets button:hover { color: var(--accent); background: var(--selection); border-color: var(--accent); }
.timer-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 20px; }
.timer-actions > button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--control-border); border-radius: 11px; font-size: 11px; font-weight: 400; }
.timer-primary { min-width: 110px; color: var(--background); background: var(--accent); }
@media (hover: hover) {
  .timer-primary:hover:not(:disabled) { background: color-mix(in srgb,var(--accent) 88%,var(--ink)); }
}
.timer-reset { color: var(--muted); background: transparent; }
.timer-reset:hover { color: var(--ink); background: var(--selection); }
.timer-sound { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--accent); background: var(--selection); }
.timer-sound svg { width: 17px; height: 17px; stroke-width: 1.1; }
.timer-sound[aria-pressed="false"] { color: var(--faint); background: transparent; }
.timer-audio-support { display: flex; align-items: center; gap: 9px; margin-top: 10px; color: var(--faint); font-size: 9px; }
.timer-audio-support button { min-height: 36px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.timer-audio-support button:hover { color: var(--accent); }
.timer-actions button:disabled, .timer-audio-support button:disabled { opacity: .45; cursor: default; }
.timer-audio-note { margin: 1px 20px 0; color: var(--faint); font-size: 9px; line-height: 1.7; text-align: center; }
.timer-error { margin: 12px 20px 0; color: var(--accent); font-size: 11px; line-height: 1.6; text-align: center; }
.timer-pill[data-state="finished"] { border-color: var(--accent); }
.timer-pill[data-state="finished"] .glass-reflection { animation: timer-finished 2s ease-in-out infinite; }
.timer-pill[data-state="finished"] + .timer-status { color: var(--accent); }
@keyframes timer-finished { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
.clock-heading-row { display: flex; align-items: center; gap: 10px; margin-bottom: 31px; }
.clock-heading-row h1 { margin: 0; font-size: 11px; font-weight: 450; letter-spacing: 3.5px; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #b381f466; }

.clock-pill {
  position: relative;
  width: 100%;
  border-radius: 999px;
  min-height: 222px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  background: radial-gradient(ellipse at 25% 0, var(--glass-top), transparent 75%), linear-gradient(168deg, var(--glass-top), var(--glass-bottom) 60%, var(--glass-top));
  box-shadow: 0 18px 80px -18px var(--glass-shadow), 0 0 75px -35px #b97aff24, inset 0 1px 2px #ffffff21, inset 0 -2px 6px #dbc7ff0d;
  transition: background .65s, box-shadow .65s, border-color .65s;
}
.glass-edge { position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from 185deg at 50% 50%, transparent 0deg, #a267ff59 52deg, #ffffff08 70deg, var(--glass-shine) 126deg, #ffffff10 157deg, transparent 202deg, #d0b2ff61 252deg, #ffffff05 272deg, #d9beff26 315deg, transparent 352deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.glass-reflection { position: absolute; top: 0; left: 7%; width: 66%; height: 46%; border-radius: 0 0 100% 100%; background: radial-gradient(ellipse at 35% -17%, #e4cfff11, transparent 70%); pointer-events: none; }
.clock-pill::before { content: ""; position: absolute; width: 76%; height: 35px; left: 12%; top: -33px; border-radius: 50%; background: radial-gradient(ellipse, var(--glass-shine), transparent 70%); opacity: .55; pointer-events: none; }
.clock-pill::after { content: ""; position: absolute; height: 1px; width: 30%; bottom: 0; right: 15%; background: linear-gradient(90deg, transparent, var(--glass-shine), transparent); opacity: .42; pointer-events: none; }
[data-theme="light"] .clock-pill { box-shadow: 0 20px 75px -30px #7655a032, 0 4px 20px -7px #a086bf1f, inset 0 2px 4px #ffffffb3, inset 0 -2px 6px #b794d41c; }
[data-theme="light"] .glass-reflection { background: radial-gradient(ellipse at 35% -17%, #ffffffad, transparent 80%); }

.clock { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: center; gap: 13px; padding: 26px 38px 25px; white-space: nowrap; }
.clock-unit { display: flex; flex-direction: column; align-items: center; }
.digits { font-size: clamp(62px, 10vw, 120px); line-height: 1.15; font-weight: 200; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; letter-spacing: -5px; color: var(--ink); text-shadow: 0 0 40px #d0b4ff12; }
.colon { color: var(--accent); font-size: clamp(50px, 8.5vw, 100px); font-weight: 200; line-height: 1.25; opacity: .57; transform: translateY(-3px); }
.seconds .digits { color: #c6b2e5; }
[data-theme="light"] .seconds .digits { color: #986cbd; }
.unit-label { color: var(--muted); font-size: 9px; line-height: 1; text-transform: uppercase; letter-spacing: 3px; margin-top: 8px; padding-left: 3px; }
.clock-details { margin-top: 30px; text-align: center; }
.date { color: var(--muted); margin: 0; font-size: 13px; font-weight: 400; letter-spacing: .3px; }
.timezone { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 17px; font-size: 9px; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; }
.timezone-line { height: 1px; width: 21px; background: var(--faint); opacity: .3; }

.footer { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 48px 32px; }
.text-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 9px 0; font-size: 11px; letter-spacing: .1px; color: var(--muted); transition: color .2s; }
.text-button:hover { color: var(--ink); }
.text-button svg { width: 17px; height: 17px; }
.motion-icon { stroke-width: 1.1; }
.motion-state { margin-left: 2px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; transition: opacity .3s; }
.text-button[aria-pressed="false"] .motion-state { opacity: .25; }
.footer-note { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; color: var(--faint); font-size: 11px; letter-spacing: 1.3px; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.alarm-dock { position: relative; z-index: 20; display: flex; align-items: flex-end; justify-content: flex-end; min-width: 0; padding: 0 0 16px; }
.alarm-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--glass-edge); border-right: 0; border-radius: 15px 0 0 15px; background: linear-gradient(150deg, var(--glass-top), var(--glass-bottom)); color: var(--accent); box-shadow: inset 1px 0 1px #ffffff15; }
.alarm-tab:hover { background: var(--selection); }
.alarm-tab svg { width: 17px; height: 17px; stroke-width: 1.1; }
.alarm-tab-label { font-size: 10px; letter-spacing: .2px; }
.alarm-count { min-width: 17px; min-height: 17px; display: grid; place-items: center; border-radius: 50%; background: var(--selection); font-size: 9px; font-variant-numeric: tabular-nums; }
.alarm-tab[data-ringing="true"] { border-color: var(--accent); }
[data-exploring="true"] .alarm-dock { visibility: hidden; }
[data-tool="alarm"] .main { align-items: flex-start; padding-top: 34px; padding-bottom: 40px; }
[data-tool="alarm"] .clock-scene { width: min(100%, 680px); }
.alarm-panel { display: flex; flex-direction: column; width: 100%; min-width: 0; color: var(--ink); }
.alarm-popup { width: min(360px, calc(100% - 36px)); margin: 0 24px 0 12px; padding: 12px 18px 10px; border: 1px solid var(--glass-edge); border-radius: 20px; background: linear-gradient(140deg, #1a1029fa, #110b1ffa); box-shadow: 0 12px 32px #00000024, inset 0 1px 1px #ffffff17; }
[data-theme="light"] .alarm-popup, [data-theme="light"] .alarm-alert { background: linear-gradient(140deg, #fffafffa, #f2eafafa); box-shadow: 0 20px 60px #7655a025, inset 0 1px 1px #ffffff; }
.alarm-popup-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.alarm-popup-heading .alarm-eyebrow { margin: 0; }
.alarm-popup-heading .close-button { width: 32px; height: 32px; padding: 7px; }
.alarm-popup-content { display: flex; align-items: center; gap: 15px; margin-top: 3px; }
.alarm-popup-content > div { min-width: 0; }
.alarm-popup-time { margin: 0; font-size: 36px; font-weight: 250; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; color: var(--accent); }
.alarm-popup-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 0; font-size: 11px; line-height: 1.5; color: var(--ink); }
.alarm-popup-content .alarm-note { margin-top: 3px; }
.alarm-popup-next { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.alarm-popup-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.alarm-panel-heading { padding: 0 0 23px; }
.alarm-eyebrow { margin: 0 0 8px; color: var(--faint); font-size: 8px; letter-spacing: 1.8px; font-weight: 400; }
.alarm-panel-heading h2 { margin: 0; font-size: 36px; font-weight: 300; letter-spacing: -1.2px; }
.alarm-panel-heading h2 span { color: var(--accent); }
.alarm-alert-heading .close-button { width: 36px; height: 36px; padding: 8px; flex-shrink: 0; }
.alarm-panel-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.alarm-editor, .alarm-saved { min-width: 0; }
.alarm-form { display: flex; flex-direction: column; gap: 13px; }
.alarm-form label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-size: 10px; color: var(--muted); }
.alarm-form input, .alarm-form select { min-width: 0; width: 100%; padding: 11px 10px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--selection); color: var(--ink); font: inherit; font-size: 11px; }
.alarm-form input::placeholder { color: var(--faint); opacity: 1; }
.alarm-form input:focus-visible, .alarm-form select:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.alarm-form .alarm-time-field { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--glass-edge); background: linear-gradient(150deg, var(--glass-top), var(--glass-bottom)); box-shadow: inset 0 1px 2px #ffffff14; }
.alarm-form .alarm-time-field > label { font-size: 8px; text-transform: uppercase; letter-spacing: 1.4px; }
.alarm-time-row { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.alarm-form .alarm-time-field input { flex: 1; min-width: 0; width: 0; padding: 2px 4px; border: 0; border-radius: 0; background: transparent; font-size: clamp(28px, 9vw, 38px); font-weight: 250; text-align: center; font-variant-numeric: tabular-nums; }
.alarm-time-field input::-webkit-datetime-edit { padding: 0; }
.alarm-time-field input::-webkit-calendar-picker-indicator { width: 16px; height: 16px; opacity: .65; padding: 0; margin-left: 4px; }
.alarm-form-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
.alarm-form-row label { display: block; }
.alarm-form-row input, .alarm-form-row select { margin-top: 7px; }
.alarm-optional { color: var(--faint); font-size: 8px; }
.alarm-zone-picker { position: relative; }
.alarm-zone-results { position: relative; z-index: 2; margin-top: 5px; max-height: 180px; overflow-y: auto; border: 1px solid var(--glass-edge); border-radius: 12px; background: var(--background); padding: 5px; box-shadow: 0 12px 30px #00000030; }
.alarm-zone-option { width: 100%; display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 8px; border: 0; border-radius: 8px; text-align: left; background: transparent; color: var(--ink); }
.alarm-zone-option:hover, .alarm-zone-option[data-active="true"] { background: var(--selection); }
.alarm-zone-option img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; flex-shrink: 0; }
.alarm-zone-option > span { min-width: 0; flex: 1; font-size: 10px; }
.alarm-zone-option small { display: block; margin-top: 3px; color: var(--faint); font-size: 8px; }
.alarm-zone-option .alarm-option-offset { flex: 0; font-size: 8px; color: var(--accent); white-space: nowrap; }
.alarm-zone-empty { margin: 12px 8px; font-size: 10px; color: var(--muted); }
.alarm-zone-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: -5px 0 0; font-size: 9px; color: var(--muted); line-height: 1.5; }
.alarm-zone-selected img { border-radius: 3px; object-fit: cover; }
#alarm-zone-offset { color: var(--accent); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.alarm-preview { margin: 0; font-size: 10px; line-height: 1.6; color: var(--accent); }
.alarm-error { margin: 0; font-size: 10px; line-height: 1.6; color: var(--ink); }
.alarm-form-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.alarm-form-actions .timer-primary { width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 11px; font-size: .875rem; font-weight: 600; }
.alarm-link { min-height: 32px; padding: 6px 3px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.alarm-link:hover { color: var(--accent); }
.alarm-sound-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; }
.alarm-sound { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 10px; border: 1px solid var(--control-border); border-radius: 9px; background: var(--selection); color: var(--accent); font-size: 10px; }
.alarm-sound svg { width: 16px; height: 16px; }
.alarm-sound[aria-pressed="false"] { background: transparent; color: var(--faint); }
.alarm-sound:disabled, .alarm-link:disabled { opacity: .45; cursor: default; }
.alarm-note { margin: 7px 0 0; font-size: 9px; color: var(--faint); line-height: 1.6; }
.alarm-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 0; padding-top: 5px; }
.alarm-list-heading h3 { margin: 0; font-size: 11px; color: var(--muted); font-weight: 400; }
.alarm-list-heading > span { font-size: 9px; color: var(--faint); }
.alarm-empty { margin: 16px 0; padding: 15px; font-size: 10px; line-height: 1.7; color: var(--faint); text-align: center; border: 1px dashed var(--control-border); border-radius: 12px; }
.alarm-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.alarm-card { padding: 12px 13px; border: 1px solid var(--control-border); border-radius: 14px; background: var(--selection); }
.alarm-card[data-enabled="false"] { background: transparent; }
.alarm-card[data-ringing="true"] { border-color: var(--accent); }
.alarm-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.alarm-card-time { font-size: 27px; font-weight: 250; letter-spacing: -.8px; font-variant-numeric: tabular-nums; color: var(--ink); }
.alarm-card-title { margin: 4px 0 0; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.alarm-card-zone { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; color: var(--faint); font-size: 9px; }
.alarm-card-zone img { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.alarm-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 7px; }
.alarm-card-next { margin: 0; color: var(--faint); font-size: 9px; line-height: 1.6; }
.alarm-card-actions { display: flex; flex-shrink: 0; gap: 3px; }
.alarm-icon-button { display: grid; place-items: center; width: 30px; height: 30px; padding: 7px; border: 1px solid var(--control-border); border-radius: 8px; background: transparent; color: var(--muted); }
.alarm-icon-button svg { width: 14px; height: 14px; stroke-width: 1.1; }
.alarm-icon-button:hover { color: var(--accent); border-color: var(--accent); }
.alarm-enable { display: grid; place-items: center; width: 42px; height: 34px; padding: 8px 4px; border: 0; background: transparent; flex-shrink: 0; }
.alarm-switch { position: relative; width: 31px; height: 18px; border-radius: 99px; background: var(--selection); border: 1px solid var(--control-border); }
.alarm-switch::after { content: ""; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; background: var(--muted); border-radius: 50%; }
.alarm-enable[aria-checked="true"] .alarm-switch { background: #8454ac; border-color: #8454ac; }
.alarm-enable[aria-checked="true"] .alarm-switch::after { transform: translateX(13px); background: #faf6ff; }
.alarm-alert { width: min(370px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px 26px 22px; border: 1px solid var(--glass-edge); border-radius: 26px; background: linear-gradient(140deg, #1a1029fa, #110b1ffa); color: var(--ink); box-shadow: 0 20px 80px #00000050; text-align: center; overflow-y: auto; }
.alarm-alert::backdrop { background: #09061399; }
.alarm-alert-heading { display: flex; align-items: center; justify-content: space-between; }
.alarm-alert-heading .alarm-eyebrow { margin: 0; }
.alarm-alert-bell { width: 29px; height: 29px; margin-top: 15px; stroke: var(--accent); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.alarm-alert-time { margin: 14px 0 5px; font-size: 60px; font-weight: 200; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.alarm-alert h2 { margin: 0; font-size: 19px; font-weight: 350; overflow-wrap: anywhere; }
.alarm-alert-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 24px 0 9px; }
.alarm-alert-actions button { min-height: 44px; padding: 10px 8px; border: 1px solid var(--control-border); border-radius: 11px; font-size: 11px; }
.alarm-secondary { color: var(--muted); background: var(--selection); }
.alarm-secondary:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 540px) { [data-tool="alarm"] .main { padding-top: 25px; } .alarm-panel-heading h2 { font-size: 30px; } .alarm-panel-body { grid-template-columns: minmax(0, 1fr); gap: 24px; } .alarm-form input, .alarm-form select { font-size: 16px; } .alarm-list-heading { padding-top: 18px; border-top: 1px solid var(--control-border); } .alarm-popup { margin-right: 18px; width: min(360px, calc(100% - 36px)); } .alarm-alert { padding: 18px; } }
.noscript { position: fixed; bottom: 70px; width: 100%; text-align: center; color: var(--muted); padding: 0 24px; font-size: 13px; }

.explore-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 18px; padding: 8px 15px; color: var(--accent); background: transparent; border: 1px solid var(--control-border); border-radius: 12px; font-size: 11px; transition: border-color .2s, background .2s; }
.explore-button:hover { background: var(--selection); border-color: var(--accent); }
.explore-button svg { width: 16px; height: 16px; stroke-width: 1.1; }
.explore-button .explore-arrow { width: 12px; height: 12px; margin-left: 6px; opacity: .7; }
.world-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 420px) { .world-wordmark .world-header-divider, .world-wordmark .world-header-label { display: none; } }

[data-exploring="true"] body > .header, [data-exploring="true"] body > .main, [data-exploring="true"] body > .footer { visibility: hidden; }
[data-exploring="true"] { overflow: hidden; }
.world-dialog { position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: var(--ink); background: transparent; overflow: auto; overscroll-behavior: contain; }
.world-dialog::backdrop { background: transparent; }
.world-dialog[open] { display: block; }
.world-shell { max-width: 1210px; min-height: 100%; margin: 0 auto; padding: 28px 44px 20px; }
.world-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.world-wordmark { display: flex; align-items: baseline; font-size: 23px; font-weight: 450; letter-spacing: -.9px; }
.world-wordmark > span:first-child { color: var(--accent); }
.world-wordmark .world-header-divider { margin: 0 18px; color: var(--faint); opacity: .5; font-size: 17px; font-weight: 200; }
.world-wordmark .world-header-label { color: var(--muted); font-size: 11px; letter-spacing: .2px; font-weight: 400; }
.close-button { width: 44px; height: 44px; padding: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--control-border); border-radius: 12px; background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.close-button:hover { background: var(--selection); color: var(--ink); }
.close-button svg { width: 18px; height: 18px; }
.world-intro { margin: 36px 0 28px; }
.world-eyebrow { margin: 0 0 11px; color: var(--accent); font-size: 9px; letter-spacing: 2.3px; text-transform: uppercase; }
.world-intro h2 { margin: 0; font-size: clamp(26px, 3vw, 37px); font-weight: 300; letter-spacing: -1.2px; }
.world-intro h2 span { color: var(--accent); }
.world-intro > p:last-child { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.world-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, 1fr); align-items: start; gap: 40px; }
.globe-section { min-width: 0; }
.globe-stage { position: relative; height: clamp(340px, 52vh, 490px); isolation: isolate; }
#globe { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; border-radius: 18px; }
#globe.is-dragging { cursor: grabbing; }
.globe-tooltip { position: absolute; z-index: 2; max-width: 210px; padding: 9px 12px; border-radius: 8px; background: #231433; border: 1px solid var(--control-border); color: var(--ink); pointer-events: none; font-size: 11px; box-shadow: 0 4px 20px #00000016; }
[data-theme="light"] .globe-tooltip { background: #f5effc; }
.globe-loading { position: absolute; left: 50%; top: 50%; width: 80%; margin: 0; transform: translate(-50%, -50%); font-size: 12px; line-height: 1.7; color: var(--muted); text-align: center; pointer-events: none; }
.globe-reload { position: absolute; top: calc(50% + 42px); left: 50%; transform: translateX(-50%); color: var(--accent); background: var(--background); border: 1px solid var(--control-border); padding: 10px 14px; border-radius: 9px; font-size: 11px; }
.globe-controls { position: absolute; right: 4px; bottom: 11px; display: flex; flex-direction: column; gap: 7px; }
.globe-controls button { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; padding: 0; background: var(--background); border: 1px solid var(--control-border); border-radius: 11px; color: var(--muted); transition: color .2s, border-color .2s; }
.globe-controls button:hover { color: var(--accent); border-color: var(--accent); }
.globe-controls button:disabled { opacity: .4; cursor: default; }
.globe-controls svg { width: 17px; height: 17px; stroke-width: 1.15; }
.globe-controls .home-button { color: var(--accent); background: var(--selection); }
.globe-controls .home-button svg { stroke-linecap: round; stroke-linejoin: round; }
.globe-instructions { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 7px 0 0; color: var(--faint); font-size: 10px; text-align: center; line-height: 1.6; }
.globe-instructions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1; flex-shrink: 0; }
.globe-current { display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin-top: 22px; }
.globe-current strong { color: var(--ink); font-weight: 400; }
#current-location-time { color: var(--accent); font-variant-numeric: tabular-nums; margin-left: 5px; }
.location-panel { min-width: 0; padding-top: 10px; }
.search-field { display: flex; align-items: center; gap: 11px; padding: 0 15px; min-height: 49px; border: 1px solid var(--glass-edge); border-radius: 13px; background: var(--selection); transition: border-color .2s; }
.search-field:focus-within { border-color: var(--accent); }
.search-field > svg { width: 18px; height: 18px; stroke: var(--accent); stroke-width: 1.3; flex-shrink: 0; }
.search-field input { min-width: 0; width: 100%; padding: 14px 0; font-family: inherit; font-size: 12px; color: var(--ink); border: 0; background: transparent; outline: none; }
.search-field input::placeholder { color: var(--faint); }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.search-shortcut { color: var(--faint); font-size: 17px; }
.continent-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 24px; }
.continent-filters button { padding: 8px 10px; min-height: 32px; border: 1px solid var(--control-border); background: transparent; border-radius: 8px; color: var(--muted); font-size: 9px; white-space: nowrap; transition: color .2s, background .2s, border-color .2s; }
.continent-filters button:hover { color: var(--ink); border-color: var(--accent); }
.continent-filters button[aria-pressed="true"] { color: var(--accent); background: var(--selection); border-color: var(--accent); }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 13px; }
.results-heading h3 { color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: .4px; margin: 0; }
#results-count { font-size: 9px; color: var(--faint); font-variant-numeric: tabular-nums; }
.country-filter { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; padding: 7px 10px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); background: var(--selection); font-size: 10px; }
.country-filter svg { width: 12px; height: 12px; }
.selection-hint { font-size: 10px; line-height: 1.65; margin: 0 2px 12px; color: var(--muted); }
.location-results { max-height: min(36vh, 340px); min-height: 120px; overflow-y: auto; overscroll-behavior: contain; padding: 0 5px 0 0; scrollbar-width: thin; scrollbar-color: var(--control-border) transparent; }
.location-row { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 12px 11px; margin-bottom: 5px; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 12px; transition: background .2s, border-color .2s; }
.location-row:hover { background: var(--selection); }
.location-row[aria-pressed="true"] { background: var(--selection); border-color: var(--control-border); }
.place-flag { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--selection); color: var(--accent); font-size: 10px; font-weight: 450; letter-spacing: .7px; }
.place-flag img { display: block; width: 28px; height: 21px; border-radius: 3px; object-fit: contain; }
.place-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.place-city { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-country { color: var(--faint); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.place-meta { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.place-time { font-size: 13px; color: var(--ink); font-weight: 350; letter-spacing: .3px; }
.place-offset { font-size: 8px; color: var(--faint); letter-spacing: .2px; }
.location-note { color: var(--faint); font-size: 9px; line-height: 1.8; margin: 17px 2px 0; }
.search-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 30px 15px; margin: 0; line-height: 1.7; }
.search-empty span { display: block; font-size: 10px; color: var(--faint); margin-top: 9px; }
.more-results { width: 100%; padding: 10px; border: 1px solid var(--control-border); border-radius: 9px; margin-top: 10px; font-size: 10px; color: var(--accent); background: transparent; }
.more-results:hover { background: var(--selection); }
.world-bottom-note { text-align: center; color: var(--faint); font-size: 10px; letter-spacing: 1px; margin: 32px 0 5px; }

@media (max-width: 900px) {
  .world-shell { padding: 23px 30px 20px; }
  .world-layout { grid-template-columns: minmax(0, 1.1fr) minmax(290px, 1fr); gap: 20px; }
  .globe-stage { height: 380px; }
  .globe-instructions { font-size: 9px; }
}
@media (max-width: 720px) {
  .world-shell { padding: max(20px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); }
  .world-wordmark { font-size: 21px; }
  .world-wordmark .world-header-divider { margin: 0 12px; }
  .world-wordmark .world-header-label { font-size: 10px; }
  .world-intro { margin: 28px 0 13px; }
  .world-eyebrow { font-size: 8px; letter-spacing: 1.8px; }
  .world-intro h2 { font-size: 29px; letter-spacing: -.9px; }
  .world-intro > p:last-child { font-size: 11px; }
  .world-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .globe-stage { height: clamp(240px, 38vh, 340px); }
  .globe-controls { right: 0; bottom: 0; }
  .globe-controls button { width: 40px; height: 40px; }
  .globe-instructions { font-size: 9px; margin-top: 12px; }
  .globe-current { font-size: 10px; margin-top: 14px; }
  .location-panel { padding-top: 3px; }
  .search-field input { font-size: 16px; }
  .continent-filters { gap: 7px; margin: 14px 0 20px; }
  .continent-filters button { min-height: 36px; font-size: 10px; }
  .location-results { max-height: 370px; }
  .location-row { padding: 13px 11px; }
  .world-bottom-note { margin-top: 30px; }
}

@keyframes arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  .header { padding: 44px 64px 0; }
  .footer { padding: 0 64px 40px; }
  .clock-scene { width: 800px; }
  .clock-pill { min-height: 240px; }
  .digits { font-size: 130px; }
  .colon { font-size: 108px; }
}
@media (max-width: 800px) {
  .header { padding: 28px 28px 0; }
  .footer { padding: 0 28px 25px; }
  .footer-note { display: none; }
  .clock-pill { min-height: 190px; }
  .clock { gap: 9px; padding: 30px 30px; }
  .digits { letter-spacing: -3px; }
}
@media (max-width: 540px) {
  .header { padding: max(24px, env(safe-area-inset-top)) 23px 0; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-icon { width: 27px; height: 27px; }
  .theme-switch { border-radius: 13px; padding: 3px; gap: 3px; }
  .theme-button { width: 40px; height: 44px; border-radius: 9px; }
  .main { padding: 64px 18px 74px; min-height: 320px; }
  .clock-heading-row { margin-bottom: 27px; gap: 8px; }
  .clock-heading-row h1 { font-size: 9px; letter-spacing: 2.5px; }
  .mode-switch { margin-bottom: 25px; gap: 4px; }
  .mode-button { font-size: 10px; min-height: 44px; padding: 8px 8px; }
  .mode-button svg, .mode-button .timer-badge { display: none; }
  [data-tool="timer"] .main { padding-top: 22px; padding-bottom: 26px; }
  [data-tool="stopwatch"] .main { padding-top: 32px; padding-bottom: 34px; }
  .stopwatch-note { font-size: 9px; }
  .stopwatch-precision { font-size: 10px; }
  .stopwatch-fraction .unit-label { font-size: 7px; }
  .clock[data-precision="milliseconds"] .digits { font-size: clamp(32px, 11vw, 60px); letter-spacing: -1.5px; }
  .clock[data-precision="milliseconds"] .colon { font-size: clamp(28px, 9.5vw, 52px); }
  .timer-pill .clock { padding: 25px 15px; }
  .timer-display .timer-input { font-size: clamp(38px, 12.4vw, 66px); }
  .timer-status { margin-top: 18px; font-size: 10px; }
  .timer-actions { gap: 7px; margin-top: 17px; }
  .timer-actions > button { padding: 10px 12px; font-size: 10px; }
  .timer-primary { min-width: 87px; }
  .timer-presets { gap: 7px; margin-top: 12px; }
  .timer-presets button { padding: 7px 10px; min-height: 35px; }
  .timer-audio-support { font-size: 8px; gap: 7px; }
  .timer-audio-support button, .timer-audio-note { font-size: 8px; }
  .clock-pill { min-height: 144px; }
  .clock { gap: 5px; padding: 25px 15px; }
  .digits { font-size: clamp(38px, 12.4vw, 66px); letter-spacing: -2px; line-height: 1.17; }
  .colon { font-size: clamp(33px, 10.8vw, 56px); line-height: 1.22; transform: translateY(-1px); }
  .unit-label { font-size: 7px; letter-spacing: 2px; margin-top: 10px; padding-left: 2px; }
  .clock-details { margin-top: 27px; }
  .date { font-size: 11px; }
  .timezone { font-size: 8px; letter-spacing: 1.5px; margin-top: 15px; }
  .footer { padding: 0 23px max(23px, env(safe-area-inset-bottom)); gap: 10px; }
  .text-button { font-size: 10px; gap: 7px; min-height: 40px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .header { padding-top: 16px; }
  .main { min-height: 240px; padding: 28px 24px; }
  .clock-scene { width: min(100%, 570px); }
  .clock-heading-row { margin-bottom: 15px; }
  .clock-pill { min-height: 145px; }
  .clock { padding: 16px 28px; }
  .digits { font-size: 80px; }
  .colon { font-size: 67px; }
  .clock-details { margin-top: 15px; }
  .timezone { margin-top: 10px; }
  .footer { padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Agenda: a quiet calendar card; the clock keeps its glass pill. */
[data-tool="agenda"] .main { align-items: flex-start; padding-top: 34px; padding-bottom: 40px; }
[data-tool="agenda"] .clock-scene { width: min(100%, 940px); }
.agenda-panel { width: 100%; }
.agenda-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.agenda-eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 9px; font-weight: 400; letter-spacing: 2px; line-height: 1.6; text-transform: uppercase; }
.agenda-heading h1 { margin: 0; font-size: 32px; font-weight: 300; letter-spacing: -1px; }
.agenda-heading h1 span { color: var(--accent); }
.agenda-country { display: inline-flex; align-items: center; gap: 12px; padding: 10px 0 10px 14px; min-height: 44px; background: transparent; border: 0; color: var(--accent); text-align: left; }
.agenda-country > svg { width: 24px; height: 24px; stroke-width: 1; }
.agenda-country strong { display: block; max-width: 190px; font-size: 12px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.agenda-country-action { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.agenda-country:hover .agenda-country-action { color: var(--accent); }
.agenda-zone { margin: 16px 0 25px; font-size: 10px; color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.calendar-card { width: 100%; padding: 22px 20px 18px; border: 1px solid var(--control-border); border-radius: 18px; background: var(--background); }
.calendar-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; }
.calendar-heading h2 { margin: 0; font-size: 16px; font-weight: 400; letter-spacing: -.3px; text-transform: capitalize; }
.calendar-navigation { display: flex; align-items: center; gap: 1px; flex-shrink: 0; }
.calendar-navigation button { display: flex; align-items: center; justify-content: center; min-width: 34px; height: 40px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.calendar-navigation .calendar-today { font-size: 10px; color: var(--accent); }
.calendar-navigation button:hover:not(:disabled) { color: var(--accent); background: var(--selection); }
.calendar-navigation button:disabled { opacity: .3; cursor: default; }
.calendar-navigation svg { width: 14px; height: 14px; }
.calendar-weekdays, .calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.calendar-weekdays { margin-bottom: 9px; }
.calendar-weekdays span { font-size: 10px; line-height: 30px; color: var(--muted); }
.calendar-day { position: relative; width: 100%; min-height: 49px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3px 0; background: transparent; border: 0; border-radius: 10px; color: var(--ink); font-size: 12px; font-variant-numeric: tabular-nums; }
.calendar-day-number { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; }
.calendar-day:hover:not(:disabled) .calendar-day-number { background: var(--selection); }
.calendar-day.is-outside { color: var(--faint); }
.calendar-day.is-today .calendar-day-number { border-color: var(--accent); color: var(--accent); }
.calendar-day.is-selected, .calendar-day.is-selected.is-outside { opacity: 1; }
.calendar-day.is-selected .calendar-day-number, .calendar-day.is-selected:hover .calendar-day-number { background: #8554bf; color: #fff; border-color: #8554bf; }
[data-theme="light"] .calendar-day.is-selected .calendar-day-number { background: #8050b5; border-color: #8050b5; }
[data-theme="light"] .agenda-panel, [data-theme="light"] .agenda-editor, [data-theme="light"] .agenda-notice { --faint: var(--muted); }
.calendar-day:focus-visible { outline-offset: 0; }
.calendar-day:disabled { cursor: default; }
.calendar-day-dots { display: flex; align-items: center; justify-content: center; gap: 3px; min-height: 7px; margin-top: 1px; }
.agenda-dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.holiday-dot { background: #e6b779; }.event-dot { background: var(--accent); }.reminder-dot { background: #9dccbb; }
[data-theme="light"] .holiday-dot { background: #a56618; }[data-theme="light"] .reminder-dot { background: #387e65; }
.calendar-legend { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 16px; border-top: 1px solid var(--control-border); margin-top: 17px; padding-top: 15px; color: var(--muted); font-size: 9px; }
.calendar-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.holiday-support { margin-top: 16px; font-size: 10px; color: var(--muted); line-height: 1.7; }
.holiday-support p { margin: 0; }.holiday-support .holiday-scope { margin-top: 5px; color: var(--faint); font-size: 9px; }
.holiday-support a { display: inline-block; margin-top: 5px; color: var(--accent); text-decoration: none; font-size: 9px; }
.holiday-support a:hover { text-decoration: underline; }
.holiday-support button { min-height: 40px; margin-top: 3px; border: 0; padding: 8px 0; color: var(--accent); background: transparent; font-size: 10px; }
.agenda-day { padding-top: 4px; min-width: 0; }
.agenda-day-heading h2 { margin: 0; font-size: 27px; font-weight: 300; letter-spacing: -.7px; line-height: 1.4; }
.agenda-day-count { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.agenda-create { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 18px; }
.agenda-primary, .agenda-secondary { min-height: 44px; padding: 11px 18px; border: 1px solid var(--control-border); border-radius: 10px; font: inherit; font-size: 11px; }
.agenda-primary { background: var(--accent); color: var(--background); border-color: var(--accent); }
.agenda-primary:hover { filter: brightness(1.08); }.agenda-secondary { color: var(--muted); background: transparent; }
.agenda-secondary:hover { background: var(--selection); color: var(--ink); }
.agenda-item { position: relative; border-top: 1px solid var(--control-border); padding: 16px 0 12px 15px; }
.agenda-item::before { content: ""; position: absolute; top: 19px; left: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.holiday-item::before { background: #e6b779; }.reminder-item::before { background: #9dccbb; }
[data-theme="light"] .holiday-item::before { background: #a56618; }[data-theme="light"] .reminder-item::before { background: #387e65; }
.agenda-item-meta { margin: 0 0 8px; font-size: 9px; color: var(--muted); line-height: 1.6; }
.agenda-item-title { margin: 0; color: var(--ink); font-size: 14px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.agenda-item-notes { margin: 8px 0 0; font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); }
.agenda-item-alert { margin: 8px 0 0; color: var(--faint); font-size: 9px; line-height: 1.6; }
.agenda-item-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 5px; }
.agenda-item-actions button { min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.agenda-item-actions button:hover { color: var(--accent); }.agenda-item.is-completed { opacity: .6; }.agenda-item.is-completed h3 { text-decoration: line-through; }
.agenda-empty { padding: 25px 0 30px; border-top: 1px solid var(--control-border); color: var(--muted); }
.agenda-empty svg { width: 32px; height: 32px; stroke: var(--faint); stroke-width: 1; }
.agenda-empty p { margin: 15px 0 8px; font-size: 13px; font-weight: 300; }.agenda-empty span { font-size: 10px; line-height: 1.7; }
.agenda-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: 11px; line-height: 1.7; color: var(--accent); }
.agenda-feedback button { min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font-size: 11px; text-decoration: underline; }
.agenda-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; padding-top: 18px; margin-top: 24px; border-top: 1px solid var(--control-border); }
.agenda-bottom p { margin: 0; max-width: 470px; font-size: 9px; color: var(--faint); line-height: 1.7; }
.agenda-bottom button { min-height: 40px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); font-size: 10px; text-align: left; }
.agenda-bottom button:disabled { color: var(--faint); cursor: default; }
.agenda-editor { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 26px; color: var(--ink); background: var(--background); border: 1px solid var(--control-border); border-radius: 19px; box-shadow: 0 25px 90px #0005; overflow: auto; overscroll-behavior: contain; }
.agenda-editor::backdrop { background: #090613b8; }
.agenda-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.agenda-editor-heading h2 { margin: 0; font-size: 24px; font-weight: 300; letter-spacing: -.6px; }
.agenda-editor-zone { margin: 8px 0 24px; color: var(--muted); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.agenda-editor label { display: block; margin-top: 15px; font-size: 11px; color: var(--muted); line-height: 1.7; }
.agenda-editor input:not([type="checkbox"]), .agenda-editor select, .agenda-editor textarea { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 6px; padding: 12px; border: 1px solid var(--control-border); border-radius: 9px; background: var(--selection); color: var(--ink); font: inherit; font-size: 13px; }
.agenda-editor select option { background: var(--background); color: var(--ink); }.agenda-editor textarea { resize: vertical; min-height: 88px; }
.agenda-editor input::placeholder, .agenda-editor textarea::placeholder { color: var(--faint); opacity: 1; }
.agenda-editor input:focus-visible, .agenda-editor select:focus-visible, .agenda-editor textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.agenda-editor input:disabled, .agenda-editor select:disabled { opacity: .45; }
.agenda-form-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; }
.agenda-editor .agenda-check { display: flex; gap: 9px; align-items: center; min-height: 35px; margin-top: 8px; }
.agenda-check input { accent-color: #9465ce; width: 16px; height: 16px; margin: 0; }.agenda-optional { color: var(--faint); }
.agenda-form-error { margin: 18px 0 0; color: var(--accent); font-size: 11px; line-height: 1.6; }
.agenda-editor-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.agenda-notice { position: fixed; z-index: 150; right: 24px; bottom: 24px; width: min(420px, calc(100% - 48px)); display: flex; align-items: flex-start; gap: 18px; padding: 19px; border: 1px solid var(--accent); border-radius: 16px; background: var(--background); color: var(--ink); box-shadow: 0 16px 55px #0003; }
.agenda-notice > div { min-width: 0; flex: 1; }.agenda-notice > div > p:last-child { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }.agenda-notice .close-button { flex-shrink: 0; }
@media (max-width: 720px) {
  [data-tool="agenda"] .main { padding-top: 30px; }
  .agenda-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .agenda-calendar-column { width: 100%; max-width: 450px; justify-self: center; }
  .agenda-day { padding-top: 0; }.agenda-day-heading h2 { font-size: 25px; }
}
@media (max-width: 540px) {
  .mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(100%, 300px); gap: 3px; padding-bottom: 8px; }
  .mode-button { justify-content: center; }.mode-button svg { display: block; width: 15px; height: 15px; }
  [data-tool="agenda"] .main { padding-top: 25px; }
  .agenda-heading { gap: 15px; }.agenda-heading h1 { font-size: 27px; }
  .agenda-country { gap: 8px; padding-left: 0; }.agenda-country > svg { width: 20px; height: 20px; }
  .agenda-country strong { max-width: 130px; font-size: 11px; }.agenda-country-action { font-size: 9px; }
  .agenda-zone { margin: 13px 0 22px; font-size: 9px; }
  .calendar-card { padding: 16px 12px; border-radius: 15px; }.calendar-heading { margin-bottom: 12px; }
  .calendar-heading h2 { font-size: 14px; }.calendar-navigation button { min-width: 30px; padding: 6px; }
  .calendar-day-number { width: 30px; height: 30px; }.calendar-day { min-height: 47px; font-size: 11px; }
  .calendar-legend { gap: 13px; margin-top: 12px; }.agenda-bottom { margin-top: 20px; }
  .agenda-editor { padding: 20px; }.agenda-editor input:not([type="checkbox"]), .agenda-editor select, .agenda-editor textarea { font-size: 16px; padding: 10px; }
  .agenda-form-row { gap: 10px; }.agenda-editor-heading h2 { font-size: 22px; }
  .agenda-notice { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100% - 32px); padding: 16px; }
}
@media (max-width: 340px) {
  .calendar-heading { flex-wrap: wrap; }.calendar-navigation { margin-left: auto; }.agenda-heading { flex-wrap: wrap; }
  .agenda-form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* News shares the selected country and the site's quiet purple palette. */
[data-tool="news"] .main { align-items: flex-start; padding-top: 34px; padding-bottom: 40px; }
[data-tool="news"] .clock-scene { width: min(100%, 940px); }
.news-panel { width: 100%; }
[data-theme="light"] .news-panel { --faint: var(--muted); }
.news-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.news-heading h1 { margin: 0; font-size: clamp(27px, 4vw, 38px); font-weight: 300; letter-spacing: -1.2px; line-height: 1.3; }
.news-heading h1 span { color: var(--accent); }
.news-description { margin: 17px 0 27px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.news-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.news-topics button { min-height: 44px; padding: 10px 17px; border: 1px solid var(--control-border); border-radius: 9px; background: transparent; color: var(--muted); font-size: 11px; }
.news-topics button:hover, .news-topics button[aria-pressed="true"] { color: var(--accent); background: var(--selection); border-color: var(--accent); }
.news-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.news-search { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; border: 1px solid var(--control-border); border-radius: 10px; }
.news-search:focus-within { border-color: var(--accent); }.news-search svg { width: 17px; height: 17px; fill: none; stroke: var(--accent); stroke-width: 1.2; flex-shrink: 0; }
.news-search input { width: 100%; min-width: 0; padding: 13px 0; font: inherit; font-size: 11px; background: transparent; color: var(--ink); border: 0; outline: none; }.news-search input::placeholder { color: var(--faint); opacity: 1; }
.news-selects { display: flex; align-items: center; gap: 14px; }.news-selects label { display: flex; flex-direction: column; gap: 4px; color: var(--faint); font-size: 8px; letter-spacing: .3px; }
.news-selects select { min-height: 30px; max-width: 140px; padding: 3px 20px 3px 0; border: 0; font: inherit; font-size: 11px; letter-spacing: 0; color: var(--muted); background: transparent; }
.news-selects select option { background: var(--background); color: var(--ink); }.news-selects select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.news-refresh { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--accent); border: 1px solid var(--control-border); border-radius: 10px; flex-shrink: 0; }
.news-refresh:hover:not(:disabled) { background: var(--selection); }.news-refresh:disabled { opacity: .5; cursor: wait; }.news-refresh svg { width: 17px; height: 17px; }.news-refresh.is-loading svg { animation: news-refresh-spin 1.5s linear infinite; }
.news-feed-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin: 24px 0 15px; font-size: 9px; line-height: 1.7; color: var(--muted); }.news-feed-heading p { margin: 0; }#news-updated { color: var(--faint); }
.news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.news-card { min-width: 0; overflow: hidden; border: 1px solid var(--control-border); border-radius: 14px; background: var(--background); transition: border-color .2s; }
.news-card:hover { border-color: var(--accent); }.news-card-featured { grid-column: 1 / -1; border-color: var(--accent); }
.news-card-content { min-width: 0; padding: 23px; }
.news-cover { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--control-border); background: radial-gradient(ellipse at 25% 15%, var(--selection), transparent 70%), var(--background); }
.news-cover-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.news-cover-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 25px; color: var(--faint); font-size: 10px; letter-spacing: .5px; }
.news-cover[data-cover-state="waiting"] .news-cover-placeholder, .news-cover[data-cover-state="loading"] .news-cover-placeholder { background: var(--background); animation: news-pulse 1.6s ease-in-out infinite; }
.news-card-featured .news-article-link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.news-card-featured .news-cover { height: 100%; min-height: 310px; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--control-border); }
.news-card-featured .news-card-content { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.news-card-index { display: block; margin-bottom: 22px; font-size: 9px; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.news-card-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 7px 15px; margin-bottom: 11px; color: var(--muted); font-size: 9px; line-height: 1.6; }.news-source-name { font-weight: 500; }.news-card-meta time { color: var(--faint); white-space: nowrap; }
.news-article-link { display: block; height: 100%; text-decoration: none; color: var(--ink); border-radius: 13px; }.news-article-link:focus-visible { outline-offset: -4px; }.news-card-title { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.55; letter-spacing: -.35px; overflow-wrap: anywhere; }
.news-card-featured .news-card-title { max-width: 800px; font-size: clamp(22px, 3vw, 30px); font-weight: 300; line-height: 1.5; letter-spacing: -.7px; }.news-read { display: inline-block; margin-top: 21px; font-size: 10px; color: var(--accent); }
.news-message { margin: 12px 0 20px; padding: 18px 20px; border: 1px solid var(--control-border); border-radius: 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }.news-message p { margin: 0; }.news-message button { margin-top: 12px; }
.news-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px 25px; align-items: center; padding-top: 20px; margin-top: 26px; border-top: 1px solid var(--control-border); font-size: 9px; color: var(--muted); line-height: 1.8; }.news-bottom p { margin: 0; }.news-bottom p + p { margin-top: 4px; color: var(--faint); }.news-bottom a { min-height: 40px; display: inline-flex; align-items: center; color: var(--accent); text-decoration: none; font-size: 10px; }.news-bottom a:hover { text-decoration: underline; }
.news-loading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.news-skeleton { padding: 28px; border: 1px solid var(--control-border); border-radius: 14px; animation: news-pulse 1.6s ease-in-out infinite; }.news-skeleton i { display: block; height: 10px; margin-bottom: 20px; width: 40%; border-radius: 4px; background: var(--selection); }.news-skeleton i:nth-child(2) { width: 95%; height: 18px; }.news-skeleton i:nth-child(3) { width: 70%; height: 18px; margin-bottom: 10px; }
@keyframes news-refresh-spin { to { transform: rotate(360deg); } }@keyframes news-pulse { 50% { opacity: .45; } }
@media (max-width: 800px) {
  .news-controls { grid-template-columns: minmax(0, 1fr); gap: 14px; }.news-selects { justify-content: space-between; }.news-selects label { flex: 1; }
}
@media (max-width: 540px) {
  .mode-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }.mode-button { grid-column: auto; padding: 8px 5px; }.mode-button svg { display: none; }
  [data-tool="news"] .main { padding-top: 25px; }.news-heading { gap: 15px; }.news-heading h1 { font-size: 27px; letter-spacing: -.8px; }
  .news-description { margin: 15px 0 21px; font-size: 11px; }.news-topics { gap: 6px; margin-bottom: 15px; }.news-topics button { flex: 1; padding: 9px 9px; font-size: 10px; }
  .news-search input { font-size: 16px; }.news-selects { gap: 10px; }.news-selects select { width: 100%; max-width: 140px; padding-right: 0; font-size: 12px; min-height: 36px; }.news-selects label { font-size: 9px; }
  .news-list, .news-loading { grid-template-columns: minmax(0, 1fr); gap: 13px; }.news-card, .news-card-featured { border-radius: 13px; }.news-card-content, .news-card-featured .news-card-content { padding: 21px; }
  .news-card-featured .news-article-link { display: block; }.news-card-featured .news-cover { height: auto; min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--control-border); }
  .news-card-title { font-size: 17px; }.news-card-featured .news-card-title { font-size: 22px; }.news-card-index { margin-bottom: 17px; }.news-card-meta { font-size: 9px; }
  .news-feed-heading { margin-top: 20px; font-size: 9px; }.news-bottom { margin-top: 21px; }.news-message { padding: 16px; }
}
@media (max-width: 340px) {
  .news-heading { flex-wrap: wrap; }.news-topics button { padding: 8px 6px; font-size: 9px; }.news-card-content, .news-card-featured .news-card-content { padding: 17px; }
}

/* The market tape shares the clock's glass finish with a more transparent fill. */
[data-tool="clock"] .main { padding-top: clamp(24px, 4vh, 44px); padding-bottom: clamp(28px, 4vh, 44px); }
[data-tool="clock"] .clock-scene { width: min(100%, 1120px); }
.clock-panel > .clock-pill { max-width: 744px; }
@media (min-width: 1600px) { .clock-panel > .clock-pill { max-width: 800px; } }
@media (max-height: 540px) and (orientation: landscape) { .clock-panel > .clock-pill { max-width: 570px; } }
.market-panel {
  --market-glass-top: rgba(225, 207, 255, .07);
  --market-glass-bottom: rgba(143, 99, 201, .025);
  --market-glass-edge: rgba(222, 197, 255, .18);
  --market-glass-shadow: 0 12px 44px -24px #0000003d, 0 0 40px -28px #b97aff1f, inset 0 1px 2px #ffffff1f, inset 0 -1px 3px #dbc7ff08;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: inline-size;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid var(--market-glass-edge);
  border-radius: 28px;
  padding: 12px 16px 11px;
  background: radial-gradient(ellipse at 25% 0, var(--market-glass-top), transparent 75%), linear-gradient(168deg, var(--market-glass-top), var(--market-glass-bottom) 60%, var(--market-glass-top));
  box-shadow: var(--market-glass-shadow);
  text-align: left;
  transition: background .65s, box-shadow .65s, border-color .65s;
  --tv-widget-accent-color: var(--accent);
  --tv-widget-text-color: var(--muted);
  --tv-widget-background-color: transparent;
  --tv-widget-font-family: inherit;
  --tv-widget-price-text-color: var(--ink);
  --tv-widget-positive-color: #60bd99;
  --tv-widget-negative-color: #e187a3;
}
.market-panel > .glass-edge { z-index: 0; opacity: .55; }
.market-panel > .glass-reflection { z-index: 0; opacity: .45; }
.market-toolbar, #market-content { position: relative; z-index: 1; }
#market-content { width: 100%; min-width: 0; max-width: 100%; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.market-toolbar h2 { margin: 0; min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: .4px; color: var(--accent); }
.market-actions { display: flex; align-items: center; flex-shrink: 0; gap: 14px; }
.market-motion { min-height: 36px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.market-motion:hover { color: var(--accent); }.market-motion:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.market-toggle { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 36px; padding: 6px 0 6px 10px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 10px; cursor: pointer; }
.market-toggle svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.3; }.market-toggle:hover { color: var(--accent); }.market-toggle:focus-visible,.market-loading button:focus-visible,.market-bottom a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.market-exchange { margin: 1px 0 11px; color: var(--muted); font-size: 9px; line-height: 1.7; }
.market-widget { width: 100%; min-width: 0; max-width: 100%; contain: inline-size; overflow: hidden; direction: ltr; }.market-widget tv-ticker-tape { display: block; width: 100%; height: 86px; direction: ltr; }
.market-conveyor-track { display: flex; animation: market-conveyor var(--market-duration, 40s) linear infinite !important; will-change: transform; }
/* Compact quotes occupy 48px, plus 4px padding per side and two 1px borders. */
.market-conveyor-group { flex: 0 0 auto; height: 58px; overflow: clip; }
.market-panel[data-paused="true"] .market-conveyor-track { animation-play-state: paused !important; }
@keyframes market-conveyor { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.market-loading { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); }.market-loading p { margin: 9px 0 14px; line-height: 1.8; }.market-loading button { border: 0; padding: 8px 0; background: transparent; color: var(--accent); font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.market-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }.market-bottom p,.market-bottom a { margin: 0; color: var(--faint); font-size: 8px; line-height: 1.9; }.market-bottom a { flex-shrink: 0; text-decoration: none; }.market-bottom a:hover { color: var(--accent); }
.market-coverage { margin: 5px 0 9px; color: var(--muted); font-size: 10px; line-height: 1.7; }.market-usd-base { margin: 3px 0 10px; color: var(--ink); font-size: 11px; }
.market-panel[data-visible="false"] { border: 0; border-radius: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; overflow: visible; padding: 0; margin-top: 23px; }.market-panel[data-visible="false"] > .glass-edge, .market-panel[data-visible="false"] > .glass-reflection { display: none; }.market-panel[data-visible="false"] .market-toolbar { justify-content: center; }.market-panel[data-visible="false"] .market-toggle { padding-inline: 12px; }
.market-fx-card { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; padding: 12px 0 16px; }.market-fx-card > span:first-child { color: var(--accent); font-size: 11px; }.market-fx-card strong { color: var(--ink); font-size: 21px; font-weight: 400; font-variant-numeric: tabular-nums; }.market-fx-time { width: 100%; font-size: 9px; color: var(--muted); }
[data-theme="light"] .market-panel { --market-glass-top: rgba(255, 255, 255, .28); --market-glass-bottom: rgba(240, 226, 255, .1); --market-glass-edge: rgba(255, 255, 255, .62); --market-glass-shadow: 0 12px 38px -24px #7655a024, 0 3px 16px -8px #a086bf14, inset 0 1px 2px #ffffff6b, inset 0 -1px 3px #b794d40d; --tv-widget-positive-color: #237a5c; --tv-widget-negative-color: #ad4265; }.market-panel { --tv-widget-popup-background-color: var(--background); --tv-widget-tooltip-background-color: var(--background); --tv-widget-tooltip-text-color: var(--ink); }
@media (max-width: 540px) { .market-panel { margin-top: 28px; padding: 9px 12px 10px; border-radius: 24px; }.market-toolbar { gap: 8px; }.market-toolbar h2 { font-size: 10px; }.market-toggle { min-height: 40px; font-size: 9px; }.market-exchange { font-size: 8px; }.market-bottom { flex-wrap: wrap; gap: 4px; }.market-bottom p,.market-bottom a { font-size: 8px; } }
@media (max-width: 380px) { .market-toolbar { flex-wrap: wrap; gap: 3px; }.market-toolbar h2 { width: 100%; }.market-actions { width: 100%; justify-content: space-between; } }
