/* Valuepact — product styles.
   Light only (dark mode is not allowed by the brief).
   Every frame is a CSS container named "frame"; phone layouts use @container frame (max-width: 600px). */

/* Palette: Panna Cotta 60% (backgrounds), Ivy Lacquer 30% (text, primary actions, dark areas), Marinara Red 10% (accent).
   Flat colour only. The older b- and g- token names stay as aliases so every screen file picks up the theme. */
:root {
  --panna: #EEE5D0;
  --surface: #FBF8F1;
  --ivy: #254333;
  --ivy-700: #1A3226;
  --red: #EF4128;        /* accent: big numbers (>= 24px), chart marks, active tab, focus */
  --red-ink: #B5301B;    /* red for small text: 4.9:1 on Panna, 5.8:1 on surface */

  --white: #FBF8F1;      /* surface for cards, fields, panels */
  --b50: #F4EEE1;        /* hover, quiet fills */
  --b100: #E4E8DC;       /* ivy tint: user messages, selected rows */
  --b200: #D3DACB;       /* tracks, dividers on tint */
  --b300: #B7C2B2;       /* drawings only */
  --b400: #6E8574;       /* earlier chart bars (3.8:1 on surface) */
  --b500: #2F5240;
  --b600: #254333;       /* links, icons, checks: Ivy */
  --b700: #1A3226;
  --b800: #142A1E;
  --b900: #0E1F16;
  --ink: #254333;        /* all main text: 8.7:1 on Panna */
  --muted: #5B6A5E;      /* secondary text: 4.6:1 on Panna */
  --line: #DDD3BD;
  --field: #8A7F68;      /* input borders: 3.2:1 on Panna */

  --error: #B5301B;
  --warn-bg: #F7E4DA;
  --warn-fg: #B5301B;

  --st-good: #254333;
  --st-behind: #B5301B;
  --st-stopped: #B5301B;
  --st-none: #5B6A5E;

  --g-sky: #EEE5D0;
  --g-brand: #254333;
  --g-brand-hover: #1A3226;
  --g-brand-bar: #EF4128;
  --g-brand-progress: #254333;
  --g-deep: #254333;
  --g-glow: none;
  --g-strip: transparent;
  --g-ink: none;
  --g-shimmer: #E7DECB;

  --sh-sm: none;
  --sh-lg: 0 12px 32px rgba(37, 67, 51, 0.14);

  --f-head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; /* display: headings, big numbers, wordmark */
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --focus: 0 0 0 2px #FBF8F1, 0 0 0 4px #EF4128;
}

