/* Unfold — the shell. It looks like the hz design spec it grew out of:
   the same tokens (tokens.css), the same top bar, hero, sections and phone
   frames, the same notes and approve controls. Only what hz-design does not
   have — the project menu, accounts — is added, in the same language. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--canvas-text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dim { color: var(--canvas-text-2); }
.grow { flex: 1; min-width: 0; }
.empty { padding: 80px 24px; color: var(--canvas-text-2); text-align: center; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
kbd { font-family: var(--font-sans); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text); border: 0.5px solid var(--line-strong); }
.wrap { max-width: 1680px; margin: 0 auto; padding: 0 40px 120px; }

/* --- top bar ----------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 0.5px solid var(--line-strong); }
.top__in { padding: 14px 40px 14px 34px; display: flex; align-items: center; gap: 22px; min-height: 64px; }
.menubtn { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -10px 0 -8px; border: none; background: none; border-radius: 10px;
  color: var(--canvas-text); padding: 0; flex: none; }
.menubtn:hover { background: var(--surface-2); }
.menubtn svg { width: 18px; height: 14px; display: block; }
.top__mark { font-weight: 800; letter-spacing: -1px; font-size: 22px; text-decoration: none; flex: none; }
.top__nav { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.top__nav a { color: var(--canvas-text-2); text-decoration: none; font-size: 13px; }
.top__nav a:hover { color: var(--canvas-text); }
.top__nav a.strong, .top__nav b { color: var(--canvas-text); font-weight: 600; font-size: 13px; }
.top__nav .sep { color: var(--canvas-text-2); opacity: .5; font-size: 13px; }
.top__end { display: flex; align-items: center; gap: 14px; flex: none; }
.top__live { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.top__live[data-state="on"] { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.top__who { display: flex; }
.who { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--av-2); margin-left: -6px; box-shadow: 0 0 0 2px var(--canvas); text-decoration: none; flex: none; }
.top__ai { display: flex; align-items: center; gap: 8px; max-width: 340px; font-size: 13px; color: var(--accent-ink); }
.top__ai span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.themebtn, .seg { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; }
.themebtn button, .seg button { border: none; background: none; padding: 7px 13px; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.themebtn button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg button { padding: 6px 12px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- the menu: a sidebar of teams and projects, like a docs site's ------------------- */
.shell { display: grid; grid-template-columns: 0 minmax(0, 1fr); transition: grid-template-columns .3s cubic-bezier(.22,1,.36,1); }
body[data-menu] .shell { grid-template-columns: 284px minmax(0, 1fr); }
#main { min-width: 0; }
.sidenav { position: sticky; top: 65px; height: calc(100vh - 65px); overflow: hidden auto; padding: 22px 16px 48px 28px;
  visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s .3s; scrollbar-width: none; }
.sidenav::-webkit-scrollbar { display: none; }
body[data-menu] .sidenav { visibility: visible; opacity: 1; transition: opacity .25s ease .05s; }
.sidenav-scrim { display: none; }
.sidenav__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 26px 0 8px; padding: 0 12px;
  font-size: 15px; font-weight: 600; color: var(--canvas-text); letter-spacing: -.1px; }
.sidenav__h:first-child { margin-top: 0; }
.sidenav__h .grow { flex: 1; }
.sidenav__h a + a { margin-left: -4px; }
.navitem--gap { margin-top: 18px; }
.sidenav__h a { color: var(--canvas-text-2); font-size: 16px; text-decoration: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.sidenav__h a:hover { color: var(--canvas-text); background: var(--surface-2); }
.navitem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px 12px; margin: 1px 0; border: none; background: none;
  border-radius: 10px; color: var(--canvas-text-2); font-size: 15px; text-decoration: none; text-align: left; transition: color .15s, background .15s; }
