/* Vedetta app. Colours and the typeface come from /site/base.css (shared with the website).
   Shapes: buttons and tags are pills, fields are 10px, panels 14px, sheets 20px. Panels are flat (a hairline, no shadow);
   only things that float above the page (sheets, the toast) cast one. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--signal-tint); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 650; font-stretch: 105%; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line) !important; }
ul, ol { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14px;
  white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: var(--on-ink); }
.btn.danger { color: var(--alert); border-color: color-mix(in srgb, var(--alert) 40%, transparent); }
.btn.danger:hover { border-color: var(--alert); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--soft); border-color: transparent; }
.btn.small { min-height: 32px; padding: 0 13px; font-size: 13px; }
.btn.icon { width: 34px; min-height: 34px; padding: 0; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn[disabled] { opacity: .45; cursor: default; }
a.btn { text-decoration: none; color: var(--ink); }
a.btn.primary, a.btn.signal { color: var(--on-ink); }
a.btn.ghost { color: var(--muted); }

/* Status: the only place colour is used */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.s-working { color: var(--signal); }
.s-idle { color: var(--muted); }
.s-waiting, .s-blocked { color: var(--attention); }
.s-stalled, .s-limited { color: var(--alert); }
.s-paused, .s-not_connected { color: var(--muted); }
.s-paused::before { border-radius: 2px; }
.s-not_connected::before { background: transparent; border: 1.5px dashed currentColor; }
.s-working::before { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 45%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }


.usage { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.usage .bar { flex: 1; height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; min-width: 48px; }
.usage .bar > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.usage.low { color: var(--attention); }
.usage.low .bar > i { background: var(--attention); }
.usage.out { color: var(--alert); }
.usage.out .bar > i { background: var(--alert); }

.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); vertical-align: middle; line-height: 1.4; }
.tag.boss { background: var(--ink); color: var(--on-ink); }
.tag.backup { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag.as-you { background: var(--attention-tint); color: var(--attention); }
.tag.ok { background: var(--ok-tint); color: var(--ok); }
.tag.warn { background: var(--attention-tint); color: var(--attention); }
.tag.proj { border: 0; cursor: pointer; background: var(--soft); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; margin: 4px 0 6px; }
.tag.proj:hover { background: var(--line); }

.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--ink); font-weight: 700; font-stretch: 112%; font-size: 15px; }
.avatar.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, label.small { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=url], input[type=email], input[type=number], input[type=password], textarea, select {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink);
  transition: border-color .12s, box-shadow .12s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 12%, transparent); }
select { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
select[disabled] { opacity: .5; }
textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 16px; height: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; background: var(--surface); transition: border-color .12s; }
.choices label:hover { border-color: var(--ink); }
.choices input { margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--on-ink); }
.choices label:has(input[type=checkbox]:checked) input { accent-color: var(--on-ink); }
.choices input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label:has(input[type=radio]:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }

.copybox { position: relative; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.empty { padding: 36px 8px; text-align: center; color: var(--muted); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); font-weight: 500; }
.linkish:hover { text-decoration-color: currentColor; }
.chip { font: inherit; font-size: 12.5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 11px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ink); }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--soft); border-radius: 999px; }
.seg .btn { min-height: 30px; border: 0; }
.seg .btn.primary { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.seg .btn.ghost:hover { background: transparent; }

/* Sheet (dialog on desktop, bottom sheet on phone) */
.sheet-bg { position: fixed; inset: 0; background: var(--scrim); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .14s ease-out; }
.sheet { background: var(--raised); border-radius: 20px; width: min(580px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 26px 28px 24px; box-shadow: var(--shadow-pop); animation: rise .18s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet header h2 { font-size: 21px; font-weight: 700; font-stretch: 110%; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.sheet .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; align-items: center; }
/* A long sheet keeps its buttons in view: they stay at the bottom edge while the rest scrolls under them. */
.sheet .actions.stick { position: sticky; bottom: -24px; margin: 22px -28px -24px; padding: 14px 28px 24px; background: var(--raised); border-top: 1px solid var(--line); z-index: 1; }
.sheet .waiting-agent { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin: 0 0 16px; }
.sheet ol { padding-left: 20px; margin: 8px 0 14px; }
.sheet ol li { margin-bottom: 6px; }
.consent { padding-left: 18px; color: var(--muted); }
.consent li { margin-bottom: 6px; }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: 14px; font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 80; max-width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow-pop); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.has-act.show { pointer-events: auto; }
#toast .toast-btn { margin-left: 10px; background: var(--on-ink); color: var(--ink); border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* ---------- Desktop ---------- */
.d-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr) 348px; min-height: 100vh; }
.d-shell.no-feed { grid-template-columns: 232px minmax(0, 1fr); }
.d-rail { padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow: hidden; }
/* Brand and Connect stay at the top, What's new, feedback and Settings at the bottom; on a short screen only the sections between them scroll (3 Dec 2026). */
.d-rail-mid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; padding: 0 4px 12px; }
.d-rail-foot { flex: none; }
.d-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 22px; font-weight: 700; font-stretch: 116%; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.d-nav { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14.5px; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; transition: background-color .12s, color .12s; }
.d-nav svg { width: 18px; height: 18px; flex: none; }
.d-nav .lbl { flex: 1; }
.d-nav:hover { color: var(--ink); background: var(--soft); }
.d-nav.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 650; }
.d-nav .count { font-size: 11.5px; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--attention); color: var(--on-ink); text-align: center; font-variant-numeric: tabular-nums; }
.d-nav .count.ok { background: var(--ok); }
.d-nav-gap { height: 14px; flex: none; }
.d-rail .spacer { flex: 1; min-height: 16px; }
.d-rail > .btn.primary { margin: 0 2px 20px; min-height: 42px; }
/* The rail's foot: Send feedback, then Settings beside the theme switch, under one hairline. */
.d-rail-foot { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 10px 2px 0 0; border-top: 1px solid var(--line); }

