:root {
  --ground: #EEF1F4;
  --surface: #FFFFFF;
  --ink: #16202B;
  --muted: #5B6875;
  --line: #D3DAE1;
  --soft: #E3E8ED;
  --signal: #2F5BEA;
  --signal-tint: #E6ECFD;
  --attention: #A35A00;
  --attention-tint: #FBEFDD;
  --alert: #B42318;
  --alert-tint: #FBE6E4;
  --ok: #1F7A4D;
  --ok-tint: #E2F2E9;
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  color-scheme: light;
}

* { 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;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.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.2; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 550;
}
.btn:hover { border-color: #AEB8C2; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #26323F; }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.danger { color: var(--alert); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); background: var(--soft); }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; white-space: nowrap; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.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-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 rgba(47, 91, 234, .35); } 50% { box-shadow: 0 0 0 5px rgba(47, 91, 234, 0); } }

/* Pulse: drains as the next check-in comes due */
.pulse { position: relative; height: 4px; border-radius: 2px; background: var(--soft); overflow: hidden; }
.pulse > i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--signal); }
.pulse.late > i { background: var(--attention); }
.pulse.dead > i { background: var(--alert); }

.usage { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.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 .bar > i { background: var(--attention); }
.usage.out .bar > i { background: var(--alert); }

.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 550; background: var(--soft); color: var(--muted); }
.tag.boss { background: var(--ink); color: #fff; }
.tag.backup { background: var(--signal-tint); color: var(--signal); }
.tag.as-you { background: var(--attention-tint); color: var(--attention); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type=text], input[type=url], input[type=number], input[type=password], textarea, select {
  width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
}
textarea { min-height: 96px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; background: var(--surface); }
.choices input { margin: 0; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: #fff; }

.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; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }

/* Sheet (modal on desktop, bottom sheet on phone) */
.sheet-bg { position: fixed; inset: 0; background: rgba(22, 32, 43, .38); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.sheet { background: var(--surface); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 24px; box-shadow: 0 24px 60px rgba(22, 32, 43, .22); }
.sheet header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.sheet ol { padding-left: 20px; margin: 8px 0 14px; }
.sheet ol li { margin-bottom: 6px; }
.consent li { margin-bottom: 8px; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-size: 14px; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 80; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Desktop ---------- */
.d-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr) 340px; min-height: 100vh; }
.d-shell.no-feed { grid-template-columns: 216px minmax(0, 1fr); }
.d-rail { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.d-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.d-brand img { width: 26px; height: 26px; }
.d-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 550; cursor: pointer; border: 0; background: transparent; text-align: left; width: 100%; }
.d-nav:hover { background: var(--soft); }
.d-nav.on { background: var(--ink); color: #fff; }
.d-nav .count { font-size: 12px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--attention); color: #fff; text-align: center; }
.d-rail .spacer { flex: 1; }
.d-rail .keys { font-size: 12px; color: var(--muted); padding: 0 10px; }

.d-main { padding: 28px 32px 48px; min-width: 0; }
.d-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.d-top .sub { color: var(--muted); margin-top: 4px; }
.d-section { margin-bottom: 30px; }
.d-section > .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }

.d-needs { display: grid; gap: 10px; }
.d-need { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--attention); border-radius: var(--r-md); padding: 14px 16px; }
.d-need.urgent { border-left-color: var(--alert); }
.d-need.info { border-left-color: var(--signal); }
.d-need .who { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.d-need .what { font-weight: 600; }
.d-need .ctx { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.d-need .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.d-clear { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 16px; color: var(--muted); }

.d-lanes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.d-lane { display: grid; grid-template-columns: minmax(110px, 1.2fr) minmax(120px, 2fr) minmax(104px, 140px) minmax(104px, 150px) 88px; gap: 14px; align-items: center; padding: 14px 16px; border-top: 1px solid var(--soft); }
.d-lane:first-child { border-top: 0; }
.d-lane.head { padding: 9px 16px; background: var(--ground); font-size: 12.5px; color: var(--muted); font-weight: 550; }
.d-lane .name { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-lane .kind { font-size: 12.5px; color: var(--muted); }
.d-lane .task { font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.d-lane .seen { font-size: 12.5px; color: var(--muted); display: grid; gap: 5px; }
.d-lane .acts { display: flex; gap: 4px; }
.d-lane.clickable { cursor: pointer; }
.d-lane.clickable:hover { background: #F7F9FA; }

.d-feed { border-left: 1px solid var(--line); padding: 28px 22px; position: sticky; top: 0; height: 100vh; overflow: auto; background: #F6F8FA; }
.d-feed h2 { margin-bottom: 14px; }
.ev { display: grid; grid-template-columns: 10px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--soft); }
.ev .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-top: 6px; }
.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; }

.d-table { width: 100%; border-collapse: collapse; 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: 550; background: var(--ground); padding: 9px 14px; }
.d-table td { padding: 12px 14px; border-top: 1px solid var(--soft); vertical-align: top; font-size: 14px; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.d-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.d-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.d-day { font-size: 13px; font-weight: 650; color: var(--muted); margin: 18px 0 4px; }
.d-day:first-child { margin-top: 0; }
.d-note { border-top: 1px solid var(--soft); padding: 14px 0; }
.d-note:first-child { border-top: 0; padding-top: 0; }
.d-note .body { white-space: pre-wrap; font-size: 14px; margin-top: 6px; }

.d-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Phone ---------- */
.p-shell { min-height: 100vh; padding: calc(env(safe-area-inset-top) + 14px) 16px calc(env(safe-area-inset-bottom) + 92px); }
.p-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.p-head .title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; }
.p-head img { width: 24px; height: 24px; }
.p-hero { margin: 6px 0 18px; }
.p-hero .big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.p-hero .big.calm { color: var(--ok); }
.p-hero .line { color: var(--muted); margin-top: 4px; }

.p-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 18px; padding: 2px 16px 6px; scrollbar-width: none; }
.p-chips::-webkit-scrollbar { display: none; }
.p-chip { flex: 0 0 auto; min-width: 128px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; text-align: left; cursor: pointer; }
.p-chip .n { font-weight: 650; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.p-chip .pulse { margin-top: 8px; }

.p-cards { display: grid; gap: 12px; }
.p-card { background: var(--surface); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--line); }
.p-card.urgent { border-color: #EBB7B1; box-shadow: inset 4px 0 0 var(--alert); }
.p-card.ask { box-shadow: inset 4px 0 0 var(--attention); }
.p-card .who { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.p-card .what { font-size: 17px; font-weight: 650; line-height: 1.3; }
.p-card .ctx { font-size: 14px; color: var(--muted); margin-top: 6px; }
.p-card .acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 14px; }
.p-card .acts .btn { min-height: 46px; font-size: 15px; border-radius: var(--r-md); }
.p-card .more { display: flex; gap: 8px; margin-top: 8px; }
.p-card .more input { flex: 1; min-height: 44px; }

.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: 14px 16px; border-top: 1px solid var(--soft); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; }
.p-row:first-child { border-top: 0; }
.p-row .t { font-weight: 600; }
.p-row .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.p-row .pulse { grid-column: 1 / -1; }
.p-group { font-size: 13px; font-weight: 650; color: var(--muted); margin: 20px 4px 8px; }

.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px); z-index: 40; }
.p-tab { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.p-tab svg { width: 22px; height: 22px; }
.p-tab.on { color: var(--ink); }
.p-tab .badge { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--alert); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; padding: 0 5px; line-height: 18px; }

