/* Upkeep: clean, bright, friendly. White rounded cards on a soft warm ground,
   one typeface (Figtree), and a color per tab: coral Today, violet Jobs, teal
   House, amber Supplies. The house's own paint shows up where it means
   something: room dots, swatches, and the illustrations drawn in it. */
:root {
  --bg:#F5F4F0; --card:#FFFFFF; --ink:#1A1D21; --ink-2:#3A3F45; --slate:#6B7177; --faint:#9AA0A6;
  --line:#ECEAE5; --fill:#F2F1EE; --track:#EEEDEA;
  --coral:#F2603F; --violet:#7B5CFA; --teal:#12A594; --amber:#E58F0B; --green:#2FA26B; --red:#E5484D; --blue:#4B8BF5;
  --font:'Figtree',system-ui,-apple-system,'Segoe UI',sans-serif;
  --r-sm:12px; --r:18px; --r-lg:24px;
  --control-h:50px; --nav-h:72px; --side-w:248px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px -10px rgba(16,24,40,.10);
  --shadow-up:0 -10px 40px rgba(16,24,40,.14);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; padding:0; }
body {
  font:16px/1.45 var(--font); color:var(--ink); background:var(--bg);
  -webkit-font-smoothing:antialiased; font-feature-settings:'tnum' 0;
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* [hidden] sets display:none only at the UA level, so any explicit display
   rule (like .socbtn's flex) silently defeats it. */
[hidden] { display:none !important; }
button { font:inherit; color:inherit; }
a { color:inherit; }
a.li, a.btn { text-decoration:none; }
:focus-visible { outline:2.5px solid var(--violet); outline-offset:2px; }

/* Room for the tab bar and a little air. The body already pads the home-bar
   inset, so it is not added again here; only Jobs, which has the floating +,
   gets extra room so the button never covers the last row. */
.wrap { max-width:720px; margin:0 auto; padding:20px 18px calc(var(--nav-h) + 28px); }
.wrap[data-screen="tasks"] { padding-bottom:calc(var(--nav-h) + 100px); }

/* ── Type ─────────────────────────────────────────────────────────────────── */
h1, h2, h3 { margin:0; }
h1 { font-size:32px; font-weight:800; line-height:1.08; letter-spacing:-.02em; }
h3 { font-size:17px; font-weight:700; line-height:1.25; }
h2 { font-size:18px; font-weight:750; letter-spacing:-.01em; margin:30px 0 12px; display:flex; align-items:center; gap:8px; }
h2 .count { color:var(--slate); background:var(--fill); border-radius:999px; padding:1px 9px; font-size:13px; font-weight:700; }
h2.alert { color:var(--red); }
h2 .h2-act { margin-left:auto; font:700 14.5px var(--font); color:var(--violet); background:none; border:none; padding:4px 0; cursor:pointer; }
.eyebrow { font-size:14px; font-weight:600; color:var(--slate); margin:0 0 4px; display:flex; align-items:center; gap:7px; }
.muted { color:var(--slate); }
.lede { color:var(--slate); margin:6px 0 0; font-size:15.5px; }
.small { font-size:13.5px; }

/* The size to buy: a small amber pill, the Supplies color. */
.tape {
  display:inline-flex; align-items:center; max-width:100%; font:700 12.5px/1 var(--font); font-variant-numeric:tabular-nums; letter-spacing:.01em;
  background:#FFF3DF; color:#8A5300; padding:5px 9px; border-radius:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.tape.lg { font-size:15px; padding:7px 11px; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--c, #C9CDD1); box-shadow:inset 0 0 0 1px rgba(0,0,0,.14); flex:none; font-style:normal; }
.pill { display:inline-flex; align-items:center; height:24px; padding:0 10px; border-radius:999px; font-size:12.5px; font-weight:700; white-space:nowrap; }
.pill.late { background:#FDECEC; color:#C8343A; }
.pill.today { background:#FFEDE7; color:#C4421F; }
.pill.done { background:#E6F5EC; color:#1F7A4D; }
.pill.soft { background:var(--fill); color:var(--ink-2); }

/* ── Controls ─────────────────────────────────────────────────────────────── */
/* Every single-line control is the same height, selects included. */
input, select {
  height:var(--control-h); width:100%; font:16px var(--font);
  border:1.5px solid var(--line); border-radius:var(--r-sm); background:var(--card); color:var(--ink);
  padding:0 14px; min-width:0;
}
select {
  -webkit-appearance:none; appearance:none; padding-right:36px;
  background:var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236B7177' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
input[type=date] { -webkit-appearance:none; appearance:none; }
input[type=color] { padding:4px; width:var(--control-h); flex:none; cursor:pointer; }
textarea { width:100%; min-height:90px; font:16px/1.5 var(--font); padding:12px 14px; border:1.5px solid var(--line); border-radius:var(--r-sm); background:var(--card); color:var(--ink); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--violet); box-shadow:0 0 0 4px rgba(123,92,250,.14); }

.field { margin-bottom:14px; min-width:0; }
.field > label { display:block; font-size:13.5px; font-weight:700; color:var(--ink-2); margin-bottom:6px; }
.field .hint { font-size:13px; color:var(--slate); margin:6px 0 0; }
.row { display:flex; gap:10px; }
.row > * { flex:1; min-width:0; }
.row > .fit { flex:none; }

.btn {
  min-height:var(--control-h); display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:8px 18px; border-radius:14px; border:1.5px solid var(--line); background:var(--card); color:var(--ink);
  font:700 16px/1.2 var(--font); cursor:pointer; text-align:center; text-decoration:none;
  transition:transform .15s cubic-bezier(.3,1.4,.5,1), background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { box-shadow:var(--shadow); }
.btn:active { transform:scale(.97); }
.btn-primary { background:var(--ink); border-color:var(--ink); color:#fff; }
.btn-danger  { background:transparent; border-color:transparent; color:var(--red); }
.btn-danger:hover { background:#FDECEC; box-shadow:none; }
.btn-quiet   { background:transparent; border-color:transparent; color:var(--slate); }
.btn-quiet:hover { color:var(--ink); background:var(--fill); box-shadow:none; }
.btn-icon    { width:var(--control-h); padding:0; flex:none; }
.btn-sm      { min-height:38px; padding:4px 14px; font-size:14.5px; border-radius:12px; white-space:nowrap; }
.btn-block   { width:100%; display:flex; }
.btn:disabled { opacity:.5; cursor:default; }
.btn-buy { min-height:34px; padding:4px 12px; font-size:14px; gap:6px; border-radius:999px; flex:none; border:none; background:#FFF3DF; color:#8A5300; }
.btn-buy:hover { background:#FFE8C2; box-shadow:none; }

input[type=checkbox] {
  appearance:none; -webkit-appearance:none; width:24px; height:24px; flex:0 0 24px; margin:0; padding:0; position:relative; cursor:pointer;
  border:2px solid #D5D8DC; border-radius:8px; background:var(--card); transition:background-color .15s, border-color .15s;
}
input[type=checkbox]:checked { background:var(--violet); border-color:var(--violet); }
input[type=checkbox]:checked::after { content:''; position:absolute; left:6.5px; top:2.5px; width:5px; height:10px; border:solid #fff; border-width:0 2.2px 2.2px 0; transform:rotate(45deg); }

/* Segmented control. */
.seg { display:flex; padding:4px; margin:16px 0 4px; background:#EAE8E3; border-radius:14px; }
.seg-btn { flex:1; appearance:none; border:none; background:transparent; cursor:pointer; height:38px; border-radius:10px; color:var(--slate); font-weight:700; font-size:14.5px; transition:background-color .2s, color .2s, box-shadow .2s; }
.seg-btn[aria-current="true"] { background:var(--card); color:var(--ink); box-shadow:0 1px 3px rgba(16,24,40,.12); }

/* Filter chips: a horizontal scroller on phones. */
.chips { display:flex; gap:8px; overflow-x:auto; padding:14px 18px 2px; margin:0 -18px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip {
  flex:none; display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 14px; border-radius:999px;
  border:1.5px solid var(--line); background:var(--card); font-size:14px; font-weight:700; color:var(--ink-2); cursor:pointer; white-space:nowrap;
}
.chip svg { flex:none; }
.chip[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:#fff; }

/* ── Cards and lists ──────────────────────────────────────────────────────── */
.card { background:var(--card); border-radius:var(--r); padding:16px; box-shadow:var(--shadow); }
.card + .card { margin-top:10px; }
.stack, .list { background:var(--card); border-radius:var(--r); box-shadow:var(--shadow); overflow:hidden; }
.li { position:relative; display:flex; align-items:center; gap:12px; padding:12px 14px; width:100%; text-align:left; background:none; border:none; cursor:pointer; color:inherit; min-height:64px; }
.li + .li::before, .lib-row + .lib-row::before, .task + .task::before { content:''; position:absolute; top:0; left:72px; right:0; height:1px; background:var(--line); }
button.li:hover, a.li:hover, .li[role=button]:hover { background:#FAFAF8; }
.li .li-main { flex:1; min-width:0; }
.li .li-title { font-weight:700; line-height:1.3; }
.li .li-sub { font-size:13.5px; color:var(--slate); margin-top:2px; overflow:hidden; text-overflow:ellipsis; }
.li .chev { color:#C2C6CB; flex:none; }
.li > .tape { flex:0 1 auto; max-width:40%; }
.ico-tile { width:46px; height:46px; flex:none; border-radius:14px; background:var(--fill); color:var(--ink-2); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.ico-tile.lg { width:64px; height:64px; border-radius:18px; }
.ico-tile img { width:100%; height:100%; object-fit:cover; display:block; }
.ico-tile svg { display:block; flex:none; }

/* ── A job row ────────────────────────────────────────────────────────────── */
.task { position:relative; display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--card); }
.task .art { width:48px; height:48px; flex:none; border-radius:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.task .art img { width:100%; height:100%; object-fit:cover; display:block; }
.task .body { flex:1; min-width:0; cursor:pointer; }
.task .title { font-weight:700; font-size:16px; line-height:1.25; }
.task .meta { display:flex; flex-wrap:wrap; align-items:center; gap:5px 10px; margin-top:5px; font-size:13.5px; }
.task .when { font-weight:700; color:var(--ink-2); }
.task .where { display:inline-flex; align-items:center; gap:6px; color:var(--slate); }
.task.done-row .title { color:var(--slate); }

/* The check: the one action this app is for, so it gets a moment. */
.check {
  width:32px; height:32px; flex:0 0 32px; border-radius:50%;
  border:2px solid #D5D8DC; background:var(--card); color:transparent;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  transition:border-color .15s ease, color .15s ease, background-color .2s ease, transform .15s;
}
.check:hover { border-color:var(--green); color:var(--green); transform:scale(1.08); }
.check.is-done, .check.done { background:var(--green); border-color:var(--green); color:#fff; }
.check.is-done svg polyline { stroke-dasharray:24; stroke-dashoffset:24; animation:uk-draw .35s .05s ease forwards; }
@keyframes uk-draw { to { stroke-dashoffset:0; } }
.task.leaving { animation:uk-leave .42s .32s cubic-bezier(.4,0,.6,1) forwards; }
@keyframes uk-leave { to { opacity:0; transform:translateX(24px); } }

/* ── Headers ──────────────────────────────────────────────────────────────── */
.top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:6px; }
.avatar { width:42px; height:42px; border-radius:50%; flex:none; overflow:hidden; border:none; cursor:pointer; padding:0; background:var(--violet); color:#fff; display:flex; align-items:center; justify-content:center; font-size:14.5px; font-weight:800; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; }
/* Sub-screens: back + actions on their own row, title full width beneath. */
.subbar { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:var(--control-h); margin:-8px -6px 8px; }
.subbar .acts { display:flex; gap:6px; }
.subbar .btn-icon { width:42px; min-height:42px; height:42px; border-radius:50%; border:none; background:var(--card); box-shadow:var(--shadow); }

/* ── Today ────────────────────────────────────────────────────────────────── */
/* The hero: a bright card with the headline and the week ahead. */
.hero { position:relative; margin-top:16px; border-radius:var(--r-lg); padding:20px 18px 16px; color:#fff; background:var(--coral); box-shadow:0 18px 36px -18px rgba(242,96,63,.7); overflow:hidden; }
.hero.calm { background:var(--teal); box-shadow:0 18px 36px -18px rgba(18,165,148,.7); }
.hero::after { content:''; position:absolute; right:-60px; top:-70px; width:200px; height:200px; border-radius:50%; background:rgba(255,255,255,.09); pointer-events:none; }
.hero-top { display:flex; gap:14px; align-items:flex-start; justify-content:space-between; position:relative; z-index:1; }
.hero-copy { min-width:0; }
.hero-kicker { margin:0; font-size:14.5px; font-weight:600; opacity:.9; }
.hero-title { margin:4px 0 0; font-size:28px; font-weight:800; letter-spacing:-.02em; line-height:1.1; }
.hero-sub { margin:6px 0 0; font-size:15px; opacity:.92; }
.hero-art { flex:none; width:96px; height:66px; border-radius:14px; overflow:hidden; box-shadow:0 0 0 3px rgba(255,255,255,.35); animation:uk-bob 5s ease-in-out infinite; }
@keyframes uk-bob { 50% { transform:translateY(-4px) rotate(-1.5deg); } }
.week { position:relative; z-index:1; display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; margin-top:18px; }
.day { appearance:none; border:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; padding:8px 0 7px; border-radius:14px; background:rgba(255,255,255,.16); color:#fff; transition:transform .2s cubic-bezier(.3,1.5,.5,1), background-color .2s; }
.day:hover { transform:translateY(-3px); background:rgba(255,255,255,.26); }
.day span { font-size:11.5px; font-weight:700; opacity:.85; }
.day b { font-size:17px; font-weight:800; }
.day .dots { display:flex; gap:3px; height:5px; }
.day .dots i { width:5px; height:5px; border-radius:50%; background:currentColor; }
.day.now { background:#fff; color:var(--coral); }
.hero.calm .day.now { color:var(--teal); }
.allclear { display:flex; align-items:center; gap:14px; padding:16px; border-radius:var(--r); background:#E6F5EC; color:#1F7A4D; font-weight:700; }

/* Seasons: a ring that fills as the checklist gets done. */
.season { display:flex; align-items:center; gap:14px; width:100%; text-align:left; cursor:pointer; padding:14px 16px; border-radius:var(--r); border:none; background:var(--card); box-shadow:var(--shadow); transition:transform .2s cubic-bezier(.3,1.4,.5,1); }
.season:hover { transform:translateY(-2px); }
.season .s-main { flex:1; min-width:0; }
.season .s-main > span { display:block; }
.season .s-title { font-weight:800; font-size:18px; }
.season .s-sub { font-size:13.5px; color:var(--slate); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.season .chev { color:#C2C6CB; }
.ring { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.ring svg { position:absolute; inset:0; }
.ring b { position:relative; font-size:15px; font-weight:800; }
.ring b small { font-size:11px; font-weight:700; color:var(--faint); }
.ring-fill { animation:uk-ring 1s .2s cubic-bezier(.3,.9,.3,1) both; }
@keyframes uk-ring { from { stroke-dashoffset:var(--from); } }
.season-head { display:flex; align-items:center; gap:18px; margin-bottom:6px; }
.season-head .ring b { font-size:26px; }
.season-head .ring b small { font-size:15px; }
.meter { display:block; height:8px; border-radius:8px; background:var(--track); overflow:hidden; margin:10px 0 6px; }
.meter i { display:block; height:100%; background:var(--violet); border-radius:8px; transform-origin:left; animation:uk-fill .7s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes uk-fill { from { transform:scaleX(0); } }

/* ── House ────────────────────────────────────────────────────────────────── */
.rooms { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin-top:18px; }
.room-card { display:flex; flex-direction:column; text-align:left; cursor:pointer; padding:8px 8px 14px; border:none; background:var(--card); border-radius:22px; box-shadow:var(--shadow); color:var(--ink); transition:transform .25s cubic-bezier(.3,1.4,.5,1), box-shadow .2s; }
.room-card:hover { transform:translateY(-3px); box-shadow:0 14px 30px -12px rgba(16,24,40,.18); }
.room-card > span { display:block; min-width:0; }
.rc-art { position:relative; aspect-ratio:16 / 11; border-radius:16px; overflow:hidden; background:var(--fill); }
.rc-art img { width:100%; height:100%; object-fit:cover; display:block; }
.swatches-mini { position:absolute; right:8px; bottom:8px; display:flex !important; }
.swatches-mini i { width:20px; height:20px; border-radius:50%; border:2.5px solid #fff; margin-left:-7px; box-shadow:0 2px 6px rgba(0,0,0,.15); }
.rc-name { font-weight:800; font-size:16px; margin:10px 6px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rc-sub { font-size:13px; color:var(--slate); margin:2px 6px 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.room-card.add { background:transparent; box-shadow:none; border:2px dashed #D9D6CF; align-items:center; justify-content:center; gap:8px; min-height:170px; color:var(--slate); font-weight:700; }
.add-ico { width:42px; height:42px; border-radius:50%; background:#E7F6F4; color:var(--teal); display:flex; align-items:center; justify-content:center; }
body.is-wide .rooms { grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); }

.room-hero { height:190px; border-radius:var(--r-lg); overflow:hidden; margin:0 0 16px; background:var(--fill); box-shadow:var(--shadow); }
.room-hero img { width:100%; height:100%; object-fit:cover; display:block; }
/* A room's colors: swatch cards, color on top, name and code below. */
.swatches { display:flex; gap:10px; overflow-x:auto; padding:4px 18px 14px; margin:0 -18px; scrollbar-width:none; }
.swatches::-webkit-scrollbar { display:none; }
.swatch-card { flex:none; width:136px; display:flex; flex-direction:column; text-align:left; padding:6px 6px 12px; border:none; background:var(--card); border-radius:18px; box-shadow:var(--shadow); cursor:pointer; color:var(--ink); transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
.swatch-card:hover { transform:translateY(-3px) rotate(-1deg); }
.swatch-card i { display:flex; align-items:center; justify-content:center; height:92px; border-radius:13px; margin-bottom:9px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); font-style:normal; font-size:12.5px; font-weight:700; color:var(--slate); }
.swatch-card i.unset { background:repeating-linear-gradient(135deg, #F4F3F0 0 7px, #E9E7E2 7px 8px); }
.swatch-card .sc-surf { font-size:12px; font-weight:700; color:var(--slate); padding:0 4px; }
.swatch-card b { font-size:15px; font-weight:800; padding:0 4px; line-height:1.2; }
.swatch-card .sc-code { font-size:12.5px; color:var(--slate); padding:0 4px; margin-top:2px; font-variant-numeric:tabular-nums; }
.swatch-card.add { align-items:center; justify-content:center; gap:8px; background:transparent; box-shadow:none; border:2px dashed #D9D6CF; color:var(--slate); font-weight:700; font-size:14px; text-align:center; padding:12px; min-height:168px; }

/* Supplies swatch grid (paint). */
.swatch-dot { width:46px; height:46px; flex:none; border-radius:14px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(112px, 1fr)); gap:10px; }
.swatch-tile { display:flex; flex-direction:column; justify-content:flex-start; background:var(--card); text-align:left; padding:6px 6px 10px; border:none; border-radius:18px; box-shadow:var(--shadow); cursor:pointer; transition:transform .25s cubic-bezier(.3,1.4,.5,1); }
.swatch-tile:hover { transform:translateY(-3px); }
.swatch-tile i { display:block; height:72px; border-radius:13px; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); }
.swatch-tile div { padding:8px 4px 0; font-size:12.5px; line-height:1.3; color:var(--slate); }
.swatch-tile b { display:block; font-size:14px; color:var(--ink); }
.swatch-tile code { display:block; font:600 12px var(--font); color:var(--faint); margin-top:2px; }

/* ── Job detail ───────────────────────────────────────────────────────────── */
.detail-head { display:flex; align-items:center; gap:16px; margin-bottom:16px; }
.art.xl { width:92px; height:92px; flex:none; border-radius:24px; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:var(--shadow); }
.art.xl img { width:100%; height:100%; object-fit:cover; }
.detail-head h1 { font-size:28px; }
.detail-when .dw-top { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.detail-when p { margin:10px 0 0; color:var(--ink-2); }
.ctx { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.ctx .chip { background:var(--fill); border-color:transparent; }
.actions-row { display:flex; gap:10px; margin-top:14px; }
.actions-row .btn { flex:1; min-height:56px; font-size:17px; border-radius:16px; }
.actions-row .btn-primary { flex:2; background:var(--green); border-color:var(--green); box-shadow:0 12px 24px -12px rgba(47,162,107,.8); }
.steps { margin:0; padding:0; list-style:none; counter-reset:step; }
.steps li { counter-increment:step; position:relative; padding:0 0 14px 40px; line-height:1.45; }
.steps li::before { content:counter(step); position:absolute; left:0; top:-2px; width:28px; height:28px; border-radius:50%; background:#F0ECFF; color:var(--violet); font:800 13px/28px var(--font); text-align:center; }
.steps li:last-child { padding-bottom:0; }
.dl { display:grid; grid-template-columns:auto 1fr; gap:10px 16px; margin:0; }
.dl dt { color:var(--slate); font-size:14px; }
.dl dd { margin:0; font-weight:700; min-width:0; overflow-wrap:anywhere; }
.prompt { display:flex; align-items:center; gap:12px; padding:14px; border-radius:var(--r); border:2px dashed #D9D6CF; background:transparent; width:100%; text-align:left; cursor:pointer; color:var(--ink-2); }
.prompt:hover { border-color:var(--violet); background:#FAF8FF; }
.prompt b { display:block; color:var(--ink); }
.hero-thing { display:flex; align-items:center; gap:14px; margin-top:2px; }
.hero-thing h1 { font-size:28px; }

/* ── Library and setup ────────────────────────────────────────────────────── */
.search { position:relative; margin-top:14px; }
.search svg { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--slate); }
.search input { padding-left:42px; }
.lib-row { position:relative; display:flex; align-items:flex-start; gap:12px; padding:14px; }
.lib-row + .lib-row::before { left:14px; }
.lib-row .li-main { flex:1; min-width:0; }
.lib-row .li-title { font-weight:700; }
.lib-row .li-sub { font-size:13.5px; color:var(--slate); margin-top:3px; }
.add-toggle { width:38px; height:38px; flex:none; border-radius:50%; border:none; background:#F0ECFF; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--violet); transition:transform .2s cubic-bezier(.3,1.5,.5,1); }
.add-toggle:hover { transform:scale(1.1); }
.add-toggle.on { background:var(--violet); color:#fff; }

.steps-dots { display:flex; gap:6px; margin:4px 0 16px; width:120px; }
.steps-dots i { height:6px; flex:1; border-radius:6px; background:#E2E0DB; transition:background-color .3s; }
.steps-dots i.on { background:var(--teal); }
.tiles { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
.tile {
  position:relative; display:flex; align-items:center; gap:10px; padding:10px 30px 10px 10px; min-height:66px; text-align:left; cursor:pointer;
  border:2px solid transparent; border-radius:18px; background:var(--card); box-shadow:var(--shadow); transition:border-color .2s, transform .2s cubic-bezier(.3,1.4,.5,1);
}
.tile:hover { transform:translateY(-2px); }
.tile .t-name { font-weight:700; font-size:15px; line-height:1.2; }
.tile .t-hint { display:block; font-size:12.5px; line-height:1.3; color:var(--slate); margin-top:2px; }
.t-chip { width:44px; height:44px; flex:none; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--fill); color:var(--slate); transition:background-color .25s, color .25s, transform .3s cubic-bezier(.3,1.5,.5,1); }
.tile[aria-pressed="true"], .tile-wide.is-on { border-color:var(--c, var(--teal)); }
.tile[aria-pressed="true"] .t-chip, .tile-wide.is-on .t-chip { background:var(--c, var(--teal)); color:#fff; }
.tile.just .t-chip { animation:uk-pop .42s cubic-bezier(.3,1.5,.5,1); }
.tile[aria-pressed="true"]::after {
  content:''; position:absolute; top:9px; right:9px; width:18px; height:18px; border-radius:50%; background:var(--c, var(--teal))
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.tile[disabled] { opacity:.6; cursor:default; transform:none; }
.tile-wide { grid-column:1 / -1; cursor:default; padding-right:10px; }
/* Rooms you name yourself, and the field that adds them. */
.tile.custom { border-color:var(--teal); cursor:default; padding-right:10px; }
.tile.custom .t-chip { background:var(--teal); color:#fff; }
.tile.custom:hover, .add-room:hover { transform:none; }
.tile-x { margin-left:auto; width:30px; height:30px; flex:none; border-radius:50%; border:none; background:var(--fill); color:var(--slate); cursor:pointer; display:flex; align-items:center; justify-content:center; }
.tile-x:hover { background:#FDECEC; color:var(--red); }
.add-room { cursor:default; padding-right:10px; border:2px dashed #D9D6CF; box-shadow:none; background:transparent; }
.add-room .t-chip { background:#E7F6F4; color:var(--teal); }
.add-room input { flex:1; height:44px; }
.add-room .btn { flex:none; min-height:44px; }
.tile-wide:hover { transform:none; }
.stepper { display:flex; align-items:center; gap:6px; margin-left:auto; }
.stepper button { width:38px; height:38px; border-radius:50%; border:none; background:var(--fill); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .15s; }
.stepper button:active { transform:scale(.9); }
.stepper button:disabled { opacity:.35; cursor:default; }
.stepper b { min-width:24px; text-align:center; font-weight:800; font-size:19px; }
.sticky-foot { position:sticky; bottom:calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); margin-top:20px; z-index:5; }
body.is-wide .sticky-foot { bottom:16px; }

/* ── Calendar ─────────────────────────────────────────────────────────────── */
.cal { background:var(--card); border-radius:var(--r-lg); padding:14px 12px; margin-top:14px; box-shadow:var(--shadow); }
.cal-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.cal-head strong { font-weight:800; font-size:20px; }
.cal-head .btn-icon { height:38px; width:38px; min-height:38px; border:none; border-radius:50%; background:var(--fill); }
/* minmax(0,1fr): a plain 1fr track lets a wide chip push its column wider. */
.cal-dow, .cal-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:4px; }
.cal-dow span { text-align:center; padding-bottom:4px; color:var(--faint); font-size:12px; font-weight:700; }
.cal-cell { appearance:none; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px; min-height:46px; padding:7px 2px 4px; border:none; border-radius:12px; background:transparent; color:var(--ink); font:600 14px/1 var(--font); transition:background-color .15s; }
.cal-cell.empty { cursor:default; }
.cal-cell:not(.empty):hover { background:var(--fill); }
.cal-cell.today { box-shadow:inset 0 0 0 2px var(--coral); font-weight:800; }
.cal-cell.picked { background:var(--ink); color:#fff; }
.cal-cell.over .cal-num { color:var(--red); }
.cal-cell.picked .cal-num { color:#fff; }
.cal-dots { display:flex; gap:3px; }
.cal-dots i { width:6px; height:6px; border-radius:50%; background:var(--violet); }
.cal-dots i.over { background:var(--red); }
.cal-cell.picked .cal-dots i { background:#fff; }
body.is-wide .cal-cell { min-height:78px; align-items:stretch; padding:7px 5px; }
body.is-wide .cal-num { padding-left:2px; }
.cal-chips { display:flex; flex-direction:column; gap:2px; min-width:0; }
.cal-chip { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:2px 6px; border-radius:6px; background:#F0ECFF; color:#5A3FD6; font-style:normal; font-size:11px; font-weight:700; line-height:1.5; text-align:left; }
.cal-chip.over { background:#FDECEC; color:#C8343A; }
.cal-chip.more { background:transparent; color:var(--slate); }
.cal-cell.picked .cal-chip { background:rgba(255,255,255,.16); color:#fff; }

/* ── Photos ───────────────────────────────────────────────────────────────── */
.photo-strip { display:flex; gap:10px; overflow-x:auto; padding:8px 8px 4px 0; scrollbar-width:none; }
.photo-thumb { position:relative; flex:none; width:100px; }
.photo-thumb img { width:100px; height:100px; object-fit:cover; display:block; border-radius:16px; background:var(--card); }
.photo-tag { display:block; margin-top:4px; font-size:12px; color:var(--slate); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.photo-del { position:absolute; top:-6px; right:-6px; width:24px; height:24px; border-radius:50%; border:2px solid var(--bg); background:var(--ink); color:#fff; font-size:14px; line-height:18px; padding:0; cursor:pointer; }
.photo-add { width:100px; height:100px; flex:none; border-radius:16px; border:2px dashed #D9D6CF; background:transparent; color:var(--slate); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:12.5px; font-weight:700; cursor:pointer; }

/* ── Sheets ───────────────────────────────────────────────────────────────── */
.scrim { position:fixed; inset:0; z-index:60; background:rgba(16,20,26,.38); animation:uk-fade .2s ease both; }
.sheet {
  position:fixed; left:0; right:0; bottom:0; z-index:61; max-height:92vh; max-height:92dvh; overflow-y:auto; overscroll-behavior:contain;
  background:#F7F6F3; border-radius:26px 26px 0 0; box-shadow:var(--shadow-up);
  padding:10px 18px calc(22px + env(safe-area-inset-bottom)); animation:uk-up .34s cubic-bezier(.2,.9,.25,1) both;
}
.sheet .grab { width:40px; height:5px; border-radius:5px; background:#D9D6CF; margin:0 auto 14px; }
.sheet-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.sheet-head h3 { font-size:22px; font-weight:800; letter-spacing:-.01em; }
.sheet-head .btn-icon { border:none; background:var(--fill); width:36px; min-height:36px; height:36px; border-radius:50%; }
.sheet.closing { animation:uk-down .2s ease forwards; }
.scrim.closing { animation:uk-fade .2s ease reverse forwards; }
body.is-wide .sheet { left:50%; right:auto; bottom:auto; top:50%; width:min(520px, calc(100vw - 48px)); max-height:86vh; max-height:86dvh; border-radius:var(--r-lg); transform:translate(-50%, -50%); animation:uk-dialog .26s cubic-bezier(.2,.9,.25,1) both; padding:20px 22px 24px; }
body.is-wide .sheet .grab { display:none; }
body.is-wide .sheet.closing { animation:uk-fade .15s ease reverse forwards; }
@keyframes uk-fade { from { opacity:0; } }
@keyframes uk-up { from { transform:translateY(100%); } }
@keyframes uk-down { to { transform:translateY(100%); } }
@keyframes uk-dialog { from { opacity:0; transform:translate(-50%, -46%) scale(.97); } }
body.sheet-open { overflow:hidden; }
.typepick { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.typepick button { display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 4px; border-radius:14px; border:2px solid transparent; background:var(--card); box-shadow:var(--shadow); cursor:pointer; font-size:13px; font-weight:700; }
.typepick button[aria-pressed="true"] { border-color:var(--violet); color:var(--violet); }
.photo-pick { position:relative; border-radius:16px; overflow:hidden; margin:4px 0 14px; cursor:crosshair; background:var(--fill); }
.photo-pick canvas { display:block; width:100%; height:auto; touch-action:none; }
.photo-pick .ring { position:absolute; width:34px; height:34px; border-radius:50%; border:3px solid #fff; box-shadow:0 0 0 1px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.3); transform:translate(-50%,-50%); pointer-events:none; }
/* "While it is in your hand": the ask, on a soft amber card. */
.ask { margin:4px 0 16px; background:#FFF8EC; border-radius:18px; padding:14px; border:1.5px dashed #F0C987; }
.ask h3 { font-size:16.5px; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
/* The current tab lights up in its own color, an indicator pill behind its
   icon. The web owns the safe area so the iOS shell can ship
   contentInset:"never". */
.nav { position:fixed; left:0; right:0; bottom:0; z-index:20; background:rgba(255,255,255,.96); backdrop-filter:saturate(1.4) blur(14px); -webkit-backdrop-filter:saturate(1.4) blur(14px); border-top:1px solid var(--line); padding-bottom:env(safe-area-inset-bottom); }
.nav-inner { display:grid; grid-template-columns:repeat(var(--nav-cols, 4), minmax(0, 1fr)); max-width:720px; margin:0 auto; }
.nav button {
  position:relative; appearance:none; border:none; background:none; cursor:pointer; height:var(--nav-h);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding-bottom:4px;
  color:var(--faint); font-size:12px; font-weight:700;
}
.nav button svg { position:relative; z-index:1; transition:transform .3s cubic-bezier(.3,1.5,.5,1); }
.nav button::before { content:''; position:absolute; top:10px; left:50%; width:60px; height:32px; margin-left:-30px; border-radius:16px; background:var(--tc); opacity:0; transform:scaleX(.4); transition:opacity .2s, transform .35s cubic-bezier(.3,1.4,.5,1); }
.nav button[aria-current="page"] { color:var(--ink); }
.nav button[aria-current="page"] svg { color:#fff; }
.nav button[aria-current="page"]::before { opacity:1; transform:none; }
.nav button.pulled svg { animation:uk-pop .45s cubic-bezier(.3,1.5,.5,1); }
.badge { min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:var(--red); color:#fff; font:800 11px/19px var(--font); text-align:center; }
.nav .badge { position:absolute; top:6px; left:calc(50% + 10px); z-index:2; box-shadow:0 0 0 2px #fff; }

.fab {
  position:fixed; right:18px; bottom:calc(20px + var(--nav-h) + env(safe-area-inset-bottom)); z-index:15;
  width:60px; height:60px; border-radius:20px; border:none; background:var(--violet); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:0 14px 28px -10px rgba(123,92,250,.7); transition:transform .25s cubic-bezier(.3,1.5,.5,1);
}
.fab:hover { transform:scale(1.06) rotate(90deg); }
body.toasting .fab { transform:translateY(-60px); }

/* Centered with auto margins between left:16 and right:16, NOT left:50% +
   translate: a fixed shrink-to-fit box at left:50% only gets half the
   viewport to lay out in and wraps short messages. */
#toast {
  position:fixed; left:16px; right:16px; margin:0 auto; width:fit-content; max-width:calc(100vw - 32px); z-index:80;
  bottom:calc(16px + var(--nav-h) + env(safe-area-inset-bottom));
  background:var(--ink); color:#fff; padding:12px 18px; border-radius:16px; font-size:15px; font-weight:600;
  opacity:0; transform:translateY(10px) scale(.98); pointer-events:none; transition:opacity .2s, transform .25s cubic-bezier(.3,1.4,.5,1); box-shadow:0 10px 30px rgba(0,0,0,.22);
  display:flex; align-items:center; gap:14px;
}
#toast.show { opacity:1; transform:none; pointer-events:auto; }
#toast button { background:none; border:none; color:#C9BCFF; font-weight:800; cursor:pointer; padding:0; }
body.is-wide #toast { left:calc(var(--side-w) + 16px); bottom:calc(20px + env(safe-area-inset-bottom)); }

/* Status-bar drape: with viewport-fit=cover, scrolled content slides up under
   the clock. A fixed strip over the inset keeps it legible. */
.drape { position:fixed; top:0; left:0; right:0; z-index:30; height:env(safe-area-inset-top); background:var(--bg); pointer-events:none; }

body.is-wide .nav, body.is-wide .fab, body.is-wide .drape { display:none; }
.sidebar { position:fixed; top:0; left:0; bottom:0; width:var(--side-w); z-index:40; background:var(--card); border-right:1px solid var(--line); display:flex; flex-direction:column; padding:calc(22px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)); }
.side-brand { display:flex; align-items:center; gap:10px; padding:2px 10px 24px; background:none; border:none; cursor:pointer; }
.side-brand img { height:28px; width:auto; display:block; }
.side-brand span { font-weight:800; font-size:18px; letter-spacing:-.01em; }
.side-nav { display:flex; flex-direction:column; gap:4px; }
.side-nav button {
  position:relative; appearance:none; border:none; background:none; cursor:pointer; display:flex; align-items:center; gap:12px; width:100%;
  padding:11px 12px; border-radius:14px; color:var(--slate); font-size:15.5px; font-weight:700; text-align:left; transition:background-color .2s, color .2s;
}
.side-nav button svg { color:var(--faint); transition:color .2s; }
.side-nav button:hover { background:var(--fill); color:var(--ink); }
.side-nav button[aria-current="page"] { background:color-mix(in srgb, var(--tc) 12%, #fff); color:var(--ink); }
.side-nav button[aria-current="page"] svg { color:var(--tc); }
.side-nav .badge { margin-left:auto; }
.side-add { margin-top:18px; background:var(--violet) !important; border-color:var(--violet) !important; }
.side-foot { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.side-me { display:flex; align-items:center; gap:10px; width:100%; padding:10px; border-radius:14px; background:none; border:none; cursor:pointer; text-align:left; }
.side-me:hover { background:var(--fill); }
.side-me .avatar { width:32px; height:32px; font-size:12px; }
.side-me span { font-size:14px; color:var(--slate); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body.is-wide .wrap-shell { margin-left:var(--side-w); max-width:none; padding:32px 40px 48px; }
/* One content column for every screen, centered in the space beside the
   sidebar, so pages never change width as you move between tabs. */
body.is-wide .wrap-shell > * { max-width:960px; margin-left:auto; margin-right:auto; }
@media (min-width:1180px) { .today-grid { display:grid; grid-template-columns:minmax(0, 1.4fr) minmax(0, 1fr); gap:0 28px; align-items:start; } }

/* ── Sign-in ──────────────────────────────────────────────────────────────── */
.signin { max-width:380px; margin:12vh auto 0; text-align:center; }
.signin .lockup { width:82%; max-width:310px; height:auto; display:block; margin:0 auto 18px; }
.signin p { color:var(--slate); margin:0 0 28px; }
#socialwrap { display:grid; gap:10px; margin:0 auto 18px; width:100%; max-width:360px; }
/* Web: GIS 'large' draws a 40px button with a 4px radius inside its iframe, so
   Apple matches that exactly. Native draws both buttons itself at 44px. */
#socialwrap.gis .socbtn { height:40px; border-radius:4px; font-size:14.5px; }
.gbtn-wrap { display:flex; justify-content:center; min-height:44px; width:100%; }
.gbtn-wrap > div { width:100%; }
.socbtn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:44px; border-radius:8px; border:none; background:#000; color:#fff; font:600 15px system-ui,-apple-system,sans-serif; cursor:pointer; }
/* flex-shrink would squash the Apple glyph horizontally. */
.socbtn svg { flex:none; }
/* Native shell: Google's brand rules want the light treatment, not black. */
.socbtn.socbtn-google { background:#fff; color:#1f1f1f; border:1px solid #dadce0; font-weight:500; }

/* ── Profile ──────────────────────────────────────────────────────────────── */
.profile-head { display:flex; gap:16px; align-items:center; }
.avatar-big { width:72px; height:72px; font-size:24px; }
.setting { display:flex; align-items:flex-start; gap:12px; padding:12px 0; cursor:pointer; }
.setting + .setting { border-top:1px solid var(--line); }

.empty { text-align:center; padding:40px 20px; color:var(--slate); }
.empty .ico-tile { margin:0 auto 14px; background:#F0ECFF; color:var(--violet); }
.empty b { display:block; color:var(--ink); font-size:19px; margin-bottom:4px; }
.skeleton { height:72px; border-radius:var(--r); background:linear-gradient(90deg, #ECEAE5, #F6F5F2, #ECEAE5); background-size:200% 100%; animation:uk-shimmer 1.2s linear infinite; }
.skeleton + .skeleton { margin-top:8px; }
@keyframes uk-shimmer { to { background-position:-200% 0; } }

/* ── Motion ───────────────────────────────────────────────────────────────── */
/* Direction carries meaning: deeper slides in from the right, Back from the
   left, a tab change rises in place. */
@keyframes uk-page-in { from { opacity:0; transform:translateY(10px); } }
@keyframes uk-in-fwd { from { opacity:0; transform:translateX(28px); } }
@keyframes uk-in-back { from { opacity:0; transform:translateX(-28px); } }
@keyframes uk-ease-in { from { opacity:0; transform:translateY(8px); } }
.uk-page { animation:uk-page-in .28s cubic-bezier(.22,.9,.3,1); }
.uk-page.uk-fwd { animation:uk-in-fwd .32s cubic-bezier(.22,.9,.3,1); }
.uk-page.uk-back { animation:uk-in-back .32s cubic-bezier(.22,.9,.3,1); }
.uk-stagger > * { animation:uk-ease-in .34s cubic-bezier(.22,.9,.3,1) both; }
.uk-stagger > *:nth-child(2) { animation-delay:.04s; }
.uk-stagger > *:nth-child(3) { animation-delay:.08s; }
.uk-stagger > *:nth-child(4) { animation-delay:.12s; }
.uk-stagger > *:nth-child(n+5) { animation-delay:.16s; }
/* Rows arrive a beat after their card. */
@keyframes uk-row { from { opacity:0; transform:translateY(10px); } }
.uk-stagger .stack > *, .uk-stagger .list > * { animation:uk-row .38s cubic-bezier(.2,.9,.25,1) both; animation-delay:.1s; }
.uk-stagger .stack > *:nth-child(2), .uk-stagger .list > *:nth-child(2) { animation-delay:.15s; }
.uk-stagger .stack > *:nth-child(3), .uk-stagger .list > *:nth-child(3) { animation-delay:.2s; }
.uk-stagger .stack > *:nth-child(4), .uk-stagger .list > *:nth-child(4) { animation-delay:.25s; }
.uk-stagger .stack > *:nth-child(n+5), .uk-stagger .list > *:nth-child(n+5) { animation-delay:.3s; }
/* The week pops in day by day; cards and swatches bounce in. */
@keyframes uk-bounce { 0% { opacity:0; transform:translateY(14px) scale(.94); } 70% { opacity:1; transform:translateY(-2px) scale(1.01); } 100% { transform:none; } }
.uk-stagger .day, .uk-stagger .room-card, .uk-stagger .swatch-card, .uk-stagger .tile { animation:uk-bounce .5s cubic-bezier(.3,1.2,.5,1) both; }
.uk-stagger .day:nth-child(1), .uk-stagger .room-card:nth-child(1), .uk-stagger .swatch-card:nth-child(1), .uk-stagger .tile:nth-child(1) { animation-delay:.12s; }
.uk-stagger .day:nth-child(2), .uk-stagger .room-card:nth-child(2), .uk-stagger .swatch-card:nth-child(2), .uk-stagger .tile:nth-child(2) { animation-delay:.16s; }
.uk-stagger .day:nth-child(3), .uk-stagger .room-card:nth-child(3), .uk-stagger .swatch-card:nth-child(3), .uk-stagger .tile:nth-child(3) { animation-delay:.2s; }
.uk-stagger .day:nth-child(4), .uk-stagger .room-card:nth-child(4), .uk-stagger .swatch-card:nth-child(4), .uk-stagger .tile:nth-child(4) { animation-delay:.24s; }
.uk-stagger .day:nth-child(5), .uk-stagger .room-card:nth-child(5), .uk-stagger .swatch-card:nth-child(5), .uk-stagger .tile:nth-child(5) { animation-delay:.28s; }
.uk-stagger .day:nth-child(6), .uk-stagger .room-card:nth-child(6), .uk-stagger .swatch-card:nth-child(6), .uk-stagger .tile:nth-child(6) { animation-delay:.32s; }
.uk-stagger .day:nth-child(n+7), .uk-stagger .room-card:nth-child(n+7), .uk-stagger .swatch-card:nth-child(n+7), .uk-stagger .tile:nth-child(n+7) { animation-delay:.36s; }
.uk-back.uk-stagger > *, .uk-back.uk-stagger .stack > *, .uk-back.uk-stagger .list > *, .uk-back.uk-stagger .day, .uk-back.uk-stagger .room-card,
.uk-back.uk-stagger .swatch-card, .uk-back.uk-stagger .tile { animation:none; }
/* Pops on the one control that just changed. */
@keyframes uk-pop { 0% { transform:scale(.6); } 60% { transform:scale(1.15); } 100% { transform:scale(1); } }
.add-toggle.just, .tile.just::after, .uk-stagger .allclear .check { animation:uk-pop .42s cubic-bezier(.3,1.5,.5,1) both; }
.check.is-done { animation:uk-pop .4s cubic-bezier(.3,1.5,.5,1); }
/* Confetti (see burst() in app.js). */
.bit { position:fixed; z-index:95; width:8px; height:8px; border-radius:2px; pointer-events:none; transform:translate(-50%,-50%); animation:uk-bit .85s cubic-bezier(.15,.75,.3,1) forwards; }
.bit:nth-child(3n) { border-radius:50%; }
@keyframes uk-bit { 0% { opacity:1; transform:translate(-50%,-50%) rotate(0) scale(.5); } 65% { opacity:1; } 100% { opacity:0; transform:translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 22px)) rotate(var(--r)) scale(1); } }
/* Setup finished. */
.built { text-align:center; padding:40px 6px 0; max-width:520px; margin:0 auto; }
.built-check { width:72px; height:72px; margin:0 auto 18px; animation:uk-pop .5s cubic-bezier(.3,1.5,.5,1) both; box-shadow:0 14px 30px -12px rgba(47,162,107,.8); }
.built h1 { margin-bottom:22px; }
.built-stats { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin-bottom:22px; }
.built-stats div { background:var(--card); border-radius:var(--r); padding:16px 6px; box-shadow:var(--shadow); }
.built-stats b { display:block; font-weight:800; font-size:38px; line-height:1; }
.built-stats div:nth-child(1) b { color:var(--violet); }
.built-stats div:nth-child(2) b { color:var(--teal); }
.built-stats div:nth-child(3) b { color:var(--amber); }
.built-stats span { font-size:13px; font-weight:700; color:var(--slate); }
.built-things { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:18px; }
.built-things > span { display:inline-flex; align-items:center; gap:8px; padding:4px 12px 4px 4px; background:var(--card); border-radius:999px; box-shadow:var(--shadow); font-size:13.5px; font-weight:700; animation:uk-pop .4s cubic-bezier(.3,1.5,.5,1) both; animation-delay:calc(.35s + var(--i) * 60ms); }
.built-things .ico-tile { width:34px; height:34px; border-radius:50%; }
.built .lede { margin:0 auto 22px; max-width:30em; }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration:.01ms !important; animation-duration:.01ms !important; animation-delay:0s !important; }
}
@media (min-width:768px) { h1 { font-size:36px; } }

/* Amazon disclosure under buy lists (only in a browser; see affNote in app.js). */
.aff-note { margin:8px 4px 0; }

/* Upkeep Pro (pro.js): the tag on anything locked, the one-line note on a
   locked screen, and the paywall's list. Violet, the Jobs color, reads as
   "more" without looking like a warning. */
.pro-tag { display:inline-flex; align-items:center; height:20px; padding:0 8px; margin-left:6px; border-radius:999px; background:#ECE6FF; color:#5B3FD6; font:800 11.5px/1 var(--font); letter-spacing:.04em; text-transform:uppercase; vertical-align:middle; flex:none; }
.btn-primary .pro-tag { background:rgba(255,255,255,.18); color:#fff; }
.pro-note { display:flex; align-items:flex-start; gap:8px; width:100%; margin:8px 0 14px; padding:10px 12px; border:1px solid #E2D9FF; border-radius:var(--r-sm); background:#F7F4FF; color:var(--ink-2); font:500 14px/1.4 var(--font); text-align:left; cursor:pointer; }
.pro-note .pro-tag { margin:0; }
.pro-list { list-style:none; margin:0 0 12px; padding:0; }
.pro-list li { display:flex; align-items:flex-start; gap:10px; padding:6px 0; font-weight:600; }
.pro-list li svg { flex:none; color:var(--violet); margin-top:2px; }

/* ---- Native feel (web half, 2026-11-15; .Process/NATIVE-FEEL.md Tier 1) ----
   Chrome and controls don't select or pop the iOS callout on a long-press and
   skip the double-tap zoom wait; fields, specs, notes and paint codes (plain
   content people copy) stay selectable. */
html { -webkit-text-size-adjust:100%; }
body { -webkit-tap-highlight-color:transparent; }
button, a, [role=button], .chip, .li, .tile, .room-card, .swatch-tile, .swatch-card, .season, .day, .cal-cell, .seg-btn {
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:manipulation;
}
input, textarea, select, [contenteditable] { -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }
img { -webkit-user-drag:none; }
/* Press states: tabs, chips and small controls give at once; rows and cards
   in a scrolling list wait ~100ms so a finger landing to scroll doesn't
   flash them, and release instantly. */
.nav button:active, .chip:active, .seg-btn:active, .tile-x:active, .add-toggle:active, .day:active, .cal-cell:active, .fab:active { transform:scale(.97); transition:transform .08s; }
.li:active, .room-card:active, .swatch-tile:active, .swatch-card:active, .season:active, .tile:not([disabled]):active { transform:scale(.99); transition:transform .12s ease .1s, background-color .12s ease .1s; }
.li:active { background-color:rgba(16,24,40,.04); }
@media (prefers-reduced-motion:reduce) {
  .nav button:active, .chip:active, .seg-btn:active, .tile-x:active, .add-toggle:active, .day:active, .cal-cell:active, .fab:active,
  .li:active, .room-card:active, .swatch-tile:active, .swatch-card:active, .season:active, .tile:not([disabled]):active { transform:none; }
}
/* The chip row scrolls sideways on its own and doesn't chain the page. */
.chips { overscroll-behavior-x:contain; }