.d-main { padding: 34px 40px 64px; min-width: 0; max-width: 1240px; }
.d-shell.no-feed .d-main { margin: 0 auto; width: 100%; }
.d-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.d-top .sub { color: var(--muted); margin-top: 6px; max-width: 72ch; }
.d-section { margin-bottom: 36px; }
.d-section:not(:has(*)) { display: none; }
.d-section > .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 32px; }

/* Overview: the answer first */
.d-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.d-hero h1 { font-size: clamp(34px, 3.4vw, 46px); font-stretch: 118%; font-weight: 750; letter-spacing: -0.03em; line-height: 1; }
.d-hero h1.calm { color: var(--ink); }
.d-hero .sub { color: var(--muted); margin-top: 10px; }
.tally { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 14px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quiet-link { color: var(--muted); font-size: 14px; text-underline-offset: 3px; }
.quiet-link:hover { color: var(--ink); }
.d-hero > .btn { flex: none; }

.d-needs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
/* Cards on the Overview ("Get the most out of Vedetta", setup) keep clear of the Needs you list above them. */
.setup-card { margin: 0 0 18px; }
.d-needs + .setup-card, .d-needs + .res-line { margin-top: 32px; }
.d-need { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.d-need:first-child { border-top: 0; }
.glyph { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--attention-tint); color: var(--attention); font-weight: 750; font-size: 15px; align-self: start; }
.urgent > .glyph { background: var(--alert-tint); color: var(--alert); }
.info > .glyph { background: var(--signal-tint); color: var(--signal); }
.d-need .who { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.d-need .what { font-weight: 650; font-size: 16px; line-height: 1.3; }
.d-need .ctx { font-size: 14px; color: var(--muted); margin-top: 3px; }
.d-need .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 380px; }
.d-clear { background: transparent; border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 22px; color: var(--muted); }
.d-clear.calm { display: flex; align-items: center; gap: 12px; border-style: solid; border-color: var(--line); background: var(--surface); }
.d-clear.calm .glyph { background: var(--ok-tint); color: var(--ok); }

/* Agent cards */
.a-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.a-card { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; cursor: pointer; transition: border-color .12s; min-width: 0; }
.a-card:hover { border-color: var(--line-strong); }
.a-card .top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.a-card .id { flex: 1; min-width: 0; }
.a-card .name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.a-card .kind { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-card .now { flex: 1; }
.a-card .task { font-size: 14.5px; margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 42px; }
.a-card .meta { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.a-card .meta > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; align-items: center; }
.a-card .meta dt { color: var(--muted); }
.a-card .meta dd { margin: 0; min-width: 0; color: var(--ink); }
.a-card .meta .usage { color: var(--ink); }
.a-card .meta .usage.muted { color: var(--muted); }

.d-feed { border-left: 1px solid var(--line); padding: 34px 24px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.d-feed h2 { margin-bottom: 14px; }
.ev { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); margin-top: 7px; }
.ev.ev-action .dot { background: var(--ink); }
.ev.ev-owner .dot { background: var(--signal); }
.ev .meta { font-size: 12.5px; color: var(--muted); }
.ev .sum { font-size: 14px; overflow-wrap: anywhere; }
.ev .tag { font-size: 11px; padding: 1px 7px; }

.d-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.d-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.d-table td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; font-size: 14px; }
.d-table tbody tr:first-child td { border-top: 0; }
.d-table td > .status, .d-table td > .btn { min-height: 42px; }
.d-table td > strong:first-child { display: inline-block; margin-top: 1px; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.d-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
/* "Get the most out of Vedetta": the steps after the first agent is connected */
.start-card .sc-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.start-card h3 { font-size: 16px; }
.start-card .sc-head p { margin-top: 2px; }
.sc-list { list-style: none; margin: 14px 0 0; padding: 0; }
.sc-list > li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sc-list > li:last-child { padding-bottom: 0; }
.sc-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-strong); font-variant-numeric: tabular-nums; }
.sc-list > li.sc-next .sc-n { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.sc-list > li.done .sc-n { background: var(--ok-tint); color: var(--ok); box-shadow: none; }
.sc-list > li.done b { color: var(--muted); font-weight: 550; }
.sc-t { min-width: 0; align-self: center; }
.sc-t b { font-weight: 650; }
.sc-t p { margin-top: 3px; max-width: 68ch; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sc-acts:empty { display: none; }
.sc-list > li:not(.sc-next) .sc-t p { display: none; }
.d-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.d-day { font-size: 13px; font-weight: 650; color: var(--muted); margin: 20px 0 4px; }
.d-day:first-child { margin-top: 0; }
.d-note { border-top: 1px solid var(--line); padding: 16px 0; }
.d-note:first-child { border-top: 0; padding-top: 0; }
.d-note:last-child { padding-bottom: 0; }
.d-note .body { white-space: pre-wrap; font-size: 14px; margin-top: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.d-note .tag { font-weight: 600; margin-left: 4px; }

.d-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.d-detail .d-section { margin-bottom: 20px; }
.kv { display: grid; grid-template-columns: 124px 1fr; gap: 10px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }

/* ---------- Phone ---------- */
/* Built for the phone (23 Nov direction, rebuilt 26 Nov): thumb-first, one column, two buttons at most per card. */
.p-shell { min-height: 100vh; padding: calc(env(safe-area-inset-top) + 8px) 20px calc(env(safe-area-inset-bottom) + 112px); }
/* A solid strip under the clock and battery, so the page never scrolls up behind them. */
.ph-bar-top { position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--ground); z-index: 41; }
.p-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.p-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 15px 16px; border: 0; border-top: 1px solid var(--line); width: 100%; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.p-row:first-child { border-top: 0; }
.p-row .t { font-weight: 650; overflow-wrap: anywhere; }
.p-row .s { font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.p-row .go { font-weight: 650; }
.p-group { font-size: 13px; font-weight: 650; color: var(--muted); margin: 24px 2px 8px; }

.p-bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.p-bigbtns .btn { min-height: 52px; font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }

/* Connect sheet: check-in plans, optional details, big setup buttons */
.plans { display: grid; gap: 8px; }
.plan { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font-weight: 400; transition: border-color .12s; }
.plan:hover { border-color: var(--faint); }
.plan input { margin: 3px 0 0; flex: none; }
.plan input[type=number] { margin: 0; min-height: 36px; }
.plan:has(> input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
details.more { margin: 14px 0; border-top: 1px solid var(--line); padding-top: 12px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .12s; flex: none; margin-left: 2px; }
details.more[open] summary::before { transform: rotate(45deg); }
details.more[open] summary { margin-bottom: 12px; }
.sheet .setup-go { display: grid; gap: 8px; }
.sheet .setup-go .btn { min-height: 46px; width: 100%; }

/* Permissions and boss parts */
.grants { display: grid; gap: 6px; }
.grant { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 400; cursor: pointer; }
.grant:hover { border-color: var(--line-strong); }
.grant input { margin-top: 2px; }
.grant strong { font-weight: 600; }
.grant .tag { white-space: nowrap; }
.parts { margin-top: 10px; display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.part { font-size: 13.5px; }
.signin-wait { background: var(--signal-tint); color: var(--ink); padding: 12px 14px; border-radius: var(--r-md); }

.caps { padding: 2px 20px; }
.cap { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cap:first-child { border-top: 0; }
.cap strong { font-weight: 650; }
.cap-head { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 11px 0; }
.cap .verdict { font-size: 14px; color: var(--muted); }
.cap .verdict b { font-weight: 650; color: var(--ink); }
.cap .verdict.low b { color: var(--attention); }
.cap .verdict.out b { color: var(--alert); }
.cap .verdict.spare b { color: var(--ok); }
.cap-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

.custom-grant { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.custom-grant input[type=text] { flex: 1; }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }

/* Task board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(264px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.bcol { background: var(--sunk); border-radius: 16px; padding: 12px; min-height: 180px; border: 1.5px dashed transparent; transition: border-color .12s, background-color .12s; }
.bcol.drop-on { border-color: var(--signal); background: var(--signal-tint); }
.bhead { margin-bottom: 12px; padding: 2px 4px 0; }
.bhead > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700 !important; }
.bhead .status { font-weight: 600; font-size: 12px; }
.btools { display: flex; gap: 2px; margin: 8px 0 0 -10px; flex-wrap: wrap; }
.tcard { padding: 14px; margin-bottom: 8px; border-radius: 12px; }
.tcard[draggable=true] { cursor: grab; }
.tcard[draggable=true]:active { cursor: grabbing; }
.tcard.dragging { opacity: .4; }
.tcard.proposed { border: 1px dashed var(--attention); }
.bempty { padding: 26px 4px; text-align: center; }
.bdone summary { cursor: pointer; margin: 6px 4px 8px; }

.chat-only { display: none; }
.sheet:has(input[name=c-kind][data-chat]:checked) .chat-only { display: block; margin-bottom: 12px; }
.sheet:has(input[name=c-kind][data-chat]:checked) .agent-only { display: none; }

.fyi { margin-top: 16px; }
.fyi-h { font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 2px 8px; }
.fyi-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 11px 2px; }
.fyi-row .what { font-size: 14px; font-weight: 500; }
.fyi-row .who { font-size: 12.5px; color: var(--muted); }
.fyi-row .acts { display: flex; gap: 6px; flex-shrink: 0; }
.fyi-row .acts .btn { min-height: 30px; padding: 4px 12px; font-size: 13px; }

.pitch { margin: 0 0 16px; padding-left: 18px; color: var(--muted); }
.pitch li { margin-bottom: 4px; }

.result { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.result .btn { margin: 6px 0 0 -10px; }
.check-state { margin-top: 8px; color: var(--muted); }

.boss-pick { margin-bottom: 16px; }
.boss-hint { display: none; color: var(--attention); margin-top: 4px; }
.sheet:has(#c-boss:checked):has(input[name=c-plan][value=saver]:checked) .boss-hint { display: block; }
.speed { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-weight: 400 !important; color: var(--ink); }
.speed input { margin-top: 1px; flex: none; }

/* Connect steps */
.guide { list-style: none; margin: 0 !important; padding: 0 !important; }
.guide > li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); opacity: .55; margin: 0 !important; }
.guide > li:first-child { border-top: 0; }
.guide > li.on, .guide > li.done { opacity: 1; }
.g-num { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--soft); color: var(--ink); }
.guide > li.on .g-num { background: var(--ink); color: var(--on-ink); }
.guide > li.done .g-num { background: var(--ok-tint); color: var(--ok); }
.g-body { flex: 1; min-width: 0; }
.g-body h3 { font-size: 15.5px; margin: 5px 0 6px; }
.g-body ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.g-body ul li { margin-bottom: 3px; }
.guide > li.on .g-body ul { color: var(--ink-2); }
.guide > li.done .g-body ul, .guide > li.done .g-body .btn, .guide > li.done .g-addr, .guide > li.done .copied-note { display: none; }
.g-addr { display: grid; gap: 4px; margin: 0 0 10px; }
.g-addr .copybox { padding: 8px 12px; user-select: all; }
.copied-note { margin: 10px 0 0; padding: 10px 12px; font-size: 13.5px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); }

/* Results */
.results .res-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; margin-bottom: 12px; }
.res-card .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.res-card .who::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.res-title { font: inherit; font-weight: 700; font-size: 17px; line-height: 1.3; background: none; border: 0; padding: 0; margin: 4px 0 6px; color: var(--ink); cursor: pointer; text-align: left; display: block; overflow-wrap: anywhere; }
.res-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.res-body { white-space: pre-wrap; font-size: 14.5px; overflow-wrap: anywhere; color: var(--ink-2); }
.res-body.clip { max-height: 150px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.res-card .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.res-full { white-space: pre-wrap; font-size: 14.5px; line-height: 1.5; background: var(--ground); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-top: 6px; max-height: 45vh; overflow: auto; overflow-wrap: anywhere; }
.next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

.res-line { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 16px; font: inherit; font-size: 14px; text-align: left; color: var(--ink); background: var(--ok-tint); border: 1px solid transparent; border-radius: var(--r-md); cursor: pointer; }
.res-line:hover { border-color: var(--ok); }
.res-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.res-line .txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-line .go { font-weight: 650; color: var(--ok); }
.res-old { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.res-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; padding: 12px 16px; font: inherit; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; color: var(--ink); }
.res-row:first-child { border-top: 0; }
.res-row:hover { background: var(--ground); }
.res-row .t { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.res-row .s { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.res-row .p { grid-column: 1 / -1; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Projects */
.pcards { display: grid; gap: 12px; }
.pcard { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; cursor: pointer; transition: border-color .12s; }
.pcard:hover { border-color: var(--ink); }
.pcard.fin { opacity: .65; }
.pcard .pn { font-weight: 700; font-size: 17px; }
.pcard .pg { font-size: 14px; color: var(--muted); margin: 4px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pbar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.pbar > i { display: block; height: 100%; background: var(--ok); border-radius: 3px; }
.pcard .pm { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* Settings */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-switch.labels button { width: auto; height: 32px; padding: 0 14px; display: inline-flex; gap: 7px; font-size: 13px; font-weight: 600; }

/* Sign in, create account */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-form { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 64px); min-height: 100vh; }
.auth-form .d-brand { padding: 0; text-decoration: none; }
.auth-box { width: min(420px, 100%); margin: auto; padding: 40px 0; }
.auth-box h1 { font-size: 34px; font-stretch: 116%; letter-spacing: -0.03em; margin-bottom: 8px; }
.auth-box .btn.wide { width: 100%; min-height: 46px; font-size: 15px; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.auth-foot a { color: var(--muted); margin-left: 14px; }
.auth-err { color: var(--alert); margin-bottom: 12px; font-weight: 500; }
.auth-side { background: var(--ink); color: var(--on-ink); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 36px; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.auth-side h2 { font-size: clamp(30px, 3.2vw, 46px); font-stretch: 118%; font-weight: 750; letter-spacing: -0.03em; line-height: 1.02; max-width: 14ch; }
.auth-side ul { list-style: none; padding: 0; display: grid; gap: 0; max-width: 460px; }
.auth-side li { padding: 14px 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 18%, transparent); display: grid; gap: 2px; }
.auth-side li b { font-weight: 650; }
.auth-side li span { opacity: .68; font-size: 14.5px; }

@media (max-width: 899px) {
  .sheet-bg { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; border-radius: 22px 22px 0 0; max-height: 90vh; padding: 22px 18px calc(env(safe-area-inset-bottom) + 20px); animation-name: slide; }
  @keyframes slide { from { transform: translateY(24px); opacity: .6; } }
  .sheet .actions .btn { flex: 1; min-height: 48px; white-space: normal; }
  .sheet .actions.stick { bottom: calc(-1 * (env(safe-area-inset-bottom) + 20px)); margin: 22px -18px calc(-1 * (env(safe-area-inset-bottom) + 20px)); padding: 12px 18px calc(env(safe-area-inset-bottom) + 20px); }
  #toast { bottom: calc(env(safe-area-inset-bottom) + 92px); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .d-two, .d-detail { grid-template-columns: 1fr; }
  .d-panel { border-radius: var(--r-lg); }
  .fyi-row { flex-direction: column; align-items: stretch; }
  .fyi-row .acts { justify-content: flex-start; }
  .d-top { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 24px; }
}
@media (max-width: 1240px) and (min-width: 900px) {
  .d-shell { grid-template-columns: 212px minmax(0, 1fr); }
  .d-feed { display: none; }
  .d-main { padding: 30px 28px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .s-working::before, .sheet, .sheet-bg, .p-shell { animation: none; }
  #toast, .btn, .d-nav, .p-tab-ind, .p-tab, .p-tab svg { transition: none; }
}

/* A new account's first screen */
.d-start { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); max-width: 760px; }
.d-start h2 { font-size: 24px; font-stretch: 112%; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.d-start ol { list-style: none; padding: 0; margin: 24px 0 28px; counter-reset: st; }
.d-start li { counter-increment: st; display: grid; grid-template-columns: 30px 1fr; gap: 2px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.d-start li::before { content: counter(st); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 700; font-size: 14px; }
.d-start li b { font-weight: 650; }
.d-start li span { color: var(--muted); font-size: 14px; }
.d-start .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* Library: rows and groups hidden by its search stay hidden (rows are grids). */
.lib-row[hidden], .lib-group[hidden], #lib-none[hidden] { display: none; }
#lib-search { width: 100%; margin-bottom: 4px; }
.lib-group .p-group { margin-top: 22px; }

/* Needs you: the agent's words are cut to two lines until See more. */
.ctx.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Phone screens ---------- */
.ph { -webkit-tap-highlight-color: transparent; }
.ph .rs, .sheet .rs { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph .rs.wrap, .sheet .rs.wrap { white-space: normal; overflow: visible; margin: 0; line-height: 1.45; }
.ph .rs.faint { color: var(--faint); }
.ph-top { min-height: 48px; display: flex; align-items: center; justify-content: space-between; }
.ph-brand { display: flex; gap: 9px; align-items: center; font-weight: 700; font-stretch: 116%; font-size: 18px; letter-spacing: -0.015em; }
.ph-brand .mark { width: 24px; height: 24px; }
.ph-me { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-stretch: 115%; font-size: 14px; cursor: pointer; margin-right: -2px; }
.ph-h1 { font-size: 32px; font-weight: 760; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1.04; margin: 4px 0 6px; }
.ph-h2 { font-size: 25px; font-weight: 740; font-stretch: 116%; letter-spacing: -0.025em; line-height: 1.12; margin: 0; overflow-wrap: anywhere; }
.ph-sub { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.ph-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; font-weight: 650; color: var(--muted); margin: 26px 2px 9px; }
.ph-label > span { font-weight: 500; color: var(--faint); }
.ph-link { border: 0; background: none; padding: 6px 0; margin: -6px 0; font: inherit; font-weight: 650; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.ph-link svg { width: 14px; height: 14px; }
.ph-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ph-pad { padding: 16px; }
.ph-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 14px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; text-decoration: none; transition: background-color .12s; }
.ph-row:first-child { border-top: 0; }
.ph-row:active:not(.static) { background: var(--soft); }
.ph-row.static { cursor: default; }
.ph-row.tall { align-items: flex-start; padding: 14px; }
.ph-row.set { min-height: 54px; }
.ph-row .grow, .ph-spread .grow { flex: 1; min-width: 0; display: block; }
.ph-row .rt, .sheet .rt { display: block; font-weight: 620; font-size: 16px; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.ph-row .rt.sm, .sheet .rt.sm { font-size: 15.5px; font-weight: 600; }
.ph-chev { width: 16px; height: 16px; color: var(--faint); flex: none; }
.ph-val { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.ph-av { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; font-weight: 720; font-stretch: 118%; flex: none; }
.ph-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 620; white-space: nowrap; flex: none; }
.ph-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.ph-st.w, .ph-dot.w { color: var(--signal); } .ph-st.a, .ph-dot.a { color: var(--attention); } .ph-st.r, .ph-dot.r { color: var(--alert); } .ph-st.k, .ph-dot.k { color: var(--ok); } .ph-st.q, .ph-dot.q { color: var(--muted); }
.ph-st.w .ph-dot { animation: beat 2.4s ease-in-out infinite; }
.ph-tag { font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); vertical-align: 2px; margin-left: 2px; letter-spacing: 0; }
.ph-spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-spread.end { align-items: flex-end; }
.ph-bar { display: block; height: 5px; border-radius: 9px; background: var(--soft); overflow: hidden; margin-top: 10px; }
.ph-bar i { display: block; height: 100%; border-radius: 9px; background: var(--ink-2); }
.ph-wide { width: 100%; min-height: 48px; font-size: 15px; }
.ph-big { min-height: 52px; font-size: 16px; }
.ph-pill { min-height: 38px; font-size: 14px; margin-bottom: 8px; }
.ph .btn, .sheet .btn { min-height: 46px; font-size: 15px; padding: 0 18px; }
.ph .btn.small, .sheet .btn.small { min-height: 36px; font-size: 13.5px; padding: 0 14px; }
.ph .btn svg, .sheet .btn svg { width: 17px; height: 17px; }
/* Now: the one bold panel says what needs you; tap it for the list. */
.ph-hero { display: block; width: 100%; text-align: left; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 18px; padding: 18px 18px 6px; margin-top: 6px; cursor: pointer; font: inherit; }
.ph-hero .big { display: flex; justify-content: space-between; align-items: center; font-size: 30px; font-weight: 760; font-stretch: 120%; letter-spacing: -0.03em; line-height: 1; }
.ph-hero .big .ph-chev { color: currentColor; opacity: .6; width: 22px; height: 22px; }
.ph-hero .hl { display: block; font-size: 13.5px; opacity: .68; margin: 7px 0 10px; }
.ph-hero .it { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--on-ink) 16%, transparent); font-size: 14.5px; }
.ph-hero .it .x { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-hero .it b { font-weight: 640; }
.ph-hero .it.more { opacity: .7; }
.ph-hero .ph-dot.a { color: color-mix(in srgb, var(--attention) 70%, var(--on-ink)); }
.ph-hero .ph-dot.r { color: color-mix(in srgb, var(--alert) 75%, var(--on-ink)); }
:root[data-theme=dark] .ph-hero { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
:root[data-theme=dark] .ph-hero .it { border-top-color: var(--line-strong); }
:root[data-theme=dark] .ph-hero .ph-dot.a { color: var(--attention); } :root[data-theme=dark] .ph-hero .ph-dot.r { color: var(--alert); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .ph-hero { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
  :root:not([data-theme=light]) .ph-hero .it { border-top-color: var(--line-strong); }
  :root:not([data-theme=light]) .ph-hero .ph-dot.a { color: var(--attention); } :root:not([data-theme=light]) .ph-hero .ph-dot.r { color: var(--alert); }
}
.ph-calm { padding: 10px 0 2px; }
.ph .setup-card { margin: 14px 0 0 !important; border-radius: 14px; }
.ph .sc-acts .btn, .ph .sc-acts .btn.small { min-height: 46px; font-size: 15px; padding: 0 18px; }
/* Needs you */
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 14px; margin-bottom: 12px; }
.ph-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); font-weight: 550; }
.ph-meta .ph-st { gap: 0; }
.ph-ct { font-size: 18px; font-weight: 680; letter-spacing: -0.015em; line-height: 1.26; margin: 8px 0 5px; overflow-wrap: anywhere; }
.ph-card .ctx { font-size: 14.5px; color: var(--muted); line-height: 1.42; }
.ph-acts { display: flex; gap: 8px; margin-top: 14px; }
.ph-acts .btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ph-acts .btn.ph-more { flex: 0 0 46px; width: 46px; padding: 0; }
.ph-acts .btn { padding: 0 14px; }
.ph-acts.stack { display: grid; grid-template-columns: minmax(0, 1fr) 46px; }
.ph-acts.stack > .btn:first-child { grid-column: 1 / -1; }
.ph-acts.stack.nomore > .btn:nth-child(2) { grid-column: 1 / -1; }
.ph .btn .lbl, .sheet .btn .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-me svg { width: 20px; height: 20px; display: block; margin: auto; }
.ph-note { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 10px; text-align: center; }
.ph-note svg { width: 13px; height: 13px; flex: none; }
.ph-mini { flex: none; }
/* Task screen */
.ph-nav { height: 48px; display: flex; align-items: center; margin: 0 -10px; }
.ph-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.ph-back svg { width: 22px; height: 22px; }
.ph-steps { list-style: none; margin: 0; padding: 0; }
.ph-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: start; padding: 0 0 14px; position: relative; font-size: 14.5px; }
.ph-steps .s { width: 14px; height: 14px; border-radius: 50%; margin: 3px 4px; border: 2px solid var(--line-strong); background: var(--ground); position: relative; z-index: 1; }
.ph-steps li.done .s { background: var(--ink); border-color: var(--ink); }
.ph-steps li.now .s { border-color: var(--attention); background: var(--attention); }
.ph-steps li.now { font-weight: 650; }
.ph-steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 18px; bottom: -1px; width: 2px; background: var(--line); }
.ph-steps li.done:not(:last-child)::before { background: var(--ink); }
.ph-steps li.todo { color: var(--faint); }
.ph-steps .tm { color: var(--faint); font-size: 13px; font-weight: 400; }
.ph-quote { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.ph-quote .by { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.ph-quote .txt { font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ph-det { margin-top: 10px; }
.ph-det summary { cursor: pointer; font-weight: 600; font-size: 14.5px; padding: 10px 0; list-style: none; color: var(--ink); }
.ph-det summary::-webkit-details-marker { display: none; }
.ph-det summary::after { content: " +"; color: var(--faint); }
.ph-det[open] summary::after { content: " –"; }
.ph-det p { font-size: 14.5px; color: var(--ink-2); white-space: pre-wrap; }
.ph-next { display: flex; gap: 8px; margin-top: 8px; }
.ph-next select, .ph-next input { flex: 1; min-width: 0; min-height: 46px; }
.ph-dock { position: fixed; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom) + 57px); padding: 10px 20px; background: var(--ground); border-top: 1px solid var(--line); z-index: 35; }
.ph-dock .ph-acts { margin: 0; }
.p-shell:has(.ph-dock) { padding-bottom: calc(env(safe-area-inset-bottom) + 180px); }
/* New task: the one floating button, above the tab bar on the right, where the thumb is. */
.ph-fab { position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom) + 72px); z-index: 36; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 20px 0 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); border: 3px solid var(--ground); font: inherit; font-weight: 650; font-size: 15.5px; cursor: pointer; box-sizing: content-box; transition: transform .14s ease; -webkit-tap-highlight-color: transparent; }
.ph-fab svg { width: 20px; height: 20px; }
.ph-fab:active { transform: scale(.96); }
/* Sheets on the phone */
.grab { width: 38px; height: 5px; border-radius: 9px; background: var(--line-strong); margin: -10px auto 16px; cursor: pointer; }
.ph-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.ph-grid2 .btn { min-width: 0; }
.ph-state { margin-top: -4px; }
.ph-now { font-size: 17px; font-weight: 620; margin: 6px 0 4px; line-height: 1.3; overflow-wrap: anywhere; }
.ph-actlist { display: grid; gap: 8px; }
.ph-actrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 54px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; text-decoration: none; }
.ph-actrow svg { width: 17px; height: 17px; color: var(--muted); }
.ph-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 620; font-size: 16px; margin-bottom: 8px; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.ph-opt .rad { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: border-width .12s, border-color .12s; }
.ph-opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ph-opt.on .rad { border: 7px solid var(--ink); }
.ph-flabel { font-size: 13.5px; font-weight: 650; color: var(--muted); }
.ph-switch { width: 51px; height: 31px; border-radius: 999px; border: 0; background: var(--line-strong); position: relative; flex: none; cursor: pointer; transition: background-color .18s; }
.ph-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3,.8,.25,1); }
.ph-switch[aria-checked=true] { background: var(--ink); }
.ph-switch[aria-checked=true]::after { transform: translateX(20px); background: var(--on-ink); }
.ph-seg { display: grid; width: 100%; }
.ph-seg button { height: 40px !important; justify-content: center; font-size: 14px !important; }

/* Tab bar: five tabs; one indicator slides to the chosen one. */
.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 4px 6px calc(env(safe-area-inset-bottom) + 4px); z-index: 40; }
.p-tab { display: grid; justify-items: center; gap: 2px; min-height: 49px; padding: 5px 0 3px; border: 0; background: none; font: inherit; font-size: 10.5px; font-weight: 620; color: var(--faint); cursor: pointer; position: relative; z-index: 1; transition: color .2s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.p-tab svg { width: 24px; height: 24px; transition: transform .16s ease; }
.p-tab:active svg { transform: scale(.9); }
.p-tab.on { color: var(--ink); }
.p-tab-ind { position: absolute; top: 4px; left: 6px; width: calc((100% - 12px) / 5); height: 34px; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .34s cubic-bezier(.3, .8, .25, 1); pointer-events: none; }
.p-tab-ind::before { content: ""; position: absolute; top: 1px; left: 50%; width: 56px; height: 32px; margin-left: -28px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.p-tab .badge { position: absolute; top: 1px; left: calc(50% + 7px); z-index: 2; background: var(--attention); color: var(--on-ink); border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 18px; padding: 0 5px; line-height: 18px; }
.p-shell.ph { animation: pagein .2s ease-out; }
@keyframes pagein { from { opacity: .4; transform: translateY(4px); } }
.p-shell, .p-tabs, .sheet, .auth { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn.armed { border-style: dashed; }
.btn.primary.armed { background: var(--ink-2); border-style: solid; }
@media (max-width: 899px) {
  .sheet { position: relative; overscroll-behavior: contain; transition: transform .2s cubic-bezier(.3, .8, .25, 1); padding-top: 22px; max-height: 88vh; }
  #sheet-root.closing .sheet { transform: translateY(100%); }
  #sheet-root.closing .sheet-bg { opacity: 0; transition: opacity .2s; }
  .sheet header h2 { font-size: 22px; font-stretch: 114%; }
  #toast { bottom: calc(env(safe-area-inset-bottom) + 136px); }
}
@media (prefers-reduced-motion: reduce) {
  .p-shell.ph, .ph-st.w .ph-dot { animation: none; }
  .p-tab-ind, .p-tab, .p-tab svg, .ph-fab, .ph-switch, .ph-switch::after, .sheet { transition: none; }
}
/* No underlines on things you tap; only links inside running text (guide, terms) keep one. */
.linkish, .quiet-link { text-decoration: none; font-weight: 600; }
.ctx-toggle, .ph .linkish { color: var(--ink); }
.ph-x { position: absolute; top: 12px; right: 12px; }
.ph-x + .ph-meta { padding-right: 40px; }
.auth-foot a { text-decoration: none; }
.ph-card { position: relative; }
.ph-cardx { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--faint); border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ph-cardx svg { width: 18px; height: 18px; }
.ph-cardx:active { background: var(--soft); color: var(--ink); }
.ph-card.has-x .ph-meta, .ph-card.has-x .ph-ct { padding-right: 32px; }

/* Phone agent sheet: the permissions panel from the computer page, fitted to a narrow sheet */
.ph-perms .d-panel { margin: 12px 0 0; padding: 14px; }
.ph-perms .d-panel h3 { font-size: 15px; }
.ph-perms input[type=text] { min-width: 0; width: 100%; }
.ph-perms .grant { align-items: flex-start; }
.ph-perms .btn { white-space: normal; max-width: 100%; text-align: center; }

/* How an agent hears from you, and what is waiting for its next check-in (2 Dec) */
.reach .waiting { list-style: none; margin: 6px 0 12px; padding: 0; border-top: 1px solid var(--line); }
.reach .waiting li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.reach .waiting li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.reach .waiting li .muted { flex: none; }

/* Make it instant (3 Dec): the offer, and the setup sheet */
.instant { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.instant .btn { margin-top: 8px; }
.instant-note { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.wake-steps { margin: 4px 0 0; padding-left: 20px; }
.wake-steps > li { margin-bottom: 16px; }
.wake-steps > li > strong { display: block; margin-bottom: 4px; }
.wake-steps textarea.copybox { width: 100%; resize: none; margin: 6px 0 8px; font: inherit; }
.wake-steps .field { margin-top: 8px; }
.wake-res { margin-top: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.wake-res.ok { border-color: var(--ok, #2e7d32); }
.wake-res.bad { border-color: var(--alert); }
.instant-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.instant-row .btn { flex: none; }
/* Overview tiles (3 Dec 2026): What's new and "Get the most out of Vedetta", small, under "need you" with room around them */
.ov-tiles { display: flex; gap: 12px; margin: 28px 0 22px; }
.d-needs + .ov-tiles { margin-top: 28px; }
.ov-tile { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font: inherit; cursor: pointer; }
.ov-tile:hover { border-color: var(--line-strong); }
.ov-ic { position: relative; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--sunk); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.ov-dot { position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--attention); border: 2px solid var(--surface); }
.ov-tx { flex: 1; min-width: 0; }
.ov-tx b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-tx .small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin-top: 6px; }
.ov-bar span { display: block; height: 3px; border-radius: 2px; background: var(--ok); }
.ov-chev { flex: none; color: var(--muted); font-size: 18px; }
.ph .ov-tiles { gap: 10px; margin: 18px 0 6px; }
.ph .ov-tile { padding: 10px 12px; gap: 10px; border-radius: 14px; }
.ph .ov-ic { width: 28px; height: 28px; font-size: 14px; }
.ph .ov-tx b { font-size: 13px; }
.nw-list { display: flex; flex-direction: column; gap: 14px; }
.nw { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 14px; }
.nw-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.nw-date { font-size: 12px; font-weight: 600; color: var(--muted); }
.nw-latest { font-size: 12px; font-weight: 600; color: var(--on-ink); background: var(--ink); border-radius: 999px; padding: 2px 9px; }
.nw h3 { font-size: 17px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 6px; }
.nw-text { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.nw-box { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.nw-label { font-size: 12px; font-weight: 600; color: var(--muted); margin: 4px 0 0; }
.nw-agent { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 8px 8px 12px; font-size: 14px; }
.nw-more { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 12px; padding: 10px 0 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.nw-more .chev { font-size: 18px; line-height: 1; color: var(--muted); }
.nw-after { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 6px 0 2px; }
.news-on { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.ov-ic svg { width: 18px; height: 18px; }

/* Overview declutter (3 Dec 2026) */
.rail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-left: auto; flex: none; }
.a-card .card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* Short screens (a 13-inch laptop with browser bars): tighter rows so the whole rail fits without scrolling. */
@media (max-height: 820px) {
  .d-rail { padding-top: 16px; padding-bottom: 12px; }
  .d-brand { padding-bottom: 14px; }
  .d-rail > .btn.primary { margin-bottom: 12px; min-height: 38px; }
  .d-nav { padding-top: 6px; padding-bottom: 6px; }
  .d-nav-gap { height: 8px; }
  .d-rail-foot { padding-top: 6px; }
}
/* Very short screens: the section list may scroll; fade its last line so it shows there is more below. */
@media (max-height: 700px) {
  .d-rail-mid { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
}

/* Settings on a computer (3 Dec 2026): groups with a heading, each a panel of rows, controls on the right. */
.st-wrap { max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.st-group > h2 { font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 8px 2px; }
.st-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-tx h3 { font-size: 15px; font-weight: 650; margin: 0; }
.st-tx p { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; line-height: 1.45; }
.st-ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.st-extra { grid-column: 1 / -1; }
.st-extra:empty { display: none; }
.st-extra .copybox { margin: 4px 0 0; }
.st-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.st-input { width: 200px; min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.st-input.wide { width: 100%; }
.st-inline { display: flex; gap: 8px; margin-top: 4px; }
.st-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.st-switch input { width: 18px; height: 18px; accent-color: var(--ink); }
details.st-fold { display: block; }
.st-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; }
.st-fold > summary::-webkit-details-marker { display: none; }
.st-fold .st-chev svg { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.st-fold[open] .st-chev svg { transform: rotate(90deg); }
.st-fold[open] > .st-extra { margin-top: 12px; }
.st-tx h3.danger { color: var(--alert); }

/* How it got here: the trail on a task that went from agent to agent (3 Dec 2026). */
.trail { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 12px; margin: 4px 0 14px; }
.trail h3 { font-size: 14px; font-weight: 650; margin: 0 0 10px; }
.trail-note { font-size: 13px; color: var(--muted); margin: -4px 0 12px; line-height: 1.45; }
.trail-steps { list-style: none; margin: 0; padding: 0; }
.trail-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 0 0 13px; position: relative; font-size: 14px; }
.trail-steps .s { width: 12px; height: 12px; border-radius: 50%; margin: 4px 5px; background: var(--ink); position: relative; z-index: 1; }
.trail-steps li.now .s { background: var(--attention); }
.trail-steps li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 16px; bottom: -4px; width: 2px; background: var(--line-strong); }
.trail-steps .tx { font-weight: 600; overflow-wrap: anywhere; }
.trail-steps li.here .tx { font-weight: 700; }
.trail-steps .sub { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.trail-steps .tm { color: var(--faint); font-size: 12.5px; white-space: nowrap; padding-top: 1px; }
.trail-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer; text-align: left; }
.trail-link:hover { color: var(--signal); }
.trail-now { border-top: 1px solid var(--line); padding-top: 10px; }
.trail-now p { font-size: 13.5px; font-weight: 600; margin: 0 0 4px; }

/* Settings: lists of sign-ins and of what happened to the account */
.acct-list { list-style: none; margin: 8px 0 0; padding: 0; }
.acct-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.acct-list li:first-child { border-top: 0; }
.acct-list .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-list b { font-weight: 600; font-size: 14px; }
.ev.ev-read .dot { background: transparent; border: 1.5px solid var(--line-strong); }
select.st-input { width: auto; min-width: 160px; }

/* Setup steps (4 Dec 2026). Their buttons carry long labels ("Copy the setup message and open Claude Code routine"):
   they wrap inside the sheet instead of running off a phone. Only the step you are on is open; the others fold. */
.sheet .g-body .btn, .sheet .setup-go .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; padding-block: 9px; }
.g-body > .btn, .g-body > .setup-go, .g-later > .btn { margin: 4px 0 12px; }
.g-later summary, .g-more summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.g-later summary::-webkit-details-marker, .g-more summary::-webkit-details-marker { display: none; }
.g-later summary::before, .g-more summary::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .12s; flex: none; margin-left: 2px; }
.g-later[open] summary::before, .g-more[open] summary::before { transform: rotate(45deg); }
.g-later[open] summary, .g-more[open] summary { margin-bottom: 8px; }
.guide > li:not(.on) .g-body h3 { margin-bottom: 0; }
.conn-digits { font-size: 17px; letter-spacing: .06em; white-space: nowrap; font-variant-numeric: tabular-nums; margin: 0 4px; }
.stop-why { margin-top: 10px; display: grid; gap: 6px; justify-items: start; }
.stop-why .btn { white-space: normal; text-align: left; line-height: 1.25; padding-block: 7px; max-width: 100%; }

/* Phone check, 4 Dec 2026 (claude/phone-check-2026-12-04.md in the project). */
/* New task is a button in the heading of Now and Tasks; nothing floats over the page. */
.ph-top-r { display: flex; align-items: center; gap: 10px; }
/* Text that mattered was cut after one line: an agent's reason, the lines in the "need you" card, the two tiles. */
.ph .rs, .sheet .rs { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ph-hero .it .x { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ph .ov-tiles { flex-direction: column; }
.ph .ov-tx b, .ph .ov-tx .small { white-space: normal; overflow: visible; }
/* Sizes: tab labels and tags were under 12px; small buttons and text buttons were under the 44px a finger needs. */
.p-tab { font-size: 12px; }
.p-tab .badge { font-size: 12px; }
.ph-tag { font-size: 12px; }
.p-tab .badge.done { background: var(--ok); }
@media (max-width: 899px) {
  .ph .btn.small, .sheet .btn.small { min-height: 44px; padding-inline: 16px; }
  .ph .linkish, .ph .ctx-toggle, .ph-link, .ph .quiet-link, .auth .linkish { display: inline-flex; align-items: center; min-height: 44px; }
  .auth .theme-switch button { min-height: 44px; min-width: 44px; }
  .ph-switch { position: relative; }
  .ph-switch::before { content: ""; position: absolute; inset: -8px -6px; }
  html, body { height: auto; min-height: 100%; }
  /* The bar at the bottom and the page under it: the page takes the height the browser really shows (its own bars
     come and go as you scroll), and pulling past either end no longer drags the page from under the bar. */
  html { overscroll-behavior-y: none; }
  .p-shell { min-height: 100dvh; }
  .p-tabs { transform: translateZ(0); }
}
/* On a touch screen a tap leaves "hover" behind, which drew a dark ring round a choice nobody had picked. */
@media (hover: none) { .choices label:not(:has(input:checked)):hover { border-color: var(--line-strong); } }
.ph .tag, .sheet .tag { font-size: 12px; }