.p-bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.p-bigbtns .btn { min-height: 52px; border-radius: var(--r-md); }

@media (max-width: 899px) {
  .sheet-bg { align-items: flex-end; padding: 0; }
  .sheet { width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 88vh; padding: 20px 18px calc(env(safe-area-inset-bottom) + 20px); }
  .sheet .actions .btn { flex: 1; min-height: 46px; }
  #toast { bottom: calc(env(safe-area-inset-bottom) + 84px); }
}
@media (max-width: 1180px) and (min-width: 900px) {
  .d-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .d-feed { display: none; }
  .d-lane { grid-template-columns: minmax(110px, 1.2fr) minmax(120px, 2fr) minmax(104px, 150px) 88px; }
  .d-lane > .seen { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .s-working::before { animation: none; }
  #toast { transition: none; }
}
.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; }
.p-card .acts .btn.ghost { grid-column: 1 / -1; min-height: 40px; }
a.btn { text-decoration: none; color: var(--ink); }
a.btn.primary, a.btn.signal { color: #fff; }

/* Connect sheet: check-in plans, optional details, big setup buttons */
.plans { display: grid; gap: 8px; }
.plan { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font-weight: 400; }
.plan input { margin: 4px 0 0; flex: none; width: auto; }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
details.more { margin: 12px 0; border-top: 1px solid var(--line); padding-top: 10px; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
details.more[open] summary { margin-bottom: 10px; }
.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: 10px; align-items: start; padding: 8px 10px; border: 1px solid var(--soft); border-radius: var(--r-sm); background: var(--surface); font-weight: 400; cursor: pointer; }
.grant input { margin-top: 3px; width: auto; }
.grant .tag { white-space: nowrap; }
.tag.ok { background: #E3F4E8; color: #1F6B3A; }
.tag.warn { background: var(--attention-tint); color: var(--attention); }
.parts { margin-top: 8px; display: grid; gap: 6px; border-top: 1px solid var(--soft); padding-top: 8px; }
.part { font-size: 13.5px; }
.d-lane > * { min-width: 0; }
.d-lane .acts .btn { min-width: 0; width: 100%; padding-left: 6px; padding-right: 6px; }

.signin-wait { background: var(--signal-tint); color: var(--ink); padding: 10px 12px; border-radius: var(--r-md); }

.caps { padding: 6px 16px; }
.cap { display: grid; grid-template-columns: minmax(150px,1.2fr) 170px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--soft); }
.cap:first-child { border-top: 0; }
@media (max-width: 1100px) { .cap { grid-template-columns: 1fr 150px auto; } .cap > div:last-child { display: none; } }

.custom-grant { margin-top: 12px; padding-top: 12px; 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: 8px; }
.chip { font: inherit; font-size: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 4px 10px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--signal); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--signal); cursor: pointer; text-decoration: underline; }

