:root {
  color-scheme: dark;
  --red: #ff3434;
  --muted: #817f83;
  --panel: rgba(16, 16, 19, .975);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: #000; }
body { min-height: 100vh; margin: 0; color: #eee; background: #000; }
button, select, textarea, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #f05b5b; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.ambient { position: fixed; inset: 0; z-index: 0; background: #000; pointer-events: none; }
.animated-bg { animation: ambient-motion 38s ease-in-out infinite alternate; }
@keyframes ambient-motion { 0% {background-position: 0% 28%;} 50% {background-position: 100% 73%;} 100% {background-position: 15% 50%;} }
.page { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 25px clamp(20px,3.25vw,64px) 30px; }
.site-header { display: flex; align-items: flex-start; gap: 30px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.header-title { display: flex; gap: 11px; align-items: center; flex: 0 0 auto; padding-top: 4px; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,72,72,.32); background: rgba(255,65,65,.095); color: #ff4545; border-radius: 9px; font-size: 21px; font-weight: 800; }
.header-title > div { display: flex; flex-direction: column; gap: 4px; }
.eyebrow { color: #858185; font-size: 9px; letter-spacing: .22em; font-weight: 700; }
.brand-name { font-size: 11px; letter-spacing: .085em; font-weight: 750; color: #f3e9e9; }





/* Live service status: soft green = reachable, muted red = unreachable.
   Preserve original full-color service logos in both states. */














.clock-area { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-height: 400px; padding: 4vh 28px 6vh; }
.centerpiece { display: flex; align-items: center; flex-direction: column; width: 100%; max-width: 1260px; }
.sync-line { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #897e80; font-weight: 680; letter-spacing: .2em; margin-bottom: clamp(24px, 4vh, 52px); }
.status-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #b67c49; box-shadow: 0 0 9px #ffac6a80; }
.status-dot[data-status=ok] { background: #5fad82; box-shadow: 0 0 11px #71d39361; }
.status-dot[data-status=warn] { background: #dc9560; box-shadow: 0 0 9px #e89e655c; }
.text-button { appearance: none; background: transparent; border: 0; color: #858085; padding: 1px 4px; font-size: 12px; }
.text-button:hover { color: #eee; }
.clock-wrap { width: min(100%, 1130px); filter: drop-shadow(0 0 13px rgba(250,25,30,.17)); }
.digital-clock { display: block; width: 100%; height: auto; overflow: visible; }
.segment { fill: var(--clock-off, #ff3434); opacity: .055; transition: opacity .12s, fill .15s; }
.segment.on { fill: var(--clock-ink, #ff3434); opacity: 1; }
.colon-dot { fill: var(--clock-ink, #ff3434); }
.is-glow { animation: clock-pulse 6.5s ease-in-out infinite alternate; }
.is-glow .segment.on { filter: drop-shadow(0 0 4px var(--clock-off, #f44)); }
@keyframes clock-pulse { 0% { filter: drop-shadow(0 0 3px var(--clock-glow, #ff4545)) brightness(.85) } 100% { filter: drop-shadow(0 0 20px var(--clock-glow, #ff4545)) brightness(1.12) } }
.full-date { font-size: clamp(16px, 1.7vw, 25px); letter-spacing: .19em; font-weight: 550; margin-top: clamp(17px,2.5vh,31px); text-align: center; line-height: 1.6; background-clip: text; -webkit-background-clip: text; }
.full-date.is-glow { animation: date-pulse 7s ease-in-out infinite alternate; }
@keyframes date-pulse { from { filter: drop-shadow(0 0 1px transparent) brightness(.87); } to { filter: drop-shadow(0 0 10px var(--date-glow, #d45151)) brightness(1.08); } }
.timezone-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 9px; margin-top: clamp(28px,4vh,50px); color: #918a8d; font-size: 11px; }
.tz-bullet { height: 5px; width: 5px; background: #994044; border-radius: 50%; margin-right: 1px; }
.tz-label { font-size: 9px; letter-spacing: .16em; font-weight: 800; }
.tz-abbr { border-left: 1px solid #353033; padding-left: 10px; color: #b6a4a8; font-weight: 650; }
.tz-select { width: max-content; max-width: min(240px,55vw); min-width: 165px; font-size: 11px; padding: 9px 30px 9px 12px; color: #d4cdd0; background: #141215; border: 1px solid #343035; border-radius: 7px; outline: none; cursor: pointer; }
.tz-select:hover { border-color: #6d3d42; }
.offset { color: #786f74; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.site-footer { border-top: 1px solid rgba(255,255,255,.09); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; }





.footer-tag { color: #5e5659; font-size: 9px; font-weight: 650; letter-spacing: .15em; white-space: nowrap; }
.footer-dot { color: #963f44; margin-inline: 4px; }
.action-rail { position: fixed; z-index: 5; top: 49%; right: clamp(11px,1.4vw,26px); transform: translateY(-50%); }
.floating-button { border: 1px solid #494045; background: rgba(28,23,26,.94); color: #ccc3c6; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; box-shadow: 0 10px 38px #0008; transition: border-color .15s, background .15s; }
.floating-button:hover, .floating-button[aria-expanded=true] { background: #2c1c21; border-color: #af515a; }
.settings-panel { position: fixed; z-index: 11; right: clamp(15px,3vw,48px); top: 50%; transform: translate(16px,-50%); opacity: 0; pointer-events: none; width: min(375px,calc(100vw - 30px)); max-height: calc(100dvh - 34px); overflow-y: auto; border: 1px solid #494045; border-radius: 14px; padding: 23px 23px 18px; background: var(--panel); box-shadow: 0 25px 95px #000c; transition: opacity .2s, transform .2s; }
.settings-panel[aria-hidden=false] { opacity: 1; pointer-events: auto; transform: translate(0,-50%); }
.panel-heading, .feedback-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-heading h2, .feedback-top h2 { font-size: 22px; letter-spacing: -.04em; margin: 5px 0 0; font-weight: 690; }
.icon-close { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #3b3539; border-radius: 7px; background: #171518; color: #9b9296; font-size: 22px; line-height: 1; }
.icon-close:hover { color: white; border-color: #99606a; }
.settings-intro { font-size: 12px; line-height: 1.55; color: #9a9096; margin: 12px 0 23px; }
.theme-section { border-top: 1px solid #302b2e; padding: 18px 0 21px; }
.section-label { display: flex; align-items: center; gap: 11px; }
.section-number { display: grid; place-items: center; font-size: 10px; color: #ff696c; border: 1px solid #5c3239; width: 28px; height: 28px; border-radius: 6px; background: #281b20; }
.section-label h3 { font-size: 13px; margin: 0; font-weight: 730; }
.section-label p { font-size: 10px; margin: 4px 0 0; color: #82797c; }
.mode-row { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 5px; margin-top: 15px; }
.mode-choice { border: 1px solid #343034; background: #1c1a1c; color: #999195; font-size: 10px; min-height: 31px; padding: 5px; border-radius: 6px; }
.mode-choice.selected { background: #3d2027; border-color: #a04950; color: #ffd4d4; }
.mode-choice:hover { border-color: #85636a; }
.picker-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.color-control { display: flex; align-items: center; gap: 9px; border: 1px solid #343034; background: #1a191b; border-radius: 7px; padding: 8px; min-width: 0; cursor: pointer; }
.color-control input[type=color] { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 31px; height: 31px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.color-control input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input[type=color]::-webkit-color-swatch { border: 1px solid #ffffff26; border-radius: 5px; }
.color-control input[type=color]::-moz-color-swatch { border: 1px solid #ffffff26; border-radius: 5px; }
.color-copy { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.color-name { font-size: 9px; color: #8e8588; white-space: nowrap; }
.hex-code { font-size: 10px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #f2dcde; white-space: nowrap; }
.single-color .secondary-picker { opacity: .36; }
.panel-actions { border-top: 1px solid #302b2e; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.action-secondary { color: #d9afb1; border: 1px solid #66434a; border-radius: 6px; background: #28191f; padding: 8px 10px; font-size: 10px; }
.action-secondary:hover { background: #4a2730; }
.panel-actions span { font-size: 10px; color: #747075; }
.feedback-trigger { position: fixed; z-index: 5; right: clamp(16px,3.25vw,64px); bottom: 25px; display: flex; gap: 8px; align-items: center; color: #a78c93; background: #151114ed; border: 1px solid #423438; padding: 10px 14px; border-radius: 7px; box-shadow: 0 10px 45px #0005; font-size: 11px; font-weight: 640; }
.feedback-trigger:hover { color: #fff; border-color: #954e58; }
.feedback-panel { position: fixed; z-index: 12; right: clamp(16px,3.25vw,64px); bottom: 70px; transform: translateY(10px); pointer-events: none; opacity: 0; width: min(390px, calc(100vw - 32px)); padding: 22px; background: var(--panel); border: 1px solid #4c3b41; border-radius: 13px; box-shadow: 0 25px 100px #000e; transition: opacity .18s, transform .18s; }
.feedback-panel[aria-hidden=false] { pointer-events: auto; opacity: 1; transform: translateY(0); }
.feedback-panel form { margin-top: 21px; }
.feedback-panel label { display: block; margin: 0 0 7px; color: #d9d3d5; font-size: 11px; font-weight: 640; }
.feedback-panel label span { color: #7f777c; font-weight: 450; }
.feedback-panel .required { color: #ff777e; }
.feedback-panel textarea, .feedback-panel input { display: block; width: 100%; color: #eee; background: #181518; border: 1px solid #44383e; border-radius: 7px; outline: none; padding: 11px; font-size: 12px; resize: vertical; }
.feedback-panel textarea:focus, .feedback-panel input:focus { border-color: #b55761; }
.feedback-panel textarea::placeholder, .feedback-panel input::placeholder { color: #72686d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.feedback-privacy { font-size: 10px; line-height: 1.5; color: #998f93; margin: 14px 0 16px; }
.submit-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.form-notice { font-size: 10px; line-height: 1.4; color: #d8acb1; max-width: 173px; }
#feedbackSubmit { color: #fff; background: #a92e3b; border: 1px solid #c2404d; border-radius: 7px; font-size: 11px; font-weight: 700; padding: 10px 12px; margin-left: auto; white-space: nowrap; }
#feedbackSubmit:hover { background: #c03c49; }
#feedbackSubmit span { padding-left: 6px; }
.honeypot { position: absolute; left: -99999px; width: 1px; height: 1px; overflow: hidden; }
.toast { white-space: pre-line; position: fixed; z-index: 20; left: 50%; bottom: 85px; max-width: min(400px,calc(100vw - 32px)); font-size: 11px; line-height: 1.6; color: #dfd6d8; border: 1px solid #64434a; background: #1d171bfa; border-radius: 9px; padding: 12px 17px; box-shadow: 0 15px 75px #000b; opacity: 0; pointer-events: none; transform: translate(-50%,8px); transition: opacity .2s,transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }
@media (max-width: 1050px) { .site-header { flex-direction: column; gap: 16px; }  .clock-area { min-height: 370px; padding-inline: 20px; } .footer-tag { display: none; } }
@media (max-width: 700px) {
  .page { padding: 17px 16px 80px; }
  .site-header { gap: 13px; }
  
  
  .clock-area { padding: 30px 0 45px; min-height: 380px; }
  .sync-line { font-size: 8px; margin-bottom: 27px; }
  .full-date { letter-spacing: .095em; font-size: clamp(13px, 3.2vw, 20px); margin-top: 13px; }
  .timezone-bar { margin-top: 27px; gap: 7px; }
  .tz-select { min-width: 140px; max-width: 48vw; }
  .site-footer { align-items: flex-start; }
  
  
  
  .action-rail { top: auto; bottom: 74px; right: 17px; transform: none; }
  .floating-button { width: 41px; height: 41px; }
  .settings-panel { top: auto; bottom: 15px; right: 10px; max-height: min(780px,calc(100dvh - 28px)); transform: translateY(16px); }
  .settings-panel[aria-hidden=false] { transform: translateY(0); }
  .feedback-trigger { bottom: 18px; right: 16px; }
  .feedback-panel { bottom: 66px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .animated-bg, .is-glow, .full-date.is-glow { animation: none !important; } *, *::before, *::after { transition-duration: .01ms !important; } }

































.page { min-height: 100dvh; }
.site-header { position: relative; z-index: 2; }
.clock-area {
  position: fixed; inset: 0; width: 100%; min-height: 0; height: 100dvh;
  z-index: 1; display: grid; place-items: center;
  padding: 100px 30px 155px; pointer-events: none;
}
.centerpiece { width: 100%; max-width: none; pointer-events: none; }
.centerpiece button, .centerpiece select, .centerpiece input { pointer-events: auto; }
.sync-line { margin: 0 0 12px; opacity: .7; font-size: 9px; letter-spacing: .13em; }
.mode-switch { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 14px; background: #151116b5; border: 1px solid #3a2c32; border-radius: 8px; opacity: .62; transition: opacity .2s; }
.mode-switch:hover, .mode-switch:focus-within { opacity: 1; }
.mode-tab { border: 0; background: transparent; color: #9d9196; border-radius: 5px; font-size: 10px; letter-spacing: .055em; padding: 6px 15px; }
.mode-tab.selected { background: #472027; color: #f2c4c6; }
.clock-page { width: 100%; display: flex; flex-direction: column; align-items: center; }
.clock-page[hidden], .function-page[hidden], .active-functions[hidden] { display: none !important; }
.clock-scalable { width: min(calc(100vw - 108px), var(--display-width, 1000px)); max-width: 100%; display: flex; flex-direction: column; align-items: stretch; }
.clock-wrap { width: 100%; filter: drop-shadow(0 0 9px rgba(250,25,30,.13)); }
.digital-clock { display: block; width: 100%; height: auto; }
.full-date { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; text-align: initial; white-space: nowrap; margin-top: 14px; font-size: var(--date-font, 19px); line-height: 1.25; letter-spacing: .10em; }
.full-date > span:last-child { text-align: right; }
.timezone-bar { margin-top: 18px; opacity: .44; transition: opacity .22s; }
.timezone-bar:hover, .timezone-bar:focus-within { opacity: 1; }
.tz-select { border-color: transparent; background: transparent; color: inherit; padding: 7px 20px 7px 7px; transition: background .2s, border-color .2s; }
.tz-select:hover, .tz-select:focus-visible { background: #211a1ff5; border-color: #47333c; color: #ddd3d6; }
.tz-select option, .tz-select optgroup { background: #171317; color: #ddd; }
.active-functions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0 0 12px; }
.active-function { font-size: 11px; color: #eba4a8; border: 1px solid #713a42; border-radius: 20px; background: rgba(85,27,34,.45); padding: 6px 13px; font-variant-numeric: tabular-nums; }
.active-function:hover { background: #652e37; }
.function-page { width: min(calc(100vw - 90px), 840px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 7px auto 10px; }
.mini-now { color: var(--clock-ink, #ff3434); font-size: clamp(18px,2.5vw,30px); font-weight: 550; font-family: ui-monospace,Consolas,monospace; font-variant-numeric: tabular-nums; letter-spacing: .06em; opacity: .72; }
.function-label { font-size: 10px; letter-spacing: .18em; color: #9e858b; margin-top: 6px; }
.function-time { color: var(--clock-off,#ff3434); font-family: ui-monospace,Consolas,monospace; font-variant-numeric: tabular-nums; font-size: clamp(58px, 12vw, 145px); font-weight: 600; line-height: 1.17; letter-spacing: -.04em; }
.function-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.function-controls label { color: #a48d93; }
.function-controls input:not([type=checkbox]) { width: 100px; height: 38px; padding: 6px 9px; background: #1e181c; border: 1px solid #5c3741; color: #efdce0; border-radius: 6px; }
.function-controls input[type=time] { width: 125px; color-scheme: dark; }
.function-controls button { border: 1px solid #6c3b43; color: #f3c3c5; background: #3b2027; border-radius: 6px; padding: 10px 13px; }
.function-controls button:hover { background: #69343c; }
.repeat-label { display: inline-flex; align-items: center; gap: 4px; }
.repeat-label input { accent-color: #d6515f; }
.function-hint { color: #77666c; font-size: 11px; min-height: 16px; }
.site-footer { position: relative; z-index: 2; margin-top: auto; }
.footer-tag { display: block; flex: 1; text-align: right; max-width: min(60%, 780px); color: #79686d; font-size: 9px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-rail { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ghost-button { opacity: .34; transition: opacity .18s, border-color .15s, background .15s; }
.ghost-button:hover, .ghost-button:focus-visible { opacity: 1; }
.feedback-trigger { bottom: 72px; }
.feedback-panel { bottom: 118px; }























.gradient-angle-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 13px; color: #998c92; font-size: 11px; }
.gradient-angle-row[hidden] { display: none; }
.gradient-angle-row select { border: 1px solid #484045; border-radius: 6px; background: #1f1b20; color: #e1d5d8; font-size: 11px; padding: 7px; min-width: 154px; }
.scale-row { display: flex; align-items: center; gap: 15px; margin-top: 18px; }
.scale-row input { flex: 1; min-width: 0; accent-color: #df646c; }
.scale-row output { min-width: 46px; text-align: right; color: #e8a1aa; font-variant-numeric: tabular-nums; font-size: 12px; }
@media (max-width: 1100px) {
  
  .feedback-trigger { right: 14px; }
}
@media (max-width: 700px) {
  .clock-area { height: 100dvh; min-height: 0; padding: 115px 12px 215px; }
  .clock-scalable { width: min(calc(100vw - 24px),var(--display-width,1000px)); }
  .full-date { font-size: clamp(9px, 2.6vw, 15px) !important; gap: 8px; margin-top: 7px; letter-spacing: .035em; }
  .sync-line { font-size: 7px; }
  .mode-switch { margin-bottom: 11px; }
  .mode-tab { padding: 6px 10px; }
  .timezone-bar { margin-top: 12px; font-size: 9px; }
  .tz-select { font-size: 10px; min-width: 125px; }
  
  
  
  
  
  
  .feedback-trigger { bottom: 14px; }
  .feedback-panel { bottom: 62px; }
  .site-footer { padding-top: 10px; }
  .footer-tag { display: block; font-size: 8px; max-width: 45%; }
  .footer-tag { overflow-wrap: anywhere; }
  .action-rail { right: 8px; bottom: 165px; }
}
@media (max-height: 680px) and (min-width: 701px) {
  .clock-area { padding-top: 80px; padding-bottom: 185px; }
  .mode-switch { margin-bottom: 6px; }
  .sync-line { margin-bottom: 5px; }
  .full-date { margin-top: 6px; }
  .timezone-bar { margin-top: 7px; }
  .clock-scalable { width: min(calc(100vw - 170px), var(--display-width, 1000px), 830px); }
}

/* Final refinements: align the date with the visible segment extremes. */
.full-date { padding-inline: 7.3%; }
.mini-digital { display: block; width: min(245px, 70vw); height: auto; overflow: visible; margin: 0 auto; opacity: .78; }
.mini-digital .segment.on, .mini-digital .colon-dot { fill: var(--clock-ink, #ff3434); }
@media (max-width: 700px) {
  .clock-area { padding: 70px 12px 235px; }
  .full-date { padding-inline: 7.3%; }
  .footer-tag { white-space: normal; line-height: 1.2; }
}

/* On narrow screens stack content instead of overlapping the fixed footer. */

@media (max-width: 700px) {
  .page { padding-bottom: 82px; }
  .clock-area { position: relative; inset: auto; height: 335px; min-height: 335px; width: 100%; padding: 12px 0; flex: 0 0 auto; }
  .clock-scalable { width: min(calc(100vw - 32px), var(--display-width,1000px)); }
  
  .action-rail { top: 155px; bottom: auto; right: 9px; transform: none; }
  .site-footer { flex-direction: column; align-items: stretch; gap: 7px; padding-top: 11px; }
  
  .footer-tag { display: block; max-width: 100%; width: 100%; text-align: left; font-size: 8px; overflow-wrap: normal; white-space: normal; line-height: 1.3; }
  .feedback-trigger { bottom: 14px; }
  .feedback-panel { bottom: 64px; }
}
@media (max-width: 700px) {
  /* Leave a protected corner for the floating feedback action. */
  .site-footer { padding-right: 116px; }
}


.sync-line { display:none !important; }
.compact-clocks {
  display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr);
  gap:clamp(9px,2vw,35px); align-items:center; justify-items:center;
  width:min(100%,950px); min-height:95px; margin:0 auto 8px;
}
.compact-slot { width:100%; max-width:230px; padding:8px 10px; background:transparent; border:0; color:#dba0a5; text-align:center; min-width:0; }
button.compact-slot { cursor:pointer; opacity:.82; border-radius:8px; }
button.compact-slot:hover, button.compact-slot:focus-visible { opacity:1; background:#22151a; }
.compact-slot[hidden] { display:block !important; visibility:hidden; }
.compact-title { display:block; font-size:9px; font-weight:650; letter-spacing:.15em; color:#956e73; margin-bottom:5px; }
.compact-segments { display:block; width:100%; max-height:52px; height:auto; overflow:visible; }
.compact-center .compact-segments { max-width:210px; margin:auto; }
.segment-display { fill:var(--clock-ink,#ff3434); }
.segment-display .segment { fill:var(--clock-off,#ff3434); opacity:.055; transition:opacity .12s; }
.segment-display .segment.on { fill:var(--clock-ink,#ff3434); opacity:1; }
.segment-display .colon-dot { fill:var(--clock-ink,#ff3434); }
.function-page { width:100%; max-width:100%; gap:12px; margin-top:0; }
.function-scalable { width:min(calc(100vw - 110px),var(--display-width,1000px)); margin-inline:auto; }
.function-segments { width:100%; height:auto; display:block; overflow:visible; filter:drop-shadow(0 0 9px rgba(250,25,30,.13)); }
#alarmPage .function-scalable { width:min(calc(100vw - 110px),calc(var(--display-width,1000px) * .65)); }
.function-label { margin-top:4px; }
.full-date { padding-inline:0 !important; letter-spacing:.06em; }
.full-date > span { flex:0 0 auto; }
#syncFooterWrap { display:flex; flex:1; justify-content:flex-end; align-items:center; gap:9px; max-width:min(60%,820px); min-width:0; }
#syncFooterWrap .status-dot { flex:0 0 7px; }
#syncFooterWrap #syncFooter { flex:0 1 auto; max-width:100%; overflow:hidden; text-overflow:ellipsis; color:#8b777b; }
#syncFooterWrap .status-dot[data-status=warn] { background:#e8b34d; box-shadow:0 0 7px #c48b31a0; }



















.gradient-angle-row { align-items:center; min-height:98px; }
.gradient-compass { position:relative; flex:0 0 95px; width:95px; height:95px; border:1px solid #554148; border-radius:50%; background:radial-gradient(circle,#2a1c24 0,#161216 75%); }
.compass-pointer { position:absolute; left:50%; top:50%; width:24px; height:30px; margin:0; text-align:center; font-weight:800; font-size:25px; line-height:30px; transform-origin:50% 50%; color:#ef8891; pointer-events:none; transition:transform .15s ease; }
.compass-point { position:absolute; transform:translate(-50%,-50%); display:grid; place-items:center; padding:0; width:14px; height:14px; border:1px solid #66525a; background:#291e24; border-radius:50%; color:transparent; cursor:pointer; }
.compass-point:hover, .compass-point:focus-visible { border-color:#e4949c; background:#b06d77; }
.compass-point.selected { background:#e47b85; border-color:#eaa6af; box-shadow:0 0 5px #e47b8580; }
.visual-alert[hidden] { display:none !important; }
.visual-alert { position:fixed; inset:0; z-index:100; display:grid; place-items:center; background:rgba(100,6,15,.50); backdrop-filter:blur(3px); cursor:pointer; animation:alert-flash 1s ease-in-out infinite alternate; }
.visual-alert-content { padding:35px 45px; border:2px solid #ff929a; background:rgba(15,3,8,.91); border-radius:16px; text-align:center; color:#ffd1d5; pointer-events:none; box-shadow:0 0 75px #e33b4e80; }
.visual-alert-bell { font-size:55px; font-weight:900; color:#ff7884; line-height:1; }
.visual-alert-content h2 { font-size:clamp(32px,6vw,70px); letter-spacing:.07em; margin:15px 0 5px; }
.visual-alert-content p { font-size:clamp(18px,2.5vw,27px); margin:5px 0 16px; }
.visual-alert-content span { font-size:12px; color:#a6878b; }
@keyframes alert-flash { from { background:rgba(70,4,12,.22); } to { background:rgba(167,14,29,.55); } }
@media (max-width:700px) {
  .compact-clocks { width:100%; min-height:53px; gap:3px; margin-bottom:6px; }
  .compact-slot { padding:3px; }
  .compact-title { font-size:7px; margin-bottom:2px; }
  .compact-segments { max-height:30px; }
  .function-scalable { width:min(calc(100vw - 26px),var(--display-width,1000px)); }
  #alarmPage .function-scalable { width:min(calc(100vw - 35px),calc(var(--display-width,1000px) * .75)); }
  .full-date { font-size:initial !important; }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  #syncFooterWrap { max-width:48%; }
  .visual-alert-content { padding:24px 14px; max-width:90vw; }
}
@media (prefers-reduced-motion:reduce) { .visual-alert { animation:none; } }


@media (min-width:701px) {
  .clock-area { transform:translateY(-70px); }
}
@media (max-width:700px) {
  
  
  
  .site-footer { margin-bottom:0; }
}
@media (max-width:700px) {
  .clock-area { transform:translateY(-15px); }
  
  
  
  
  
  .site-footer { transform:translateY(55px); }
}


/* Keep the three small panels proportional to the configured clock scale. */
.compact-clocks { width:min(100%,calc(950px * var(--display-scale,1))); }
.compact-slot { max-width:calc(230px * var(--display-scale,1)); }
.compact-center .compact-segments { max-width:calc(210px * var(--display-scale,1)); }

/* v10 - polish: fixed clock stage, reserved docks, stable values and soft transitions. */
.site-header { flex-direction: column; align-items: center; gap: 12px; }

.site-header .header-title { align-self: center; }
/* No mini current clock when the full clock is already displayed. Reserve its slot. */
.compact-slot { transition: opacity .32s ease, background-color .2s ease, transform .32s ease; }
.centerpiece[data-view="clock"] .compact-center { opacity:0; visibility:hidden; }
.centerpiece:not([data-view="clock"]) .compact-center { opacity:1; visibility:visible; }
.compact-slot[hidden] { display:block !important; visibility:visible; opacity:0; pointer-events:none; }
.compact-slot:not([hidden]):hover { transform:translateY(-1px); }
.centerpiece { --stage-width: min(calc(100vw - 108px), var(--display-width, 1000px)); }
.display-stage { position:relative; width:100%; height:calc(var(--stage-width) * 0.26259 + 52px); flex:0 0 auto; }
.display-stage > .clock-page, .display-stage > .function-page {
  position:absolute; inset:0; width:100%; margin:0; padding:0;
  display:flex !important; flex-direction:column; align-items:center; justify-content:flex-start;
  opacity:0; transform:translateY(10px); visibility:hidden; pointer-events:none;
  transition:opacity .34s ease, transform .34s ease, visibility 0s linear .34s;
}
.display-stage > .is-active { opacity:1; transform:translateY(0); visibility:visible; pointer-events:auto; transition:opacity .34s ease, transform .34s ease, visibility 0s; }
.display-stage .clock-scalable { width:var(--stage-width); margin:0 auto; }
.display-stage #alarmPage .clock-scalable { width:calc(var(--stage-width) * 0.6475); }
.display-stage .function-segments { width:100%; }
.full-date { transition:font-size .2s ease; }
.function-dock { position:relative; flex:0 0 auto; height:114px; width:100%; }
.function-dock-panel {
  position:absolute; inset:0; width:100%; display:flex; flex-direction:column; align-items:center;
  justify-content:flex-start; gap:8px; opacity:0; transform:translateY(9px); visibility:hidden;
  pointer-events:none; transition:opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.function-dock-panel.is-active { opacity:1; transform:translateY(0); visibility:visible; pointer-events:auto; transition:opacity .3s ease, transform .3s ease, visibility 0s; }
.function-dock-panel .function-label { margin-top:0; }
.function-dock-panel .function-controls { margin-top:0; }
.function-dock-panel .function-hint { margin:0; text-align:center; }
#timerHours { width:68px; }
#timerMinutes { width:77px; }
#timerDock .function-controls input { width:77px; }
#timerDock .function-controls #timerHours { width:68px; }
/* Rebuild clock position independent of which tab and dock controls are active. */
.clock-area { transform:translateY(-44px); }












/* Exact contents retained for status and charts; avoid motion-related layout jumps. */

.tz-select, .timezone-bar { transition:opacity .25s, background-color .25s, border-color .25s; }
@media (max-width:700px) {
  
  .centerpiece { --stage-width:min(calc(100vw - 24px),var(--display-width,1000px)); }
  .display-stage { height:calc(var(--stage-width) * 0.26259 + 29px); }
  .function-dock { height:110px; }
  .function-dock-panel .function-controls { gap:5px; font-size:10px; }
  .function-dock-panel .function-controls button { padding:7px; }
  .clock-area { transform:translateY(-4px); }
  
  
  
}
@media (prefers-reduced-motion:reduce) {
  .display-stage > .clock-page, .display-stage > .function-page, .function-dock-panel, .compact-slot { transition:none !important; }
}

/* v10 layout refinement: controls occupy the reserved lower part of the shared stage. */
.function-dock { position:absolute; bottom:0; left:0; right:0; width:100%; height:114px; }
.clock-area .centerpiece { max-width:none; }
.clock-area .timezone-bar { transform:translateY(-12px); }
@media (max-width:700px) {
 .function-dock { height:110px; }
 .clock-area .timezone-bar { transform:translateY(-8px); }
}
/* Mobile timer controls must begin below, not over, the digit canvas. */
@media (max-width:700px) {
 .display-stage { height:calc(var(--stage-width) * 0.26259 + 110px); }
 .clock-area { transform:translateY(17px); }
}

@media (max-width:700px) {
 .timezone-bar { flex-wrap:nowrap; gap:5px; white-space:nowrap; min-height:30px; }
 .timezone-bar .tz-select { min-width:0; max-width:135px; }
 .timezone-bar .offset { display:none; }
}
/* The four-digit alarm uses the same visible segment height as the six-digit clock. */
.display-stage #alarmPage .clock-scalable { width:64.75%; }


/* v11: actual seven-segment zoom (all views), not only date font growth. */
.centerpiece { --stage-width:min(calc(100vw - 108px), 1000px); }
.display-stage .clock-scalable {
  transform:scale(var(--display-scale, 1));
  transform-origin:center top;
  transition:transform .24s ease;
}
/* Reserve the scaled height so the timer dock and time-zone line stay clear. */
.display-stage { height:calc(var(--stage-width) * .26259 * var(--display-scale, 1) + 52px); }

.site-header {
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:start;
  gap:20px;
}
.site-header .header-title { align-self:start; justify-self:start; }




@media (max-width:1050px) {
  .site-header { display:flex; flex-direction:column; align-items:stretch; gap:12px; }
  .site-header .header-title { align-self:flex-start; }
  
}
@media (max-width:700px) {
  .centerpiece { --stage-width:min(calc(100vw - 24px), 1000px); }
  .display-stage { height:calc(var(--stage-width) * .26259 * var(--display-scale, 1) + 110px); }
  
}
@media (prefers-reduced-motion:reduce) {
  .display-stage .clock-scalable { transition:none; }
}


@media (min-width:701px) {
  .compact-clocks { min-height:calc(95px - var(--compact-trim,0px)); }
  .mode-switch { margin-bottom:calc(14px - var(--mode-trim,0px)); }
  .display-stage { height:calc(var(--stage-width) * .26259 * var(--display-scale,1) + 52px - var(--stage-trim,0px)); }
  .timezone-bar { margin-top:calc(18px - var(--zone-trim,0px)); }
}
@media (max-width:700px) {
  /* Keep timer/alarm controls in their reserved stage; lift only the display cluster. */
  .clock-area { transform:translateY(calc(17px - var(--scale-lift,0px))); }
}

/* HOSTINGER STANDALONE: the clock is the entire experience. */
.site-header { display:flex; align-items:center; justify-content:flex-start; min-height:54px; padding-bottom:15px; }
.site-header .header-title { align-self:flex-start; justify-self:start; }
.site-footer { justify-content:flex-end; gap:8px; padding-top:12px; min-height:43px; }
.site-footer .footer-tag { display:inline-flex !important; align-items:center; gap:8px; white-space:normal; text-align:right; max-width:100%; }
.clock-area { flex:1 1 auto; }
.feedback-trigger { bottom:75px; }
@media (max-width: 1050px) { .site-header { display:flex; flex-direction:row; align-items:center; } .site-footer .footer-tag { display:inline-flex !important; } }
@media (max-width: 700px) {
 .site-header { min-height:44px; gap:0; }
 .site-footer { transform:none; justify-content:center; padding-top:14px; }
 .site-footer .footer-tag { font-size:9px; text-align:center; justify-content:center; }
 .feedback-trigger { bottom:68px; }
}
