/* Theme "Cielo" (HappyHouse): sky gradient, frosted white cards, sans-only type, electric-blue
   "next up". Loaded after the view sheets and before phone.css, so the phone layout still wins.
   Target: Android WebView 106 — no nesting, no color-mix(), no oklch(), no 8-digit hex. */
:root {
  --paper: #E4F3FA; --paper-2: #D3ECF6; --card: rgba(255, 255, 255, .62);
  --ink: #0E1B2C; --ink-rgb: 14 27 44; --ink-2: #33475E; --mute: #6F8296; --line: #CFE3EE;
  --shadow: 0 1px 1px rgba(20, 80, 120, .05), 0 8px 24px rgba(20, 80, 120, .08);
  --shadow-lg: 0 12px 30px rgba(20, 40, 220, .30);
  --sans: 'Inter', 'Archivo', system-ui, sans-serif;
}
.stage { background: linear-gradient(160deg, #F2FAFD 0%, #D9F0F8 55%, #BFE6F2 100%); }
.rail { background: rgba(255, 255, 255, .45); }
.rail-item.is-active { background: #FFFFFF; color: #1736E6; box-shadow: var(--shadow); }
.h-clock, .h-weather, .h-presence, .h-lane, .card { border: 1px solid rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.h-hero { background: linear-gradient(135deg, #1530E8, #2C4BFF); color: #FFFFFF; }
.h-wx-icon { color: #E39B2D; }
:root { --serif: var(--sans); --r: 22px; --r-s: 14px; }
.serif { letter-spacing: -.02em; font-weight: 600; }
.rail { border-right: 0; padding: 12px 10px; gap: 6px; }
.rail-item { height: 64px; border-radius: 18px; color: var(--mute); }
.h-clock, .h-weather, .h-presence {
  border-bottom: 0; border-radius: var(--r); padding: 18px 22px;
  background: var(--card); box-shadow: var(--shadow);
}
.h-clock { justify-content: center; }
.h-time { font-weight: 300; letter-spacing: -.05em; }
.h-date { font-family: var(--sans); color: var(--mute); }
.h-date b { font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--ink); }
.h-wx-temp { font-weight: 600; }
.h-wx-say { font-size: 18px; color: var(--ink-2); }
.h-wx-say b { font-style: normal; font-weight: 600; }
.card { box-shadow: var(--shadow); }
.h-hero { box-shadow: var(--shadow-lg); }
.h-hero-title { font-weight: 700; letter-spacing: -.03em; font-size: 64px; }
.h-hero-count { font-weight: 300; }
.h-lane { border-top: 0; padding: 14px 12px 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.h-lane-head b { font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 19px; }
.h-ev { border-left: 4px solid var(--c); border-radius: 10px; }
.h-ev-t { font-stretch: 100%; color: var(--mute); font-weight: 600; }
.h-photo { box-shadow: var(--shadow); }
.h-time { font-size: 116px; line-height: .9; }
.h-weather { justify-content: center; padding-top: 14px; }
.h-wx-temp { font-size: 68px; line-height: .9; }
.h-presence { justify-content: center; gap: 18px; }
.rail { padding: 12px 8px; }
.rail-clock b { font-size: 19px; letter-spacing: -.02em; }

/* Active and selected states take the theme blue instead of solid black. */
.btn--solid, .page .btn--solid, .seg button.is-on, .seg a.is-on, .chip.is-on, .scene.is-on,
.day-head.is-today, .wk-col.is-today .wk-head, .mo-cell.is-today, .pin-key--go, .todo-add-btn, .np-btn, .sc-knob { background: #1736E6; color: #FFFFFF; }
.t-bar i { background: #1736E6; }
.btn { border-color: rgba(23, 54, 230, .35); }
.ev.is-family, .ag-row.is-family, .me-ev.is-family, .h-ag.is-family { background: #22314F; }
.h-hero--empty { background: linear-gradient(135deg, #1530E8, #2C4BFF); color: #FFFFFF; }
/* Shopping: the add box in blue, store tags and "on the list" tiles as soft blue. */
.s-add { background: linear-gradient(135deg, #1530E8, #2C4BFF); }
.s-store { background: rgba(23, 54, 230, .10); color: #1736E6; }
.s-tile.is-on { background: rgba(23, 54, 230, .12); color: #0E1B2C; box-shadow: inset 0 0 0 2px rgba(23, 54, 230, .55); }
.s-row.is-checking .s-box { background: #1736E6; }
/* Rail labels fit the narrow rail ("CALENDARIO"). */
.rail-item { font-size: 10px; letter-spacing: .02em; }

/* Inter runs wider than the condensed Archivo: a start time in the hero, the pills and the
   thermostat get a little less room. */
.h-hero-count.is-time { font-size: 92px; letter-spacing: -.04em; }
.pill { white-space: nowrap; font-size: 15px; letter-spacing: .03em; }
.th-set .num { font-size: 88px; }
.th-btn { width: 68px; height: 68px; }
.hc-climate .seg button { font-size: 13px; letter-spacing: .02em; }
.tile-state { white-space: nowrap; }
.hc { grid-template-columns: minmax(0, 1fr) 360px; }
.hc-scenes .scene { min-width: 0; font-size: 15px; letter-spacing: .02em; }
.hc-sum .sum { min-width: 0; }
.hc-sum .sum b { font-size: 34px; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.h-hero .label { color: rgba(255, 255, 255, .85); }

/* Phone: the Me avatar sits on the clock card, and the rain advice goes under the temperature. */
@media (max-width: 700px), (max-height: 500px) and (orientation: landscape) {
  .home .h-me { position: relative; z-index: 2; margin: 0 14px 0 0; align-self: center; background: #1736E6; color: #FFFFFF; }
  .home .h-clock { padding: 16px 18px; }
  .home .h-weather { flex-wrap: wrap; padding: 14px 18px; row-gap: 6px; }
  .home .h-wx-say { flex-basis: 100%; text-align: left; font-size: 16px; }
  .home .h-hero-count.is-time { font-size: 44px; }
  .home .h-hero-count { font-size: 64px; }
  .home .h-ag-t { width: 56px; }
  .home .h-ag.is-now .h-ag-t { font-size: 12px; letter-spacing: .04em; }
  .stage .rail { border-top: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 -6px 20px rgba(20, 80, 120, .08); }
}
