/* Standby — the "C · Widget Board" design at 1194×834, scaled to fit the screen. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: block; src: url(/fonts/barlow-condensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: block; src: url(/fonts/barlow-condensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 200 700; font-display: block; src: url(/fonts/inter-tight-var.woff2) format('woff2'); }

:root { color-scheme: dark; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; }
body { color: #f2f2f7; font-family: 'Inter Tight', system-ui, sans-serif; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #8e8e93; }

/* Edge to edge in the Home Screen app, but nothing under the status bar or home indicator. */
.viewport { position: fixed; top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px); bottom: env(safe-area-inset-bottom, 0px); left: env(safe-area-inset-left, 0px); }
.stage { position: absolute; left: 50%; top: 50%; width: 1194px; height: 834px; box-sizing: border-box; padding: 36px 40px 40px; background: #000; display: flex; flex-direction: column; gap: 24px; transform-origin: center; }

/* Press feedback (motion.js adds .is-pressed on pointer-down). `scale` composes with
   the transforms used for opening and closing, so the two never fight. */
.tile, .card, button, .ev-row, .wx-day, .week-day { transition: scale 0.22s cubic-bezier(0.2, 0.9, 0.3, 1), filter 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); }
.is-pressed { scale: 0.97; filter: brightness(1.35); transition-duration: 0.08s; }
.pill.is-pressed, .mic.is-pressed:not(.recording), .ring-stop.is-pressed, .choice[aria-pressed="true"].is-pressed, .seg-btn[aria-checked="true"].is-pressed, .today-pill.is-pressed { filter: brightness(0.86); }
.fs-btn { position: absolute; top: 0; right: 0; z-index: 5; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Top bar: today's 24 hours */
.timeline { position: relative; height: 72px; flex-shrink: 0; margin: 0 12px; }
.tl-label { position: absolute; top: 0; width: 120px; margin-left: -60px; text-align: center; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-track { position: absolute; left: 0; right: 0; top: 30px; height: 6px; border-radius: 3px; background: #1c1c1f; }
.tl-fill { height: 6px; border-radius: 3px; background: #48484a; }
.tl-dot { position: absolute; top: 26px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; box-shadow: 0 0 0 3px #000; }
.tl-now { position: absolute; top: 24px; width: 18px; height: 18px; margin-left: -9px; border-radius: 9px; background: #f2f2f7; box-shadow: 0 0 0 4px #000; }
.tl-hour { position: absolute; top: 52px; width: 40px; margin-left: -20px; text-align: center; font-size: 12px; color: #8e8e93; }

.main { flex: 1; min-height: 0; display: flex; gap: 24px; }
.left { width: 440px; flex-shrink: 0; display: flex; flex-direction: column; gap: 20px; }

/* Squircle tick ring */
.clock { position: relative; width: 440px; height: 440px; flex-shrink: 0; }
.tick { position: absolute; left: 50%; top: 50%; width: 5px; height: 18px; margin-left: -2.5px; margin-top: -9px; border-radius: 3px; background: #f2f2f7; }
.clock-face { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.clock-time { font-family: 'Barlow Condensed', 'Inter Tight', sans-serif; font-size: 168px; font-weight: 600; line-height: 0.9; }
.clock-weekday { font-size: 16px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.clock-date { font-size: 17px; font-weight: 500; color: #8e8e93; }

.cards { flex: 1; min-height: 0; display: flex; gap: 20px; }
.card { box-sizing: border-box; border-radius: 32px; background: #0c0c0e; border: 1px solid #1c1c1f; }
.glance { flex: 1; min-width: 0; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.glance-head { display: flex; gap: 8px; align-items: center; }
.glance-dot { width: 8px; height: 8px; border-radius: 4px; }
.glance-big { font-size: 34px; font-weight: 600; letter-spacing: -0.5px; }
.glance-detail { font-size: 16px; color: #c7c7cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.alarm-card { position: relative; width: 196px; flex-shrink: 0; padding: 22px 20px 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 6px; overflow: hidden; }
.alarm-card.editing { border-color: #636366; }
.overlay-btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.alarm-head { position: relative; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.alarm-title { display: flex; gap: 8px; align-items: center; }
.alarm-time { position: relative; pointer-events: none; font-size: 34px; font-weight: 600; letter-spacing: -0.5px; white-space: nowrap; }
.alarm-time.long { font-size: 30px; }
.alarm-time.off, .ae-digits.off { color: #8e8e93; }
.alarm-detail { position: relative; pointer-events: none; font-size: 15px; color: #c7c7cc; }
.alarm-sub { position: relative; pointer-events: none; font-size: 13px; color: #8e8e93; }

.switch { width: 56px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; pointer-events: auto; }
.alarm-card .switch { margin-right: -4px; }
.switch-track { position: relative; width: 52px; height: 32px; border-radius: 16px; background: #3a3a3c; transition: background 0.2s; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 14px; background: #fff; transition: left 0.2s; }
.switch[aria-pressed="true"] .switch-track { background: #30d158; }
.switch[aria-pressed="true"] .switch-knob { left: 22px; }

/* 2×2 tiles */
.grid { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { position: relative; z-index: 0; border-radius: 32px; background: #0c0c0e; border: 1px solid #1c1c1f; overflow: hidden; min-height: 0; }
.tile.open { grid-column: 1 / 3; grid-row: 1 / 3; }
.grid.has-open .tile:not(.open), .grid.editing .tile { display: none; }
.tile-small { position: relative; height: 100%; box-sizing: border-box; padding: 20px 22px; display: flex; flex-direction: column; pointer-events: none; }
.tile-big { position: relative; height: 100%; box-sizing: border-box; display: none; flex-direction: column; pointer-events: none; }
.tile.open .tile-small { display: none; }
.tile.open .tile-big { display: flex; }
.tile-corner { position: absolute; bottom: 6px; right: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.muted { color: #8e8e93; }

/* Calendar */
.cal-small { gap: 8px; }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; }
.cal-month { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #ff453a; }
.cal-year { font-size: 13px; color: #8e8e93; }
.cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 11px; font-weight: 600; color: #8e8e93; }
.cal-weeks { display: flex; flex-direction: column; gap: 2px; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); justify-items: center; }
.cal-day { width: 24px; height: 24px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 400; }
.cal-day.past { color: #8e8e93; }
.cal-day.today { background: #ff453a; color: #000; font-weight: 700; }
.cal-rule { height: 1px; background: #1c1c1f; margin: 4px 0 2px; }
#cal-upcoming { display: flex; flex-direction: column; gap: 8px; }
.today-col-list { display: flex; flex-direction: column; gap: 18px; }
.up-row { display: flex; gap: 10px; align-items: center; min-width: 0; }
.up-dot { width: 6px; height: 6px; border-radius: 3px; flex-shrink: 0; }
.up-time { width: 64px; flex-shrink: 0; font-size: 12px; color: #8e8e93; }
.up-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-none { font-size: 14px; color: #8e8e93; }
.cal-big { flex-direction: row; padding: 32px 36px; gap: 40px; }
.cal-big .month-col { width: 308px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-big .cal-month, .cal-big .cal-year { font-size: 18px; }
.cal-big .cal-dow { font-size: 13px; }
.cal-big .cal-weeks { gap: 6px; }
.cal-big .cal-day { width: 38px; height: 38px; border-radius: 19px; font-size: 16px; }
.today-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding-bottom: 40px; }
.today-head { font-size: 18px; font-weight: 700; letter-spacing: 2px; color: #8e8e93; }
.ev-row { display: flex; gap: 14px; align-items: flex-start; }
.ev-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 5px; flex-shrink: 0; }
.ev-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-title { font-size: 19px; font-weight: 600; }
.ev-title.past { color: #8e8e93; }
.ev-time { font-size: 14px; color: #8e8e93; }

/* Weather */
.wx-small { justify-content: space-between; }
.wx-home { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #64d2ff; }
.wx-row { display: flex; justify-content: space-between; align-items: center; }
.wx-temp { font-size: 60px; font-weight: 300; line-height: 1.05; letter-spacing: -3px; }
.wx-cond { font-size: 14px; color: #c7c7cc; }
.chart { display: flex; flex-direction: column; gap: 6px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; }
.chart-title { font-weight: 700; letter-spacing: 1.5px; }
.chart-sum { font-size: 12px; color: #c7c7cc; }
.bars { height: 44px; display: flex; align-items: flex-end; gap: 4px; }
.bar { flex: 1; border-radius: 3px; }
.chart-axis { display: flex; justify-content: space-between; font-size: 11px; color: #8e8e93; }
.wx-days { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.wx-small .wx-days { padding-right: 26px; }
.wx-day { display: flex; gap: 10px; }
.wx-day .d { width: 34px; color: #8e8e93; }
.wx-day .c { flex: 1; }
.wx-big { padding: 32px 40px; gap: 22px; }
.wx-big-head { display: flex; justify-content: space-between; align-items: flex-start; }
.wx-big-head > div { display: flex; flex-direction: column; gap: 4px; }
.wx-big .wx-home { font-size: 16px; }
.wx-big .wx-temp { font-size: 108px; font-weight: 200; line-height: 1; letter-spacing: -5px; }
.wx-big .wx-cond { font-size: 19px; }
.wx-big .chart { gap: 8px; padding: 18px 0; border-top: 1px solid #1c1c1f; border-bottom: 1px solid #1c1c1f; }
.wx-big .chart-title { font-size: 14px; letter-spacing: 2px; }
.wx-big .chart-sum { font-size: 16px; }
.bigbars { display: flex; gap: 6px; }
.bigbar { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bigbar .v { font-size: 12px; color: #c7c7cc; }
.bigbar .well { width: 100%; height: 84px; display: flex; align-items: flex-end; }
.bigbar .fill { width: 100%; border-radius: 4px; }
.bigbar .l { font-size: 12px; color: #8e8e93; }
.wx-big .wx-days { gap: 12px; font-size: 18px; }
.wx-big .wx-day { gap: 16px; }
.wx-big .wx-day .d { width: 52px; }
.wx-msg { font-size: 15px; color: #8e8e93; }

/* Daily note */
.note-small { padding: 22px 24px; gap: 12px; }
.note-head { display: flex; align-items: center; gap: 8px; }
.note-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #a882ff; }
.note-date { font-size: 22px; font-weight: 600; }
.tasks { display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; gap: 10px; align-items: center; min-height: 30px; font-size: 15px; cursor: pointer; pointer-events: auto; }
.task input { width: 18px; height: 18px; margin: 0; accent-color: #a882ff; flex-shrink: 0; }
.task.done { color: #8e8e93; text-decoration: line-through; }
.task span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note-small .tasks { overflow: hidden; }
.note-big { padding: 36px 40px; gap: 18px; }
.note-path { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #8e8e93; }
.note-title { font-size: 36px; font-weight: 600; letter-spacing: -0.5px; }
.note-section { margin-top: 6px; font-size: 15px; font-weight: 700; letter-spacing: 2px; color: #a882ff; }
.note-big .tasks { gap: 12px; }
.note-big .task { gap: 14px; min-height: 36px; font-size: 20px; }
.note-big .task input { width: 24px; height: 24px; }
.note-big .task span { white-space: normal; }
.note-lines { display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 1.5; color: #c7c7cc; padding-bottom: 40px; }
.note-lines .h { color: #f2f2f7; font-weight: 600; margin-top: 6px; }
.note-big-body { display: flex; flex-direction: column; gap: 18px; min-height: 0; }
/* Add-to-note form: same field style as the sign-in page, 44px targets. iOS Safari
   won't place a caret in a field under user-select: none, so the field opts back in. */
#note-add-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; overflow: visible; }
#note-kind, #note-entry { box-sizing: border-box; height: 44px; border-radius: 14px; border: 1px solid #2c2c2e; background: #1c1c1f; color: #f2f2f7; font: inherit; font-size: 17px; }
#note-kind { -webkit-appearance: none; appearance: none; padding: 0 16px; font-weight: 600; cursor: pointer; }
#note-entry { flex: 1; min-width: 0; padding: 0 16px; -webkit-user-select: text; user-select: text; }
#note-entry::placeholder { color: #8e8e93; }
#note-kind:focus-visible, #note-entry:focus { outline: 2px solid #a882ff; outline-offset: 1px; }
#note-add { height: 44px; }
#note-add:disabled, #note-kind:disabled, #note-entry:disabled { opacity: 0.5; }
#note-add-hint { flex-basis: 100%; font-size: 14px; }
#note-add-hint:empty { display: none; }

/* Hermes voice box */
.hm-small { padding: 22px 24px; gap: 10px; }
.hm-label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #30d158; }
.hm-last { flex: 1; min-height: 0; font-size: 16px; line-height: 1.4; color: #c7c7cc; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.hm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 36px; }
.hm-state { font-size: 14px; color: #8e8e93; min-width: 0; }
.hm-state.live { color: #f2f2f7; }
.mic { width: 76px; height: 76px; border: 0; border-radius: 38px; background: #f2f2f7; color: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; pointer-events: auto; flex-shrink: 0; position: relative; }
.mic.recording { background: #ff453a; color: #fff; }
.mic.busy { background: #1c1c1f; color: #8e8e93; }
.mic.busy::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: #30d158; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.mic .level { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid #ff453a; opacity: 0; }
.hm-big { padding: 32px 40px 28px; gap: 16px; }
.hm-convo { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; padding-right: 8px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 20px; font-size: 18px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.msg.you { align-self: flex-end; background: #1c1c1f; color: #f2f2f7; }
.msg.hermes { align-self: flex-start; background: #0f2a17; color: #e6f7ea; }
.msg.err { align-self: flex-start; background: #2a0f10; color: #ffd4d1; }
.hm-big-foot { display: flex; align-items: center; gap: 18px; padding-right: 36px; }

/* Alarm editor (takes over the tile grid) */
.alarm-editor { grid-column: 1 / 3; grid-row: 1 / 3; box-sizing: border-box; padding: 30px 40px; display: none; flex-direction: column; justify-content: space-between; }
.grid.editing .alarm-editor { display: flex; }
.ae-top { display: flex; justify-content: space-between; align-items: center; }
.ae-top .alarm-title .kicker { font-size: 16px; }
.ae-actions { display: flex; gap: 14px; align-items: center; }
.pill { height: 44px; padding: 0 24px; border: 0; border-radius: 22px; background: #f2f2f7; color: #000; font-size: 16px; font-weight: 600; cursor: pointer; }
.ae-time { display: flex; justify-content: center; align-items: center; gap: 10px; }
.ae-col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.step { width: 96px; height: 44px; border: 0; border-radius: 14px; background: #1c1c1f; color: #f2f2f7; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ae-digits { min-width: 140px; text-align: center; font-family: 'Barlow Condensed', 'Inter Tight', sans-serif; font-size: 124px; font-weight: 600; line-height: 1.05; }
.ae-colon { font-family: 'Barlow Condensed', 'Inter Tight', sans-serif; font-size: 124px; font-weight: 600; line-height: 1; padding-bottom: 12px; }
.ae-colon.off { color: #8e8e93; }
.ampm { display: flex; flex-direction: column; gap: 8px; margin-left: 24px; }
.choice { border: 0; background: #1c1c1f; color: #f2f2f7; font-size: 16px; font-weight: 600; cursor: pointer; }
.choice[aria-pressed="true"] { background: #f2f2f7; color: #000; }
.ampm .choice { width: 68px; height: 48px; border-radius: 14px; font-size: 17px; }
.ae-group { display: flex; flex-direction: column; gap: 10px; }
.ae-group-head { display: flex; justify-content: space-between; align-items: baseline; }
.ae-group-head .kicker { font-size: 14px; }
.ae-row { display: flex; gap: 10px; }
.ae-row .choice { flex: 1; height: 48px; border-radius: 24px; }
.ae-repeat-text { font-size: 15px; color: #c7c7cc; }
.ae-footer { font-size: 16px; color: #c7c7cc; }

/* Alarm wheels (wheel.js) */
.ae-time { gap: 6px; }
.ae-digits.wheel { min-width: 0; width: 150px; line-height: normal; }
.wheel { position: relative; height: 300px; outline: none; border-radius: 20px; }
.wheel:focus-visible { box-shadow: 0 0 0 2px #64d2ff; }
.wheel-band { position: absolute; left: 0; right: 0; top: 90px; height: 120px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); pointer-events: none; }
.wheel-scroll { position: absolute; inset: 0; overflow: hidden; scrollbar-width: none; perspective: 900px; touch-action: none; cursor: grab; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.wheel-scroll::-webkit-scrollbar { display: none; }
.wheel-row { position: absolute; left: 0; right: 0; top: 90px; height: 120px; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.ae-digits.off .wheel-row, .ae-period.off .wheel-row { color: #8e8e93; }
.ae-period { width: 96px; margin-left: 18px; }
.ae-period .wheel-row { font-size: 30px; font-weight: 600; }
.ae-period .wheel-band { left: 6px; right: 6px; }

/* Detail cards that open from what was tapped */
.detail-card { position: absolute; z-index: 4; box-sizing: border-box; border-radius: 24px; background: #1c1c1f; border: 1px solid #2c2c2e; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); pointer-events: auto; }
.hour-card { top: 0; width: 268px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: #c7c7cc; }
.hour-card-top { display: flex; justify-content: space-between; align-items: baseline; }
.hour-card-time { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #8e8e93; }
.hour-card-cond { font-size: 14px; color: #c7c7cc; }
.hour-card-temp { display: flex; gap: 10px; align-items: baseline; font-size: 15px; }
.hour-card-temp span:first-child { font-size: 40px; font-weight: 300; letter-spacing: -1.5px; color: #f2f2f7; }
.hour-card-row { display: flex; gap: 8px; align-items: center; }
.ev-card { left: 50%; top: 50%; width: 440px; max-height: 520px; margin: -220px 0 0 -220px; padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.ev-card-title { font-size: 24px; font-weight: 600; padding-right: 36px; }
.ev-card-when { font-size: 16px; color: #c7c7cc; }
.ev-card-row { display: flex; gap: 10px; align-items: center; font-size: 16px; color: #c7c7cc; }
.ev-card-desc { margin-top: 6px; max-height: 240px; font-size: 15px; line-height: 1.5; color: #c7c7cc; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.ev-card .ev-dot { margin-top: 0; }
.card-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* Weather: tappable bars, chart switch, 7 days */
.wx-small .bars { pointer-events: auto; cursor: pointer; }
.wx-head-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; pointer-events: auto; }
.seg { display: flex; padding: 3px; border-radius: 18px; background: #1c1c1f; }
.seg-btn { height: 38px; padding: 0 14px; border: 0; border-radius: 15px; background: transparent; color: #c7c7cc; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-btn[aria-checked="true"] { background: #f2f2f7; color: #000; }
.wx-big .bigbars { position: relative; gap: 0; pointer-events: auto; touch-action: pan-y; cursor: pointer; outline: none; }
.wx-big .bigbars:focus-visible { box-shadow: 0 0 0 2px #64d2ff; border-radius: 6px; }
.wx-big .bigbar { padding: 0 2px; }
.wx-big .bigbar .v, .wx-big .bigbar .l { min-height: 15px; white-space: nowrap; }
.bigbars.selecting .fill { opacity: 0.32 !important; }
.bigbars.selecting .bigbar.sel .fill { opacity: 1 !important; }
.bigbar.sel .v, .bigbar.sel .l { color: #f2f2f7; }
.wx-big .wx-days { flex: 1; min-height: 0; margin: -6px -12px; padding: 6px 12px 36px; }
.wx-day { position: relative; border-radius: 12px; }
.wx-big .wx-day { min-height: 44px; align-items: center; margin: 0 -12px; padding: 0 12px; pointer-events: auto; cursor: pointer; }
.wx-big .wx-days { gap: 0; }
.wx-day.sel { background: rgba(255, 255, 255, 0.06); }

/* Calendar: browse days */
.cal-big .month-col { pointer-events: auto; }
.cal-big .cal-day { border: 0; padding: 0; background: transparent; font-family: inherit; cursor: pointer; }
.cal-big .cal-day.past { color: #8e8e93; }
.cal-big .cal-day.today { background: #ff453a; }
.cal-big .cal-day.sel:not(.today) { box-shadow: inset 0 0 0 1.5px #f2f2f7; }
.cal-big .today-col { padding-bottom: 0; gap: 14px; pointer-events: auto; }
.day-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; }
.day-head .today-head { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 44px tall hit area around a 32px pill. */
.today-pill { position: relative; flex-shrink: 0; height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: #f2f2f7; color: #000; font-size: 14px; font-weight: 600; cursor: pointer; }
.today-pill::before { content: ''; position: absolute; inset: -6px -4px; }
.week-strip { position: relative; overflow: hidden; touch-action: pan-y; flex-shrink: 0; margin: 0 -4px; }
.week-track { display: grid; grid-template-columns: repeat(5, minmax(44px, 1fr)); will-change: transform; }
.week-day { height: 62px; padding: 0; border: 0; border-radius: 16px; background: transparent; color: #f2f2f7; font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.week-day .wd-l { font-size: 11px; font-weight: 600; color: #8e8e93; }
.week-day .wd-n { font-size: 17px; font-weight: 500; width: 32px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.week-day.today .wd-n { color: #ff453a; font-weight: 700; }
.week-day.sel .wd-n { background: #f2f2f7; color: #000; font-weight: 700; }
.week-day.sel.today .wd-n { background: #ff453a; color: #000; }
.week-day .wd-dot { width: 5px; height: 5px; border-radius: 3px; background: transparent; }
.cal-big .today-col-list { flex: 1; min-height: 0; padding-bottom: 40px; }
.ev-row { border-radius: 14px; margin: -6px -10px; padding: 6px 10px; cursor: pointer; }

/* Ringing */
.ringing { position: absolute; inset: 0; z-index: 10; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.ringing .clock-time { font-size: 220px; }
.ring-actions { display: flex; gap: 20px; }
.ring-actions button { height: 72px; padding: 0 44px; border: 0; border-radius: 36px; font-size: 22px; font-weight: 600; cursor: pointer; }
.ring-stop { background: #f2f2f7; color: #000; }
.ring-snooze { background: #1c1c1f; color: #f2f2f7; }

.toast { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20; padding: 10px 18px; border-radius: 18px; background: #1c1c1f; color: #f2f2f7; font-size: 14px; max-width: 70%; text-align: center; }

/* Login */
.login { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.login form { width: 360px; display: flex; flex-direction: column; gap: 16px; }
.login h1 { margin: 0 0 8px; font-family: 'Barlow Condensed', 'Inter Tight', sans-serif; font-size: 64px; font-weight: 600; line-height: 1; }
.login label { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #8e8e93; }
.login input { height: 56px; box-sizing: border-box; padding: 0 18px; border-radius: 16px; border: 1px solid #2c2c2e; background: #0c0c0e; color: #f2f2f7; font: inherit; font-size: 18px; -webkit-user-select: text; user-select: text; }
.login input:focus { outline: 2px solid #64d2ff; outline-offset: 1px; }
.login .pill { height: 56px; border-radius: 28px; font-size: 18px; }
.login .err { min-height: 20px; font-size: 15px; color: #ff6961; }