.navitem:hover { color: var(--canvas-text); }
.navitem[aria-current="page"] { background: var(--surface-2); color: var(--canvas-text); font-weight: 500; }
.navitem > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navitem > i { font-size: 16px; color: var(--canvas-text-2); opacity: .8; flex: none; transition: transform .2s cubic-bezier(.22,1,.36,1); }
.navitem[aria-expanded="true"] > i.ti-chevron-right { transform: rotate(90deg); }
.navitem--muted { color: var(--text-3); font-size: 14.5px; }
.navsub { margin: 2px 0 8px 22px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.navsub .navitem { min-height: 34px; padding: 6px 12px; font-size: 14.5px; }
.navsub .navitem[aria-current] { background: none; color: var(--canvas-text); }
.navsub .navsub { margin: 0 0 6px 12px; }
.navsub .navsub .navitem { min-height: 30px; padding: 5px 12px; font-size: 14px; }
.navsub .navsub .navitem[aria-current="page"] { background: var(--surface-2); border-radius: 8px; }
.sidenav__me { display: flex; align-items: center; gap: 10px; }
.sidenav__me .who { width: 26px; height: 26px; margin: 0; font-size: 11px; box-shadow: none; }
@media (max-width: 900px) {
  body[data-menu] .shell { grid-template-columns: minmax(0, 1fr); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; z-index: 91; left: 0; top: 0; bottom: 0; height: auto; width: min(320px, 86vw); padding-top: 24px;
    background: var(--canvas); border-right: 0.5px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.4);
    transform: translateX(-100%); transition: transform .35s cubic-bezier(.22,1,.36,1), visibility 0s .35s; opacity: 1; }
  body[data-menu] .sidenav { transform: none; transition: transform .35s cubic-bezier(.22,1,.36,1); }
  .sidenav-scrim { display: block; position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--canvas) 45%, transparent);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body[data-menu] .sidenav-scrim { opacity: 1; pointer-events: auto; }
}
.glyph { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; background: var(--hue, var(--av-2)); }

/* --- buttons (hz h-btn) ------------------------------------------------------------------ */
.btn, .tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border: none; border-radius: 999px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.2px; white-space: nowrap; text-decoration: none; user-select: none;
  transition: transform .16s cubic-bezier(.22,1,.36,1), filter .16s; }
.btn { background: var(--accent); color: var(--on-accent); }
.tbtn { background: var(--surface-2); color: var(--text); }
.btn:hover, .tbtn:hover { filter: brightness(1.08); }
.btn:active, .tbtn:active { transform: scale(0.96); }
.btn:disabled, .tbtn:disabled { opacity: .4; pointer-events: none; }
.btn i, .tbtn i { font-size: 19px; }
.btn--block, .tbtn--block { display: flex; width: 100%; height: 50px; font-size: 17px; }
.tbtn--danger { color: var(--danger); background: var(--danger-soft); }
.tbtn--sm { height: 34px; padding: 0 14px; font-size: 15px; }

/* --- hero ------------------------------------------------------------------------------- */
.hero { padding: 72px 0 12px; max-width: 700px; }
.hero h1 { font-size: 58px; letter-spacing: -2.4px; line-height: 1; margin: 0; font-weight: 800; }
.hero p { font-size: 18px; line-height: 1.55; color: var(--canvas-text-2); margin: 22px 0 0; }
.hero p.small { font-size: 14px; margin-top: 14px; }
.counts { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.counts b { display: block; font-size: 30px; letter-spacing: -1px; font-weight: 700; }
.counts span { font-size: 13px; color: var(--canvas-text-2); }
.reviewbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.reviewbar__progress { width: 180px; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.reviewbar__progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .5s cubic-bezier(.22,1,.36,1); }
.reviewbar__text { font-size: 14px; color: var(--canvas-text-2); }
.reviewbar__text b { color: var(--canvas-text); }
.reviewbar__text em { font-style: normal; color: var(--warn); }
.hero__actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
body[data-rf="todo"] .item[data-review="approved"] { display: none; }
body[data-rf="approved"] .item:not([data-review="approved"]) { display: none; }

/* --- sections and screens ------------------------------------------------------------------ */
.sec { padding-top: 72px; scroll-margin-top: 70px; }
.sechead { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.sechead h2 { font-size: 32px; letter-spacing: -1px; margin: 0; font-weight: 700; }
.sechead span { font-size: 13px; color: var(--canvas-text-2); font-variant-numeric: tabular-nums; }
.secnote { color: var(--canvas-text-2); font-size: 15px; line-height: 1.6; margin: 0 0 34px; max-width: 700px; }
.grid { display: flex; flex-wrap: wrap; gap: 44px 30px; align-items: flex-start; }
.item { position: relative; width: var(--cw); }
.item h3 { font-size: 15px; font-weight: 600; margin: 18px 0 0; display: flex; gap: 8px; align-items: center; min-width: 0; }
.item h3 a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item h3 a:hover { color: var(--accent-ink); }
.item p { font-size: 13px; color: var(--canvas-text-2); margin: 6px 0 0; line-height: 1.5; }
.item p.file { font-family: var(--font-mono); font-size: 11.5px; margin-top: 3px; opacity: .8; }
.pres { font-size: 10px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); flex: none; }
.api { display: inline-flex; gap: 5px; align-items: center; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--warn); border: 1px dashed currentColor; border-radius: 999px; padding: 3px 9px; cursor: help; }
.pen { position: relative; margin-left: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0.5px solid var(--line-strong); background: var(--surface); color: var(--canvas-text);
  display: inline-grid; place-items: center; font-size: 15px; padding: 0; flex: none; transition: background .15s, color .15s; }
