@font-face {
  font-family: ScreenSaverClock;
  src: local("Helvetica Neue UltraLight"), local("HelveticaNeue-UltraLight");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #000; color: #f5f5f7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; display: grid; place-items: center; }
.shell { width: min(100%, 440px); padding: 48px 24px; }
header { text-align: center; margin-bottom: 38px; }
.app-icon { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 18px; background: linear-gradient(155deg, #2898ff, #0063df); box-shadow: inset 0 1px 0 #ffffff35; }
.app-icon svg { width: 36px; height: 36px; stroke-width: 1.4; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { margin: 0; font-size: 32px; font-weight: 650; letter-spacing: -.055em; line-height: 1.2; }
.subtitle { margin: 10px 0 0; font-size: 15px; color: #98989f; }
.settings-group { background: #1c1c1e; border-radius: 16px; overflow: hidden; }
.size-section { padding: 22px 20px 20px; }
.control-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
label { font-size: 16px; font-weight: 400; }
output { font-size: 16px; color: #98989f; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: #0a84ff; margin: 20px 0 10px; height: 20px; cursor: pointer; }
.tick-labels { display: flex; justify-content: space-between; color: #98989f; font-size: 11px; }
.format-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-top: 1px solid #38383a; }
.format-row p { color: #98989f; font-size: 11px; margin: 6px 0 0; }
.switch { display: block; position: relative; width: 51px; height: 31px; flex: 0 0 51px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { display: block; width: 51px; height: 31px; border-radius: 20px; background: #39393d; }
.switch span::after { content: ""; display: block; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px #0003; }
.switch input:checked + span { background: #30d158; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid #64b5ff; outline-offset: 4px; }
.help { color: #8e8e93; font-size: 11px; line-height: 1.65; margin: 11px 14px 28px; }
button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: #0a84ff; color: #fff; font: 600 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
button:hover { background: #2994ff; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, input[type="range"]:focus-visible { outline: 2px solid #64b5ff; outline-offset: 5px; }
.exit-note { text-align: center; color: #8e8e93; font-size: 11px; margin: 16px 0 0; }
kbd { font: inherit; }
.saved-note { text-align: center; color: #636366; font-size: 10px; line-height: 1.6; margin: 10px 0 0; }
.error { color: #ffb5ac; text-align: center; font-size: 12px; line-height: 1.6; margin: 20px; }
[hidden] { display: none !important; }
#stage { position: fixed; inset: 0; z-index: 10; width: 100vw; height: 100vh; overflow: hidden; isolation: isolate; background: #000; cursor: none; }
#stage:fullscreen { width: 100vw; height: 100vh; }
#stage:-webkit-full-screen { width: 100vw; height: 100vh; }
#stage::backdrop { background: #000; }
#stream { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
#clock { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-height: 650px) { .shell { padding-top: 24px; padding-bottom: 24px; } header { margin-bottom: 24px; } .app-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; } }
