/* Sites' quiet clock / scene / weather composition, on the existing VPS shell. */
:root { --cyan: #b0e4d2; --surface: rgba(13, 27, 33, .84); --muted: #adbdbf; --quiet: #819295; }
.skip-link { position: fixed; z-index: 110; top: 14px; left: 20px; padding: 12px 18px; transform: translateY(-180%); border-radius: 8px; background: #e5f3ef; color: #11262b; font-size: 14px; }
.skip-link:focus { transform: translateY(0); }
button, a, input, select { touch-action: manipulation; scroll-margin-block: 110px; }
input { caret-color: var(--cyan); }
.system-bar { inset: 0 0 auto; padding: max(28px, env(safe-area-inset-top)) clamp(22px, 5vw, 96px); }
.wordmark { gap: 16px; }
.wordmark__glyph { width: 44px; height: 44px; font-size: 24px; }
.wordmark__text { display: flex; flex-direction: column; gap: 5px; font-size: 18px; letter-spacing: .16em; color: var(--text); }
.wordmark__text small { font-size: 9px; letter-spacing: .14em; }
.system-status { gap: 18px; }
#header-fullscreen { width: 42px; height: 42px; font-size: 23px; border-radius: 50%; pointer-events: auto; }
.content-frame { width: min(100%, 1600px); padding: 124px clamp(28px, 6vw, 96px) 124px; }
.screen:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.screen--weather, .screen--web, .screen--settings, .screen--os { background: rgba(5, 17, 25, .95); }
[data-screen="weather"] .screen-stack, [data-screen="web"] .screen-stack { touch-action: pan-y; }
.ambient-backdrop__shade { background: linear-gradient(90deg, rgba(2, 10, 17, .34), transparent 78%), linear-gradient(0deg, rgba(2, 12, 19, .86), transparent 58%); }
.ambient-place { top: 132px; left: clamp(28px, 5vw, 96px); right: clamp(28px, 5vw, 96px); justify-content: space-between; }
.ambient-location { color: #e1eceb; font-size: 13px; letter-spacing: .04em; }
.ambient-clock { top: 25%; bottom: auto; left: clamp(30px, 5vw, 96px); }
.ambient-clock__time { font-size: clamp(110px, 15vw, 300px); font-weight: 300; line-height: .92; letter-spacing: -.04em; }
.ambient-clock__meta { gap: 24px; margin-top: 28px; font-size: clamp(14px, 1.1vw, 20px); }
#ambient-seconds { color: var(--muted); font-variant-numeric: tabular-nums; }
.ambient-scene { position: absolute; bottom: 132px; left: clamp(28px, 5vw, 96px); width: min(52%, 730px); }
.ambient-scene h2 { margin: 14px 0 16px; font-size: clamp(18px, 1.8vw, 34px); line-height: 1.5; font-weight: 450; text-wrap: balance; }
.scene-controls { display: flex; align-items: center; gap: 16px; }
.scene-controls button { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(4, 17, 23, .58); font-size: 26px; cursor: pointer; }
.scene-controls button:hover { background: rgba(176, 228, 210, .14); }
.scene-controls button:disabled { opacity: .45; cursor: default; }
#ambient-scene-count { font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .09em; }
#ambient-rotation-state { margin-left: 8px; color: #becdcc; font-size: 11px; }
.ambient-temperature.weather-peek { top: auto; right: clamp(28px, 5vw, 96px); bottom: 132px; width: clamp(230px, 21vw, 330px); padding: 22px 24px; border: 1px solid rgba(220, 240, 237, .25); border-radius: 20px; background: rgba(15, 31, 39, .86); text-align: left; grid-template-columns: auto 1fr; cursor: pointer; backdrop-filter: blur(16px); }
.weather-peek:hover { border-color: var(--cyan); }
.weather-peek__heading { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-size: 12px; color: #d1dedd; }
.weather-peek__heading span:last-child { color: var(--cyan); }
.weather-peek .ambient-temperature__value { font-size: clamp(44px, 4.1vw, 72px); font-weight: 350; }
.weather-peek .ambient-temperature__degree { font-size: 28px; margin-left: 5px; }
.weather-peek .ambient-temperature__range { display: block; margin-top: 14px; font-size: 12px; letter-spacing: .01em; color: #c8d6d4; }
.weather-peek .ambient-clock__weather { grid-column: 1 / -1; margin-top: 16px; font-size: 14px; gap: 10px; }
.gesture-cue { display: none; }
.screen-rail.display-dock { top: auto; left: 50%; right: auto; bottom: max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: row; gap: 4px; width: max-content; max-width: calc(100% - 28px); padding: 7px; border: 1px solid rgba(221, 238, 235, .23); border-radius: 19px; background: rgba(9, 24, 34, .92); transform: translateX(-50%); backdrop-filter: blur(18px); opacity: 1; pointer-events: auto; }
.screen-rail.display-dock button { display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 100px; height: 44px; padding: 0 17px; border: 0; border-radius: 12px; background: transparent; color: #c7d4d6; font-size: 13px; letter-spacing: 0; cursor: pointer; }
.screen-rail.display-dock button span { position: static; opacity: 1; font-size: 10px; transform: none; color: #a0b2b6; }
.screen-rail.display-dock button::after { display: none; }
.screen-rail.display-dock button:hover { background: rgba(176, 228, 210, .08); }
.screen-rail.display-dock button.is-current { background: #e5f3ef; color: #11262b; }
.screen-rail.display-dock button.is-current span { color: #4c6969; }
.section-heading { gap: 20px; }
.section-heading h1 { font-size: clamp(30px, 3.2vw, 56px); }
.weather-notice { margin: 22px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.weather-notice.is-stale { color: #e5c89c; }
.weather-error { margin-bottom: 22px; }
.weather-dashboard { display: grid; grid-template-columns: .85fr 1.4fr; gap: 22px; }
.weather-card { min-width: 0; padding: 28px; border: 1px solid rgba(203, 225, 225, .16); border-radius: 20px; background: rgba(16, 33, 43, .86); }
.weather-current { display: flex; flex-direction: column; align-items: stretch; gap: 26px; margin: 0; }
.weather-current__primary { gap: 20px; }
.weather-current__symbol { font-size: 46px; }
.weather-current__temperature { font-size: clamp(60px, 6.8vw, 108px); }
.weather-current__primary p { margin: 8px 0 0; font-size: 17px; }
.weather-current__details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; width: 100%; }
.weather-current__details > div, .weather-current__details > div:nth-child(even) { min-height: 0; padding: 0; border: 0; }
.weather-current__details span { display: block; font-size: 12px; color: var(--muted); }
.weather-current__details strong { display: block; margin-top: 6px; font-size: 18px; font-weight: 450; }
.forecast-section { margin: 0; }
.forecast-section__heading { flex-wrap: wrap; gap: 10px 20px; padding: 0 0 18px; border-bottom: 0; }
.forecast-section__heading h2 { font-size: 18px; font-weight: 500; }
.forecast-section__heading > span { color: var(--muted); font-size: 11px; }
.temperature-chart { display: grid; place-items: center; height: 155px; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.temperature-chart svg { display: block; width: 100%; max-height: 155px; overflow: visible; }
.temperature-chart__line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; }
.temperature-chart circle { fill: var(--cyan); }
.temperature-chart text { fill: #dcece6; font-size: 13px; font-family: inherit; }
.hourly-strip { display: flex; gap: 8px; max-width: 100%; padding: 6px 0 12px; overflow-x: auto; overscroll-behavior-x: contain; background: transparent; }
.hourly-strip::before, .hourly-strip::after { display: none; }
.hourly-item { flex: 0 0 70px; min-width: 0; min-height: 150px; gap: 7px; padding: 12px 5px; border: 0; border-radius: 12px; background: rgba(218, 235, 235, .035); text-align: center; }
.hourly-item time { font-size: 12px; }
.hourly-item__symbol { margin: 10px 0; font-size: 24px; }
.hourly-item strong { font-size: 20px; }
.hourly-item small { margin-top: 9px; font-size: 11px; }
.weekly-list { gap: 0; }
.weekly-row { grid-template-columns: 1.1fr 32px 48px 90px; min-height: 54px; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(205, 229, 231, .08); font-size: 14px; }
.weekly-row:last-child { border-bottom: 0; }
.weekly-row time { font-size: 13px; }
.weekly-row__state { font-size: 21px; color: var(--cyan); }
.weekly-row__rain { display: block; font-size: 12px; color: #adcfd4; }
.weekly-row strong { text-align: right; white-space: nowrap; font-size: 14px; font-weight: 450; }
.daylight-card { display: flex; flex-direction: column; }
.sun-arc { position: relative; width: min(88%, 320px); height: 120px; margin: auto auto 24px; border: 1px dashed rgba(176, 228, 210, .4); border-bottom: 1px solid var(--line); border-radius: 170px 170px 0 0; }
.sun-arc span { position: absolute; top: -19px; left: 50%; padding: 0 12px; transform: translateX(-50%); font-size: 32px; color: #efd1a4; background: #10212b; }
.sun-times { display: flex; justify-content: space-between; gap: 16px; padding: 0 18px; }
.sun-times div { display: flex; flex-direction: column; gap: 10px; }
.sun-times span { color: var(--muted); font-size: 13px; }
.sun-times strong { font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 400; }
#weather-daylight-note { margin: 28px 0 0; color: var(--muted); text-align: center; font-size: 12px; }
.weather-attribution { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; color: var(--muted); font-size: 12px; }
.settings-intro { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.settings-grid { gap: 22px; margin-top: 30px; background: transparent; border: 0; }
.settings-group { display: block; min-width: 0; min-height: 0; padding: 28px; border: 1px solid rgba(203, 225, 225, .16); border-radius: 20px; background: rgba(16, 33, 43, .86); }
.settings-group__number { display: block; margin-bottom: 15px; color: var(--cyan); }
.settings-group__body h2 { font-size: 22px; }
.settings-group__body p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.settings-group--about { grid-column: 1 / -1; }
.settings-group--about dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.settings-group--about dl div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; border: 0; padding: 0; font-size: 13px; }
.settings-group--actions .primary-button { margin-top: 26px; }
.select-control { margin-top: 20px; }
.select-control select { font-size: 14px; width: 100%; min-width: 0; background: #0c1b25; border-radius: 9px; padding: 12px 14px; }
.switch-control { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; font-size: 14px; }
.switch-control input { width: 19px; height: 19px; accent-color: #b0e4d2; }
.range-control { gap: 12px; margin-top: 26px; }
.range-control > span { font-size: 13px; }
.range-control strong { font-size: 23px; }
.background-library { margin-top: 48px; padding-top: 32px; }
.background-library__heading h2 { font-size: 30px; }
.background-library__heading p { font-size: 13px; max-width: 700px; line-height: 1.9; }
.background-library__tools { flex-wrap: wrap; gap: 20px; margin-top: 26px; }
.status-filter { gap: 6px; }
.status-filter button { min-height: 42px; padding: 10px 14px; border-radius: 8px; font-size: 13px; }
.select-control--compact { min-width: 220px; margin-top: 0; }
.library-search-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 24px 0; }
.library-search { display: flex; flex-direction: column; gap: 10px; width: min(100%, 440px); font-size: 12px; color: var(--muted); }
.library-search input { width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; background: #0c1b25; color: var(--text); font-size: 14px; }
#library-result-count { white-space: nowrap; padding-bottom: 12px; color: var(--muted); font-size: 13px; }
.background-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.background-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(16, 33, 43, .84); }
.background-card.is-selected { border-color: var(--cyan); }
.background-card { content-visibility: auto; contain-intrinsic-size: auto 400px; }
.background-card__preview { width: 100%; aspect-ratio: 16/9; }
.background-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.background-card__body { padding: 18px; }
.background-card__meta { flex-wrap: wrap; gap: 6px; min-height: 24px; }
.background-card h3 { margin: 12px 0 16px; font-size: 16px; line-height: 1.6; min-height: 26px; }
.background-use { width: 100%; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: rgba(176, 228, 210, .05); font-size: 13px; cursor: pointer; }
.background-use[aria-pressed="true"] { color: #b0e4d2; border-color: rgba(176, 228, 210, .45); }
.background-use:disabled { color: #8a9497; cursor: default; }
.review-actions--card { margin-top: 16px; }
.review-actions--card button { font-size: 11px; }
#background-preview-use { margin: 24px 0; width: 100%; }
.background-preview__panel { min-width: 0; }
.background-preview__panel .review-actions { flex-wrap: wrap; }
.background-preview { overscroll-behavior: contain; }
.toast { bottom: 108px; }
.agent-activity { bottom: 112px; }
.eyebrow, .network-state, .background-card__meta, .status-chip, .motion-chip { font-size: 11px; }
.screen-rail.display-dock button span { display: none; }

@media (min-width: 2400px) {
  .content-frame { width: min(88%, 2600px); }
  .ambient-clock__time { font-size: 330px; }
  .ambient-temperature.weather-peek { width: 400px; padding: 32px; }
  .weather-peek .ambient-temperature__value { font-size: 100px; }
  .screen-rail.display-dock button { min-width: 140px; height: 52px; font-size: 16px; }
  .background-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .weather-dashboard { grid-template-columns: 1fr 1.25fr; gap: 16px; }
  .weather-card { padding: 22px; }
  .weather-current__primary { gap: 12px; }
  .weather-current__symbol { font-size: 30px; }
  .weekly-row { grid-template-columns: 1fr 26px 40px 78px; gap: 8px; }
  .background-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .system-bar { padding: 18px 22px; }
  .wordmark { gap: 11px; }
  .wordmark__glyph { width: 34px; height: 34px; font-size: 20px; }
  .wordmark__text { display: flex; font-size: 13px; }
  .wordmark__text small { font-size: 7px; }
  .system-status { gap: 12px; }
  .system-status__separator, #system-time-compact { display: none; }
  #network-state { font-size: 11px; }
  #header-fullscreen { width: 36px; height: 36px; font-size: 20px; }
  .content-frame { padding: 96px 20px 118px; }
  .ambient-place { top: 94px; left: 24px; right: 24px; }
  .ambient-place .eyebrow { font-size: 11px; }
  .ambient-location { font-size: 11px; }
  .ambient-clock { top: 23%; left: 26px; }
  .ambient-clock__time { font-size: clamp(94px, 23vw, 150px); }
  .ambient-clock__meta { margin-top: 22px; font-size: 12px; flex-direction: row; align-items: center; gap: 18px; }
  .ambient-scene { bottom: 110px; left: 24px; right: 24px; width: auto; }
  .ambient-scene h2 { margin: 10px 0 13px; font-size: 18px; }
  .scene-controls { gap: 14px; }
  .scene-controls button { width: 38px; height: 38px; }
  .ambient-temperature.weather-peek { left: 24px; right: 24px; bottom: 256px; width: auto; padding: 16px 18px; border-radius: 16px; grid-template-columns: auto auto 1fr; gap: 0; }
  .weather-peek__heading { grid-column: 1 / -1; margin-bottom: 13px; }
  .weather-peek .ambient-temperature__value { font-size: 44px; }
  .weather-peek .ambient-temperature__degree { font-size: 22px; margin-right: 18px; }
  .weather-peek .ambient-clock__weather { grid-column: 3; grid-row: 2; margin-top: 0; justify-self: end; font-size: 12px; }
  .weather-peek .ambient-temperature__range { grid-column: 1 / -1; margin-top: 12px; font-size: 11px; }
  .screen-rail.display-dock { bottom: max(16px, env(safe-area-inset-bottom)); padding: 5px; gap: 2px; border-radius: 16px; }
  .screen-rail.display-dock button { min-width: 0; height: 43px; padding: 0 13px; font-size: 12px; gap: 5px; border-radius: 11px; }
  .screen-rail.display-dock button span { font-size: 8px; }
  .section-heading h1 { font-size: 32px; }
  .weather-dashboard { grid-template-columns: 1fr; }
  .weather-card { padding: 22px; border-radius: 16px; }
  .weather-current { gap: 22px; }
  .weather-current__primary { gap: 22px; }
  .weather-current__temperature { font-size: 80px; }
  .weather-current__symbol { font-size: 44px; }
  .weather-current__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .weekly-row { grid-template-columns: 1fr 30px 44px 84px; gap: 10px; }
  .sun-arc { margin: 42px auto 22px; height: 105px; }
  .settings-grid { grid-template-columns: 1fr; gap: 16px; }
  .settings-group { padding: 24px; }
  .settings-group--about dl { grid-template-columns: 1fr 1fr; }
  .background-library__heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .background-library__tools { flex-direction: column; align-items: stretch; gap: 20px; }
  .status-filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .status-filter button { padding: 10px 4px; font-size: 11px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
  .select-control--compact { min-width: 0; }
  .library-search-row { align-items: stretch; flex-direction: column; gap: 10px; }
  #library-result-count { align-self: flex-end; padding: 0; }
  .background-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .background-card__body { padding: 12px; }
  .background-card h3 { font-size: 13px; min-height: 42px; margin: 9px 0 12px; }
  .background-card__meta { font-size: 11px; }
  .background-use { font-size: 11px; padding: 10px 4px; }
  .review-actions--card { gap: 3px; }
  .review-actions--card button { min-height: 34px; font-size: 11px; padding: 7px 3px; }
  .background-preview { width: calc(100% - 28px); max-height: calc(100dvh - 32px); overflow-y: auto; }
  .toast { bottom: 88px; max-width: calc(100% - 32px); font-size: 12px; }
  .agent-activity { bottom: 92px; }
}
@media (max-width: 360px) {
  .wordmark__text small { display: none; }
  .system-bar { padding: 16px 18px; }
  .screen-rail.display-dock button { padding: 0 10px; font-size: 11px; }
  .content-frame { padding-left: 16px; padding-right: 16px; }
  .background-grid { grid-template-columns: 1fr; }
  .background-card h3 { min-height: 0; font-size: 16px; }
  .background-use { font-size: 13px; }
  .weekly-row { grid-template-columns: 1fr 22px 37px 74px; gap: 7px; }
  .weekly-row strong { font-size: 12px; }
  .weather-card { padding: 18px; }
}
@media (max-height: 740px) and (max-width: 700px) {
  .ambient-place { top: 82px; }
  .ambient-clock { top: 20%; }
  .ambient-clock__time { font-size: clamp(76px, 23vw, 120px); }
  .ambient-clock__meta { margin-top: 16px; }
  .ambient-temperature.weather-peek { bottom: 216px; padding: 12px 16px; }
  .weather-peek__heading { margin-bottom: 9px; }
  .weather-peek .ambient-temperature__value { font-size: 36px; }
  .weather-peek .ambient-temperature__range { margin-top: 9px; }
  .ambient-scene { bottom: 92px; }
  .ambient-scene h2 { margin: 7px 0 9px; font-size: 16px; }
  .scene-controls button { width: 34px; height: 34px; }
}
@media (max-height: 550px) and (min-width: 701px) {
  .system-bar { padding: 14px 28px; }
  .ambient-place { display: none; }
  .ambient-clock { top: 78px; }
  .ambient-clock__time { font-size: 82px; }
  .ambient-clock__meta { margin-top: 14px; }
  .ambient-scene { bottom: 88px; }
  .ambient-scene h2 { margin: 6px 0 10px; font-size: 16px; }
  .ambient-scene .eyebrow { font-size: 11px; }
  .scene-controls button { width: 32px; height: 32px; }
  .ambient-temperature.weather-peek { top: 104px; bottom: auto; padding: 14px 18px; }
  .weather-peek .ambient-temperature__value { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .ambient-clock, .background-card__preview img { transition: none; }
}