.pen:hover, .pen[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pen b { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--warn); color: #fff; font: 700 10px/16px var(--font-sans); }
.rv { position: relative; width: 28px; height: 28px; border-radius: 50%; padding: 0; display: inline-grid; place-items: center; flex: none;
  border: 0.5px solid var(--line-strong); background: var(--surface); color: var(--canvas-text-2); transition: background .15s, color .15s, transform .2s cubic-bezier(.34,1.56,.64,1); }
.rv svg { width: 14px; height: 14px; display: block; }
.rv:hover { color: var(--accent-ink); border-color: var(--accent); }
.rv:active { transform: scale(.9); }
.rv[data-state="approved"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rv[data-state="changed"] { background: var(--warn); border-color: var(--warn); color: #fff; }
.rv:disabled { cursor: default; }

/* A view at its real size, scaled into its frame. */
.frame { position: relative; overflow: hidden; flex: none; background: #000; }
.frame .view { position: absolute; left: 0; top: 0; width: var(--fw); height: var(--fh); border: 0; transform: scale(var(--k)); transform-origin: 0 0; background: transparent; }
.frame .view--buffer { visibility: hidden; pointer-events: none; }
.frame--phone { border-radius: calc(55px * var(--k)); margin: 9px; box-shadow: 0 0 0 9px var(--bezel), 0 20px 50px rgba(0,0,0,.18); }
.frame--tablet { border-radius: calc(32px * var(--k)); margin: 12px; box-shadow: 0 0 0 12px var(--bezel), 0 20px 50px rgba(0,0,0,.18); }
.frame--browser, .frame--desktop { border-radius: 12px; margin: 0; box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="approved"] .frame--phone { box-shadow: 0 0 0 9px var(--bezel), 0 0 0 11px var(--accent), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="changed"] .frame--phone { box-shadow: 0 0 0 9px var(--bezel), 0 0 0 11px var(--warn), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="approved"] .frame--tablet { box-shadow: 0 0 0 12px var(--bezel), 0 0 0 14px var(--accent), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="changed"] .frame--tablet { box-shadow: 0 0 0 12px var(--bezel), 0 0 0 14px var(--warn), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="approved"] .frame--browser, .item[data-review="approved"] .frame--desktop { box-shadow: 0 0 0 2px var(--accent), 0 20px 50px rgba(0,0,0,.18); }
.item[data-review="changed"] .frame--browser, .item[data-review="changed"] .frame--desktop { box-shadow: 0 0 0 2px var(--warn), 0 20px 50px rgba(0,0,0,.18); }
.card--flash .frame { animation: flash 1.4s cubic-bezier(.22,1,.36,1); }
@keyframes flash { 0% { outline: 2px solid var(--accent); outline-offset: 14px; } 100% { outline: 2px solid transparent; outline-offset: 24px; } }
.card__frame { position: relative; }
.card__busy { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; box-shadow: 0 12px 32px rgba(0,0,0,.3); z-index: 2; }

/* Add a screen: a strip in the gap after each screen shows a + on hover. */
.addzone { position: absolute; top: 0; right: -30px; width: 30px; height: calc(var(--ch) + 18px); z-index: 5; display: grid; place-items: center; cursor: pointer; }
.addzone button { width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0,0,0,.25);
  opacity: 0; transform: translateX(10px) scale(.5); transition: opacity .15s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.addzone button svg { display: block; width: 14px; height: 14px; shape-rendering: crispEdges; }
.addzone:hover button, .addzone:focus-within button { opacity: 1; transform: translateX(10px); }

.item--pending .frame { background: transparent; box-shadow: none; border: 2px dashed var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px; text-align: center; color: var(--canvas-text); }
.pend__icon { width: 72px; height: 72px; border-radius: 24px; display: grid; place-items: center; font-size: 36px; background: var(--accent-soft); color: var(--accent-ink); }
.item--pending[data-status="working"] .pend__icon { animation: pend-spin 1.4s linear infinite; }
@keyframes pend-spin { to { transform: rotate(360deg); } }
.pend__state { font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.pend__text { font-size: 15px; line-height: 1.45; color: var(--canvas-text-2); white-space: pre-wrap; max-height: 260px; overflow: hidden; }
.pend__after { font-size: 12.5px; color: var(--canvas-text-2); text-decoration: none; }
.card--draft .frame { justify-content: flex-start; align-items: stretch; text-align: left; gap: 12px; padding: 22px; }
.card--draft .pend__state { font-size: 20px; }
.card--draft .notes__box { flex: 1; display: flex; }
.card--draft textarea { flex: 1; min-height: 160px; resize: none; }

/* --- focus: one screen stays sharp, notes beside it ------------------------------------------------ */
.focus-scrim { position: fixed; inset: 0; z-index: 100; background: color-mix(in srgb, var(--canvas) 45%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(120%); backdrop-filter: blur(16px) saturate(120%); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
body[data-focus] .focus-scrim { opacity: 1; pointer-events: auto; }
.item[data-focused] { z-index: 101; }
.focus-panel { position: fixed; z-index: 102; width: 360px; max-height: calc(100vh - 40px); overflow: auto; padding: 18px 18px 20px; border-radius: 24px;
  background: var(--surface); border: 0.5px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: focus-in .35s cubic-bezier(.22,1,.36,1); }
@keyframes focus-in { from { opacity: 0; transform: translateX(-12px) scale(.98); } }
.focus-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.focus-panel__head b { font-size: 17px; }
.focus-panel__head a { font-size: 12px; color: var(--accent-ink); text-decoration: none; margin-left: auto; }
.focus-panel__close, .drawer__close { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--text); font-size: 15px; display: grid; place-items: center; flex: none; }
.focus-panel .note, .focus-panel .notes__box { background: var(--bg); }

/* --- global changes: the helpdesk corner button ---------------------------------------------------- */
.global-fab { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; border: none; padding: 0;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 12px 32px rgba(0,0,0,.3); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.global-fab:hover { transform: scale(1.06); }
.global-fab svg { width: 26px; height: 26px; display: block; }
.global-fab b { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--warn); color: #fff; font: 700 11px/20px var(--font-sans); box-shadow: 0 0 0 2px var(--canvas); }
.global-fab .x { display: none; }
.global-fab[data-open] .x { display: block; animation: fab-in .25s cubic-bezier(.34,1.56,.64,1); }
.global-fab[data-open] .bubble, .global-fab[data-open] b { display: none; }
@keyframes fab-in { from { transform: scale(.4) rotate(-45deg); opacity: 0; } }
.global { position: fixed; right: 22px; bottom: 92px; z-index: 81; width: 380px; max-height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column;
  border-radius: 24px; background: var(--surface); border: 0.5px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .2s ease, transform .35s cubic-bezier(.22,1,.36,1); }
.global[data-open] { opacity: 1; transform: none; pointer-events: auto; }
.global__head { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; background: var(--accent); color: var(--on-accent); }
.global__head svg { width: 22px; height: 22px; flex: none; }
.global__head b { display: block; font-size: 16px; }
.global__head span { font-size: 12.5px; opacity: .85; }
.global__head button { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,.14); color: inherit; font-size: 14px; }
.global__body { flex: 1; min-height: 0; overflow: auto; padding: 14px 14px 16px; }
.global .note, .global .notes__box { background: var(--bg); }

/* --- notes (hz h-notes) ------------------------------------------------------------------------------ */
.notes { font-family: var(--font-sans); color: var(--canvas-text); }
.notes h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.notes__list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.notes__list > p.dim { font-size: 13px; margin: 0; }
.note { padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 0.5px solid var(--line-strong); font-size: 13.5px; line-height: 1.5; }
.note--done { opacity: .6; }
.note__text { white-space: pre-wrap; word-break: break-word; }
.note__reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; white-space: pre-wrap; }
.note__reply--q { background: var(--accent-soft); }
.note__imgs, .notes__drafts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.note__imgs img, .notes__draft img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 0.5px solid var(--line-strong); display: block; }
.notes__draft { position: relative; }
.notes__draft button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: none; padding: 0; background: var(--canvas-text); color: var(--canvas); font: 700 12px/20px var(--font-sans); }
.note__meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--canvas-text-2); }
.note__meta button { border: none; background: none; padding: 0; color: var(--canvas-text-2); font-size: 11.5px; }
.note__meta button:hover { color: var(--canvas-text); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; }
.pill .spin { width: 8px; height: 8px; border-width: 1.5px; }
.pill--open { background: rgba(255,149,0,.14); color: var(--warn); }
.pill--working, .pill--question, .pill--done { background: var(--accent-soft); color: var(--accent-ink); }
.notes__form { display: flex; flex-direction: column; gap: 8px; }
.notes__box { border-radius: 12px; border: 0.5px solid var(--line-strong); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.notes__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.notes__input { display: block; width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: none; border-radius: 12px; background: transparent;
  color: var(--canvas-text); font-size: 13.5px; line-height: 1.5; outline: none; }
.notes__box .notes__drafts { margin: 0; padding: 0 12px 10px; }
.notes__row { display: flex; align-items: center; gap: 10px; }
.notes__row label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--canvas-text-2); cursor: pointer; }
.notes__row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.notes__row > button:not(.btn):not(.tbtn) { border: none; background: none; color: var(--canvas-text-2); font-size: 13px; }
.notes__row .btn, .notes__row .tbtn { height: 34px; padding: 0 14px; font-size: 14px; }
.hist { margin-top: 24px; font-size: 13px; }
.hist summary { cursor: pointer; font-weight: 600; }
.hist ol { padding-left: 18px; color: var(--canvas-text-2); }
.hist code { color: var(--canvas-text); font-family: var(--font-mono); font-size: 12px; }