.seg { display: flex; gap: 4px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.bcol { background: var(--soft); border-radius: var(--r-md); padding: 10px; min-height: 160px; border: 2px dashed transparent; transition: border-color .12s; }
.bcol.drop-on { border-color: var(--signal); background: var(--signal-tint); }
.bhead { margin-bottom: 10px; }
.bhead .status { font-weight: 400; font-size: 12px; margin-left: 4px; }
.btools { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tcard { padding: 12px; margin-bottom: 8px; }
.tcard[draggable=true] { cursor: grab; }
.tcard.dragging { opacity: .45; }
.tcard.proposed { border: 1px dashed var(--attention); }
.bempty { padding: 18px 4px; text-align: center; }
.bdone summary { cursor: pointer; margin-top: 4px; }

.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: 14px; }
.fyi-h { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 2px 6px; }
.fyi-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 6px; }
.fyi-row .what { font-size: 14px; font-weight: 500; }
.fyi-row .who { font-size: 12px; color: var(--muted); }
.fyi-row .acts { display: flex; gap: 6px; flex-shrink: 0; }
.fyi-row .acts .btn { min-height: 30px; padding: 4px 10px; font-size: 13px; }
@media (max-width: 640px) { .fyi { margin: 14px 16px 0; } .fyi-row { flex-direction: column; align-items: stretch; } .fyi-row .acts { justify-content: flex-start; } }

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

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

.d-lane .seen .next { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.boss-pick { margin-bottom: 14px; }
.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: 6px; align-items: flex-start; margin-top: 6px; font-weight: 400; color: var(--ink); }
.speed input { margin-top: 3px; }
.d-note .tag { font-weight: 500; margin-left: 4px; }

.guide { list-style: none; margin: 0; padding: 0; }
.guide > li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--soft); opacity: .6; }
.guide > li:first-child { border-top: 0; }
.guide > li.on, .guide > li.done { opacity: 1; }
.g-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--soft); color: var(--ink); }
.guide > li.on .g-num { background: var(--ink); color: #fff; }
.guide > li.done .g-num { background: var(--ok-tint); color: var(--ok); }
.g-body { flex: 1; min-width: 0; }
.g-body h3 { font-size: 15px; margin-bottom: 4px; }
.g-body ul { margin: 0 0 8px; padding-left: 18px; font-size: 14px; color: var(--muted); }
.guide > li.on .g-body ul { color: var(--ink); }
.guide > li.done .g-body ul, .guide > li.done .g-body .btn { display: none; }

.results .res-card, .p-cards + .results .res-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.res-card .who { font-size: 13px; color: var(--muted); }
.res-title { font: inherit; font-weight: 600; font-size: 16px; background: none; border: 0; padding: 0; margin: 2px 0 6px; color: var(--ink); cursor: pointer; text-align: left; display: block; }
.res-title:hover { text-decoration: underline; }
.res-body { white-space: pre-wrap; font-size: 14px; overflow-wrap: anywhere; }
.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: 10px; flex-wrap: wrap; }
.res-full { white-space: pre-wrap; font-size: 15px; background: var(--ground); border-radius: var(--r-md); padding: 12px 14px; margin-top: 4px; max-height: 45vh; overflow: auto; overflow-wrap: anywhere; }
.next { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--soft); }

.d-nav .count.ok { background: var(--ok); }
.res-line { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 9px 12px; 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: 600; 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: 10px 14px; font: inherit; text-align: left; background: none; border: 0; border-top: 1px solid var(--soft); 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: 14px; }
.res-row .s { font-size: 12px; 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; }
@media (max-width: 640px) { .res-line { margin: 12px 16px 0; width: calc(100% - 32px); } }

.tag.proj { border: 0; cursor: pointer; background: var(--signal-tint); color: var(--signal); font: inherit; font-size: 12px; margin: 2px 0 6px; }
.tag.proj:hover { text-decoration: underline; }
.pcards { display: grid; gap: 10px; }
.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: 14px 16px; cursor: pointer; }
.pcard:hover { border-color: var(--ink); }
.pcard.fin { opacity: .7; }
.pcard .pn { font-weight: 650; font-size: 16px; }
.pcard .pg { font-size: 14px; color: var(--muted); margin: 4px 0 10px; 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: 8px; }
@media (max-width: 640px) { .proj-two { display: block; } }
