/* Lelit Anita maintenance PWA — Monolith redesign. */

:root {
  color-scheme: light dark;

  --bg:        #efebe5;
  --bg-elev:   #fffdfa;
  --bg-sunk:   #e7e1d9;
  --line:      rgba(25,19,16,.12);
  --text:      #191310;
  --text-dim:  #6d6058;
  --espresso:  #1f1611;
  --accent:    #8a4b23;
  --accent-ink:#fffdfa;

  --green:     #2f7d4f;
  --green-bg:  #e4f2e8;
  --amber:     #a9741a;
  --amber-bg:  #faeed5;
  --red:       #b3352b;
  --red-bg:    #fae3e0;
  --grey:      #6d6058;
  --grey-bg:   #eae4dc;

  --r:         18px;
  --r-sm:      12px;
  --shadow:    0 1px 2px rgba(43,29,22,.07), 0 6px 20px rgba(43,29,22,.06);
  --tap:       48px;
  --max:       760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0b0a09;
    --bg-elev:   #0f0d0c;
    --bg-sunk:   #191512;
    --line:      rgba(245,241,236,.12);
    --text:      #f5f1ec;
    --text-dim:  #a49990;
    --accent:    #c98b5e;
    --accent-ink:#1a120c;

    --green:     #7fbf95; --green-bg: #16301f;
    --amber:     #d9a441; --amber-bg: #33260e;
    --red:       #e0715f; --red-bg:   #3a1815;
    --grey:      #a49990; --grey-bg:  #241c16;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p  { margin: 0 0 .85em; }
a  { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* ---- header --------------------------------------------------------------- */

header.app {
  background: var(--espresso);
  color: #f3e9df;
  padding: calc(14px + env(safe-area-inset-top)) 0 14px;
  position: sticky; top: 0; z-index: 20;
}
header.app .row { display: flex; align-items: center; gap: 12px; }
header.app .brand { flex: 1; min-width: 0; }
header.app .brand strong {
  display: block; font-size: 1.02rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
header.app .brand span { display: block; font-size: .76rem; color: #bfa88f; }
header.app .iconbtn {
  min-width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.09); border: 0; color: #f3e9df;
  font-size: 1.05rem; cursor: pointer; display: grid; place-items: center;
}
header.app .iconbtn:active { background: rgba(255,255,255,.2); }

/* ---- generic surfaces ------------------------------------------------------ */

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
  margin: 0 0 12px;
}
.card.flush { padding: 0; overflow: hidden; }

.section { margin: 22px 0 10px; }
.section h2 { margin: 0; }
.section .sub { color: var(--text-dim); font-size: .85rem; }

.muted { color: var(--text-dim); }
.small { font-size: .84rem; }
.mono  { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---- status --------------------------------------------------------------- */

.status-hero { padding: 20px 16px; border-radius: var(--r); margin-bottom: 14px; border: 1px solid transparent; }
.status-hero h1 { margin: 0 0 4px; font-size: 1.45rem; }
.status-hero p  { margin: 0; font-size: .9rem; opacity: .85; }

.lv-green { background: var(--green-bg); color: var(--green); border-color: color-mix(in srgb, var(--green) 25%, transparent); }
.lv-amber { background: var(--amber-bg); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.lv-red   { background: var(--red-bg);   color: var(--red);   border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.lv-grey  { background: var(--grey-bg);  color: var(--grey);  border-color: var(--line); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- task cards ------------------------------------------------------------ */

.task {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 16px;
  border: 0; border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  text-align: left; width: 100%;
  color: inherit; font: inherit; cursor: pointer;
  /* These rows are anchors, so the default link underline would run through
     the task name, its status line and the pill. */
  text-decoration: none;
}
.task > span { min-width: 0; }
.task .name, .task .meta { display: block; }
.task:last-child { border-bottom: 0; }
.task:active { background: var(--bg-sunk); }
.task .ico { font-size: 1.5rem; line-height: 1; text-align: center; }
.task .name { font-weight: 650; }
.task .meta { font-size: .82rem; color: var(--text-dim); }

/* ---- buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.ghost   { background: transparent; }
.btn.danger  { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn.block   { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid2 .btn { flex-direction: column; gap: 4px; min-height: 84px; padding: 12px 8px; text-align: center; }
.grid2 .btn .ico { font-size: 1.4rem; }
.grid2 .btn .lbl { font-size: .84rem; font-weight: 600; }

/* ---- forms ----------------------------------------------------------------- */

label.field { display: block; margin: 0 0 14px; }
label.field > span { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 5px; }
label.field .hint { font-weight: 400; color: var(--text-dim); }

input[type=password], input[type=text], input[type=number], input[type=date], input[type=datetime-local],
select, textarea {
  width: 100%; min-height: var(--tap);
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-sunk); color: var(--text);
  font: inherit; font-size:16px; min-width:0;
}
textarea { min-height: 88px; resize: vertical; }

/* ---- guide content --------------------------------------------------------- */

.blocks ul, .blocks ol { margin: 0 0 .9em; padding-left: 1.3em; }
.blocks li { margin: 0 0 .35em; }

.note, .warn {
  border-radius: var(--r-sm); padding: 11px 13px; margin: 0 0 12px;
  font-size: .9rem; border-left: 4px solid;
}
.note { background: var(--bg-sunk); border-color: var(--line); color: var(--text-dim); }
.warn { background: var(--red-bg); border-color: var(--red); color: var(--red); font-weight: 550; }

.kv { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: .9rem; }
.kv td { padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv td:first-child { color: var(--text-dim); width: 45%; }

.src {
  display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .07em;
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px;
  border: 1px solid var(--line); color: var(--text-dim); background: var(--bg-sunk);
  text-transform: uppercase;
}
.src[data-s="LELIT"]   { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.src[data-s="CAFETTO"] { color: var(--green);  border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.src[data-s="TBD"]     { color: var(--amber);  border-color: color-mix(in srgb, var(--amber) 45%, transparent); }

details.acc { border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 10px; background: var(--bg-elev); }
details.acc > summary {
  padding: 14px 16px; cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  min-height: var(--tap);
}
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "\2304"; color: var(--text-dim); font-size: 1.2rem; }
details.acc[open] > summary::after { content: "\2303"; }
details.acc > .body { padding: 0 16px 14px; }

/* ---- guided procedure ------------------------------------------------------ */

.prog { height: 6px; background: var(--bg-sunk); border-radius: 999px; overflow: hidden; margin: 0 0 6px; }
.prog > i { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }

.step {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step .box {
  width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--line);
  background: transparent; cursor: pointer; display: grid; place-items: center;
  color: transparent; font-size: 1rem; font-weight: 800; padding: 0;
}
.step.done .box { background: var(--green); border-color: var(--green); color: #fff; }
.step.done .title { text-decoration: line-through; opacity: .55; }
.step .title { font-weight: 650; margin-bottom: 3px; }
.step .detail { font-size: .92rem; color: var(--text-dim); }

.timer {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
  background: var(--bg-sunk); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 12px;
}
.timer .t { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 84px; }
.timer.running .t { color: var(--accent); }

.phase-head {
  font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-dim); margin: 20px 0 2px;
}

/* ---- history --------------------------------------------------------------- */

.hist { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist .what { font-weight: 620; }
.hist .when { font-size: .8rem; color: var(--text-dim); white-space: nowrap; text-align: right; }
.hist .note { grid-column: 1 / -1; font-size: .86rem; color: var(--text-dim); }

/* ---- bottom nav ------------------------------------------------------------ */

nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
nav.tabs a {
  display: grid; place-items: center; gap: 2px;
  padding: 9px 4px 8px; text-decoration: none;
  color: var(--text-dim); font-size: .68rem; font-weight: 600;
  min-height: 58px;
}
nav.tabs a .ico { font-size: 1.25rem; line-height: 1; }
nav.tabs a[aria-current="page"] { color: var(--accent); }

/* ---- misc ------------------------------------------------------------------ */

.back {
  background: none; border: 0; color: var(--accent); font: inherit; font-weight: 600;
  padding: 10px 0; cursor: pointer; min-height: var(--tap);
  display: inline-flex; align-items: center; gap: 6px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  background: var(--espresso); color: #f6ece2;
  padding: 12px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.empty { text-align: center; color: var(--text-dim); padding: 40px 20px; }
.empty .big { font-size: 2.4rem; display: block; margin-bottom: 8px; }

@media (min-width: 620px) {
  .grid2 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Monolith composition and typography. Shared controls above retain their behavior. */
:root { --mono: 'Geist Mono', ui-monospace, monospace; --primary: #1f1611; --hero-ground: radial-gradient(110% 76% at 50% 74%,#fff,#f4f0ea 48%,#e7e1d9); --machine-shadow: rgba(60,44,34,.28); }
@media (prefers-color-scheme: dark) {
  :root { --primary: linear-gradient(180deg,#d69a6a,#b0703f); --hero-ground: radial-gradient(115% 78% at 50% 76%,#2a211b,#14100e 42%,#0b0a09 78%); --machine-shadow: rgba(0,0,0,.65); }
}
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body { letter-spacing: -.012em; padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
h1 { font: 400 34px/1.1 'Instrument Serif',Georgia,serif; letter-spacing: -.02em; }
h2, h3 { font-weight: 500; }
.wrap { padding-inline: 24px; }
header.app { position: relative; background: transparent; color: var(--text); padding: calc(18px + env(safe-area-inset-top)) 0 18px; }
header.app .row { justify-content: space-between; min-height: 44px; }
header.app .brand { font: 400 29px/1 'Instrument Serif',Georgia,serif; color: var(--text); text-decoration: none; }
.brand em { color: var(--accent); }
.auth-chip { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; color: var(--text-dim); text-decoration: none; }
#sync-banner { margin-block: 8px 16px; position: relative; z-index: 2; }
.is-dashboard header.app { margin-bottom: -80px; }
.is-dashboard:has(#sync-banner:not([hidden])) header.app { margin-bottom: 0; }
.is-dashboard:has(#sync-banner[hidden]) header.app .brand { color: #f5f1ec; }
.is-dashboard:has(#sync-banner[hidden]) header.app .brand em { color: #c98b5e; }
.is-dashboard:has(#sync-banner[hidden]) .auth-chip { color: #c8beb4; border-color: rgba(245,241,236,.2); }
.machine-hero { position: relative; display: flex; align-items: flex-end; min-height: calc(520px + env(safe-area-inset-top)); padding: 270px 26px 28px; max-width: var(--max); margin-inline: auto; overflow: hidden; background: #0b0a09; --green: #7fbf95; --amber: #d9a441; --red: #e0715f; --grey: #b5a99e; }
.machine-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.machine-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,10,9,.72) 0%,rgba(11,10,9,.12) 34%,rgba(11,10,9,.55) 68%,#0b0a09 100%); }
.dashboard-content { position: relative; padding-top: 8px; }
.status-hero { position: relative; z-index: 1; width: 100%; padding: 0; margin: 0; background: transparent; border: 0; border-radius: 0; animation: rise .7s ease both; }
.status-hero h1 { font: 300 46px/1 'Geist',sans-serif; letter-spacing: -.04em; color: #f5f1ec; max-width: 340px; margin: 0; }
.status-hero p { color: #bdb5ad; font-size: 13px; margin: 14px 0 0; opacity: 1; }
.hero-actions { margin-top: 20px; }
.hero-actions .btn { flex: 1 1 0; padding: 15px 10px; border-radius: 14px; }
.hero-actions .btn.primary { background: linear-gradient(180deg,#d69a6a,#b0703f); color: #1a120c; }
.hero-actions .btn.ghost { background: rgba(11,10,9,.35); color: #f5f1ec; border-color: rgba(245,241,236,.22); backdrop-filter: blur(10px); }
.attention { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; font: 500 10px/1.4 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.attention .dot { width: 7px; height: 7px; animation: breathe 2.4s ease-in-out infinite; }
.pill { background: none; padding: 0; font: 500 10px/1.5 var(--mono); letter-spacing: .1em; }
.status-list { border-top: 1px solid var(--line); }
.task { grid-template-columns: 2px 1fr auto; gap: 14px; padding: 16px 0; background: transparent; }
.task:last-child { border-bottom: 1px solid var(--line); }
.status-rule { align-self: stretch; background: currentColor; border-radius: 2px; }
.task .name { font-size: 15px; font-weight: 500; line-height: 1.3; }
.task .meta { margin-top: 4px; font-size: 12px; line-height: 1.5; }
.card { padding: 20px; margin-bottom: 14px; box-shadow: none; overflow-wrap: anywhere; }
.section { margin: 28px 0 12px; }
.section h2, .eyebrow, .phase-head { font: 500 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .18em; color: var(--text-dim); }
.section .sub { font-size: 12px; margin-top: 4px; }
.small { font-size: 13px; } .mono { font-family: var(--mono); }
.btn { padding: 12px 18px; font-size: 13px; font-weight: 500; text-align: center; }
.btn.primary { background: var(--primary); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset; font-weight: 600; }
.quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.quick-actions .btn { border: 0; border-radius: 0; min-height: 52px; align-items: flex-start; justify-content: center; padding: 17px 14px; text-align: left; }
.quick-actions .btn .lbl { font-size: 12px; font-weight: 500; }
.filter-metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.display-number { font: 300 44px/1 'Geist',sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.display-number > span { font: 400 13px/1.3 var(--mono); color: var(--text-dim); margin-left: 7px; letter-spacing: 0; }
.filter-dial { width: 236px; height: 236px; max-width: 100%; aspect-ratio: 1; margin: 8px auto 28px; border-radius: 50%; padding: 5px; background: conic-gradient(var(--accent) 0 var(--used),var(--line) var(--used) 1turn); }
.dial-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--bg-elev); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.dial-inner .display-number { font-size: 62px; }
label.field { margin-bottom: 18px; min-width: 0; }
label.field > span { font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.note, .warn { padding: 13px 15px; margin-bottom: 14px; font-size: 13px; border-left-width: 2px; overflow-wrap: anywhere; }
.kv { font-size: 13px; overflow-wrap: anywhere; }
.kv td { padding: 12px 4px; }
.src { white-space: nowrap; font: 500 9px/1.5 var(--mono); letter-spacing: .1em; padding: 2px 5px; background: none; }
details.acc > summary { font-weight: 500; }
details.acc > summary::after { content: 'Read'; color: var(--accent); font: 400 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
details.acc[open] > summary::after { content: 'Close'; }
.photo-header { position: relative; height: 260px; border-radius: var(--r); overflow: hidden; margin: 0 0 22px; background: #191310; color: #f5f1ec; }
.photo-header img { width: 100%; height: 100%; object-fit: cover; }
.photo-header::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,10,9,.05),rgba(11,10,9,.2) 30%,rgba(11,10,9,.94)); }
.photo-caption { position: absolute; z-index: 1; bottom: 24px; left: 24px; right: 24px; }
.photo-caption h1 { margin: 0; }
.photo-caption p { font-size: 13px; color: #ded5cc; margin: 8px 0 0; }
.guide-list { border-top: 1px solid var(--line); margin-top: 24px; }
.guide-row { grid-template-columns: 28px 1fr; }
.chapter-number { font: 400 12px var(--mono); color: var(--accent); align-self: start; padding-top: 2px; }
.prog { position: relative; height: 3px; background: var(--line); margin-bottom: 16px; }
.prog > i { background: linear-gradient(90deg,#8a5a36,#c98b5e); transform-origin: left; animation: fillbar 1.1s cubic-bezier(.22,1,.36,1) both; }
.sheen::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 26%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent); animation: sheen 3.8s ease-in-out infinite; }
.step { grid-template-columns: 28px minmax(0,1fr); padding: 16px 0; }
.step .box { position: relative; width: 26px; height: 26px; border-radius: 50%; border-width: 1px; color: var(--text-dim); font: 400 10px var(--mono); margin-top: 1px; }
.step .box::before { content: ''; position: absolute; inset: -9px; }
.step.done .box { color: var(--bg); }
.step.done .title { opacity: .42; }
.step .title { font-weight: 500; }
.step .detail { font-size: 13px; }
.timer { flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; border-radius: 16px; padding: 20px 12px; }
.timer .t { width: 100%; text-align: center; font: 300 clamp(42px,12vw,62px)/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.05em; margin-bottom: 8px; }
.timer .btn { padding-inline: 12px; }
.phase-head { margin: 24px 0 10px; }
.hist { grid-template-columns: minmax(0,1fr) auto; padding: 16px 20px; }
.hist .what { font-weight: 500; } .hist .when { white-space: normal; }
nav.tabs { max-width: var(--max); margin-inline: auto; background: color-mix(in srgb,var(--bg-elev) 94%,transparent); backdrop-filter: blur(16px); }
nav.tabs a { padding: 16px 4px 20px; min-height: 62px; font: 500 10px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.back { margin-bottom: 8px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; text-decoration: none; }
.toast { background: var(--text); color: var(--bg); font-size: 13px; }
@media (hover: hover) { .task:hover, .quick-actions .btn:hover { background: var(--bg-sunk); } .btn:hover, .auth-chip:hover { border-color: var(--accent); } }
@media (min-width: 760px) {
  .wrap { padding-inline: 32px; }
  .machine-hero { min-height: 580px; padding-inline: 32px; border-radius: 0 0 28px 28px; }
  .status-hero h1 { font-size: 46px; max-width: none; }
  .photo-header { height: 320px; }
  nav.tabs { border-inline: 1px solid var(--line); border-radius: 18px 18px 0 0; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 18px; } .card { padding: 16px; } .task { gap: 10px; }
  .pill { font-size: 9px; letter-spacing: .04em; } .filter-metric { flex-wrap: wrap; }
  .hist { grid-template-columns: 1fr; } .hist .when { text-align: left; }
}
@keyframes breathe { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-7px); } }
@keyframes fillbar { from { transform: scaleX(0); } }
@keyframes sheen { 0% { transform: translateX(-140%); } 60%,100% { transform: translateX(420%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