/* --- one screen, large ------------------------------------------------------------------------------ */
.sp { display: grid; grid-template-columns: 1fr 380px; gap: 20px; height: calc(100vh - 65px); padding: 20px 40px 20px 20px; }
.stage { display: grid; place-items: center; min-width: 0; min-height: 0; overflow: hidden; }
.side { overflow: auto; padding: 22px 20px 30px; border-radius: 24px; background: var(--surface); border: 0.5px solid var(--line-strong); align-self: start; max-height: 100%; }
.side__head h1 { margin: 0; font-size: 26px; letter-spacing: -.8px; font-weight: 700; }
.side__head p { margin: 4px 0 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--canvas-text-2); }
.side__note { color: var(--canvas-text-2); font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.side__review { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--canvas-text-2); }
.side__review b { color: var(--canvas-text); font-weight: 600; }
.side__nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 22px; font-size: 13px; }
.side__nav a { color: var(--canvas-text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.side__nav a:hover { color: var(--canvas-text); }
@media (max-width: 900px) {
  .sp { grid-template-columns: 1fr; height: auto; padding: 16px; }
  .stage { height: 78vh; }
}

/* --- pages: projects, teams, forms (hz sections and inset lists) -------------------------------------------- */
.page { max-width: 760px; }
.page > h2 { font-size: 22px; letter-spacing: -.5px; margin: 48px 0 12px; font-weight: 700; }
.team { padding-top: 56px; }
.team .sechead { margin-bottom: 14px; align-items: center; flex-wrap: wrap; row-gap: 12px; }
.team .sechead h2 { font-size: 26px; letter-spacing: -.8px; }
.projects, .members, .tokens { border-radius: 26px; background: var(--surface); overflow: hidden; }
.project, .member { position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 16px; text-decoration: none; }
.project + .project::before, .member + .member::before { content: ""; position: absolute; top: 0; right: 0; left: 60px; height: 0.5px; background: var(--line-strong); }
a.project:hover { background: var(--surface-2); }
.project .glyph, .member .who { width: 32px; height: 32px; margin: 0; box-shadow: none; font-size: 12px; }
.project b, .member b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.3px; color: var(--text); }
.project .sub, .member .dim { font-size: 13px; color: var(--text-2); }
.project .ti-chevron-right { color: var(--text-3); font-size: 18px; }
.list-empty { padding: 20px 16px; color: var(--text-2); font-size: 14px; }
.member select { height: 34px; padding: 0 30px 0 12px; border-radius: 999px; border: none; background: var(--surface-2); color: var(--text); font-size: 14px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px; background-repeat: no-repeat; }
.invite { padding-top: 12px; }
.invite > p.dim { margin: 0 0 16px; font-size: 14px; line-height: 1.55; max-width: 560px; }
.invite__out { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.invite__out input, .invite__out textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: 12px; border: 0.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font-family: var(--font-mono); font-size: 12.5px; }
.invite__out textarea { height: auto; padding: 10px 14px; line-height: 1.5; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row select, .row input { height: 42px; padding: 0 14px; border-radius: 12px; border: 0.5px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 15px; }

.auth { max-width: 460px; padding-top: 72px; }
.auth .hero { padding-top: 0; }
.auth .hero h1 { font-size: 46px; letter-spacing: -1.8px; }
.auth .hero p { font-size: 17px; margin-top: 14px; }
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.form__err { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.field { display: flex; flex-direction: column; }
.field > span { font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.2px; padding: 0 16px 7px; }
.field input, .field select { min-height: 52px; padding: 13px 16px; border-radius: 16px; border: none; background: var(--surface); color: var(--text); font-size: 17px; outline: none; appearance: none; }
.field input:focus, .field select:focus { box-shadow: 0 0 0 2px var(--accent); }
.field small { font-size: 13px; color: var(--text-2); padding: 7px 16px 0; line-height: 18px; }
.form p.dim { font-size: 14px; margin: 0; text-align: center; }
.form p.dim a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }

/* --- drawers (connect Claude) ------------------------------------------------------------------------------ */
.drawer { position: fixed; right: 20px; top: 84px; z-index: 102; width: 380px; max-height: calc(100vh - 104px); overflow: auto; padding: 18px 18px 20px; border-radius: 24px;
  background: var(--surface); border: 0.5px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: focus-in .35s cubic-bezier(.22,1,.36,1); }
.drawer__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.drawer__head b { font-size: 17px; }
.drawer > p.dim { font-size: 13.5px; line-height: 1.55; margin: 0 0 14px; }
.drawer .tokens { background: var(--bg); margin-bottom: 14px; }
.drawer .member { min-height: 52px; }
.drawer .row input { flex: 1; min-width: 0; }

/* --- toasts (hz live toast) ---------------------------------------------------------------------------------- */
.toasts { position: fixed; left: 50%; top: 18px; z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px)); padding: 10px 16px; border-radius: 999px; font: 500 14px/1.35 var(--font-sans);
  color: var(--canvas-text); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--line-strong); box-shadow: 0 16px 44px rgba(0,0,0,.28); transform: translateY(-140%); transition: transform .5s cubic-bezier(.22,1.2,.36,1); }
.toast.in { transform: none; }

@media (max-width: 800px) {
  .wrap, .top__in { padding-left: 16px; padding-right: 16px; }
  .top__in { gap: 14px; }
  .hero h1 { font-size: 42px; }
  .top__nav { display: none; }
  .top__end { margin-left: auto; }
  .themebtn button { padding: 7px 9px; }
  .global { left: 0; right: 0; bottom: 0; width: auto; max-height: 80vh; border-radius: 24px 24px 0 0; }
  .global-fab { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .focus-panel { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: auto; max-height: 72vh; border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }
