/* folio-web — ported verbatim from OpenDesign folio-web.html (project 4aed6fca,
 * BRIEF-web.md, 2026-10-23); prototype bar removed, dark set from the system in app.js. */
/* ─── tokens (Folio, unchanged) ─── */
  :root {
    --bg:      oklch(98% 0.004 95);
    --surface: oklch(100% 0.002 95);
    --fg:      oklch(20% 0.018 70);
    --muted:   oklch(48% 0.012 70);
    --border:  oklch(90% 0.006 95);
    --accent:  oklch(52% 0.10 28);
    --accent-soft: color-mix(in oklch, var(--accent) 14%, transparent);
    --muted-2:     color-mix(in oklch, var(--muted) 78%, var(--bg));
    --fg-soft:     color-mix(in oklch, var(--fg) 6%, transparent);
    --fg-softer:   color-mix(in oklch, var(--fg) 3.5%, transparent);
    --chrome:      color-mix(in oklch, var(--bg) 86%, var(--fg) 14%);
    --chrome-2:    color-mix(in oklch, var(--bg) 93%, var(--fg) 7%);
    --ok:        oklch(52% 0.075 155);
    --ok-soft:   color-mix(in oklch, var(--ok) 15%, transparent);
    --warn:      oklch(60% 0.09 75);
    --warn-soft: color-mix(in oklch, var(--warn) 18%, transparent);
    --font-display: 'Iowan Old Style', 'Charter', Georgia, 'Times New Roman', serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    --radius: 10px;
    --radius-lg: 16px;
    --on-accent: oklch(99% 0 0);
    --shadow: 0 1px 2px color-mix(in oklch, var(--fg) 6%, transparent), 0 12px 32px -12px color-mix(in oklch, var(--fg) 18%, transparent);
  }
  [data-mode="dark"] {
    --bg:      oklch(22% 0.005 95);
    --surface: oklch(27% 0.006 95);
    --fg:      oklch(93% 0.006 70);
    --muted:   oklch(70% 0.012 70);
    --border:  oklch(34% 0.006 95);
    --accent:  oklch(67% 0.105 28);
    --ok:      oklch(72% 0.10 155);
    --warn:    oklch(80% 0.105 75);
    --muted-2:     color-mix(in oklch, var(--muted) 78%, var(--bg));
    --chrome:      color-mix(in oklch, var(--bg) 86%, black);
    --chrome-2:    color-mix(in oklch, var(--bg) 93%, black);
    --fg-soft:     color-mix(in oklch, var(--fg) 9%, transparent);
    --fg-softer:   color-mix(in oklch, var(--fg) 5.5%, transparent);
    --accent-soft: color-mix(in oklch, var(--accent) 22%, transparent);
    --ok-soft:     color-mix(in oklch, var(--ok) 24%, transparent);
    --warn-soft:   color-mix(in oklch, var(--warn) 26%, transparent);
    --on-accent: oklch(17% 0.012 70);
    --shadow: 0 1px 2px oklch(0% 0 0 / .3), 0 16px 40px -14px oklch(0% 0 0 / .6);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { background: var(--bg); color-scheme: light; }
  html[data-mode="dark"] { color-scheme: dark; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  ::selection { background: var(--accent-soft); }
  :root { --ring: color-mix(in oklch, var(--fg) 35%, transparent); --ring-soft: color-mix(in oklch, var(--fg) 12%, transparent); }
  :focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
  svg { display: block; }
  h1, h2, h3 { text-wrap: balance; margin: 0; }
  p { text-wrap: pretty; margin: 0; }
  button, input, select { font: inherit; color: inherit; }
  a { color: inherit; }
  .mono { font-family: var(--font-mono); }
  .eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

  /* ─── prototype bar (not product UI) ─── */
  .seg { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 9px; background: var(--fg-soft); flex: 0 1 auto; min-width: 0; }
  .seg button {
    border: 0; background: transparent; color: var(--muted); padding: 5px 10px; border-radius: 7px;
    cursor: pointer; white-space: nowrap; font-size: 12px; min-height: 28px;
  }
  .seg button:hover { color: var(--fg); background: var(--fg-soft); }
  .seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px color-mix(in oklch, var(--fg) 14%, transparent); }
  .seg .n { font-family: var(--font-mono); font-size: 10px; color: var(--muted-2); margin-right: 5px; }
  .seg button[aria-pressed="true"] .n { color: var(--accent); }

  /* ─── app header ─── */
  .wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
  header.top { border-bottom: 1px solid var(--border); background: var(--bg); }
  .top-in { display: flex; align-items: center; gap: 22px; height: 58px; }
  .mark { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--fg); }
  .glyph { width: 24px; height: 24px; border-radius: 7px; flex: none; background: var(--fg); position: relative; }
  .glyph::after { content: ""; position: absolute; inset: 6px 6px auto 6px; height: 2px; background: var(--bg); box-shadow: 0 5px 0 var(--bg), 0 10px 0 var(--accent); }
  .mark b { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
  .mark small { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; padding: 2px 6px; border: 1px solid var(--border); border-radius: 5px; }
  nav.tabs { display: flex; gap: 4px; margin-right: auto; }
  nav.tabs a { text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 8px; font-size: 14px; }
  nav.tabs a:hover { color: var(--fg); background: var(--fg-soft); }
  nav.tabs a[aria-current="page"] { color: var(--fg); background: var(--fg-soft); }
  .me { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font-size: 13px; min-height: 36px; }
  .me:hover { background: var(--chrome-2); }

  /* ─── buttons ─── */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px; border-radius: var(--radius);
    font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer;
    border: 1px solid transparent; white-space: nowrap;
    transition: background .14s, border-color .14s, color .14s, transform .1s;
  }
  .btn:active { transform: translateY(1px); }
  .btn svg { width: 17px; height: 17px; flex: none; }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: oklch(from var(--accent) calc(l - 0.07) c h); color: var(--on-accent); }
  [data-mode="dark"] .btn-primary:hover { background: oklch(from var(--accent) calc(l + 0.07) c h); }
  .btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border); }
  .btn-ghost:hover { background: var(--chrome-2); border-color: color-mix(in oklch, var(--fg) 22%, transparent); color: var(--fg); }
  .btn-quiet { background: transparent; color: var(--fg); }
  .btn-quiet:hover { background: var(--fg-soft); color: var(--fg); }
  .btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
  .btn-block { width: 100%; }
  .btn[disabled] { opacity: .55; cursor: default; transform: none; }
  .tlink { color: var(--fg); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--accent) 40%, transparent); padding-bottom: 1px; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; font-size: inherit; }
  .tlink:hover { border-bottom-color: var(--accent); background: var(--accent-soft); }
  .iconbtn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
  .iconbtn:hover { background: var(--fg-soft); color: var(--fg); }
  .iconbtn svg { width: 18px; height: 18px; }

  /* ─── fields ─── */
  .field { display: grid; gap: 6px; }
  .field label { font-size: 12.5px; color: var(--muted); }
  .input, .select {
    min-height: 44px; border: 1px solid var(--border); background: var(--surface); color: var(--fg);
    border-radius: var(--radius); padding: 0 14px; font-size: 14.5px; width: 100%;
  }
  .input::placeholder { color: var(--muted-2); }
  .input:hover, .select:hover { border-color: color-mix(in oklch, var(--fg) 24%, transparent); }
  .input:focus, .select:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }
  .input[aria-invalid="true"] { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
  .err { font-size: 12.5px; color: var(--fg); display: flex; gap: 6px; align-items: center; }
  .err svg { width: 14px; height: 14px; color: var(--warn); }
  .select { appearance: none; padding-right: 36px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
  .search { position: relative; }
  .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
  .search .input { padding-left: 36px; }

  /* ─── pills, avatars ─── */
  .pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 550; background: var(--chrome-2); color: var(--fg); border: 1px solid var(--border); white-space: nowrap; }
  .pill.owner { background: var(--accent-soft); border-color: transparent; }
  .pill.manage { background: var(--ok-soft); border-color: transparent; }
  .pill.future { background: var(--warn-soft); border-color: transparent; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
  .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 650; color: var(--fg); background: var(--chrome); border: 2px solid var(--surface); flex: none; text-transform: uppercase; }
  .av.t { background: color-mix(in oklch, var(--accent) 26%, var(--surface)); }
  .av.b { background: color-mix(in oklch, var(--ok) 26%, var(--surface)); }
  .av.a { background: color-mix(in oklch, var(--warn) 30%, var(--surface)); }
  .av.lg { width: 34px; height: 34px; font-size: 13px; }
  .stack { display: flex; }
  .stack .av + .av { margin-left: -8px; }
  .stack .more { background: var(--chrome-2); color: var(--muted); font-size: 10.5px; }

  /* ─── sign in ─── */
  .auth { min-height: calc(100vh - 46px); display: grid; place-items: center; padding: 48px 16px; }
  .auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px 30px; box-shadow: var(--shadow); }
  .auth-card .mark { margin-bottom: 26px; }
  .auth h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 8px; }
  .auth .lede { color: var(--muted); margin-bottom: 24px; }
  .or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 18px 0; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
  .auth form { display: grid; gap: 10px; }
  .auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }
  .auth-foot .tlink { font-size: 13.5px; }
  .gmark { width: 18px; height: 18px; }
  .sent-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--fg); display: grid; place-items: center; margin-bottom: 18px; }
  .sent-ico svg { width: 24px; height: 24px; }
  .sent-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
  .fine { font-size: 12.5px; color: var(--muted); margin-top: 18px; }

  /* ─── page scaffold ─── */
  main.page { padding-block: 34px 72px; }
  .page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
  .page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.02em; line-height: 1.1; margin-right: auto; }
  .page-head .search { width: min(300px, 100%); }

  /* ─── download banner ─── */
  .banner { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 20px 20px 22px; margin-bottom: 28px; }
  .banner .app-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--fg); position: relative; }
  .banner .app-ico::after { content: ""; position: absolute; inset: 13px 12px auto 12px; height: 3px; border-radius: 2px; background: var(--bg); box-shadow: 0 7px 0 var(--bg), 0 14px 0 var(--accent); }
  .banner h2 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 4px; }
  .banner p { color: var(--muted); font-size: 13.5px; }
  .gains { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 14px; padding: 0; list-style: none; font-size: 13.5px; }
  .gains li { display: flex; gap: 7px; align-items: center; }
  .gains svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
  .banner .acts { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .banner .why { font-size: 12px; color: var(--muted); }

  /* ─── project list ─── */
  .group { margin-bottom: 30px; }
  .group-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
  .group-h h2 { font-size: 13px; font-weight: 650; }
  .group-h span { font-size: 12px; color: var(--muted); }
  .plist { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
  .prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px minmax(0, 220px) 104px; gap: 16px; align-items: center; padding: 14px 18px; text-decoration: none; color: var(--fg); cursor: pointer; border: 0; background: transparent; width: 100%; text-align: left; }
  .prow + .prow { border-top: 1px solid var(--border); }
  .prow:hover { background: var(--chrome-2); }
  .ptile { width: 40px; height: 40px; border-radius: 10px; background: var(--chrome-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
  .ptile svg { width: 19px; height: 19px; }
  .pname b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pname small { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
  .pchange { font-size: 13px; color: var(--muted); }
  .pchange b { color: var(--fg); font-weight: 550; }
  .prow .stack { justify-content: flex-end; }
  .none { padding: 28px 18px; text-align: center; color: var(--muted); font-size: 13.5px; }

  .empty { background: var(--surface); border: 1px dashed color-mix(in oklch, var(--fg) 20%, transparent); border-radius: var(--radius-lg); padding: 44px 28px; text-align: center; }
  .empty h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin-bottom: 6px; }
  .empty > p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
  .ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin: 0 auto; text-align: left; }
  .way { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--bg); }
  .way .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
  .way h3 { font-size: 14.5px; font-weight: 600; margin: 4px 0 4px; }
  .way p { font-size: 13px; color: var(--muted); }

  /* ─── project page ─── */
  .crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
  .crumbs a { text-decoration: none; color: var(--muted); }
  .crumbs a:hover { color: var(--fg); text-decoration: underline; }
  .phead { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
  .phead .t { margin-right: auto; min-width: 0; }
  .phead h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -0.022em; line-height: 1.08; margin-bottom: 8px; }
  .phead .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
  .phead .acts { display: flex; gap: 10px; flex-wrap: wrap; }
  .pgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 290px; gap: 22px; align-items: start; }
  .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
  .panel-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
  .panel-h h2 { font-size: 12px; font-weight: 650; letter-spacing: .02em; margin-right: auto; }
  .tree { padding: 0 6px 8px; }
  .titem { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13px; color: var(--fg); min-height: 34px; }
  .titem:hover { background: var(--fg-soft); }
  .titem[aria-selected="true"] { background: var(--accent-soft); }
  .titem svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
  .titem .caret { width: 12px; height: 12px; transition: transform .14s; }
  .titem[aria-expanded="true"] .caret { transform: rotate(90deg); }
  .titem span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .tchildren { padding-left: 18px; }
  .tchildren[hidden] { display: none; }
  .tree-note { font-size: 11.5px; color: var(--muted); padding: 8px 14px 12px; border-top: 1px solid var(--border); }

  .reader { min-height: 560px; }
  .reader-h { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .reader-h svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
  .reader-h b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .reader-h .kind { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
  .words-note { font-size: 12px; color: var(--muted); padding: 10px 20px; background: var(--fg-softer); border-bottom: 1px solid var(--border); }
  .slides { padding: 6px 28px 24px; }
  .slide { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 22px 0; }
  .slide + .slide { border-top: 1px solid var(--border); }
  .slide .no { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); padding-top: 4px; }
  .slide h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 8px; }
  .slide p { margin-bottom: 6px; max-width: 62ch; }
  .slide .sub { color: var(--muted); }
  .slide ul { margin: 6px 0 0; padding-left: 18px; max-width: 62ch; }
  .slide li { margin-bottom: 4px; }
  .slide .pics { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
  .slide .pics svg { width: 14px; height: 14px; }
  .doc-page { padding: 34px clamp(20px, 5vw, 56px) 44px; max-width: 720px; }
  .doc-page h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 14px; }
  .ph-lines { display: grid; gap: 10px; margin: 18px 0 8px; }
  .ph-lines i { display: block; height: 10px; border-radius: 4px; background: var(--fg-soft); }
  .ph-cap { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
  .noview { padding: 70px 24px; text-align: center; }
  .noview .ico { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 14px; background: var(--chrome-2); display: grid; place-items: center; color: var(--muted); }
  .noview .ico svg { width: 26px; height: 26px; }
  .noview h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .noview p { color: var(--muted); margin-bottom: 18px; }

  .side { display: grid; gap: 16px; }
  .ver { padding: 4px 14px 14px; }
  .ver b { display: block; font-weight: 600; font-size: 14px; line-height: 1.35; }
  .ver .by { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin: 6px 0 10px; }
  .ver .by .av { width: 22px; height: 22px; font-size: 10px; border-width: 0; }
  .touched { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .touched li { display: flex; gap: 7px; align-items: center; font-size: 12.5px; min-width: 0; }
  .touched svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
  .touched span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .panel-foot { padding: 10px 14px 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
  .people { list-style: none; margin: 0; padding: 0 8px 8px; }
  .person { display: flex; align-items: center; gap: 10px; padding: 7px 6px; }
  .person .who { margin-right: auto; min-width: 0; font-size: 13.5px; }
  .person .who small { display: block; font-size: 12px; color: var(--muted); }
  .who .you { display: inline; margin-left: 6px; font-size: 12px; color: var(--muted); }
  .person .av { border-width: 0; }

  /* ─── sheets (share, not installed) ─── */
  .scrim { position: fixed; inset: 0; z-index: 80; background: color-mix(in oklch, var(--fg) 26%, transparent); display: grid; place-items: center; padding: 20px; }
  [data-mode="dark"] .scrim { background: oklch(0% 0 0 / .55); }
  .sheet { width: min(560px, 100%); max-height: calc(100vh - 80px); overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
  .sheet.sm { width: min(440px, 100%); }
  .sheet { position: relative; }
  .sheet-h { padding: 22px 60px 4px 24px; }
  .sheet-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
  .sheet-h h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.2; }
  .sheet-h p { color: var(--muted); font-size: 13px; margin-top: 2px; }
  .sec { padding: 16px 24px; }
  .sec + .sec { border-top: 1px solid var(--border); }
  .sec h3 { font-size: 12.5px; font-weight: 650; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
  .sec h3 small { font-weight: 400; color: var(--muted); }
  .row { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
  .row .input { flex: 1 1 200px; width: auto; }
  .row .select { width: 140px; }
  .linkbox { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius); padding: 6px 6px 6px 12px; }
  .linkbox code { font-family: var(--font-mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
  .hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
  .minis { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--fg-soft); width: max-content; }
  .minis button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; min-height: 32px; }
  .minis button:hover { color: var(--fg); }
  .minis button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px color-mix(in oklch, var(--fg) 14%, transparent); }
  .ilist { list-style: none; margin: 0; padding: 0; }
  .sheet { --role-w: 130px; --act-w: 92px; }
  .ilist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) var(--role-w) var(--act-w); align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; font-size: 13.5px; }
  .ilist .role, .ilist .act { display: flex; align-items: center; min-width: 0; }
  .ilist .act { justify-content: flex-end; }
  .ilist .act .btn { width: 100%; }
  #invForm { display: grid; grid-template-columns: minmax(0, 1fr) var(--role-w) var(--act-w); gap: 10px; }
  #invForm .input, #invForm .select { width: 100%; }
  #invForm .btn { width: 100%; padding: 0; }
  .btn-warn { background: transparent; color: color-mix(in oklch, var(--warn), var(--fg) 30%); font-weight: 450; }
  .btn-warn:hover { background: var(--warn-soft); color: color-mix(in oklch, var(--warn), var(--fg) 30%); }
  .win { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
  .win-label { font-size: 13.5px; font-weight: 550; }
  .dl-card .win-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
  .ilist li + li { border-top: 1px solid var(--border); }
  .ilist .who { min-width: 0; overflow-wrap: anywhere; }
  .ilist .who small { display: block; color: var(--muted); font-size: 12px; }
  .ilist .select { width: 100%; min-height: 36px; font-size: 13px; }
  .ilist .owner-note { font-size: 13px; color: var(--muted); padding-left: 14px; }
  .locked { display: flex; gap: 12px; align-items: flex-start; background: var(--fg-softer); border-radius: var(--radius); padding: 14px; font-size: 13.5px; }
  .locked svg { width: 18px; height: 18px; color: var(--muted); flex: none; margin-top: 1px; }
  .toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 120; box-shadow: var(--shadow); }
  .steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
  .steps li { counter-increment: s; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13.5px; }
  .steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--chrome-2); border: 1px solid var(--border); font-size: 11px; font-family: var(--font-mono); display: grid; place-items: center; }
  .steps small { display: block; color: var(--muted); font-size: 12.5px; }
  .spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: sp .8s linear infinite; }
  @keyframes sp { to { transform: rotate(360deg); } }

  /* ─── join ─── */
  .join-card { text-align: left; }
  .join-card .from { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
  .join-card h1 em { font-style: italic; }
  .proj-mini { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); margin-bottom: 20px; }
  .proj-mini b { display: block; font-size: 14.5px; }
  .proj-mini small { color: var(--muted); font-size: 12.5px; }

  /* ─── download page ─── */
  .dl { max-width: 760px; margin: 0; padding: 56px 0 80px; }
  .dl h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -0.026em; line-height: 1.06; margin: 12px 0 14px; }
  .dl .lede { color: var(--muted); font-size: 17px; max-width: 54ch; margin-bottom: 28px; }
  .dl-main { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 38px; }
  .dl-main .spec { font-size: 13px; color: var(--muted); }
  .dl-main .spec b { color: var(--fg); font-weight: 550; }
  .dl-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
  .dl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
  .dl-card h2 { font-size: 15px; font-weight: 650; margin-bottom: 12px; }
  .plat { list-style: none; margin: 0; padding: 0; }
  .plat li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 13.5px; }
  .plat li + li { border-top: 1px solid var(--border); }
  .plat span:last-child { color: var(--muted); text-align: right; }
  .plat .ready { color: var(--ok); font-weight: 550; }

  /* ─── Daktylo (future) ─── */
  .future-flag { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--radius); background: var(--warn-soft); font-size: 13px; margin-bottom: 18px; }
  .ask { padding: 14px; }
  .ask textarea { width: 100%; min-height: 72px; resize: vertical; border: 1px solid var(--border); background: var(--bg); color: var(--fg); border-radius: var(--radius); padding: 10px 12px; font: inherit; font-size: 14px; }
  .ask textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }
  .ask .row { margin-top: 10px; justify-content: space-between; align-items: center; }
  .ask .row small { color: var(--muted); font-size: 12px; }
  .proposal { border-top: 1px solid var(--border); padding: 16px 14px; }
  .proposal .who { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
  .proposal .who svg { width: 16px; height: 16px; color: var(--accent); }
  .proposal b { display: block; font-size: 15px; margin-bottom: 4px; }
  .proposal p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
  .proposal .row { margin-top: 12px; align-items: center; }
  .proposal .done { font-size: 13px; display: flex; gap: 7px; align-items: center; }
  .proposal .done svg { width: 15px; height: 15px; color: var(--ok); }

  /* ─── footer ─── */
  footer.foot { border-top: 1px solid var(--border); padding: 22px 0 30px; font-size: 12.5px; color: var(--muted); }
  footer.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; }
  footer.foot a { color: var(--muted); text-decoration: none; }
  footer.foot a:hover { color: var(--fg); text-decoration: underline; }
  footer.foot .sp { margin-right: auto; }

  /* ─── responsive ─── */
  @media (max-width: 1060px) {
    .pgrid { grid-template-columns: 230px minmax(0, 1fr); }
    .side { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 780px) {
    nav.tabs { display: none; }
    .top-in { justify-content: space-between; }
    .prow { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 6px; }
    .prow .pchange { grid-column: 2 / 4; }
    .prow .stack { display: none; }
    .banner { grid-template-columns: 1fr auto; }
    .banner .app-ico { display: none; }
    .ways, .dl-grid { grid-template-columns: 1fr; }
    .pgrid { grid-template-columns: 1fr; }
    .side { grid-template-columns: 1fr; }
    .phead .acts { width: 100%; }
    .phead .acts .btn { flex: 1; }
    .slides { padding: 4px 18px 18px; }
    .me .nm { display: none; }
  }
  @media (max-width: 520px) {
    .sheet { --role-w: 116px; --act-w: 84px; }
    #invForm { grid-template-columns: minmax(0, 1fr) var(--act-w); }
    #invForm .input { grid-column: 1 / -1; }
    .ilist li { grid-template-columns: 26px minmax(0, 1fr) var(--role-w); }
    .ilist li .act { grid-column: 2 / -1; }
    .ilist li .act:empty { display: none; }
  }

/* live site: footer at the bottom on short pages; stacked avatars apart */
#app { min-height: 100vh; display: flex; flex-direction: column; }
#app > main { flex: 1 0 auto; width: 100%; }
.stack .av { box-shadow: 0 0 0 2px var(--surface); }
.sheet p, .steps small, .lede { text-wrap: pretty; }