/* ---------- Frame ---------- */
.frame {
  container: frame / inline-size;
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.frame *, .frame *::before, .frame *::after { box-sizing: border-box; }
.frame h1, .frame h2, .frame h3, .frame h4, .frame p, .frame ul, .frame ol, .frame figure { margin: 0; }
.frame ul, .frame ol { padding: 0; list-style: none; }
:where(.frame) button { font: inherit; color: inherit; }
.frame table { border-collapse: collapse; }

.scr { position: relative; width: 100%; min-height: 100%; height: 100%; background: var(--g-sky); }
.frame.auto .scr { height: auto; }
.scr.white { background: var(--white); }

/* Type scale */
.t-hero { font: 800 40px/44px var(--f-head); font-stretch: 88%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.t-page { font: 700 28px/34px var(--f-head); letter-spacing: -0.01em; text-wrap: balance; }
.t-card { font: 700 20px/26px var(--f-head); text-wrap: balance; }
.t-chat { font-size: 16px; line-height: 26px; }
.t-body { font-size: 15px; line-height: 24px; }
.t-small { font-size: 13px; line-height: 20px; }
.t-label { font-size: 12px; line-height: 16px; font-weight: 600; }
.t-muted, .muted { color: var(--muted); }
.t-strong, .strong { font-weight: 600; }
.num, .tnum { font-variant-numeric: tabular-nums; }
.ink-num { color: var(--red); }
.link { color: var(--b600); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.wrap { flex-wrap: wrap; }
.g4 { gap: 4px; } .g8 { gap: 8px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g24 { gap: 24px; } .g32 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; }
.right { margin-left: auto; }
.center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; width: 100%; }

/* Icons */
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.ic.s16 { width: 16px; height: 16px; }
.ic.s24 { width: 24px; height: 24px; }
.ic.s32 { width: 32px; height: 32px; }
.ic.blue { color: var(--b600); }
.ic.mut { color: var(--muted); }

/* Product mark */
/* Mark: a seal. Marinara square, cream V that doubles as a tick: value, agreed. */
.mark { width: 24px; height: 24px; border-radius: 7px; background: var(--red); flex: none; display: inline-flex; align-items: center; justify-content: center; }
.mark svg { width: 100%; height: 100%; fill: none; stroke: var(--panna); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark.s16 { width: 16px; height: 16px; border-radius: 5px; }
.mark.s32 { width: 32px; height: 32px; border-radius: 9px; }
/* Wordmark: lowercase "value" in Ivy, "pact" in Marinara, Bricolage Grotesque 800 condensed. */
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 21px/24px var(--f-head); font-stretch: 80%; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.brand b { font-weight: inherit; color: var(--red); }
.brand.on-deep { color: var(--white); }
.brand.on-deep b { color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/20px var(--f-body); white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 44px; padding: 0; }
.btn.sm.icon-only { width: 36px; }
.btn-primary { background: var(--ivy); color: var(--surface); }
.btn-primary:hover, .btn-primary.is-hover { background: var(--g-brand-hover); }
.btn-primary.is-pressed { background: var(--b700); }
.btn-secondary { background: var(--white); border-color: var(--field); color: var(--ink); }
.btn-secondary:hover, .btn-secondary.is-hover { background: var(--b50); }
.btn-secondary.is-pressed { background: var(--b100); }
.btn-quiet { background: transparent; color: var(--b600); padding: 0 10px; }
.btn-quiet:hover, .btn-quiet.is-hover { background: var(--b50); color: var(--b700); }
.btn-quiet.is-pressed { background: var(--b100); color: var(--b700); }
.btn-danger { background: var(--white); border-color: var(--st-stopped); color: var(--st-stopped); }
.btn-danger:hover, .btn-danger.is-hover { background: var(--warn-bg); }
.btn-danger.quiet { border-color: transparent; padding: 0 10px; }
.btn.is-focus, .btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.is-disabled, .btn[disabled] { background: var(--b100); color: var(--muted); border-color: transparent; box-shadow: none; cursor: not-allowed; }
.btn-quiet.is-disabled { background: transparent; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; flex: none; }
.btn-primary .spin { border-color: rgba(255,255,255,0.95); border-right-color: transparent; }
.spin.blue { color: var(--b600); }

/* Third-party sign-in buttons (their own rules, not this palette) */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 44px;
  background: #FFFFFF; border: 1px solid #747775; border-radius: 12px; color: #1F1F1F;
  font: 600 15px/20px var(--f-body); cursor: pointer;
}
.btn-ms {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 44px;
  background: #FFFFFF; border: 1px solid #8C8C8C; border-radius: 12px; color: #5E5E5E;
  font: 600 15px/20px var(--f-body); cursor: pointer;
}
.btn-google svg, .btn-ms svg { width: 20px; height: 20px; flex: none; }

/* ---------- App frame ---------- */
.app { display: grid; grid-template-rows: 56px minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.frame.auto .app { min-height: 1024px; }
.frame.auto.dev-phone .app, .frame.auto.dev-phone .lp { min-height: 844px; }
.frame.auto.dev-desktop .lp { min-height: 1024px; }
.app-hd {
  height: 56px; background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 20px; position: relative; z-index: 3;
}
.app-hd .menu-btn { display: none; }
.app-hd .right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.co-switch {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: 14px; color: var(--ink); cursor: pointer;
}
.co-switch.plain { border-color: transparent; cursor: default; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--b100); color: var(--b800);
  display: inline-flex; align-items: center; justify-content: center; font: 600 12px/1 var(--f-body); flex: none;
}
.avatar.s24 { width: 24px; height: 24px; font-size: 10px; }
.avatar.s40 { width: 40px; height: 40px; font-size: 14px; }
.avatar.me { background: var(--ivy); color: var(--surface); }

.app-body { display: flex; min-height: 0; position: relative; }
.frame.auto .app-body { min-height: calc(100% - 56px); }

.sidebar {
  width: 260px; flex: none; background: var(--white); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px 12px; gap: 16px; overflow: hidden;
}
.sidebar .sb-sec { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); padding: 0 12px; }
.sb-empty { padding: 8px 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
.sb-list { display: flex; flex-direction: column; gap: 2px; }
.sb-item { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.sb-item:hover, .sb-item.is-hover { background: var(--b50); }
.sb-item.sel { background: var(--b100); }
.sb-item.sel::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--red); }
.sb-item .nm { font-weight: 600; font-size: 14px; line-height: 20px; }
.sb-item .co { font-size: 13px; line-height: 18px; color: var(--muted); }
.sb-item .st { margin-top: 2px; }
.sb-links { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.sb-link .ic { color: var(--muted); }
.sb-link:hover, .sb-link.sel { background: var(--b50); }
.sb-link.sel { background: var(--b100); }

.sidebar.rail { width: 56px; padding: 12px 8px; align-items: center; }
.rail-btn { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.rail-btn.sel { background: var(--b100); color: var(--b600); }

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; position: relative; }

/* Initiative heading above the conversation */
.ini-top { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 32px 0; flex: none; }
.ini-top .ini-row { display: flex; align-items: center; gap: 12px; }
.ini-top .ini-title { font: 700 20px/26px var(--f-head); }
.ini-top .ini-cap { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 4px; }
.ini-top.pg { padding: 24px 0 0; background: transparent; }
.ini-top.pg .ini-inner { width: 1120px; max-width: 100%; margin: 0 auto; }
.ini-top.pg .ini-title { font: 700 28px/34px var(--f-head); letter-spacing: -0.01em; }

.tabs { display: flex; gap: 24px; margin-top: 12px; }
.tab { padding: 10px 0 12px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; }
.tab.sel { color: var(--ink); font-weight: 700; border-bottom-color: var(--red); }

/* Conversation */
.convo { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.frame.auto .convo { justify-content: flex-start; overflow: visible; }
.convo-col { width: 760px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; padding: 32px 0 24px; }
.convo-col.narrow { width: 480px; padding-left: 24px; padding-right: 24px; }

.msg-guide { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.msg-guide .who { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--muted); }
.msg-guide .who .mark { width: 16px; height: 16px; border-radius: 5px; }
.msg-guide .who .mark svg { stroke-width: 3.4; }
.msg-guide .txt { font-size: 16px; line-height: 26px; display: flex; flex-direction: column; gap: 12px; }
.msg-user { align-self: flex-end; max-width: 560px; background: var(--b100); color: var(--ink); border-radius: 16px 16px 4px 16px; padding: 12px 16px; font-size: 16px; line-height: 26px; }
.msg-sys { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 20px; color: var(--muted); white-space: nowrap; }
.msg-sys::before, .msg-sys::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }
.msg-sys span { white-space: normal; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--field); background: var(--white); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; cursor: pointer;
}
.chip:hover, .chip.is-hover { background: var(--b50); }
.chip.chosen { background: var(--b100); border-color: var(--ivy); color: var(--ivy); }

.composer-wrap { flex: none; padding: 8px 32px 24px; }
.composer-inner { width: 760px; max-width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.composer-inner.narrow { width: 432px; }
.composer-above { font-size: 13px; line-height: 20px; color: var(--muted); padding-left: 4px; }
.composer {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px 12px; background: var(--white);
  border: 1px solid var(--field); border-radius: 16px;
}
.composer .ph { flex: 1 1 auto; color: var(--muted); font-size: 16px; line-height: 24px; }
.composer .val { flex: 1 1 auto; color: var(--ink); font-size: 16px; line-height: 24px; }
.composer.is-disabled { background: var(--b50); border-color: var(--line); }
.composer.is-focus { box-shadow: var(--focus); }
.composer .attach { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 10px; }

/* Inline card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.card-hd { min-height: 0; padding: 20px 24px 0; display: flex; align-items: center; gap: 16px; }
.card-hd .ttl { font: 700 19px/26px var(--f-head); min-width: 0; letter-spacing: -0.01em; }
.card-hd .sub { font-size: 13px; line-height: 20px; color: var(--muted); }
.card-hd .meta { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 20px; color: var(--muted); text-align: right; }
.card-hd .open-lg { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--b600); border: 1px solid var(--line); background: var(--white); flex: none; }
.card-bd { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.card-bd.tight { gap: 12px; }
.card-ft { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.card-ft .hint { font-size: 13px; line-height: 20px; color: var(--muted); margin-right: auto; }
.card-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.card.plain .card-hd { background: transparent; min-height: 0; padding-bottom: 0; }
.card.raised { box-shadow: var(--sh-lg); }

.collapsed-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--b50); border: 1px solid var(--line);
  border-radius: 12px; font-size: 14px; line-height: 20px; cursor: pointer;
}
.collapsed-row .note { margin-left: auto; color: var(--muted); font-size: 13px; }

.wait-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; }
.wait-row .dot { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wait-row .dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--b300); }
.wait-row.waiting { color: var(--muted); }
.wait-row.done .dot { color: var(--st-good); }
.wait-row.working { font-weight: 600; }

/* Side panel */
.side-panel { width: 800px; flex: none; background: var(--white); border-left: 1px solid var(--line); box-shadow: var(--sh-lg); display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 2; }
.sp-hd { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.sp-hd .ttl { font: 600 20px/26px var(--f-head); }
.sp-tabs { padding: 0 24px; border-bottom: 1px solid var(--line); }
.sp-tabs .tabs { margin-top: 0; }
.sp-bd { flex: 1 1 auto; overflow: hidden; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.sp-ft { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; gap: 12px; justify-content: flex-end; background: var(--white); }
.icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--muted); border: 0; background: transparent; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--b50); }

/* Drawer (C3) */
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 480px; background: var(--white); box-shadow: var(--sh-lg); border-left: 1px solid var(--line); display: flex; flex-direction: column; z-index: 40; }
.scrim { position: absolute; inset: 0; background: rgba(37, 67, 51, 0.36); z-index: 30; }

/* ---------- Framework and value ---------- */
.chain { display: grid; grid-template-columns: 1fr 32px 1fr 32px 1fr; align-items: stretch; }
.chain-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--b50); display: flex; flex-direction: column; gap: 6px; }
.chain-box .lab { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.chain-box .sen { font-size: 15px; line-height: 22px; font-weight: 600; }
.chain-arrow { display: flex; align-items: center; justify-content: center; color: var(--red); }
.chain-arrow .down { display: none; }

.tbl { width: 100%; font-size: 14px; line-height: 20px; }
.tbl th { text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); padding: 0 12px 10px; vertical-align: bottom; white-space: nowrap; }
.tbl td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.name { font-weight: 600; }
.tbl tr.total td { font-weight: 600; border-top: 2px solid var(--ink); }
.tbl tr.hl td { background: var(--b50); }
.tbl td.changed { background: var(--b50); }
.tbl tr.is-hover td { background: var(--b50); }
.tbl .row-edit { color: var(--b600); }
.tbl .sub { display: block; color: var(--muted); font-size: 13px; line-height: 18px; font-weight: 400; }
.tbl-wrap { overflow-x: auto; }
.tag-new { color: var(--red-ink); font-size: 13px; line-height: 18px; font-weight: 600; white-space: nowrap; }

.lbl { display: inline; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.lbl-cash, .lbl-capacity, .lbl-avoided { color: var(--ivy); }
.lbl-notpriced, .lbl-signal { color: var(--muted); }
.lbl-cost { color: var(--red-ink); }

.grade { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.grade .gl { display: none; }
.grade.on-deep { color: var(--white); }
.grade.lg { font: 800 40px/44px var(--f-head); font-stretch: 88%; letter-spacing: -0.02em; }

.st { display: inline; font-size: 13px; line-height: 18px; font-weight: 600; }
.st i { display: none; }
.st-good { color: var(--st-good); }
.st-behind { color: var(--st-behind); }
.st-stopped { color: var(--st-stopped); }
.st-none { color: var(--st-none); }

.qm { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--field); background: transparent; color: var(--muted); font: 600 11px/1 var(--f-body); display: inline-flex; align-items: center; justify-content: center; flex: none; cursor: help; vertical-align: middle; }
.qm.on-deep { border-color: var(--b100); color: var(--b100); }
.tip { position: absolute; z-index: 20; background: var(--ink); color: var(--white); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 20px; width: 260px; box-shadow: var(--sh-lg); }
.tip-inline { position: relative; display: inline-block; background: var(--ink); color: var(--white); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 20px; max-width: 280px; }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles.t2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tile .cap { font-size: 13px; line-height: 20px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile .big { font: 800 40px/44px var(--f-head); font-stretch: 88%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile .ctx { font-size: 13px; line-height: 20px; color: var(--muted); }
.tile.compact { padding: 16px; }
.tile.compact .big { font-size: 32px; line-height: 38px; }
.tile.deep { background: var(--ivy); border-color: var(--ivy); color: var(--surface); }
.tile.deep .cap, .tile.deep .ctx { color: #D9DFD3; }

.strip { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh-sm); }
.strip .hd { font: 700 20px/26px var(--f-head); display: flex; align-items: center; gap: 10px; }
.strip .hd i { display: none; }
.strip p { color: var(--ink); }

.chart-card svg { display: block; }
.chart-scroll { overflow-x: auto; }
.chart-summary { font-size: 13px; line-height: 20px; color: var(--muted); margin-top: 12px; }

.wc { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc .ic { width: 14px; height: 14px; }
.wc-late { color: var(--st-behind); font-weight: 600; }
.wc-missing { color: var(--muted); }
.wc-for .ic { color: var(--b600); }
.wc-proof .ic { color: var(--muted); }

/* ---------- People ---------- */
.pill { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.pill .pn { font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; }
.pill .pr { font-size: 13px; line-height: 18px; color: var(--muted); white-space: nowrap; }
.pill .pt { display: flex; flex-direction: column; min-width: 0; }

.picker { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 10px 4px 6px; border: 1px solid var(--field); border-radius: 12px; background: var(--white); min-width: 220px; cursor: pointer; }
.picker > .ic:last-child { margin-left: auto; color: var(--muted); }
.picker.is-open { box-shadow: var(--focus); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; min-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-lg); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.menu.up { top: auto; bottom: calc(100% + 6px); }
.menu.rt { left: auto; right: 0; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 20px; white-space: nowrap; }
.menu-item:hover, .menu-item.is-hover { background: var(--b50); }
.menu-item.sel { background: var(--b100); }
.menu-item.add { color: var(--b600); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; padding-top: 10px; }
.menu-item.danger { color: var(--st-stopped); }
.menu-item .ic { color: var(--muted); }
.menu-item.add .ic { color: var(--b600); }

.link-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.link-row:first-child { border-top: 0; }
.link-row .gives { font-size: 14px; line-height: 20px; }
.link-row .gives .k { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 16px; }
.link-row .acts { display: flex; align-items: center; gap: 8px; }
.link-row .pill .pn, .link-row .pill .pr { white-space: normal; }
.task-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.task-st.not-opened { color: var(--muted); }
.task-st.opened { color: var(--b600); }
.task-st.given { color: var(--st-good); }
.task-st.late { color: var(--st-behind); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .field .flabel { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.field .src { font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 500; }
.input {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 12px;
  background: var(--white); font-size: 15px; line-height: 20px; color: var(--ink); min-width: 0; width: 100%;
}
.input .v { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.input .ph { flex: 1 1 auto; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input .unit { color: var(--muted); font-size: 14px; flex: none; }
.input .pre { color: var(--muted); flex: none; }
.input.ta { height: auto; min-height: 88px; align-items: flex-start; padding: 10px 12px; }
.input.ta .v, .input.ta .ph { white-space: normal; }
.input.is-focus { border-color: var(--b600); box-shadow: var(--focus); }
.input.is-error { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.input.is-disabled { background: var(--b50); border-color: var(--line); color: var(--muted); }
.input.is-changed { background: var(--b50); }
.input.is-readonly { background: var(--b50); border-color: var(--line); }
.input.is-warn { border-color: var(--warn-fg); }
.field .hint { font-size: 13px; line-height: 20px; color: var(--muted); }
.field .err { font-size: 13px; line-height: 20px; color: var(--error); display: flex; align-items: center; gap: 6px; }
.field .changed-note { font-size: 13px; line-height: 20px; color: var(--b600); font-weight: 500; }
.field .warn-note { font-size: 13px; line-height: 20px; color: var(--warn-fg); display: flex; gap: 6px; align-items: flex-start; background: var(--warn-bg); padding: 8px 10px; border-radius: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.form-grid .span2 { grid-column: 1 / -1; }

.check, .radio, .toggle-row { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 22px; min-height: 24px; cursor: pointer; }
.check .bx { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--field); background: var(--white); flex: none; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.check.on .bx { background: var(--ivy); border-color: var(--ivy); color: var(--surface); }
.radio .rd { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--field); background: var(--white); flex: none; margin-top: 1px; position: relative; }
.radio.on .rd { border-color: var(--ivy); }
.radio.on .rd::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--b600); }
.radio-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.radio-card.on { border-color: var(--ivy); background: var(--b50); }
.tg { width: 40px; height: 24px; border-radius: 999px; background: var(--b200); position: relative; flex: none; margin-top: -1px; }
.tg::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--white); top: 3px; left: 3px; box-shadow: var(--sh-sm); }
.tg.on { background: var(--b600); }
.tg.on::after { left: 19px; }
.toggle-row { align-items: center; justify-content: space-between; }

.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--white); border: 1px solid var(--field); gap: 2px; }
.seg span { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; color: var(--ink); }
.seg span.on { background: var(--ivy); color: var(--surface); }

.drop { border: 1.5px dashed var(--field); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; background: var(--white); }
.drop.empty { justify-content: center; flex-direction: column; text-align: center; gap: 8px; padding: 24px; }
.drop.attached { border-style: solid; border-color: var(--line); background: var(--b50); }
.drop.error { border-color: var(--error); }
.drop .fic { width: 40px; height: 40px; border-radius: 10px; background: var(--b100); color: var(--ivy); display: flex; align-items: center; justify-content: center; flex: none; }
.drop .fn { font-weight: 600; font-size: 14px; line-height: 20px; }
.drop .fs { font-size: 13px; line-height: 20px; color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: var(--b200); overflow: hidden; width: 100%; }
.progress > i { display: block; height: 100%; border-radius: 999px; background: var(--g-brand-progress); }

.step-mk { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 20px; font-weight: 600; color: var(--muted); }
.step-mk .bars { display: flex; gap: 4px; }
.step-mk .bars i { width: 28px; height: 4px; border-radius: 2px; background: var(--b200); }
.step-mk .bars i.on { background: var(--red); }

/* ---------- Messages and overlays ---------- */
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.banner .ic { margin-top: 0; }
.banner.info { background: var(--b100); color: var(--ink); }
.banner.info > .ic { color: var(--b600); }
.banner.warning { background: var(--warn-bg); color: var(--warn-fg); }
.banner .bt { flex: 1 1 auto; min-width: 0; }
.banner .ba { display: flex; gap: 8px; flex: none; align-items: center; }
.banner-bar { border-radius: 0; padding: 10px 20px; justify-content: center; }

.toast { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 60; background: var(--ivy); color: var(--white); border-radius: 12px; padding: 12px 16px 12px 18px; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 20px; box-shadow: var(--sh-lg); white-space: nowrap; }
.toast .ta { color: var(--surface); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.overlay { position: absolute; inset: 0; background: rgba(37, 67, 51, 0.36); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog { width: 480px; max-width: 100%; background: var(--white); border-radius: 16px; box-shadow: var(--sh-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.dialog.w560 { width: 560px; }
.dialog .dt { font: 700 20px/26px var(--f-head); }
.dialog .da { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.dialog .dsec { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.dialog .dsec h4 { font-size: 15px; font-weight: 600; }

.empty-st { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 40px 24px; }
.empty-st p { max-width: 420px; }

.sk { background: var(--g-shimmer); border-radius: 8px; display: block; }

.checklist { display: flex; flex-direction: column; }
.ck { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 22px; }
.ck:first-child { border-top: 0; }
.ck .ckm { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ck.done .ckm { background: var(--ivy); color: var(--surface); }
.ck.inprog .ckm { background: var(--b100); color: var(--b600); }
.ck.todo .ckm { border: 1.5px dashed var(--field); }
.ck.warning .ckm { background: var(--warn-bg); color: var(--warn-fg); }
.ck .ckt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ck .cks { font-size: 13px; color: var(--muted); }
.ck .cka { flex: none; }

.kv { display: flex; flex-direction: column; }
.kv-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 52px; }
.kv-row:first-child { border-top: 0; }
.kv-row .k { width: 160px; flex: none; color: var(--muted); font-size: 14px; }
.kv-row .v { font-weight: 600; flex: 1 1 auto; min-width: 0; }
.kv-row .e { color: var(--b600); opacity: 0; }
.kv-row.is-hover { background: var(--b50); margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
.kv-row.is-hover .e, .kv-row:hover .e { opacity: 1; }
.kv-row .r { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.split { display: flex; height: 28px; border-radius: 8px; overflow: hidden; width: 100%; }
.split > i { display: block; height: 100%; }
.split-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; line-height: 20px; }
.split-legend span { display: inline-flex; align-items: center; gap: 8px; }
.split-legend b { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.note-box { background: var(--b50); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 22px; }
.note-box .nt { font-weight: 600; font-size: 14px; }
.lock-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; color: var(--muted); }

.expand-line { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--b600); cursor: pointer; }
.sec-title { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--muted); }
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bul { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.bul li { display: flex; gap: 8px; align-items: flex-start; }
.bul li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--b400); margin-top: 8px; flex: none; }
.bul.lock li::before { display: none; }

/* ---------- Page layout (dashboards) ---------- */
.page { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.frame.auto .page { overflow: visible; }
.page-col { width: 1120px; max-width: 100%; margin: 0 auto; padding: 24px 0 48px; display: flex; flex-direction: column; gap: 24px; }
.page-pad { padding: 0 30px; }

/* ---------- Link pages (B) ---------- */
.lp { min-height: 100%; display: flex; flex-direction: column; }
.lp > * { min-width: 0; }
.auth > * { min-width: 0; }
.lp-hd { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 32px; background: var(--white); border-bottom: 1px solid var(--line); }
.lp-hd .lp-note { margin-left: auto; font-size: 13px; line-height: 20px; color: var(--muted); }
.lp-col { width: 720px; max-width: 100%; margin: 0 auto; padding: 40px 0 48px; display: flex; flex-direction: column; gap: 24px; }
.lp-actions { display: flex; align-items: center; gap: 12px; }
.lp-actions .btn-primary { order: 2; }

/* ---------- Auth (A1–A3) ---------- */
.auth { display: grid; grid-template-columns: 600px 1fr; height: 100%; }
.auth-left { background: var(--ivy); color: var(--surface); padding: 40px 56px; display: flex; flex-direction: column; }
.auth-left .mid { margin: auto 0; display: flex; flex-direction: column; gap: 20px; }
.auth-left .lead { color: #D9DFD3; font-size: 16px; line-height: 26px; max-width: 440px; }
.auth-left .ticks { display: flex; flex-direction: column; gap: 12px; color: var(--white); font-size: 15px; }
.auth-left .ticks li { display: flex; align-items: center; gap: 10px; }
.auth-left .ticks .ic { color: var(--red); }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 420px; max-width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.auth-card .or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.auth-card .or::before, .auth-card .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card .foot { display: flex; gap: 16px; font-size: 13px; color: var(--muted); justify-content: center; padding-top: 8px; border-top: 1px solid var(--line); }
.code-boxes { display: flex; gap: 8px; }
.code-boxes span { width: 48px; height: 56px; border: 1px solid var(--field); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font: 600 24px/1 var(--f-head); font-variant-numeric: tabular-nums; background: var(--white); }
.code-boxes span.focus { box-shadow: var(--focus); border-color: var(--b600); }
.code-boxes.error span { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }

/* ---------- Phone ---------- */
@container frame (max-width: 600px) {
  .frame, .scr { font-size: 15px; }
  .btn { height: 48px; }
  .btn.sm { height: 40px; }
  .chip { height: 44px; }
  .input { height: 48px; }
  .btn-google, .btn-ms { height: 48px; }

  .app { grid-template-rows: 56px minmax(0, 1fr); }
  .app-hd { padding: 0 12px 0 4px; gap: 4px; }
  .app-hd .menu-btn { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--ink); }
  .app-hd .co-switch { display: none; }
  .sidebar { display: none; }
  .app.drawer-open .sidebar { display: flex; position: absolute; top: 0; bottom: 0; left: 0; width: 300px; z-index: 45; box-shadow: var(--sh-lg); }
  .app.drawer-open .app-body::after { content: ""; position: absolute; inset: 0; background: rgba(37, 67, 51, 0.36); z-index: 40; }

  .ini-top { padding: 12px 16px 0; }
  .ini-top .tabs { overflow-x: auto; scrollbar-width: none; gap: 20px; }
  .ini-top.pg { padding: 16px 16px 0; }
  .ini-top.pg .ini-title { font-size: 24px; line-height: 30px; }
  .convo-col { padding: 20px 16px 16px; gap: 20px; }
  .composer-wrap { padding: 8px 16px 16px; }
  .msg-user { max-width: 85%; }

  .card-hd { padding: 14px 16px; min-height: 64px; flex-wrap: wrap; gap: 8px; }
  .card-hd .meta { margin-left: 0; width: 100%; justify-content: space-between; text-align: left; }
  .card-hd .ttl { font-size: 18px; line-height: 24px; }
  .card-bd { padding: 16px; gap: 16px; }
  .card-ft { padding: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .card-ft .hint { margin-right: 0; }
  .card-actions { flex-direction: column-reverse; align-items: stretch; margin-left: 0; width: 100%; }
  .card-actions .btn { width: 100%; }

  .chain { grid-template-columns: 1fr; grid-template-rows: auto 28px auto 28px auto; }
  .chain-arrow .rightw { display: none; }
  .chain-arrow .down { display: inline-block; }

  .tbl.tbl-stack thead { display: none; }
  .tbl.tbl-stack, .tbl.tbl-stack tbody, .tbl.tbl-stack tr, .tbl.tbl-stack td { display: block; width: 100%; }
  .tbl.tbl-stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--white); }
  .tbl.tbl-stack tr.hl, .tbl.tbl-stack tr.hl td { background: var(--b50); }
  .tbl.tbl-stack td { border: 0; padding: 4px 0; text-align: left; }
  .tbl.tbl-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
  .tbl.tbl-stack td.name { font-size: 15px; padding-bottom: 6px; }
  .tbl.tbl-stack td.name::before { display: none; }
  .tbl.tbl-stack tr.total { border-color: var(--ink); }

  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tiles .tile.full { grid-column: 1 / -1; }
  .tiles.t3 { grid-template-columns: 1fr; }
  .tile { padding: 16px; }
  .tile .big { font-size: 32px; line-height: 38px; }
  .cols2, .cols3, .form-grid { grid-template-columns: 1fr; }
  .page-col { padding: 16px 16px 40px; gap: 16px; }
  .strip { padding: 16px; }

  .link-row { grid-template-columns: 1fr; gap: 10px; }
  .drop.attached { flex-wrap: wrap; }
  .drop.attached > .grow { flex: 1 1 calc(100% - 56px); }
  .kv-row .k { width: 112px; }

  .lp-hd { height: auto; min-height: 64px; padding: 10px 16px; flex-wrap: wrap; gap: 2px 12px; }
  .lp-hd .lp-note { margin-left: 0; width: 100%; font-size: 12px; line-height: 16px; }
  .lp-col { padding: 24px 16px 120px; gap: 20px; }
  .lp-actions { flex-direction: column; align-items: stretch; }
  .lp-actions .btn { width: 100%; }
  .lp-actions .btn-primary { order: 0; position: absolute; left: 0; right: 0; bottom: 0; width: auto; margin: 0; border-radius: 0; height: auto; padding: 16px; background: var(--white); box-shadow: 0 -1px 0 var(--line); }
  .lp-actions .btn-primary > .pin { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 12px; background: var(--ivy); color: var(--surface); }
  .lp-actions .btn-primary.is-disabled > .pin { background: var(--b100); color: var(--muted); }

  .auth { grid-template-columns: 1fr; grid-template-rows: 220px auto; height: auto; min-height: 100%; }
  .auth-left { padding: 24px 16px; }
  .auth-left .mid { margin: 24px 0 0; gap: 8px; }
  .auth-left .t-hero { font-size: 32px; line-height: 38px; }
  .auth-left .lead, .auth-left .preview, .auth-left .ticks { display: none; }
  .auth-right { padding: 24px 16px; align-items: flex-start; }
  .auth-card { padding: 20px 16px; box-shadow: var(--sh-sm); }
  .code-boxes { gap: 6px; }
  .code-boxes span { width: 44px; height: 52px; }

  .side-panel { position: absolute; inset: 0; width: auto; z-index: 45; border-left: 0; }
  .drawer { width: 100%; }
  .dialog { padding: 20px 16px; }
  .dialog .da { flex-direction: column-reverse; }
  .dialog .da .btn { width: 100%; }
  .overlay { align-items: flex-end; padding: 0; }
  .overlay .dialog { border-radius: 16px 16px 0 0; width: 100%; }

  .hide-phone { display: none !important; }
}
@container frame (min-width: 601px) {
  .only-phone { display: none !important; }
}


/* ---------- QA pass fixes ---------- */
.btn-danger.quiet { background: transparent; }
.banner:has(.ba) { align-items: center; }
.card-hd > .ic { align-self: flex-start; margin-top: 4px; }
.card-hd + .card-bd { padding-top: 16px; }
.field .picker { width: 100%; }
.msg-user, .msg-guide .txt p { text-wrap: pretty; }
.link-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "p s a" "g g g"; row-gap: 6px; }
.link-row > .pill { grid-area: p; }
.link-row > .gives { grid-area: g; padding-left: 42px; }
.link-row > div:nth-child(3) { grid-area: s; }
.link-row > .acts { grid-area: a; }
.convo-col.narrow .collapsed-row { flex-wrap: wrap; }
.convo-col.narrow .collapsed-row > .strong { flex: 1 1 0; }
.convo-col.narrow .collapsed-row .note { flex: 1 0 100%; order: 3; margin-left: 32px; }
@container frame (max-width: 600px) {
  .link-row { grid-template-columns: 1fr; grid-template-areas: "p" "g" "s" "a"; }
  .link-row > .gives { padding-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: vs-rise 200ms ease-out both; }
  @keyframes vs-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
