/* SnowaOS Kanban design (SNO-717). Shell, tabs and Workflow screens follow the live app.
   Tokens are the shipped SnowaOS tokens (oklch). The board uses soft trays with white cards. */
:root {
  --brand-h: 230;
  --accent: oklch(0.55 0.14 230); --accent-hover: oklch(0.5 0.14 230); --accent-soft: oklch(0.95 0.03 230); --accent-ink: oklch(0.32 0.12 230); --accent-line: oklch(0.86 0.06 230);
  --paper: oklch(0.99 0.003 90); --paper-2: oklch(0.97 0.004 90); --paper-3: oklch(0.945 0.005 90);
  --line: oklch(0.91 0.005 260); --line-2: oklch(0.95 0.004 260);
  --ink: oklch(0.18 0.01 260); --ink-2: oklch(0.38 0.01 260); --ink-3: oklch(0.58 0.01 260); --ink-4: oklch(0.75 0.005 260); --on-accent: oklch(0.99 0.003 90);
  --good: oklch(0.62 0.14 155); --good-soft: oklch(0.95 0.04 155); --good-ink: oklch(0.36 0.12 155);
  --warn: oklch(0.72 0.16 75); --warn-soft: oklch(0.96 0.05 75); --warn-ink: oklch(0.44 0.13 75);
  --bad: oklch(0.6 0.18 25); --bad-soft: oklch(0.96 0.04 25); --bad-ink: oklch(0.42 0.16 25);
  --kan: oklch(0.52 0.16 300); --kan-soft: oklch(0.95 0.03 300); --kan-ink: oklch(0.36 0.14 300);
  --tray: oklch(0.955 0.005 90);
  --shadow-sm: 0 1px 0 oklch(0.18 0.01 260 / 0.04), 0 1px 2px oklch(0.18 0.01 260 / 0.05);
  --shadow-md: 0 1px 0 oklch(0.18 0.01 260 / 0.05), 0 8px 24px oklch(0.18 0.01 260 / 0.08);
  --shadow-lg: 0 4px 12px oklch(0.18 0.01 260 / 0.08), 0 24px 60px oklch(0.18 0.01 260 / 0.14);
  --scrim: oklch(0.18 0.01 260 / 0.35);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 5px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-2xl: 18px; --r-full: 999px;
  --ease: cubic-bezier(.2,.7,.3,1); --side-w: 232px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: oklch(0.2 0.005 260); --paper-2: oklch(0.165 0.005 260); --paper-3: oklch(0.255 0.007 260); --tray: oklch(0.235 0.006 260);
    --line: oklch(0.32 0.008 260); --line-2: oklch(0.27 0.006 260);
    --ink: oklch(0.97 0.003 90); --ink-2: oklch(0.78 0.005 90); --ink-3: oklch(0.62 0.006 90); --ink-4: oklch(0.45 0.006 90);
    --accent-soft: oklch(0.3 0.08 230); --accent-ink: oklch(0.78 0.1 230); --accent-line: oklch(0.38 0.1 230);
    --good-soft: oklch(0.3 0.06 155); --warn-soft: oklch(0.32 0.06 75); --bad-soft: oklch(0.32 0.07 25); --good-ink: oklch(0.78 0.12 155); --warn-ink: oklch(0.8 0.13 75); --bad-ink: oklch(0.78 0.14 25);
    --kan: oklch(0.68 0.15 300); --kan-soft: oklch(0.3 0.07 300); --kan-ink: oklch(0.78 0.12 300);
    --shadow-sm: 0 1px 0 oklch(0 0 0 / 0.4), 0 1px 2px oklch(0 0 0 / 0.4); --shadow-md: 0 1px 0 oklch(0 0 0 / 0.5), 0 8px 24px oklch(0 0 0 / 0.5); --shadow-lg: 0 4px 12px oklch(0 0 0 / 0.6), 0 24px 60px oklch(0 0 0 / 0.7); --scrim: oklch(0 0 0 / 0.55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: oklch(0.2 0.005 260); --paper-2: oklch(0.165 0.005 260); --paper-3: oklch(0.255 0.007 260); --tray: oklch(0.235 0.006 260);
  --line: oklch(0.32 0.008 260); --line-2: oklch(0.27 0.006 260);
  --ink: oklch(0.97 0.003 90); --ink-2: oklch(0.78 0.005 90); --ink-3: oklch(0.62 0.006 90); --ink-4: oklch(0.45 0.006 90);
  --accent-soft: oklch(0.3 0.08 230); --accent-ink: oklch(0.78 0.1 230); --accent-line: oklch(0.38 0.1 230);
  --good-soft: oklch(0.3 0.06 155); --warn-soft: oklch(0.32 0.06 75); --bad-soft: oklch(0.32 0.07 25); --good-ink: oklch(0.78 0.12 155); --warn-ink: oklch(0.8 0.13 75); --bad-ink: oklch(0.78 0.14 25);
  --kan: oklch(0.68 0.15 300); --kan-soft: oklch(0.3 0.07 300); --kan-ink: oklch(0.78 0.12 300);
  --shadow-sm: 0 1px 0 oklch(0 0 0 / 0.4), 0 1px 2px oklch(0 0 0 / 0.4); --shadow-md: 0 1px 0 oklch(0 0 0 / 0.5), 0 8px 24px oklch(0 0 0 / 0.5); --shadow-lg: 0 4px 12px oklch(0 0 0 / 0.6), 0 24px 60px oklch(0 0 0 / 0.7); --scrim: oklch(0 0 0 / 0.55);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper-2); color: var(--ink); font-family: var(--font-sans); font-size: 13px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum' 1; }
.caps { text-transform: uppercase; letter-spacing: 0.07em; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 13px; height: 13px; } .ic.lg { width: 20px; height: 20px; }
[hidden] { display: none !important; }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100%; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; font-weight: 650; font-size: 18px; letter-spacing: -0.02em; }
.brand b { color: var(--accent); }
.appseg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; background: var(--paper-3); border-radius: var(--r-lg); margin-bottom: 10px; font-size: 12px; text-align: center; }
.appseg span { padding: 5px 0; border-radius: 7px; color: var(--ink-3); }
.appseg .on { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.side-h { font: 500 10.5px var(--font-mono); letter-spacing: .09em; color: var(--ink-3); padding: 12px 8px 4px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav button { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: var(--r-md); color: var(--ink-2); text-align: left; width: 100%; }
.nav button:hover { background: var(--paper-3); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--ink); color: var(--paper); font-weight: 600; }
.nav .badge { margin-left: auto; font: 500 11px var(--font-mono); padding: 0 6px; border-radius: var(--r-full); background: var(--paper-3); color: var(--ink-2); }
.side-foot { margin-top: auto; padding: 14px 6px 4px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hint { font-size: 11.5px; color: var(--ink-3); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: color-mix(in oklch, var(--paper) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; gap: 7px; color: var(--ink-3); white-space: nowrap; }
.crumbs b { color: var(--ink); font-weight: 600; } .crumbs button:hover { color: var(--ink); }
.gsearch { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; width: 280px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink-3); background: var(--paper); margin-left: 8px; }
.gsearch span { flex: 1; } kbd { font: 500 10.5px var(--font-mono); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 1px 0 var(--line); color: var(--ink-3); }
.top .sp { flex: 1; }
.proto { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px; border: 1px dashed var(--ink-4); border-radius: var(--r-full); background: var(--paper-2); }
.proto-l { font: 600 9.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.clockbox { white-space: nowrap; display: flex; align-items: center; gap: 2px; font-size: 12px; color: var(--ink-2); }
.clockbox .t { font: 500 11.5px var(--font-mono); padding-right: 4px; } .clockbox .t-short { display: none; }
.org { gap: 6px; } .orgdot { width: 18px; height: 18px; border-radius: 5px; background: oklch(0.55 0.12 230); color: #fff; font: 600 10px var(--font-mono); display: grid; place-items: center; }
.page { padding: 18px 22px 40px; max-width: 1480px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.menu-btn { display: none; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); width: fit-content; } .back:hover { color: var(--ink); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; padding: 0 13px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s var(--ease), border-color .15s var(--ease); }
.btn:hover { background: var(--paper-3); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); } .btn.primary:hover { background: var(--ink-2); }
.btn.danger { color: var(--bad-ink); } .btn.danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--paper-3); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; } .btn.icon { width: 32px; padding: 0; } .btn.icon.sm { width: 28px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.input, .select, .textarea { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); color: var(--ink); }
.textarea { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.input.err, .select.err { border-color: var(--bad); } .input[disabled], .select[disabled] { opacity: .6; cursor: not-allowed; }
.input.num { font-family: var(--font-mono); width: 80px; text-align: right; }
.select { appearance: none; padding-right: 26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.select.inline { width: auto; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .lbl { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.errtxt { font-size: 11.5px; color: var(--bad-ink); display: flex; gap: 5px; align-items: center; }
.row { display: flex; gap: 10px; align-items: center; } .row.wrap { flex-wrap: wrap; } .row.top-a { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack.sm { gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; } .check input { width: 15px; height: 15px; accent-color: var(--accent); margin: 0; }
.switch { position: relative; width: 34px; height: 20px; flex: none; } .switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--ink-4); transition: background .15s var(--ease); }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); box-shadow: 0 1px 2px #0004; }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(14px); }
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; } .switch input:disabled + i { opacity: .5; }
.seg { display: inline-flex; padding: 3px; background: var(--paper-3); border-radius: var(--r-md); gap: 2px; }
.seg button { height: 26px; padding: 0 12px; border-radius: 6px; color: var(--ink-2); font-weight: 500; font-size: 12px; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 14px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button:hover { color: var(--ink); } .tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tc { font: 500 10.5px var(--font-mono); padding: 1px 6px; margin-left: 4px; border-radius: var(--r-full); background: var(--paper-3); color: var(--ink-3); }
.lnk { color: var(--accent-ink); font-weight: 500; } .lnk:hover { text-decoration: underline; } .lnk.danger { color: var(--bad-ink); }
.vsep { width: 1px; height: 20px; background: var(--line); }
.strike { text-decoration: line-through; color: var(--ink-3); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; font: 600 10.5px var(--font-mono); letter-spacing: .04em; white-space: nowrap; color: color-mix(in oklch, var(--c, var(--ink-2)) 70%, var(--ink)); background: color-mix(in oklch, var(--c, var(--ink-3)) 14%, var(--paper)); }
.pchip { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px 0 7px; border-radius: var(--r-full); font-size: 11.5px; font-weight: 500; white-space: nowrap; color: color-mix(in oklch, var(--c) 55%, var(--ink)); background: color-mix(in oklch, var(--c) 12%, var(--paper)); box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--c) 22%, transparent); }
.pchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lab { display: inline-flex; align-items: center; gap: 5px; height: 19px; padding: 0 8px 0 6px; border-radius: var(--r-full); font-size: 11px; background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.lab i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 9px; border-radius: var(--r-full); font: 500 11.5px var(--font-mono); background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good-ink); } .pill.warn { background: var(--warn-soft); color: var(--warn-ink); } .pill.bad { background: var(--bad-soft); color: var(--bad-ink); } .pill.accent { background: var(--accent-soft); color: var(--accent-ink); } .pill.kan { background: var(--kan-soft); color: var(--kan-ink); } .pill.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 9.5px var(--font-mono); flex: none; background: color-mix(in oklch, oklch(0.62 0.13 var(--h, 230)) 24%, var(--paper)); color: color-mix(in oklch, oklch(0.5 0.14 var(--h, 230)) 80%, var(--ink)); box-shadow: 0 0 0 2px var(--paper); }
.av.lg { width: 30px; height: 30px; font-size: 11.5px; } .av.none { background: transparent; color: var(--ink-3); border: 1px dashed var(--ink-4); box-shadow: none; }
.avstack { display: inline-flex; } .avstack .av { margin-left: -6px; } .avstack .av:first-child { margin-left: 0; }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px 0; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.card-b { padding: 14px 18px 18px; }
.sub { color: var(--ink-3); font-size: 12.5px; }
.h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; } .h2 { margin: 0; font-size: 17px; font-weight: 650; }
.hero { padding: 0; overflow: hidden; }
.hero-bar { height: 4px; background: var(--kan); }
.hero-top { padding: 16px 20px 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-mark { width: 46px; height: 46px; border-radius: 12px; background: var(--kan); color: #fff; font: 600 16px var(--font-mono); display: grid; place-items: center; }
.hero-people { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line-2); background: var(--paper-2); margin-top: 10px; }
.pj-ppl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pj-ppl__lbl { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.pj-ppl__name { display: block; font-size: 13px; font-weight: 500; }
.pj-ppl__role { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.pj-ppl__sep { width: 1px; height: 28px; background: var(--line-2); margin: 0 4px; }
.pj-ppl__person { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 6px 2px 2px; margin: -2px; text-align: left; font: inherit; color: inherit; cursor: default; border-radius: var(--r-sm); }
.pj-ppl__person.is-editable { cursor: pointer; } .pj-ppl__person.is-editable:hover { background: var(--paper-3); }
.pj-ppl__slot { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 5px; border: 1px dashed var(--line); border-radius: 99px; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 500; color: var(--ink-3); transition: border-color .12s, background .12s, color .12s; }
.pj-ppl__slot:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.pj-ppl__plus { width: 22px; height: 22px; border-radius: 99px; border: 1px dashed currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; }
.pj-ppl__slot.risk { border-color: oklch(0.85 0.09 75); background: oklch(0.99 0.03 75); color: oklch(0.46 0.13 75); }
.pj-ppl__slot.risk:hover { border-color: oklch(0.7 0.13 75); background: oklch(0.97 0.05 75); color: oklch(0.42 0.13 75); }
.pj-ppl__na { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.pj-ppl__dot { width: 6px; height: 6px; border-radius: 99px; background: var(--ink-4); }
.pj-ppl__add { border: 0; background: none; font-family: var(--font-mono); font-size: 9px; color: var(--ink-4); letter-spacing: .04em; cursor: pointer; padding: 0 2px; } .pj-ppl__add:hover { color: var(--accent-ink); }
.hero-people + .ph-say { margin-top: 16px; }
.pj-stk { display: inline-flex; } .pj-stk > .av { box-shadow: 0 0 0 2px var(--paper-2); } .pj-stk > .av + .av { margin-left: -7px; }
.pj-ppl__count { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.pagehead { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.pagehead .hero-top { padding: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 0; }
.pagehead .stats { margin: 4px -20px -16px; }
.stat { padding: 14px 20px 16px; display: flex; flex-direction: column; gap: 2px; text-align: left; border-right: 1px solid var(--line); min-width: 0; position: relative; }
.stat:last-child { border-right: 0; } button.stat:hover { background: var(--paper-2); } .stat[aria-pressed="true"] { background: var(--accent-soft); }
.stat .v { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.stat .v small { font-size: 12px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; } .stat .s { font-size: 12px; color: var(--ink-3); }
.stat svg.spark { position: absolute; right: 16px; top: 18px; } .stats.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.empty { padding: 36px 20px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ic-wrap { width: 42px; height: 42px; border-radius: 50%; background: var(--paper-3); display: grid; place-items: center; } .empty b { color: var(--ink); font-size: 14px; font-weight: 600; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 13px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); } .banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad-ink); } .banner.accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); } .banner.good { background: var(--good-soft); border-color: transparent; color: var(--good-ink); }
.tbl-wrap { overflow-x: auto; } table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tbody tr:hover td { background: var(--paper-2); } .tbl .num { font-family: var(--font-mono); text-align: right; }
.list-sep > * + * { border-top: 1px solid var(--line-2); }
.hbar { height: 8px; background: var(--paper-3); border-radius: 99px; overflow: hidden; display: flex; } .hbar i { display: block; height: 100%; }
.kv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 7px 12px; align-items: center; } .kv > .k { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.sect { display: flex; flex-direction: column; gap: 8px; }

/* ---------- project tabs + toolbar ---------- */
.ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: -2px; }
.ptabs button { padding: 10px 10px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ptabs button:hover { color: var(--ink); } .ptabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.search { position: relative; } .search .ic { position: absolute; left: 10px; top: 9px; color: var(--ink-3); } .search .input { padding-left: 30px; width: 210px; }
.qchip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); font-weight: 500; font-size: 12px; }
.qchip:hover { background: var(--paper-3); } .qchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); } .qchip .n { font: 500 11px var(--font-mono); opacity: .7; }
.dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }

/* ---------- board (soft trays, white cards) ---------- */
.board-scroll { overflow: auto; border-radius: var(--r-xl); max-height: calc(100vh - 150px); min-height: 440px; padding-bottom: 4px; }
.board { display: grid; min-width: min-content; column-gap: 12px; padding: 0 2px 2px; }
.bhead, .bcell { min-width: 0; background: var(--tray); }
.bhead { position: sticky; top: 0; z-index: 5; padding: 11px 12px 8px; display: flex; align-items: center; gap: 8px; min-height: 46px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.bhead.over { background: color-mix(in oklch, var(--bad-soft) 75%, var(--tray)); }
.bhead .nm { font: 600 11.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bhead .note { font-size: 11px; color: var(--ink-3); white-space: nowrap; } .bhead .sp { flex: 1; }
.wip { font: 500 11.5px var(--font-mono); padding: 0 8px; height: 21px; border-radius: var(--r-full); background: var(--paper); color: var(--ink-2); display: inline-flex; align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
button.wip:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.wip.over { background: var(--bad-soft); color: var(--bad-ink); box-shadow: inset 0 0 0 1px var(--bad); }
.bcell { padding: 2px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; transition: background .15s var(--ease); }
.bcell.last { border-radius: 0 0 var(--r-xl) var(--r-xl); } .bcell.over { background: color-mix(in oklch, var(--bad-soft) 55%, var(--tray)); }
.bcell.drop { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: -3px; }
.colempty { padding: 22px 8px; text-align: center; color: var(--ink-4); font-size: 12px; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.lane-h { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; padding: 12px 4px 6px; font-weight: 600; position: sticky; left: 0; }
.exp-lane { grid-column: 1 / -1; display: flex; align-items: stretch; border-radius: var(--r-lg); margin: 0 0 10px; background: color-mix(in oklch, var(--bad-soft) 55%, var(--paper)); box-shadow: inset 3px 0 0 var(--bad); position: sticky; left: 0; }
.exp-lane .nm { font: 600 11.5px var(--font-mono); letter-spacing: .06em; }
.exp-lane.empty-l { padding: 9px 14px; align-items: center; gap: 10px; color: var(--ink-3); }
.exp-lane .lh { padding: 11px 14px; display: flex; flex-direction: column; gap: 4px; width: 170px; flex: none; } .exp-lane .lc { display: flex; gap: 8px; padding: 8px; flex-wrap: wrap; flex: 1; }
.exp-lane.drop { outline: 2px dashed var(--bad); outline-offset: -3px; }
.rail-v { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 0; align-self: center; white-space: nowrap; }
.bhead.rail, .bcell.rail { background: color-mix(in oklch, var(--tray) 70%, var(--paper-2)); }
.tk { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 11px 10px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); text-align: left; cursor: grab; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.tk::before { content: ''; position: absolute; left: 5px; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: transparent; }
.tk.s-blocked::before, .tk.s-breach::before, .tk.s-stale::before { background: var(--bad); } .tk.s-risk::before, .tk.s-aging::before { background: var(--warn); }
.tk:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); } .tk:active { cursor: grabbing; } .tk.dragging { opacity: .45; } .tk.sel { outline: 2px solid var(--accent); outline-offset: 1px; } .tk.resolved { background: color-mix(in oklch, var(--paper) 60%, var(--tray)); }
.tk .r1 { display: flex; align-items: center; gap: 6px; } .tk .id { margin-left: auto; font: 500 11px var(--font-mono); color: var(--ink-3); }
.tk .ttl { font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; } .tk .labs { display: flex; gap: 4px; flex-wrap: wrap; }
.tk .r3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .tk .r3 .av { margin-left: auto; box-shadow: none; }
.tk .reason { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--bad-ink); background: var(--bad-soft); margin: 0 -11px 0 -14px; padding: 6px 11px 6px 14px; }
.tk .kebab { position: absolute; right: 4px; top: 26px; opacity: 0; } .tk:hover .kebab, .tk:focus-within .kebab, .tk:focus .kebab { opacity: 1; }
.tk .cost { font: 500 11px var(--font-mono); color: var(--good-ink); } .tk .est { font-size: 11px; color: var(--ink-3); }
.exp-mark { color: var(--bad); display: inline-flex; }
.sig { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: var(--r-sm); font: 500 11px var(--font-mono); background: var(--paper-3); color: var(--ink-2); white-space: nowrap; }
.sig.warn { background: var(--warn-soft); color: var(--warn-ink); } .sig.bad { background: var(--bad-soft); color: var(--bad-ink); } .sig.paused { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); }
.compact .tk .labs { display: none; } .compact .tk { padding-block: 7px; gap: 5px; }
.hint-bar { color: var(--ink-3); font-size: 11.5px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* queue */
.qrow { display: grid; grid-template-columns: 22px 22px 34px auto auto minmax(0, 1fr) auto auto auto auto; gap: 10px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.qrow:hover { background: var(--paper-2); } .qrow.dragover { box-shadow: inset 0 2px 0 var(--accent); } .qrow .grip { color: var(--ink-4); cursor: grab; } .qrow .rk { font: 500 11.5px var(--font-mono); color: var(--ink-3); text-align: right; }
.qrow .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; text-align: left; } .qrow .t:hover { color: var(--accent-ink); } .qrow .pull { opacity: 0; } .qrow:hover .pull, .qrow:focus-within .pull { opacity: 1; }
.nextup { display: flex; align-items: center; gap: 10px; padding: 7px 14px; color: var(--accent-ink); font-size: 12px; background: var(--accent-soft); border-top: 1px dashed var(--accent); border-bottom: 1px solid var(--line-2); }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r-lg); } .bulkbar .btn { background: transparent; color: var(--paper); border-color: color-mix(in oklch, var(--paper) 30%, transparent); box-shadow: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }

/* charts */
.cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .cgrid .wide { grid-column: 1 / -1; }
svg.chart { width: 100%; height: auto; overflow: visible; } .chart text { font: 400 10.5px var(--font-mono); fill: var(--ink-3); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; } .chart .axis-l { stroke: var(--ink-4); stroke-width: 1; } .chart .ref { stroke-dasharray: 4 3; stroke-width: 1.2; fill: none; }
.chart .ref-t { font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-2); padding-top: 8px; } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -0.5px; }
.dot { cursor: pointer; } .tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: var(--r-md); font-size: 12px; box-shadow: var(--shadow-lg); max-width: 260px; } .tip .m { font-family: var(--font-mono); opacity: .8; font-size: 11px; }
.chart-card .card-b { padding-top: 8px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 60; animation: fade .15s var(--ease); }
.modal { --tx: -50%; --ty: -50%; position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); animation: pop .16s var(--ease); }
.modal.wide { width: min(780px, calc(100vw - 24px)); }
.modal-h { padding: 18px 22px 6px; display: flex; gap: 10px; align-items: flex-start; } .modal-h h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.modal-b { padding: 8px 22px 18px; overflow: auto; display: flex; flex-direction: column; gap: 14px; } .modal-f { padding: 13px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.peek { --tx: -50%; --ty: -50%; position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(800px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); animation: pop .16s var(--ease); display: flex; flex-direction: column; }
.peek-h { padding: 18px 24px 14px; position: relative; border-bottom: 1px solid var(--line-2); } .peek-h #peekClose { position: absolute; right: 14px; top: 14px; }
.peek-t { margin: 10px 0 0; font-size: 21px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.3; }
.peek-b { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 0; flex: 1; } .peek-main { padding: 18px 24px; min-width: 0; }
.peek-rail { border-left: 1px solid var(--line-2); padding: 16px 18px; background: var(--paper-2); display: flex; flex-direction: column; gap: 14px; }
.prop { display: flex; flex-direction: column; gap: 4px; } .prop .k { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); } .prop .v { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.peek-f { padding: 12px 24px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.keylink { color: var(--accent-ink); font-weight: 500; } .keylink:hover { text-decoration: underline; }
.pop { position: fixed; z-index: 80; min-width: 200px; max-width: min(340px, calc(100vw - 16px)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 6px; animation: pop .12s var(--ease); max-height: 70vh; overflow: auto; }
.pop.pad { padding: 12px; } .pop .mi { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 9px; border-radius: var(--r-md); text-align: left; color: var(--ink); cursor: pointer; }
.pop .mi:hover, .pop .mi:focus-visible { background: var(--paper-3); } .pop .mi.danger { color: var(--bad-ink); } .pop .mi[disabled] { opacity: .45; pointer-events: none; } .pop .msep { height: 1px; background: var(--line); margin: 5px 0; }
.pop .mh { padding: 4px 9px; font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { pointer-events: auto; background: var(--ink); color: var(--paper); padding: 9px 12px 9px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; animation: pop .18s var(--ease); } .toast button { color: var(--accent-line); font-weight: 600; }
@keyframes fade { from { opacity: 0 } } @keyframes pop { from { opacity: 0; transform: translate(var(--tx, 0), calc(var(--ty, 0px) + 6px)) } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.tl { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--paper-3); } .tl i { display: block; height: 100%; min-width: 3px; }
.tl .run { background: var(--accent); } .tl .over { background: var(--bad); } .tl .rest { background: var(--paper-3); }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; } .emo { width: 32px; height: 32px; border-radius: 6px; font-size: 17px; } .emo:hover { background: var(--paper-3); }

/* ---------- ticket page ---------- */
.tkhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .crumb2 { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; } .crumb2 b { color: var(--ink); }
.tktop { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.tk-title { font: 650 24px var(--font-sans); letter-spacing: -0.02em; width: 100%; border: 1px solid transparent; background: transparent; padding: 2px 8px; margin-left: -8px; border-radius: var(--r-md); color: var(--ink); }
.tk-title:hover { border-color: var(--line); } .tk-title:focus { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--paper); } .tk-title.err { border-color: var(--bad); }
.tkgrid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rail .card-b.props { padding: 6px 16px 10px; } .prop2 { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); } .prop2:last-child { border-bottom: 0; }
.prop2 .k { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); } .prop2 .select, .prop2 .input { height: 30px; }
.lblbtn { text-align: left; padding: 3px 0; } .labs { display: flex; gap: 4px; flex-wrap: wrap; }
.rte { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); overflow: hidden; } .rte:focus-within { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.rt-b { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-2); font-size: 13px; } .rt-b:hover { background: var(--paper-3); color: var(--ink); } .rt-b mark { background: oklch(0.9 0.12 95); color: #333; padding: 0 2px; border-radius: 2px; }
.rt-sel { height: 28px; border: 0; background: transparent; font-size: 12px; color: var(--ink-2); padding: 0 4px; border-radius: 6px; } .rt-sel:hover { background: var(--paper-3); } .rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rte-body { min-height: 120px; padding: 12px 16px; outline: 0; line-height: 1.6; font-size: 14px; } .rte.compact .rte-body { min-height: 64px; padding: 9px 12px; } .rte-body:empty::before { content: attr(data-ph); color: var(--ink-4); pointer-events: none; }
.rte.ro { border-color: transparent; background: transparent; } .rte.ro .rte-bar { display: none; } .rte.ro .rte-body { padding-inline: 0; }
.rich, .rte-body { color: var(--ink); } .rich { font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.rich p, .rte-body p { margin: 0 0 8px; } .rich ul, .rich ol, .rte-body ul, .rte-body ol { margin: 0 0 8px; padding-left: 22px; } .rich h1, .rte-body h1 { font-size: 20px; margin: 10px 0 6px; } .rich h2, .rte-body h2 { font-size: 17px; margin: 10px 0 6px; } .rich h3, .rte-body h3 { font-size: 15px; margin: 8px 0 6px; }
.rich blockquote, .rte-body blockquote { margin: 0 0 8px; padding: 2px 12px; border-left: 3px solid var(--line); color: var(--ink-2); } .rich pre, .rte-body pre { margin: 0 0 8px; padding: 10px 12px; background: var(--paper-3); border-radius: var(--r-md); font: 12.5px var(--font-mono); overflow: auto; }
.rich code, .rte-body code { font: 12.5px var(--font-mono); background: var(--paper-3); padding: 1px 5px; border-radius: 4px; } .rich a, .rte-body a { color: var(--accent-ink); text-decoration: underline; } .rich hr, .rte-body hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.rich mark, .rte-body mark { background: oklch(0.9 0.12 95); color: #333; padding: 0 2px; border-radius: 2px; }
.mention { background: var(--accent-soft); color: var(--accent-ink); border-radius: 4px; padding: 0 4px; font-weight: 500; } .attach { background: var(--paper-3); border-radius: 4px; padding: 0 6px; }
.panel { padding: 8px 12px; border-radius: var(--r-md); margin: 0 0 8px; border-left: 3px solid var(--accent); background: var(--accent-soft); } .panel-warn { border-color: var(--warn); background: var(--warn-soft); } .panel-ok { border-color: var(--good); background: var(--good-soft); }
ul.chk { list-style: none; padding-left: 4px !important; } ul.chk li { position: relative; padding-left: 26px; min-height: 22px; } ul.chk li::before { content: ''; position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border: 1.5px solid var(--ink-3); border-radius: 4px; cursor: pointer; background: var(--paper); }
ul.chk li[data-done="1"]::before { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--paper); } ul.chk li[data-done="1"] { color: var(--ink-3); text-decoration: line-through; }
.cm { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); } .cm:first-child { border-top: 0; } .cm.reply { padding: 10px 0 0; border-top: 0; margin-top: 4px; } .cm-b { flex: 1; min-width: 0; } .cm-h { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; } .cm-av .av { box-shadow: none; }
.cm-act { display: flex; gap: 12px; align-items: center; margin-top: 4px; font-size: 12px; flex-wrap: wrap; } .cm-reply { margin-top: 10px; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-full); background: var(--paper-3); font-size: 12px; } .react.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ev { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: 12.5px; border-top: 1px solid var(--line-2); } .ev:first-child { border-top: 0; } .ev .muted { margin-left: auto; font-size: 11px; } .evdot { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink-4); flex: none; }

/* ---------- workflow ---------- */
.wfhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.guide { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-xl); background: var(--accent-soft); color: var(--accent-ink); border: 1px solid var(--accent-line); }
.guide .setup { font: 600 10px var(--font-mono); letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; background: color-mix(in oklch, var(--accent) 18%, var(--paper)); text-transform: uppercase; margin-top: 1px; }
.guide .steps { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; } .guide .steps i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 10px var(--font-mono); font-style: normal; margin-right: 5px; }
.savebar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; margin-top: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); z-index: 20; }
.opts4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.opt { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 14px 16px; border-radius: var(--r-xl); border: 1.5px solid var(--line); background: var(--paper); } .opt:hover { border-color: var(--ink-4); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent); } .opt[disabled] { opacity: .6; cursor: not-allowed; } .bignum { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.how { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); }
.catstrip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .catc { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); } .catc i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); } .catc.accent i { background: var(--accent); } .catc.kan i { background: var(--kan); } .catc.good i { background: var(--good); }
.colcards { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: stretch; }
.colcard { flex: 0 0 236px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper); border-top: 3px solid var(--ink-4); } .colcard.accent { border-top-color: var(--accent); } .colcard.kan { border-top-color: var(--kan); } .colcard.good { border-top-color: var(--good); }
.colcard.addcol { border: 1.5px dashed var(--line); border-top: 1.5px dashed var(--line); align-items: center; justify-content: center; color: var(--ink-3); text-align: center; background: transparent; } .colcard.addcol:hover { border-color: var(--ink-3); }
.cc-top { display: flex; align-items: center; gap: 4px; } .cc-top .grip { color: var(--ink-4); cursor: grab; } .cc-name { font-weight: 600; height: 30px; } .cc-f { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: center; } .cc-f .k { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); } .cc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.srow { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .srow:last-child { border-bottom: 0; } .srow .k { font-weight: 500; }
.prihead { padding: 2px 4px; } .prilist { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.prirow { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line-2); } .prirow:last-child { border-bottom: 0; } .prirow:hover { background: var(--paper-2); } .prirow.dragging { opacity: .4; } .prirow.over { box-shadow: inset 0 2px 0 var(--accent); }
.prirow .grip { color: var(--ink-4); cursor: grab; } .prirow .rk { width: 18px; color: var(--ink-3); } .swatch { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .sw-opt { position: relative; cursor: pointer; } .sw-opt input { position: absolute; opacity: 0; inset: 0; } .sw-opt i { display: block; width: 26px; height: 26px; border-radius: 7px; box-shadow: inset 0 0 0 1px #0002; } .sw-opt input:checked + i { outline: 2px solid var(--ink); outline-offset: 2px; } .sw-opt input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }
.icopt { cursor: pointer; position: relative; } .icopt input { position: absolute; opacity: 0; inset: 0; } .icopt span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); } .icopt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.lgroup { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.recipes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .recipe { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); text-align: left; background: var(--paper); } .recipe:hover { border-color: var(--accent); background: var(--accent-soft); } .rico { width: 28px; height: 28px; border-radius: 7px; background: var(--paper-3); display: grid; place-items: center; flex: none; }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); } .rule:last-child { border-bottom: 0; } .rule .desc { color: var(--ink-2); margin-top: 2px; } .rule .desc b { color: var(--ink); font-weight: 600; } .dim { opacity: .6; }
.bdsec { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: flex-start; padding-top: 4px; } .bdk { font: 600 11px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 8px; } .bdrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .bdrow .select { width: auto; min-width: 180px; }
.polcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .polcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--paper); }
.dchip { display: inline-grid; place-items: center; width: 24px; height: 22px; border-radius: 5px; font: 500 10px var(--font-mono); background: var(--paper-3); color: var(--ink-3); } .dchip.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.emailstage { background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px 14px; display: flex; justify-content: center; overflow: auto; }
.email { width: 600px; max-width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.email-h { padding: 14px 24px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 60px 1fr; gap: 3px 8px; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) { .clockbox .t-long { display: none; } .clockbox .t-short { display: inline; } .gsearch { width: 200px; } }
@media (max-width: 1100px) { .two, .tkgrid { grid-template-columns: minmax(0, 1fr); } .cgrid { grid-template-columns: minmax(0, 1fr); } .stats.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .opts4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .polcards { grid-template-columns: minmax(0, 1fr); } .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gsearch { display: none; } }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .peek-b { grid-template-columns: minmax(0, 1fr); } .peek-rail { border-left: 0; border-top: 1px solid var(--line-2); } .proto-l { display: none; } }
@media (max-width: 767px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s var(--ease); } .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-btn { display: inline-flex; } .top { padding: 0 10px; gap: 6px; } .page { padding: 14px 16px 40px; }
  .clockbox .b8, .org, .hide-s { display: none !important; } .hero-top { padding-inline: 16px; } .hero-people { padding-inline: 16px; gap: 12px; } .pj-ppl__sep { display: none; } .pj-ppl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; } .pagehead { padding-inline: 16px; } .pagehead .stats { margin-inline: -16px; } .stat { padding-inline: 16px; }
  .hero-top > .row.wrap { flex-basis: 100%; } .hero-mark { width: 38px; height: 38px; font-size: 13px; } .h1 { font-size: 20px; }
  .grid2, .grid3, .recipes, .opts4, .grid4 { grid-template-columns: minmax(0, 1fr); }
  .qrow { grid-template-columns: 34px minmax(0, 1fr) auto auto; } .qrow > :nth-child(1), .qrow > :nth-child(2), .qrow > :nth-child(4), .qrow > :nth-child(5), .qrow > :nth-child(7), .qrow > :nth-child(8) { display: none; }
  .rule { grid-template-columns: auto minmax(0, 1fr); } .search .input { width: 150px; } .kv { grid-template-columns: minmax(0, 1fr); gap: 4px; } .srow { grid-template-columns: minmax(0, 1fr); }
  .prop2 { grid-template-columns: minmax(0, 1fr); gap: 4px; } .bdsec { grid-template-columns: minmax(0, 1fr); } .prirow { flex-wrap: wrap; } .exp-lane .lh { width: 130px; }
}
a.grow { display: flex; align-items: center; gap: 6px; } a.grow:hover { text-decoration: underline; }
.card .tbl-wrap .row .av.lg { box-shadow: none; }

/* v5 additions */
.stats { gap: 1px; background: var(--line); } .stat { border: 0; background: var(--paper); } button.stat:hover { background: var(--paper-2); } .stat[aria-pressed="true"] { background: var(--accent-soft); }
.hero-top > .grow, .pagehead .hero-top > .grow { flex: 1 1 280px; }
@media (max-width: 1100px) { .stats.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.k5 .stat:nth-child(5) { grid-column: span 2; } }
@media (max-width: 1023px) { .stats.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats.k5 .stat:nth-child(5) { grid-column: span 2; } }
@media (max-width: 1000px) { .org, .hide-m { display: none !important; } .proto-l { display: none; } .top .crumbs { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } }
.deprow { display: flex; gap: 8px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line-2); } .deprow:first-of-type { border-top: 0; }
/* Settings tab: cards flow into two balanced columns on wide screens; a card is never split. */
.setcols > .card, .setcols > .banner { margin-bottom: 14px; break-inside: avoid; }
@media (min-width: 1360px) { .setcols { column-count: 2; column-gap: 14px; } }
.cfgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.member { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 12px 0; }
.suggest { position: absolute; left: 0; right: 0; top: 36px; z-index: 10; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 4px; max-height: 220px; overflow: auto; }
.suggest .mi { display: flex; width: 100%; padding: 7px 9px; border-radius: var(--r-md); text-align: left; } .suggest .mi:hover { background: var(--paper-3); }
.setcard.danger { border-color: color-mix(in oklch, var(--bad) 30%, var(--line)); }
@media (max-width: 767px) { .cfgrid { grid-template-columns: minmax(0, 1fr); } .member { grid-template-columns: minmax(0, 1fr) auto; } .member > .row:first-child { grid-column: 1 / -1; } }
.gsearch span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* v6 additions */
.switch { display: inline-block; vertical-align: middle; } .switch-wrap { display: inline-flex; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.member { grid-template-columns: minmax(0, 1fr) 230px 118px auto; } .member .who { min-width: 0; }
@media (max-width: 1100px) { .member { grid-template-columns: minmax(0, 1fr) auto auto; } .member .who { grid-column: 1 / -1; } }
.rt-b.on { background: var(--accent-soft); color: var(--accent-ink); }
.rich img.cemoji, .rte-body img.cemoji { width: 20px; height: 20px; vertical-align: -4px; }
.emx-pop { padding: 0 !important; overflow: hidden; }
.emx { display: flex; flex-direction: column; height: 380px; } .emx-s { position: relative; padding: 10px 10px 6px; } .emx-s .ic { position: absolute; left: 20px; top: 20px; color: var(--ink-3); } .emx-s .input { padding-left: 30px; }
.emx-tabs { display: flex; gap: 2px; padding: 0 8px 6px; border-bottom: 1px solid var(--line); overflow-x: auto; } .emx-t { width: 32px; height: 28px; border-radius: 6px; font-size: 16px; flex: none; } .emx-t:hover { background: var(--paper-3); }
.emx-b { flex: 1; overflow: auto; padding: 0 6px 6px; position: relative; } .emx-h { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 10px 6px 4px; position: sticky; top: 0; background: var(--paper); z-index: 1; }
.emx-grid { display: grid; grid-template-columns: repeat(9, 1fr); } .emx-grid .emo { width: 36px; height: 34px; font-size: 20px; }
.emx-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); }
.parentline { font-size: 11.5px; color: var(--ink-3); display: flex; gap: 5px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.subs .subrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line-2); } .subrow.done { background: color-mix(in oklch, var(--good-soft) 25%, transparent); }
.subadd { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line-2); background: var(--paper-2); border-radius: 0 0 var(--r-xl) var(--r-xl); } .subadd .input { border: 0; background: transparent; padding-left: 0; }
.migstat { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: flex-end; } .kvx { display: flex; flex-direction: column; font-size: 12px; color: var(--ink-3); gap: 2px; } .kvx b { font-size: 14px; color: var(--ink); } .migact { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.mrow { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); } .mrow:last-child { border-bottom: 0; } .lblx { font-weight: 550; }
.stepper { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; } .stepper span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); } .stepper span i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--font-mono); font-style: normal; background: var(--paper-3); } .stepper span.on { color: var(--ink); font-weight: 600; } .stepper span.on i { background: var(--ink); color: var(--paper); } .stepper span.done i { background: var(--good); color: #fff; } .stepper em { width: 22px; height: 1px; background: var(--line); }
@media (max-width: 767px) { .subs .subrow { grid-template-columns: auto minmax(0, 1fr) auto; } .subrow > .pill { display: none; } .subadd { grid-template-columns: auto minmax(0, 1fr) auto; } .subadd > select { display: none; } .emx-grid { grid-template-columns: repeat(7, 1fr); } .migact { margin-left: 0; } }
@media (max-width: 767px) { .member { grid-template-columns: minmax(0, 1fr) auto; } .member .who { grid-column: 1 / -1; } .member > select { grid-column: 1 / -1; width: 100%; } }

/* ---- SNO-717 round 2: custom fields (rail + page) and richer Settings cards ---- */
.card-h:last-child { padding-bottom: 14px; }
.srow-act { display: flex; justify-content: flex-end; }
.cfrail { overflow: hidden; } .cfrail-h { display: flex; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line-2); }
.cfrail .manage { font: 600 10.5px var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); } .cfrail .manage:hover { text-decoration: underline; }
.cfrail .prop2 .k { line-height: 1.25; } .reqmark { color: var(--bad-ink); }
.cfpage { display: grid; grid-template-columns: minmax(0, 1fr) clamp(360px, 26vw, 460px); gap: 16px; align-items: start; }
.cftbl tbody tr { cursor: pointer; } .cftbl tbody tr.sel td { background: var(--accent-soft); } .cftbl tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.cfname { font-weight: 600; text-align: left; } .cfname:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.cfact { white-space: nowrap; text-align: right; }
.cfnote { margin: 12px 18px 0; padding: 10px 12px; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.cfproj { padding: 4px 0 6px; } .cfp { display: flex; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; } .cfp:hover { background: var(--paper-2); }
.ptile { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 600 12px var(--font-mono); color: #fff; background: oklch(0.55 0.12 var(--h, 230)); }
.ptile.sm { width: 30px; height: 30px; background: var(--accent-soft); color: var(--accent-ink); }
@media (max-width: 1100px) { .cfpage { grid-template-columns: minmax(0, 1fr); } }
/* tones */
.t-accent { --tone: var(--accent); --tone-ink: var(--accent-ink); } .t-kan { --tone: var(--kan); --tone-ink: var(--kan-ink); } .t-good { --tone: var(--good); --tone-ink: var(--good-ink); }
.t-warn { --tone: var(--warn); --tone-ink: var(--warn-ink); } .t-bad { --tone: var(--bad); --tone-ink: var(--bad-ink); } .t-ink { --tone: var(--ink); --tone-ink: var(--paper); } .t-jira { --tone: oklch(0.55 0.15 255); --tone-ink: oklch(0.4 0.14 255); }
.fx { position: relative; overflow: hidden; } .fx::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--tone), color-mix(in oklch, var(--tone) 10%, transparent)); }
.fx > .card-h { padding-top: 18px; align-items: center; gap: 12px; }
.itile { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--tone-ink); background: color-mix(in oklch, var(--tone) 20%, var(--paper)); border: 1px solid color-mix(in oklch, var(--tone) 38%, var(--line)); }
.itile.sm { width: 30px; height: 30px; border-radius: 9px; } .itile .ic { width: 18px; height: 18px; } .itile.sm .ic { width: 15px; height: 15px; }
.t-ink .itile { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ptiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ptl { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid color-mix(in oklch, var(--tone) 32%, var(--line)); border-radius: var(--r-xl); background: linear-gradient(160deg, color-mix(in oklch, var(--tone) 16%, var(--paper)), color-mix(in oklch, var(--tone) 3%, var(--paper)) 75%); }
.ptl .itile { margin-bottom: 6px; } .ptl .big { font-size: 18px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); line-height: 1.2; }
.live { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--r-full); background: var(--good-soft); color: var(--good-ink); font: 500 11.5px var(--font-mono); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in oklch, var(--good) 25%, transparent); }
.ghbox { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; border-radius: var(--r-xl); border: 1px dashed var(--line); background: var(--paper-2); }
.ghbox.on { border-style: solid; border-color: color-mix(in oklch, var(--good) 28%, var(--line)); background: linear-gradient(120deg, color-mix(in oklch, var(--good) 7%, var(--paper)), var(--paper) 65%); }
.ghmark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--paper); } .ghmark .ic { width: 26px; height: 26px; }
.ghrepo { padding: 2px 9px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; }
.ghstat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; } .ghstat b { font-size: 22px; font-weight: 650; } .ghstat span { font-size: 11.5px; color: var(--ink-3); }
.migflow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-xl); background: linear-gradient(120deg, color-mix(in oklch, var(--tone) 15%, var(--paper)), var(--paper-2)); border: 1px solid color-mix(in oklch, var(--tone) 30%, var(--line)); }
.mnode { display: inline-flex; align-items: center; gap: 10px; } .mnode > span { display: flex; flex-direction: column; line-height: 1.2; font-size: 11.5px; }  .mnode b { font-size: 14px; }
.jdot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--font-sans); font-style: normal; color: #fff; background: var(--tone); } .jdot.sn { background: oklch(0.5 0.17 285); }
.mline { flex: 1 1 40px; min-width: 24px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--tone) 0 6px, transparent 6px 11px); opacity: .55; }
.migtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mtile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); } .mtile .ic { color: var(--tone-ink); margin-bottom: 4px; } .mtile b { font-size: 14.5px; }
.setcard.danger { background: linear-gradient(180deg, color-mix(in oklch, var(--bad) 5%, var(--paper)), var(--paper) 140px); border-color: color-mix(in oklch, var(--bad) 34%, var(--line)); } .setcard.danger .card-b { display: flex; flex-direction: column; gap: 10px; }
.dgrow { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--paper); } .dgrow b { font-size: 14px; }
.dgrow.hard { border-color: color-mix(in oklch, var(--bad) 34%, var(--line)); background: color-mix(in oklch, var(--bad) 6%, var(--paper)); }
@media (max-width: 900px) { .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .migtiles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ptiles { grid-template-columns: minmax(0, 1fr); } .dgrow, .ghbox { flex-wrap: wrap; } .ghstat { align-items: flex-start; } }
.btn.primary.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); } .btn.primary.dark:hover { opacity: .88; }
.cfpage .card-h .lnk { white-space: nowrap; }

.cfrule { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; } .cfrule label { font-weight: 600; }
.cfprev { padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); } .cfprev .prop2 { grid-template-columns: 100px minmax(0, 1fr); }
.lockrow { display: inline-flex; align-items: center; gap: 6px; color: var(--warn-ink); font-weight: 500; }
.cfpage .card-h .lnk { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; flex: none; }

/* switch dialogs (restored from the first SNO-717 design) */
.swlead { margin: 0; font-size: 13.5px; } .swsp { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); } .swsp-n { display: flex; align-items: center; gap: 8px; font-weight: 600; } .swbar { width: 140px; flex: none; }
.swchg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .swchg li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: var(--r-md); } .swchg li.keep { background: var(--good-soft); color: var(--good-ink); } .swi { margin-top: 2px; color: var(--ink-3); flex: none; } .swchg li.keep .swi { color: var(--good-ink); }
.swprev { max-height: 210px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2px 10px; } .swprev.off { opacity: .4; } .swpr { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); } .swpr:last-child { border-bottom: 0; } .swpr > i { width: 20px; text-align: right; font-style: normal; font-size: 11.5px; }
.modal.saving .modal-b { opacity: .55; pointer-events: none; }

.qmore { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line-2); background: var(--paper-2); }

/* ====================== Migration redesign ====================== */
.modal.mgx { width: min(780px, calc(100vw - 24px)); }
.modal.mgx-sync { width: min(720px, calc(100vw - 24px)); }
.modal.mgx:not(.mgx-sync):has(#mgBody) { width: min(1000px, calc(100vw - 24px)); height: min(660px, calc(100vh - 40px)); }
body .modal.mgx:has(#mgBody) .modal-b, body .modal.mgx:has(#rsBody) .modal-b { flex: 1 1 auto; min-height: 0; }
#mgBody, #rsBody { display: flex; flex-direction: column; gap: 18px; flex: none; }
#mgBody > *, #rsBody > * { flex: none; }
.mgx .modal-h { padding: 20px 26px 4px; } .mgx .modal-h h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.mgx .modal-b { padding: 12px 26px 22px; gap: 16px; } .mgx .modal-f { padding: 14px 26px; }
.mgx .modal-f .grow { flex: 1; }
.mgx .modal-f .btn.primary { min-width: 120px; }
.mgx .hint .ic, .mgx .banner .ic, .mgx-also .ic { display: inline-block; vertical-align: -3px; margin-right: 5px; }
.mgx .hint .ic { width: 14px; height: 14px; }
.mgx-also .ic { margin-right: 0; flex: none; }

/* logos */
.mgx-logo { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; flex: none; font: 700 14px var(--font-sans); letter-spacing: -.02em; color: #fff; background: var(--t, var(--ink)); box-shadow: inset 0 -2px 0 oklch(0 0 0 / .12); font-style: normal; } .mgx-logo svg { width: 62%; height: 62%; }
.mgx-logo.xs { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.mgx-logo.sm { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }

/* progress */
.mgx-prog { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.mgx-prog span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-weight: 500; }
.mgx-prog span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--font-mono); font-style: normal; background: var(--paper-3); color: var(--ink-3); }
.mgx-prog span.on { color: var(--ink); font-weight: 600; } .mgx-prog span.on i { background: var(--ink); color: var(--paper); }
.mgx-prog span.done { color: var(--ink-2); } .mgx-prog span.done i { background: var(--good-soft); color: var(--good-ink); }
.mgx-prog span.skip { opacity: .65; }
.mgx-prog em { flex: 1 1 18px; min-width: 14px; max-width: 54px; height: 2px; border-radius: 2px; background: var(--line); }

/* spinners and loading */
.mgx-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: mgxspin .8s linear infinite; display: inline-block; flex: none; }
.mgx-spin.lg { width: 30px; height: 30px; border-width: 3px; }
@keyframes mgxspin { to { transform: rotate(360deg); } }
.mgx-load, .mgx-caught { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 16px; text-align: center; }
.mgx-load b, .mgx-caught b { font-size: 15px; }
.mgx-hero { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--good-soft); color: var(--good-ink); margin: 4px auto 8px; animation: mgxpop .4s var(--ease); }
.mgx-hero .ic { width: 28px; height: 28px; }
@keyframes mgxpop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* step: source */
.mgx-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mgx-src { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-xl); background: var(--paper); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; position: relative; }
.mgx-src:hover { border-color: var(--ink-4); box-shadow: var(--shadow-sm); }
.mgx-src.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mgx-src .mgx-logo { width: 44px; height: 44px; border-radius: 13px; font-size: 17px; }
.mgx-src-t { display: flex; flex-direction: column; min-width: 0; flex: 1; } .mgx-src-t b { font-size: 15px; } .mgx-src-t span { color: var(--ink-3); font-size: 12px; }
.mgx-ok { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: var(--r-full); background: var(--good-soft); color: var(--good-ink); font: 500 11.5px var(--font-mono); white-space: nowrap; }
.mgx-ok.sm { height: 20px; font-size: 11px; }
.mgx-mini { position: absolute; right: 14px; bottom: 6px; font-size: 11px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; } .mgx-mini:hover { color: var(--bad-ink); }
.mgx-src:has(.mgx-mini) { padding-bottom: 22px; }
.mgx-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-xl); background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); }
.mgx-callout .hint { color: inherit; opacity: .85; } .mgx-callout .btn { flex: none; }

/* step: projects */
.mgx-found { display: flex; align-items: center; justify-content: space-between; }
.mgx-projs { display: flex; flex-direction: column; gap: 10px; }
.mgx-proj { border: 1.5px solid var(--line); border-radius: var(--r-xl); background: var(--paper); transition: border-color .12s, box-shadow .12s; overflow: hidden; }
.mgx-proj:hover { border-color: var(--ink-4); } .mgx-proj.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mgx-proj-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.mgx-proj-main input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.mgx-proj-t { display: flex; flex-direction: column; flex: 1; min-width: 0; } .mgx-proj-t b { font-size: 14.5px; }
.mgx-count { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; color: var(--ink-3); font-size: 11px; } .mgx-count b { font: 600 15px var(--font-mono); color: var(--ink); }
.mgx-proj-k { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px 48px; background: var(--paper-2); border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.mgx-proj-k label { font-size: 12px; font-weight: 500; color: var(--ink-2); } .mgx-proj-k .input { width: 110px; text-transform: uppercase; }
.mgx-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 42px 20px; border: 2px dashed var(--ink-4); border-radius: var(--r-2xl); background: var(--paper-2); text-align: center; cursor: pointer; }
.mgx-drop:hover { border-color: var(--accent); background: var(--accent-soft); } .mgx-drop b { font-size: 16px; }
.mgx-dropic { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.mgx-fileok { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-xl); background: var(--good-soft); color: var(--good-ink); } .mgx-fileok .hint { color: inherit; opacity: .85; }

/* step: check */
.mgx-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: -4px; }
.mgx-tabs button { padding: 9px 14px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; position: relative; }
.mgx-tabs button:hover { color: var(--ink); } .mgx-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.mgx-pip { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 7px; }
.mgx-check { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.mgx-cards { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mgx-acc { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); overflow: hidden; }
.mgx-acc.open { border-color: var(--ink-4); box-shadow: var(--shadow-sm); }
.mgx-acc-h { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; cursor: pointer; } .mgx-acc-h:hover { background: var(--paper-2); }
.mgx-acc-h .grow { display: flex; flex-direction: column; min-width: 0; } .mgx-acc-h b { font-size: 14px; }
.mgx-as { color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgx-ai { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-3); color: var(--ink-2); flex: none; } .mgx-ai.lg { width: 36px; height: 36px; border-radius: 10px; }
.mgx-chev { color: var(--ink-3); display: grid; transition: transform .15s var(--ease); } .mgx-acc.open .mgx-chev { transform: rotate(180deg); }
.mgx-acc-b { padding: 4px 16px 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.mgx-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.mgx-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-lg); text-align: left; cursor: pointer; position: relative; background: var(--paper); }
.mgx-kind:hover { border-color: var(--ink-4); } .mgx-kind.sel { border-color: var(--accent); background: var(--accent-soft); }
.mgx-cols { display: flex; flex-direction: column; gap: 8px; }
.mgx-mv { display: flex; flex-direction: column; gap: 1px; } .mgx-mv button { width: 20px; height: 15px; font-size: 8px; line-height: 1; border-radius: 4px; color: var(--ink-3); } .mgx-mv button:hover:not(:disabled) { background: var(--paper-3); color: var(--ink); } .mgx-mv button:disabled { opacity: .3; cursor: default; }
.mgx-seg { flex-wrap: wrap; } .mgx-seg button { padding: 0 8px !important; font-size: 11.5px !important; } .mgx-seg button { display: inline-flex; align-items: center; gap: 6px; } .mgx-seg button i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .mgx-seg button:disabled { opacity: .5; cursor: default; }
.mgx-sel { position: relative; display: block; } .mgx-sel .mgx-dot { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; } .mgx-sel .select { padding-left: 26px; }
.mgx-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mgx-ppl { display: flex; flex-direction: column; gap: 6px; }
.mgx-ests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mgx-est { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-lg); text-align: left; cursor: pointer; background: var(--paper); } .mgx-est:hover { border-color: var(--ink-4); } .mgx-est.sel { border-color: var(--accent); background: var(--accent-soft); } .mgx-est span { color: var(--ink-3); font-size: 11.5px; }
.mgx-prev { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper-2); min-width: 0; }
.mgx-prev-h { display: flex; align-items: center; justify-content: space-between; }
.mgx-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(66px, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.mgx-tray { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--r-lg); background: var(--tray); }
.mgx-tray-h { display: flex; align-items: center; gap: 5px; font-size: 11px; } .mgx-tray-h i { width: 7px; height: 7px; border-radius: 50%; flex: none; } .mgx-tray-h b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .mgx-tray-h span { font: 500 10.5px var(--font-mono); color: var(--ink-3); }
.mgx-skel { display: flex; flex-direction: column; gap: 4px; padding: 7px; border-radius: 7px; background: var(--paper); box-shadow: var(--shadow-sm); } .mgx-skel i { display: block; height: 4px; border-radius: 3px; background: var(--paper-3); } .mgx-skel.empty { color: var(--ink-4); font-size: 10.5px; text-align: center; background: transparent; box-shadow: none; border: 1px dashed var(--line); }
.mgx-prev-s { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); } .mgx-prev-s div { display: flex; flex-direction: column; } .mgx-prev-s b { font: 650 20px var(--font-mono); letter-spacing: -.02em; } .mgx-prev-s span { color: var(--ink-3); font-size: 11.5px; }

/* step: go */
.mgx-safe { display: flex; gap: 10px; max-width: 360px; color: var(--good-ink); } .mgx-safe b { color: var(--ink); } .mgx-safe .ic { flex: none; margin-top: 2px; }
.mgx-sum { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.mgx-sum-h { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; } .mgx-sum-h .mgx-logo { margin-bottom: 4px; } .mgx-sum-h .grow { min-width: 200px; display: flex; flex-direction: column; gap: 4px; } .mgx-sum-k { display: flex; flex-direction: column; gap: 4px; width: 120px; } .mgx-sum-k .input { text-transform: uppercase; }
.mgx-ck li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); } .mgx-ck li .ic { color: var(--good); margin-top: 3px; flex: none; } .mgx-ck li.warn .ic { color: var(--warn); } .mgx-ck b { color: var(--ink); }

/* step: running and done */
.mgx-run { padding: 26px 8px; max-width: 460px; margin: 0 auto; }
.mgx-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .mgx-steps li { display: flex; align-items: center; gap: 10px; color: var(--ink-4); } .mgx-steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); } .mgx-steps li.now { color: var(--ink); font-weight: 500; } .mgx-steps li.done { color: var(--ink-2); } .mgx-steps li.done .ic { color: var(--good); }
.mgx-done { display: flex; flex-direction: column; gap: 16px; }
.mgx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; } .mgx-tiles > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 10px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); } .mgx-tiles.left > div { align-items: flex-start; text-align: left; }
.mgx-tiles b { font: 650 24px var(--font-mono); letter-spacing: -.02em; } .mgx-tiles span { color: var(--ink-3); font-size: 12px; }
.mgx-card { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); overflow: hidden; }
.mgx-card-h { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line-2); } .mgx-card-h b { font-size: 14.5px; }
.mgx-card > .mgx-row, .mgx-card > .mgx-vs { margin: 14px 16px; }
.mgx-up { display: flex; align-items: center; gap: 12px; padding: 12px 16px; flex-wrap: wrap; } .mgx-up .grow { display: flex; flex-direction: column; min-width: 160px; line-height: 1.3; } .mgx-up .mgx-nm { display: flex; align-items: center; gap: 8px; }
.mgx-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.mgx-res { display: flex; align-items: center; gap: 8px; color: var(--good-ink); background: var(--good-soft); padding: 5px 10px; border-radius: var(--r-full); font-size: 12.5px; } .mgx-res b { color: inherit; }
.mgx-inv { display: flex; gap: 6px; width: 100%; padding-left: 42px; flex-wrap: wrap; } .mgx-inv .input { flex: 1; min-width: 180px; } .mgx-up .errtxt { width: 100%; padding-left: 42px; }
.mgx-confirm { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 20px; max-width: 460px; margin: 0 auto; } .mgx-confirm h3 { margin: 6px 0 0; font-size: 18px; } .mgx-confirm p { margin: 0 0 8px; color: var(--ink-2); }

/* Settings card */
.mgx-flow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px; border-radius: var(--r-xl); background: linear-gradient(120deg, color-mix(in oklch, var(--tone) 14%, var(--paper)), var(--paper-2)); border: 1px solid color-mix(in oklch, var(--tone) 28%, var(--line)); }
.mgx-node { display: inline-flex; align-items: center; gap: 10px; } .mgx-node > span:last-child { display: flex; flex-direction: column; line-height: 1.2; font-size: 11.5px; } .mgx-node b { font-size: 14px; }
.mgx-flow .mgx-logo { width: 38px; height: 38px; border-radius: 11px; }
.mgx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mgx-facts > div { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); } .mgx-facts .ic { color: var(--tone-ink); margin-bottom: 4px; } .mgx-facts span { color: var(--ink-3); font-size: 12px; } .mgx-facts b { font-size: 16px; letter-spacing: -.01em; } .mgx-facts em { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.mgx-recent { display: flex; flex-direction: column; gap: 2px; padding-top: 4px; } .mgx-recent-r { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); } .mgx-recent-r i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; } .mgx-recent-r span:nth-child(2) { flex: 1; }
@media (max-width: 900px) { .mgx-facts { grid-template-columns: minmax(0, 1fr); } }

/* Check for updates */
.mgx-chgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; align-items: start; }
.mgx-chg { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); overflow: hidden; } .mgx-chg-h { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 14px 16px; text-align: left; cursor: pointer; position: relative; } .mgx-chg-h:disabled { cursor: default; opacity: .65; } .mgx-chg-h:not(:disabled):hover { background: var(--paper-2); }
.mgx-chg-h b { font: 650 30px var(--font-mono); letter-spacing: -.03em; line-height: 1.1; } .mgx-chg-h span:not(.mgx-chev) { color: var(--ink-3); font-size: 12.5px; } .mgx-chg-h .mgx-chev { position: absolute; right: 12px; top: 14px; }
.mgx-chg[aria-expanded] {} .mgx-chg.good { border-top: 3px solid var(--good); } .mgx-chg.accent { border-top: 3px solid var(--accent); } .mgx-chg.warn { border-top: 3px solid var(--warn); }
.mgx-chg-b { border-top: 1px solid var(--line-2); } .mgx-chg-r { display: flex; align-items: center; gap: 8px; padding: 9px 14px; flex-wrap: wrap; font-size: 12.5px; }
.mgx-also { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.mgx-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mgx-ver { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-xl); cursor: pointer; position: relative; background: var(--paper); } .mgx-ver:hover { border-color: var(--ink-4); } .mgx-ver.sel { border-color: var(--accent); background: var(--accent-soft); }
.mgx-ver input { position: absolute; opacity: 0; } .mgx-ver:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mgx-ver dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; } .mgx-ver dt { color: var(--ink-3); } .mgx-ver dd { margin: 0; } .mgx-ver dd.diff { background: var(--warn-soft); color: var(--warn-ink); border-radius: 5px; padding: 0 5px; }
.mgx-keep { display: none; align-items: center; gap: 5px; color: var(--accent-ink); font-weight: 600; } .mgx-ver.sel .mgx-keep { display: inline-flex; }
.mgx-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .mgx-row .select { max-width: 320px; }
.mgx-will { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); } .mgx-will span { color: var(--ink-3); }

/* History */
.mgx-tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; position: relative; }
.mgx-tl li { display: flex; gap: 14px; padding-bottom: 18px; position: relative; } .mgx-tl li:last-child { padding-bottom: 0; }
.mgx-tl li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 0; width: 2px; background: var(--line); } .mgx-tl li:last-child::before { display: none; }
.mgx-tl li > i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); font-style: normal; z-index: 1; } .mgx-tl li.initial > i { background: var(--kan-soft); color: var(--kan-ink); }
.mgx-tl-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.mgx-tl-h { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .mgx-tl-c .hint { display: flex; align-items: center; gap: 6px; }

/* Preferences */
.mgx-pref { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; } .mgx-pref + .mgx-pref { border-top: 1px solid var(--line-2); padding-top: 16px; } .mgx-pref h4 { margin: 0; font-size: 14.5px; font-weight: 650; }
.mgx-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.mgx-opt { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer; position: relative; background: var(--paper); } .mgx-opt:hover { border-color: var(--ink-4); } .mgx-opt.sel { border-color: var(--accent); background: var(--accent-soft); } .mgx-opt input { position: absolute; opacity: 0; } .mgx-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; } .mgx-opt span { color: var(--ink-3); font-size: 12px; }
.mgx-tg { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; } .mgx-tg > span:last-child { display: flex; flex-direction: column; } .mgx-tg .switch { margin-top: 2px; flex: none; }

/* Projects page */

/* small screens */
@media (max-width: 900px) {
  .mgx-check { grid-template-columns: minmax(0, 1fr); } .mgx-prev { position: static; order: -1; }
}
@media (max-width: 767px) {
  .modal.mgx { top: 0; left: 0; transform: none; width: 100vw !important; height: 100dvh !important; max-height: none !important; border-radius: 0; border: 0; }
  .mgx .modal-h, .mgx .modal-b, .mgx .modal-f { padding-left: 16px; padding-right: 16px; }
  .mgx .modal-f { flex-wrap: wrap; } .mgx .modal-f .btn.primary { flex: 1; }
  .mgx-sources, .mgx-kinds, .mgx-ests, .mgx-ck, .mgx-vs { grid-template-columns: minmax(0, 1fr); }
  .mgx-prog em { display: none; } .mgx-prog span:not(.on) { font-size: 0; gap: 0; } .mgx-prog span:not(.on) i { font-size: 11px; }
}

/* ---- v2 additions ---- */
.mgx-eyebrow { margin-bottom: -8px; }
.mgx-h { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.01em; } .mgx-lead { margin-top: -10px; }
.mgx-fhint { color: var(--warn-ink); font-size: 12px; margin-right: 6px; text-align: right; }
.mgx-ul { margin: 6px 0 0; padding-left: 18px; }
.mgx-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mgx-drafts { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mgx-draft-r { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); } .mgx-draft-r .grow { display: flex; flex-direction: column; line-height: 1.3; }
.mgx-fmt { display: flex; flex-direction: column; gap: 8px; } .mgx-fmt-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .mgx-fmt-t { padding: 10px 12px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 12.5px; }
.mgx-selwrap { position: relative; display: block; min-width: 240px; } .mgx-selwrap .mgx-logo { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); pointer-events: none; } .mgx-selwrap .select { padding-left: 38px; }
.mgx-ci { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn-ink); }
.mgx-form { display: flex; flex-direction: column; gap: 12px; max-width: 460px; margin: 0 auto; width: 100%; padding-top: 8px; } .mgx-form h3 { margin: 0; font-size: 18px; } .mgx-form .field { display: flex; flex-direction: column; gap: 5px; }
.mgx-proj.off { background: var(--paper-2); } .mgx-proj.off .mgx-proj-main { cursor: default; }
.mgx-proj-k .input.err { border-color: var(--bad); } .mgx-proj-k .errtxt { flex-basis: 100%; }
.mgx-tabw { display: inline-flex; align-items: center; } .mgx-tabx { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; color: var(--ink-3); margin: 0 4px 0 -8px; } .mgx-tabx:hover { background: var(--paper-3); color: var(--bad-ink); }
.mgx-un { margin-left: 8px; font: 500 10.5px var(--font-mono); padding: 1px 7px; border-radius: var(--r-full); } .mgx-un.warn { background: var(--warn-soft); color: var(--warn-ink); } .mgx-un.ok { background: var(--good-soft); color: var(--good-ink); }

/* mapping tables: which side is the other platform, which is SnowaOS */
.mgx-mh { display: grid; grid-template-columns: minmax(0, .7fr) 22px minmax(0, 1.9fr); gap: 8px; padding: 8px 10px; font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); border-bottom: 1px solid var(--line); align-items: center; }
.mgx-mh span { display: inline-flex; align-items: center; gap: 7px; } .mgx-mh.with-order, .mgx-mr { }
.mgx-map { display: flex; flex-direction: column; } .mgx-map .mgx-mr:last-child { border-bottom: 0; }
.mgx-mr { display: grid; grid-template-columns: auto minmax(0, .7fr) 22px minmax(0, 1.9fr); gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line-2); }
.mgx-mr.nomv { grid-template-columns: minmax(0, .7fr) 22px minmax(0, 1.9fr); }
.mgx-mh.with-order { grid-template-columns: 30px minmax(0, .7fr) 22px minmax(0, 1.9fr); } .mgx-mh.with-order::before { content: 'Order'; font-size: 10px; }
.mgx-mh:not(.with-order):not(.nomv) { padding-left: 38px; } .mgx-mh.nomv { padding-left: 10px; } .mgx-mh.with-order { padding-left: 10px; }
.mgx-mr.off .mgx-l b { text-decoration: line-through; color: var(--ink-3); } .mgx-mr.off { background: var(--paper-2); }
.mgx-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; padding: 6px 10px; border-radius: var(--r-md); background: var(--paper-2); border: 1px solid var(--line-2); }
.mgx-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; padding: 6px 8px; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--accent-line); } .mgx-r > .input, .mgx-r > .select { flex: 1 1 140px; min-width: 0; } .mgx-r.col { flex-direction: column; align-items: stretch; gap: 6px; } .mgx-r .hint { color: var(--accent-ink); opacity: .85; }
.mgx-r .errtxt { font-size: 11.5px; }
.mgx-sel { position: relative; } .mgx-sel .mgx-dot { position: absolute; left: 10px; top: 14px; z-index: 1; pointer-events: none; } .mgx-sel .select { padding-left: 26px; } .mgx-sel .input { margin-top: 6px; }
.mgx-mv { display: flex; flex-direction: column; gap: 1px; } .mgx-mv button { width: 20px; height: 15px; font-size: 8px; line-height: 1; border-radius: 4px; color: var(--ink-3); } .mgx-mv button:hover:not(:disabled) { background: var(--paper-3); color: var(--ink); } .mgx-mv button:disabled { opacity: .3; cursor: default; }
.mgx-end { font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding: 6px 10px 0; }
.mgx-tbls { display: flex; flex-direction: column; gap: 6px; } .mgx-tbl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; } .mgx-tbl b { flex: 1; }
.mgx-fill { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; } .mgx-radio { display: flex; align-items: baseline; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; } .mgx-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.mgx-ratio { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin-top: 8px; border-radius: var(--r-lg); background: var(--paper-2); border: 1px solid var(--line-2); } .mgx-ratio > span:first-of-type { flex: 1 1 240px; }
.mgx-ests { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* review */
.mgx-safe { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-xl); background: var(--good-soft); color: var(--good-ink); } .mgx-safe b { color: var(--ink); } .mgx-safe .hint { color: inherit; opacity: .85; } .mgx-safe .ic { flex: none; margin-top: 2px; }
.mgx-sums { display: flex; flex-direction: column; gap: 12px; }
.mgx-sum { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); display: flex; flex-direction: column; gap: 12px; }
.mgx-sum-h { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .mgx-sum-h .grow { display: flex; flex-direction: column; line-height: 1.3; } .mgx-sum-h .grow b { font-size: 15px; }
.mgx-ck { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; } .mgx-ck li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); } .mgx-ck li .ic { color: var(--good); margin-top: 3px; flex: none; } .mgx-ck b { color: var(--ink); }
.mgx-chips { display: flex; flex-wrap: wrap; gap: 6px; } .mgx-chip { height: 24px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--r-full); background: var(--paper-3); font-size: 12px; } .mgx-chip.off { text-decoration: line-through; color: var(--ink-3); background: var(--warn-soft); }

/* progress and results */
.mgx-ptable { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.mgx-pth, .mgx-ptr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 110px; gap: 14px; align-items: center; padding: 12px 16px; } .mgx-pth { background: var(--paper-2); border-bottom: 1px solid var(--line); font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); } .mgx-ptr + .mgx-ptr { border-top: 1px solid var(--line-2); }
.mgx-pn2 { display: inline-flex; align-items: center; gap: 8px; min-width: 0; } .mgx-pn2 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgx-bar { position: relative; height: 10px; border-radius: 99px; background: var(--paper-3); display: block; } .mgx-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--accent); transition: width .3s var(--ease); display: block; } .mgx-bar em { position: absolute; right: 0; top: -17px; font: 500 11px var(--font-mono); font-style: normal; color: var(--ink-3); }
.mgx-st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; } .mgx-st.done { color: var(--good-ink); } .mgx-st.importing { color: var(--accent-ink); } .mgx-st.waiting { color: var(--ink-3); }
.mgx-banner-ok { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r-xl); background: var(--good-soft); color: var(--good-ink); font-size: 14px; } .mgx-banner-ok b { color: var(--ink); }
.mgx-skipped { padding: 10px 14px; border-radius: var(--r-lg); background: var(--warn-soft); color: var(--warn-ink); }


/* Projects page */
.mgx-ptabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .mgx-ptabs button { padding: 10px 12px; color: var(--ink-3); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } .mgx-ptabs button:hover { color: var(--ink); } .mgx-ptabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; } .mgx-ptabs-add { color: var(--accent-ink) !important; }
.mgx-bar2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .mgx-search { position: relative; display: block; width: min(300px, 100%); } .mgx-search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); } .mgx-search .input { padding-left: 32px; }
.mgx-flt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.mgx-tbl2 td { vertical-align: middle; } .mgx-pl { display: inline-flex; align-items: center; gap: 12px; text-align: left; } .mgx-pl > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; } .mgx-pl b { font-size: 14px; } .mgx-pl:hover b { text-decoration: underline; }
.mgx-pt { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 11.5px var(--font-mono); color: oklch(0.99 0 0); background: oklch(0.55 0.12 var(--h)); flex: none; }
.mgx-from { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 4px; background: var(--t); vertical-align: -3px; margin-right: 5px; font-style: normal; }
.mgx-team { display: inline-flex; } .mgx-team .av { margin-left: -6px; width: 22px; height: 22px; } .mgx-team .av:first-child { margin-left: 0; }
.mgx-prg { display: flex; flex-direction: column; gap: 4px; min-width: 120px; } .mgx-prg .hbar { height: 5px; } .mgx-prg .mono { font-size: 11.5px; color: var(--ink-3); }
.mgx-tbl2 td.bad { color: var(--bad-ink); }
.mgx-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line-2); }

@media (max-width: 767px) {
  .mgx-pth, .mgx-ptr { grid-template-columns: minmax(0, 1fr) 90px; } .mgx-pth span:nth-child(2), .mgx-ptr .mgx-bar { grid-column: 1 / -1; grid-row: 2; margin-top: 14px; }
  .mgx-ests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mgx-tabs .mgx-tabx { padding: 0; border: 0; margin: 0 4px 0 -8px; width: 22px; height: 22px; align-self: center; }
.mgx-proj-main { flex-wrap: wrap; } .mgx-proj-t { flex: 1 1 140px; } .mgx-proj.off .mgx-proj-main { gap: 8px 12px; }

/* v3 polish */
body .modal.mgx:has(#mgBody) .modal-b, body .modal.mgx:has(#rsBody) .modal-b { display: flex; flex-direction: column; }
#mgBody, #rsBody { flex: 1 0 auto; }
.mgx-load, .mgx-caught { flex: 1 1 auto; justify-content: center; padding: 0 16px 24px; min-height: 280px; }
.mgx-ov { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; padding: 16px; border-radius: inherit; background: color-mix(in oklch, var(--ink) 22%, transparent); backdrop-filter: blur(3px); animation: fade .15s var(--ease); }
.mgx-ovc { width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 28px 28px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); animation: mgxpop .2s var(--ease); }
.mgx-ovc.wide { width: min(500px, 100%); padding: 24px; }
.mgx-ovc .mgx-confirm { padding: 0; }
.mgx-ci { width: 52px; height: 52px; }
.mgx-ov .mgx-confirm h3 { font-size: 17px; }
.mgx-acc-b > .banner { margin-bottom: 10px; }
.mgx-acc-b .banner + .mgx-kinds { margin-top: 0; }
.mgx-mh span { line-height: 1; } .mgx-mh .mgx-logo { letter-spacing: 0; font: 700 10px/1 var(--font-sans); text-transform: none; color: #fff; }
.mgx-r.col { display: flex; flex-direction: column; align-items: stretch; gap: 6px; } .mgx-r.col > * { flex: none; }
.mgx-r .select, .mgx-r .input { height: 32px; min-height: 32px; }
.mgx-r > .input, .mgx-r > .select { flex: 1 1 140px; }
.mgx-r1 { display: flex; align-items: center; gap: 8px; } .mgx-r1 .input { flex: 1 1 auto; min-width: 0; } .mgx-r1 .btn { flex: none; } .mgx-r1 .hint { flex: 1; }
.mgx-sel { position: relative; display: block; } .mgx-sel .mgx-dot { top: 11px; } .mgx-sel .select { width: 100%; }
.mgx-r .pill { height: auto; min-height: 24px; padding: 3px 10px; white-space: normal; }
.mgx-seg { width: 100%; } .mgx-seg button { flex: 1 1 auto; justify-content: center; }

.mgx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 14px; }
.mgx-gc { display: grid; grid-template-rows: 44px 24px 34px 26px; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--paper); }
.mgx-gc-h { display: flex; gap: 12px; align-items: center; min-width: 0; } .mgx-gc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .mgx-gc-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgx-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; font-size: 11px; }
.mgx-gc-m { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; white-space: nowrap; overflow: hidden; } .mgx-gc-p { display: flex; align-items: flex-end; } .mgx-gc-p .mgx-prg { width: 100%; } .mgx-gc-f { display: flex; justify-content: space-between; align-items: center; }
.mgx-tbl2 td, .mgx-tbl2 th { white-space: nowrap; } .mgx-tbl2 .mgx-pl { white-space: normal; }
.mgx-tbl2.dense td { padding-block: 5px; font-size: 12.5px; } .mgx-tbl2.dense th { padding-block: 7px; }
.mgx-pl.one { gap: 8px; } .mgx-pl.one b { font-size: 12.5px; }
.mgx-sh { display: inline-flex; align-items: center; gap: 5px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; } .mgx-sh i { font-style: normal; font-size: 9px; opacity: .45; } .mgx-sh.on { color: var(--ink); } .mgx-sh.on i { opacity: 1; } .mgx-sh:hover { color: var(--ink); }
.mgx-dotl { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ink-4); } .mgx-dotl.good { background: var(--good); } .mgx-dotl.warn { background: var(--warn); } .mgx-dotl.bad { background: var(--bad); }
.mgx-bulk { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-xl); background: var(--ink); color: var(--paper); flex-wrap: wrap; } .mgx-bulk b { margin-right: 6px; } .mgx-bulk .btn { background: transparent; color: var(--paper); border-color: color-mix(in oklch, var(--paper) 30%, transparent); } .mgx-bulk .btn:hover { background: color-mix(in oklch, var(--paper) 15%, transparent); }
.mgx-tbl2 input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); }
.mgx-tbl2 .mgx-pl.one { white-space: nowrap; }
body .modal.mgx:has(#mgBody) .modal-b { position: relative; }
.modal.mgx:has(#mgBody) .mgx-load { position: absolute; inset: 0; min-height: 0; padding: 70px 24px 24px; pointer-events: none; } .modal.mgx:has(#mgBody) .mgx-load > * { pointer-events: auto; }
.modal.mgx-sync .mgx-load, .modal.mgx-sync .mgx-caught { position: static; min-height: 0; padding: 40px 16px 28px; }
.mgx-r.col > .select, .mgx-r.col > .input, .mgx-r.col > .mgx-sel { flex: none; width: 100%; }
.mgx-r.col .mgx-sel > .select { height: 32px; }

.mgx-mh .mgx-logo, .mgx-mh > span > .mgx-logo { display: inline-grid; place-items: center; justify-content: center; align-items: center; padding: 0; gap: 0; line-height: 1; }
.mgx-mh .mgx-logo svg { display: block; width: 62%; height: 62%; }
.mgx-proto { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 14px; padding: 8px 12px; border: 1px dashed var(--ink-4); border-radius: var(--r-lg); background: var(--paper-2); font-size: 12px; color: var(--ink-3); }

.mgx-gc { cursor: pointer; transition: border-color .12s, box-shadow .12s; } .mgx-gc:hover { border-color: var(--ink-4); box-shadow: var(--shadow-md); } .mgx-gc:hover .mgx-gc-t b { text-decoration: underline; }

/* phones: mapping rows stay side by side (platform on the left, SnowaOS on the right) */
@media (max-width: 767px) {
  .mgx-mr { grid-template-columns: auto minmax(0, 1.2fr) 14px minmax(0, 1fr); gap: 6px; padding: 8px 6px; }
  .mgx-mr.nomv { grid-template-columns: minmax(0, 1.2fr) 14px minmax(0, 1fr); }
  .mgx-mh:not(.with-order):not(.nomv) { grid-template-columns: minmax(0, 1.2fr) 14px minmax(0, 1fr); gap: 6px; padding-left: 34px; }
  .mgx-mh.nomv { grid-template-columns: minmax(0, 1.2fr) 14px minmax(0, 1fr); gap: 6px; padding-left: 6px; }
  .mgx-mh.with-order { grid-template-columns: 24px minmax(0, 1.2fr) 14px minmax(0, 1fr); gap: 6px; padding-left: 6px; }
  .mgx-mh.with-order::before { display: block; }
  .mgx-mh i { display: block; } .mgx-mr .mgx-arrow { display: grid; }
  .mgx-l { padding: 6px 8px; } .mgx-r { padding: 5px; }
  .mgx-mh span { font-size: 10px; gap: 5px; letter-spacing: .04em; min-width: 0; }
  .mgx-l b { overflow-wrap: anywhere; font-size: 12.5px; } .mgx-l .hint { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mgx-r1 { gap: 5px; } .mgx-r1 .btn { padding: 0 8px; font-size: 11.5px; }
  .mgx-seg { display: grid; grid-template-columns: 1fr 1fr; } .mgx-seg button { padding: 0 6px !important; font-size: 11px !important; min-width: 0; }
  .mgx-r .select { padding-inline: 8px 24px; font-size: 12.5px; }
}

@media (max-width: 767px) {
  .mgx-mr.cols { grid-template-columns: auto minmax(0, .8fr) 12px minmax(0, 1.9fr); }
  .mgx-mh.cols:not(.with-order):not(.nomv) { grid-template-columns: minmax(0, .8fr) 12px minmax(0, 1.9fr); }
  .mgx-mr.cols .mgx-l .hint { white-space: normal; }
}
@media (max-width: 767px) { .mgx-seg button { white-space: nowrap; gap: 4px !important; padding: 0 4px !important; } .mgx-mh span { white-space: nowrap; } }

.mgx-lock { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: var(--r-md); background: var(--paper-3); color: var(--ink-2); font-size: 12px; line-height: 1.4; } .mgx-lock .ic { flex: none; margin-top: 2px; }
@media (max-width: 767px) {
  .mgx-sources { grid-template-columns: minmax(0, 1fr); }
  .mgx-src { flex-wrap: wrap; row-gap: 8px; } .mgx-src-t { min-width: 0; }
  .mgx-mh.with-order::before { content: ''; }
  .mgx-r .mgx-sel .select { padding-left: 24px; padding-right: 22px; } .mgx-sel .mgx-dot { left: 8px; }
}
@media (max-width: 767px) { .mgx-callout { flex-wrap: wrap; } .mgx-callout .grow { flex: 1 1 180px; min-width: 0; } .mgx-callout .btn { flex: 1 1 100%; } }
@media (max-width: 767px) {
  .mgx-mr:not(.nomv):not(.cols) { grid-template-columns: auto minmax(0, .8fr) 12px minmax(0, 1.6fr); }
  .mgx-mh:not(.with-order):not(.nomv):not(.cols) { grid-template-columns: minmax(0, .8fr) 12px minmax(0, 1.6fr); }
  .mgx-mh.with-order { grid-template-columns: 24px minmax(0, .8fr) 12px minmax(0, 1.6fr); }
  .mgx-r .select { font-size: 12px; }
}
/* ====== Timeline project ====== */
.warnt { color: var(--warn-ink); } .badt { color: var(--bad-ink); } .goodt { color: var(--good-ink); }
.tl-reason { color: var(--ink-2); font-size: 13px; }
.hero-top .pill[data-a] { cursor: pointer; border: 0; font: inherit; font-size: 11px; font-weight: 600; }
.tl-page { margin-top: 16px; }
.tl-sech { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; } .tl-sech h2 { font-size: 16px; }
/* needs attention */
.tl-attn { display: flex; flex-direction: column; gap: 8px; }
.tl-ai { display: flex; gap: 12px; padding: 12px 14px; border-left: 3px solid var(--line); } .tl-ai.warn { border-left-color: var(--warn); } .tl-ai.info { border-left-color: var(--accent); } .tl-ai.bad { border-left-color: var(--bad); }
.tl-aic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--paper-3); color: var(--ink-2); } .tl-ai.warn .tl-aic { background: var(--warn-soft); color: var(--warn-ink); } .tl-ai.info .tl-aic { background: var(--accent-soft); color: var(--accent-ink); }
.tl-at { font-weight: 600; } .tl-ax { color: var(--ink-2); margin-top: 2px; max-width: 760px; }
.tl-ok { display: flex; gap: 10px; align-items: center; padding: 12px 16px; color: var(--ink-2); }
/* toolbar + legend */
.tl-card { overflow: hidden; }
.tl-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.tl-bar .btn.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.tl-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); background: var(--paper-2); }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tl-legend .lg { width: 22px; height: 9px; border-radius: 3px; display: inline-block; }
.lg.crit { background: var(--accent); } .lg.slack { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-4); } .lg.done { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); } .lg.over { background: var(--warn); } .lg.late { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--bad); } .lg.base { height: 3px; background: var(--ink-4); } .lg.lv { background: repeating-linear-gradient(135deg, var(--ink-4) 0 2px, transparent 2px 5px); opacity: .6; } .lg.we { background: var(--paper-3); }
.lgd { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); display: inline-block; }
/* chart */
.tl-chart { overflow: auto; max-height: min(640px, calc(100vh - 220px)); position: relative; background: var(--paper); }
.tl-inner { position: relative; min-width: 100%; }
.tl-hdr { display: flex; position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.tl-corner { position: sticky; left: 0; z-index: 31; width: var(--lw); flex: none; background: var(--paper); border-right: 1px solid var(--line); padding: 0 14px; display: flex; align-items: flex-end; padding-bottom: 8px; }
.tl-axis { flex: none; } .tl-top, .tl-subr { display: flex; } .tl-hc { font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 7px 8px 5px; border-left: 1px solid var(--line-2); overflow: hidden; white-space: nowrap; }
.tl-hs { font: 500 10.5px var(--font-mono); color: var(--ink-3); padding: 2px 0 6px 6px; border-left: 1px solid var(--line-2); overflow: hidden; white-space: nowrap; box-sizing: border-box; } .tl-hs.off { background: var(--paper-3); } .tl-hs.today { background: var(--bad); color: #fff; } .tl-hs.wk { border-left-color: var(--line); }
.tl-hs b { display: block; font-weight: 600; color: inherit; text-align: center; padding-left: 0; } .tl-hs i { display: block; font-style: normal; text-align: center; opacity: .7; } .tl-hs:has(b) { padding-left: 0; }
.tl-body { position: relative; }
.tl-shade { position: absolute; left: var(--lw); top: 0; bottom: 0; z-index: 0; pointer-events: none; }
.tl-we { position: absolute; top: 0; bottom: 0; background: var(--paper-3); opacity: .55; } .tl-hol { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, var(--warn-soft) 0 3px, transparent 3px 6px); border-left: 1px solid var(--warn); border-right: 1px solid var(--warn); opacity: .9; }
.tl-row { position: absolute; left: 0; right: 0; display: flex; border-bottom: 1px solid var(--line-2); } .tl-row.tl-rph { background: color-mix(in oklab, var(--paper-2) 80%, transparent); } .tl-row.tl-rph .tl-lab { background: var(--paper-2); }
.tl-lab { position: sticky; left: 0; z-index: 20; width: var(--lw); flex: none; background: var(--paper); border-right: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 14px; min-width: 0; }
.tl-lab .av { flex: none; } .tl-lab b { font-weight: 600; } .tl-lab .mono { font-size: 11px; white-space: nowrap; }
.tl-tt { display: flex; flex-direction: column; min-width: 0; flex: 1; } .tl-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .tl-meta { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.tl-fls { display: flex; flex-direction: column; gap: 2px; align-items: flex-end; flex: none; }
.tl-fl { font: 600 9.5px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; padding: 1px 5px; border-radius: 4px; background: var(--paper-3); color: var(--ink-3); white-space: nowrap; } .tl-fl.crit { background: var(--accent-soft); color: var(--accent-ink); } .tl-fl.bad { background: var(--bad-soft); color: var(--bad-ink); } .tl-fl.warn { background: var(--warn-soft); color: var(--warn-ink); }
.tl-chev { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; color: var(--ink-3); } .tl-chev:hover { background: var(--paper-3); } .tl-chev.c svg { transform: rotate(-90deg); }
.tl-lane { position: relative; flex: none; }
.tl-phb { position: absolute; top: 13px; height: 8px; border-radius: 3px; background: var(--ink-3); opacity: .45; } .tl-phb::before, .tl-phb::after { content: ''; position: absolute; top: 6px; width: 0; height: 0; border: 4px solid transparent; border-top-color: var(--ink-3); } .tl-phb::before { left: 0; } .tl-phb::after { right: 0; }
/* bars */
.tlb { position: absolute; top: 8px; height: 22px; border-radius: 6px; display: flex; align-items: center; padding: 0 8px; overflow: hidden; text-align: left; cursor: grab; touch-action: none; user-select: none; z-index: 3; transition: box-shadow .12s; }
.tlb:hover { box-shadow: 0 0 0 2px var(--accent-line); } .tlb.sel { box-shadow: 0 0 0 2px var(--accent); } .tlb.drag { cursor: grabbing; opacity: .85; z-index: 9; box-shadow: var(--shadow-md); transition: none; }
.tlb.crit { background: var(--accent); color: #fff; } .tlb.crit .tlb-p { background: oklch(0.35 0.12 230 / .55); }
.tlb.slack { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-4); } .tlb.slack .tlb-p { background: var(--accent-soft); } .tlb.slack:hover { box-shadow: inset 0 0 0 1.5px var(--ink-4), 0 0 0 2px var(--accent-line); } .tlb.slack.sel { box-shadow: inset 0 0 0 1.5px var(--ink-4), 0 0 0 2px var(--accent); }
.tlb.done { background: var(--good-soft); color: var(--good-ink); box-shadow: inset 0 0 0 1px var(--good); cursor: default; }
.tlb.over:not(.done) { background: var(--warn); color: oklch(0.25 0.08 75); } .tlb.over.slack { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px var(--warn); } .tlb.over .tlb-p { background: oklch(0.55 0.13 75 / .4); }
.tlb.late:not(.done) { box-shadow: inset 0 0 0 2px var(--bad); } .tlb.crit.late { box-shadow: 0 0 0 2px var(--bad); }
.tlb.dim { opacity: .3; } .tl-row.dim .tl-lab > * { opacity: .5; }
.tlb-p { position: absolute; left: 0; top: 0; bottom: 0; pointer-events: none; } .tlb-t { position: relative; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.tl-out { position: absolute; top: 12px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; pointer-events: none; z-index: 2; }
.tl-bb { position: absolute; top: 33px; height: 3px; border-radius: 2px; background: var(--ink-4); z-index: 2; opacity: .8; }
.tl-lv { position: absolute; top: 2px; bottom: 2px; z-index: 1; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--ink-4) 0 2px, transparent 2px 5px); opacity: .45; }
/* milestones */
.tl-dia { position: absolute; top: 9px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: var(--accent); border-radius: 2px; z-index: 4; }
.tl-lab .tl-dia { position: static; margin: 0 4px 0 3px; flex: none; width: 11px; height: 11px; }
.tl-dia.good { background: var(--good); } .tl-dia.warn { background: var(--warn); } .tl-dia.bad { background: var(--bad); } .tl-dia.ghost { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-4); z-index: 3; }
button.tl-dia { cursor: pointer; } .tl-msln { position: absolute; top: 16px; height: 2px; background: var(--ink-4); opacity: .5; } .tl-msl { position: absolute; top: 8px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
/* arrows + today */
.tl-links { position: absolute; left: var(--lw); top: 0; z-index: 5; pointer-events: none; overflow: visible; }
.tl-ar { fill: none; stroke: var(--ink-4); stroke-width: 1.2; } .tl-ar.crit { stroke: var(--accent); stroke-width: 1.8; } .tl-ar.dim { opacity: .15; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--bad); z-index: 7; pointer-events: none; transform: translateX(var(--lw)); } .tl-today span { position: absolute; top: 3px; left: 4px; font: 600 9.5px var(--font-mono); letter-spacing: .05em; text-transform: uppercase; background: var(--bad); color: #fff; padding: 1px 5px; border-radius: 4px; }
/* unscheduled */
.tl-un td { vertical-align: middle; } .tl-un .input { min-width: 138px; } .tl-err { display: flex; gap: 6px; align-items: flex-start; color: var(--bad-ink); font-size: 12px; padding: 6px 2px; } td.tl-err { display: table-cell; padding: 4px 14px 10px; background: var(--bad-soft); }
#tlLane.flash { animation: tlflash 1.4s; } @keyframes tlflash { 0%, 60% { box-shadow: 0 0 0 3px var(--accent-line); } 100% { box-shadow: none; } }
/* drawer */
.tl-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: 400px; max-width: 100vw; background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; }
.tl-dh { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px 12px; border-bottom: 1px solid var(--line-2); } .tl-dh h2 { font-size: 18px; margin-top: 2px; }
.tl-db { padding: 14px 18px 28px; overflow: auto; display: flex; flex-direction: column; gap: 16px; }
.tl-f { display: flex; flex-direction: column; gap: 8px; } .tl-v { font-weight: 500; padding: 7px 0; }
.tl-kv { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; } .tl-kv span { color: var(--ink-3); } .tl-kv b { font-weight: 500; text-align: right; }
.tl-dep { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; background: var(--paper-2); border-radius: var(--r-md); }
.tl-addl { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: 6px; } .tl-addl .select { min-width: 0; width: 100%; } .tl-addl #dpP { grid-column: 1 / -1; } .tl-addl .input.num { width: 100%; text-align: left; }
.tl-pick { max-height: 180px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
/* milestones / setup */
.card-f { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--paper-2); font-size: 12.5px; }
.tl-chk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; } .tl-chk.ok { background: var(--good-soft); color: var(--good-ink); } .tl-chk.no { background: var(--bad-soft); color: var(--bad-ink); }
.tl-bl { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line-2); } .tl-bl:last-child { border: 0; }
.tl-proto { border-style: dashed; }
.tl-pv { display: flex; flex-direction: column; gap: 10px; } .tl-pvs { display: flex; gap: 14px; align-items: baseline; padding: 10px 12px; background: var(--warn-soft); color: var(--warn-ink); border-radius: var(--r-md); flex-wrap: wrap; }
.tl-pn { font-size: 12px; color: var(--ink-3); margin-top: 8px; } .tl-hr { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; font-size: 12.5px; opacity: .6; } .tl-hr.hit { opacity: 1; font-weight: 500; } .tl-hr .pill { flex: none; }
@media (max-width: 767px) { .tl-drawer { width: 100vw; } .tl-addl { grid-template-columns: minmax(0, 1fr) 64px auto; } .tl-inner { --lw: 190px !important; } }
/* project settings rows */
.tl-srl { display: flex; flex-direction: column; } .tl-sr { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); } .tl-sr:last-child { border: 0; }
.tl-si { width: 28px; height: 28px; border-radius: 8px; background: var(--paper-3); display: grid; place-items: center; color: var(--ink-2); flex: none; } .tl-sr .grow b { font-weight: 600; } .tl-sr .muted { font-size: 12px; } .tl-sv { font-size: 11.5px; color: var(--ink-2); text-align: right; max-width: 220px; }
@media (max-width: 767px) { .tl-sr { flex-wrap: wrap; } .tl-sv { text-align: left; max-width: none; } }
/* People tab */
.tl-pt td, .tl-pt th { padding: 10px 12px; } .tl-pc { text-align: right; font-family: var(--font-mono); } .tl-pc b { display: block; font-weight: 600; } .tl-pc span { font-size: 10.5px; color: var(--ink-3); } .tl-pc.near { background: var(--warn-soft); } .tl-pc.over { background: var(--bad-soft); } .tl-pc.over span { color: var(--bad-ink); }


.tl-tf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .tl-tf .select { padding-left: 8px; }

.tl-desc { margin-top: 8px; color: var(--ink-2); max-width: 720px; line-height: 1.5; }

.tl-tlink { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--paper-2); border-radius: var(--r-md); font-size: 12px; }



.tl-lab b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 0 1 auto; } .tl-rph .tl-lab .mono { flex: none; }

.tl-rph { box-sizing: border-box; } .tl-rph .tl-lab { align-self: stretch; }

.tl-lab { box-shadow: 0 1px 0 var(--line-2); }

/* ====== Create project wizard (mirrors the live NewProjectClient layout) ====== */
/* ---------- Create project: redesign (look only; every step, field and rule matches the live wizard) ---------- */
.np-page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.np-head { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 20px; }
.np-head-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.np-meter { display: none; font: 500 12px var(--font-mono); color: var(--ink-3); min-width: 0; max-width: 100%; }
.np-meter b { color: var(--ink); font-weight: 600; }
.np-head-top > .grow { flex: 1 1 300px; min-width: min(300px, 100%); }
.np-bar { width: 120px; height: 6px; border-radius: 99px; background: var(--paper-3); overflow: hidden; } .np-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .25s var(--ease); }
.np-steps { display: flex; align-items: flex-start; margin: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0 2px; }
.np-steps::-webkit-scrollbar { display: none; }
.np-step { flex: 1 1 0; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; position: relative; text-align: center; background: none; border: 0; border-radius: var(--r-md); }
.np-step::before { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.np-step:first-child::before { display: none; }
.np-step.is-done::before, .np-step.is-active::before { background: var(--good); }
.np-step[disabled] { cursor: default; }
.np-step__num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); display: grid; place-items: center; font: 600 12px var(--font-mono); color: var(--ink-3); transition: background .15s var(--ease), border-color .15s var(--ease); }
.np-step.is-active .np-step__num { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in oklch, var(--ink) 12%, transparent); }
.np-step.is-done .np-step__num { background: var(--good); border-color: var(--good); color: #fff; }
button.np-step:not([disabled]):hover .np-step__num { border-color: var(--ink); }
.np-step__name { font-size: 12.5px; font-weight: 500; color: var(--ink-3); line-height: 1.25; }
.np-step.is-active .np-step__name { color: var(--ink); font-weight: 650; } .np-step.is-done .np-step__name { color: var(--ink-2); }

.np-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.np-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.np-sh h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.np-sh p { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; max-width: 64ch; }
.np-page .input, .np-page .select { height: 38px; }
.np-page .textarea { min-height: 84px; }
.np-page .card-h { padding: 16px 20px 0; } .np-page .card-b { padding: 16px 20px 20px; }
.np-page .grid2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.np-page .field > label { font-size: 12.5px; }
.np-page .hint { font-size: 12px; }
.np-sub { display: flex; flex-direction: column; gap: 2px; } .np-sub b { font-size: 13.5px; font-weight: 650; } .np-sub span { font-size: 12.5px; color: var(--ink-3); }
.np-sec + .np-sec { padding-top: 6px; border-top: 1px solid var(--line-2); margin-top: 6px; }

/* template cards */
.np-tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 12px; }
.np-tc { position: relative; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-xl); background: var(--paper); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.np-sty { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.np-sb { position: relative; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-xl); background: var(--paper); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.np-sb:hover { border-color: var(--ink-4); }
.np-sb.on { border-color: var(--accent); background: color-mix(in oklch, var(--accent-soft) 55%, var(--paper)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent); }
.np-sbh { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.np-sbh .np-ck { position: static; }
.np-sd { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.np-sc { font-size: 11px; color: var(--ink-3); line-height: 1.5; overflow-wrap: anywhere; }
/* template picker: pinned Blank, category tabs, search */
.np-ptype { scroll-margin-top: 84px; }
.np-flash { animation: npFlash 1.4s ease-out .35s; }
@keyframes npFlash { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 45%, transparent); } 35% { box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 30%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.np-tpl1 { grid-template-columns: minmax(0, 1fr); } .np-blank { border-style: dashed; }
@media (min-width: 721px) { .np-blank { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; } .np-blank .np-ti { grid-row: 1 / 3; } .np-blank .np-tn { grid-column: 2; grid-row: 1; } .np-blank .np-td { grid-column: 2; grid-row: 2; } .np-blank .np-tags { grid-column: 3; grid-row: 1 / 3; } }
.np-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .np-gh b { font-size: 13.5px; font-weight: 650; } .np-gh span { font-size: 11.5px; }
.np-pbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); }
.np-cats { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.np-cat2 { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 13px; font-weight: 550; transition: background .12s, color .12s; }
.np-cat2 span { font-size: 11px; color: var(--ink-3); } .np-cat2:hover { background: var(--paper-3); }
.np-cat2.on { background: var(--ink); color: var(--paper); } .np-cat2.on span { color: color-mix(in oklch, var(--paper) 70%, transparent); }
.np-q { position: relative; width: 240px; max-width: 100%; } .np-q .input { padding-left: 34px; width: 100%; } .np-qi { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: grid; pointer-events: none; }
.np-none { display: flex; gap: 12px; align-items: center; padding: 18px; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink-3); } .np-none div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; } .np-none b { color: var(--ink); }
.np-tc:hover { border-color: var(--ink-4); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.np-tc.on { border-color: var(--accent); background: color-mix(in oklch, var(--accent-soft) 55%, var(--paper)); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent); transform: none; }
.np-ti { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: oklch(0.95 0.04 var(--h)); }
.np-tn { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; padding-right: 26px; }
.np-td { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.np-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.np-ck { position: absolute; right: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--paper); }
.np-tlcard { border-color: var(--accent-line); background: var(--accent-soft); }
.np-tlg { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } .np-tlg div { display: flex; flex-direction: column; gap: 3px; } .np-tlg b { font-size: 13px; } .np-tlg span { font-size: 12.5px; color: var(--accent-ink); opacity: .85; }
.np-drafts { border-style: dashed; }

/* basics */
.np-nm { display: flex; gap: 12px; align-items: flex-start; } .np-ms { font-size: 12.5px; margin-top: -4px; } .np-ms .pill { cursor: pointer; border: 0; }
.np-mark { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

/* team */
.np-mem { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.np-mr { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line-2); cursor: pointer; background: var(--paper); }
.np-mr:last-child { border: 0; } .np-mr:hover { background: var(--paper-2); } .np-mr:has(input:checked) { background: var(--accent-soft); }
.np-mr input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.np-mw { min-width: 0; display: flex; flex-direction: column; } .np-mw b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .np-mw span { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-lb { height: 6px; border-radius: 99px; background: var(--paper-3); overflow: hidden; } .np-lb i { display: block; height: 100%; border-radius: 99px; background: var(--good); } .np-lb.warn i { background: var(--warn); } .np-lb.bad i { background: var(--bad); }
.np-hrs { text-align: right; font-size: 11.5px; white-space: nowrap; }

/* plan rows */
.np-ph { display: grid; grid-template-columns: minmax(0, 1.6fr) 140px 140px minmax(0, 1fr) 32px; gap: 8px; align-items: center; }
.np-ms2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 140px 78px 58px 32px; gap: 8px; align-items: center; }
.np-c { min-width: 0; display: block; } .np-c > .np-l { display: none; }
.np-phh { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); } .np-sw { display: grid; place-items: center; }
.np-chk { display: flex; flex-wrap: wrap; gap: 8px; }
.np-chk span { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; background: var(--paper-2); max-width: 100%; }
.np-chk span i { font-style: normal; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-chk .ok { background: var(--good-soft); color: var(--good-ink); } .np-chk .no { background: var(--warn-soft); color: var(--warn-ink); }
.np-chk .ok i, .np-chk .no i { color: inherit; opacity: .75; }

/* workflow + fields + types */
.np-cols { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-lg); background: var(--paper-2); }
.np-col { display: grid; grid-template-columns: 22px 10px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 4px 6px; border-radius: 10px; transition: background .12s; }
.np-col:hover, .np-col:focus-within { background: var(--paper); }
.np-cd { width: 10px; height: 10px; border-radius: 50%; display: block; }
.np-col .input { border-color: transparent; background: transparent; box-shadow: none; font-weight: 550; }
.np-col:hover .input { border-color: var(--line); }
.np-col .input:focus { background: var(--paper); border-color: var(--accent); }
.np-col .np-cat { border: 0; width: auto; min-width: 128px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background-color: color-mix(in oklab, var(--c) 13%, transparent); color: var(--ink-2); }
.np-col .np-ca { opacity: .35; transition: opacity .12s; } .np-col:hover .np-ca, .np-col:focus-within .np-ca { opacity: 1; }
@media (hover: none) { .np-col .np-ca { opacity: 1; } }
.np-addcol { align-self: flex-start; margin: 2px 0 0 6px; }
.np-grip { color: var(--ink-4); display: grid; place-items: center; }
.np-cat { border-left: 4px solid var(--c); }
.np-fr { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); min-width: 0; }
.np-fr.off { border-style: dashed; background: var(--paper-2); } .np-fr .input { flex: 1; min-width: 0; }
.np-fr .grow { overflow-wrap: anywhere; }
.np-fi { width: 30px; height: 30px; border-radius: 8px; background: var(--paper-3); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.np-pr { font-size: 11px; width: 58px; flex: none; }

.np-ib { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper); } .np-ib:hover { border-color: var(--ink-4); background: var(--paper-2); } .np-ib[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.np-dot { display: block; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0002; }
.np-pop { position: absolute; left: 8px; top: calc(100% + 6px); z-index: 40; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px; animation: pop .12s var(--ease); }
.np-pg { display: grid; grid-template-columns: repeat(6, 36px); gap: 6px; } .np-pk { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; } .np-pk:hover { background: var(--paper-3); }
.np-fr.lock { background: var(--paper-2); }
.np-proto { display: flex; justify-content: flex-end; border-top: 1px dashed var(--line); padding-top: 10px; } .np-proto .btn { color: var(--ink-3); font-size: 12px; }
.np-ed { color: var(--ink-3); }
@media (max-width: 767px) { .np-pg { grid-template-columns: repeat(5, 40px); } .np-pk { width: 40px; height: 40px; } }
/* review */
.np-lns { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.np-ln { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; }
.np-lm { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.np-lt { font-size: 12.5px; white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .np-ln { grid-template-columns: minmax(0, 1fr); } .np-lt { text-align: left; padding-left: 0; }  }
.np-rev { display: flex; flex-direction: column; gap: 14px; }
.np-rg .card-h { padding-top: 14px; } .np-rg .card-b { padding-top: 6px; padding-bottom: 8px; }
.np-rr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); overflow-wrap: anywhere; } .np-rr:last-child { border: 0; }
.np-warn { border-color: var(--warn); }

/* the right rail + live preview */
.np-rail { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 68px; min-width: 0; }
.np-pv-h { display: flex; align-items: center; gap: 12px; min-width: 0; } .np-pv-h > div { min-width: 0; }
.np-pv-n { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-mk { width: 44px; height: 44px; border-radius: 12px; color: #fff; display: grid; place-items: center; font: 600 14px var(--font-mono); flex: none; }
.np-board { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x proximity; }
.np-mc { flex: 0 0 176px; background: var(--tray); border-radius: var(--r-lg); padding: 8px; display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; min-width: 0; }
.np-mh { display: flex; align-items: center; gap: 6px; font: 600 10px var(--font-mono); letter-spacing: .06em; color: var(--ink-2); min-width: 0; padding: 2px 2px 0; }
.np-mh i { width: 7px; height: 7px; border-radius: 50%; flex: none; } .np-mh span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.np-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 9px; display: flex; flex-direction: column; gap: 7px; box-shadow: var(--shadow-sm); min-width: 0; }
.np-key { align-self: flex-start; font: 600 10px var(--font-mono); letter-spacing: .03em; padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-key.ph { width: 38px; height: 16px; background: var(--paper-3); }
.np-sk { height: 6px; border-radius: 3px; background: var(--paper-3); } .np-sk.s { width: 62%; }
.np-cl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; font-size: 10px; align-items: baseline; }
.np-cl span { color: var(--ink-3); white-space: nowrap; } .np-cl b { font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .np-cl b.un { color: var(--ink-3); font-weight: 400; }
.np-ai { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.np-foot { position: sticky; bottom: 12px; z-index: 20; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: color-mix(in oklch, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.np-foot .btn { height: 36px; }

@media (max-width: 1360px) and (min-width: 1101px) { .np-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 1100px) { .np-grid { grid-template-columns: minmax(0, 1fr); } .np-rail { position: static; } .np-step { min-width: 0; } .np-step__name { font-size: 11.5px; overflow-wrap: anywhere; } }
@media (max-width: 900px) {
  .np-phh { display: none; }
  .np-ph, .np-ms2 { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
  .np-c > .np-l { display: block; font: 500 10.5px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
  .np-c.wide { grid-column: 1 / -1; } .np-ph > .btn, .np-ms2 > .btn { grid-column: 1 / -1; justify-self: end; }
  .np-sw { justify-items: start; }
}
@media (max-width: 767px) {
  .np-head { padding: 14px 16px 16px; gap: 14px; } .np-steps { gap: 0; } .np-step { min-width: 0; padding: 0 2px; } .np-step__name { display: none; }
  .np-meter { display: block; margin-top: -6px; } .np-sh h2 { font-size: 19px; }
  .np-page .card-h { padding: 14px 16px 0; } .np-page .card-b { padding: 14px 16px 16px; }
  .np-tpl { grid-template-columns: minmax(0, 1fr); }
  .np-pbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; } .np-q { width: 100%; } .np-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .np-cat2 { flex: none; }
  .np-rr { grid-template-columns: 1fr; gap: 2px; }
  .np-col { grid-template-columns: 18px 10px minmax(0, 1fr) auto; gap: 4px 8px; } .np-col .input { grid-column: 3 / -1; } .np-col .np-cat { grid-column: 3; justify-self: start; min-width: 0; width: auto; max-width: 100%; } .np-col .np-ca { grid-column: 4; justify-self: end; }
  .np-page .input, .np-page .select { height: 42px; } .np-foot .btn { height: 42px; }
  .np-foot { bottom: 8px; padding: 8px; } .np-foot .primary { order: -1; flex: 1 0 100%; } .np-foot .grow { display: none; } .np-foot .btn:not(.primary) { flex: 1 1 auto; }
}
.np-gp { display: flex; flex-direction: column; gap: 6px; } .np-gr { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; align-items: center; } .np-gl { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-gt { position: relative; height: 12px; background: var(--paper-3); border-radius: 4px; } .np-gt i { position: absolute; top: 2px; height: 8px; border-radius: 3px; background: var(--accent); } .np-gt b { position: absolute; top: -1px; width: 10px; height: 10px; margin-left: -5px; background: var(--warn); transform: rotate(45deg); border-radius: 2px; }

/* mini Gantt (matches the Plan tab) */
.mg { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); --mgl: 220px; }
.mg.mid { --mgl: 138px; } .mg.mid .mg-ph .mg-l i { display: none; } .mg.mid .mg-in { min-width: 500px; } .mg.cmp { --mgl: 104px; } .mg.cmp .mg-wk { display: none; } .mg.cmp .mg-hd .mg-t { height: 26px; } .mg.cmp .mg-mo { height: 25px; } .mg-in { min-width: 640px; position: relative; } .mg.cmp .mg-in { min-width: 330px; }
.mg-hd, .mg-r { display: grid; grid-template-columns: var(--mgl) minmax(0, 1fr); }
.mg-hd { border-bottom: 1px solid var(--line); } .mg-hd .mg-l { display: flex; align-items: center; font-size: 10px; padding: 0 12px; } .mg.cmp .mg-hd .mg-l { visibility: hidden; }
.mg-hd .mg-t { height: 46px; border-left: 1px solid var(--line); } .mg-mo, .mg-wk { position: relative; height: 23px; } .mg-mo span, .mg-wk span { position: absolute; top: 0; height: 100%; display: flex; align-items: center; padding-left: 6px; border-left: 1px solid var(--line-2); font: 500 10px var(--font-mono); letter-spacing: .06em; color: var(--ink-3); white-space: nowrap; } .mg-mo span { color: var(--ink-2); font-weight: 600; } .mg-wk { border-top: 1px solid var(--line-2); }
.mg-bd { position: relative; } .mg-r { border-bottom: 1px solid var(--line-2); min-height: 32px; } .mg-r:last-of-type { border-bottom: 0; } .mg-ph { background: var(--paper-2); }
.mg-l { display: flex; align-items: center; gap: 6px; padding: 4px 12px; min-width: 0; overflow: hidden; } .mg.cmp .mg-l { padding: 4px 8px; }
.mg-l b { font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .mg-l i { font: 400 10.5px var(--font-mono); color: var(--ink-3); font-style: normal; white-space: nowrap; } .mg.cmp .mg-l i { display: none; }
.mg-ch { color: var(--ink-3); display: inline-flex; flex: none; }
.mg:not(.cmp) .mg-r:not(.mg-ph) .mg-l:not(:has(.mg-d)) { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; } .mg:not(.cmp) .mg-r { min-height: 40px; } .mg:not(.cmp) .mg-t { min-height: 40px; } .mg:not(.cmp) .mg-b { top: 9px; } .mg:not(.cmp) .mg-d { top: 13px; } .mg:not(.cmp) .mg-pb { top: 16px; } .mg:not(.cmp) .mg-ml { top: 11px; }
.mg-t { position: relative; border-left: 1px solid var(--line); min-height: 32px; background-image: repeating-linear-gradient(90deg, transparent 0 calc(14.2857% - 1px), var(--line-2) calc(14.2857% - 1px) 14.2857%); }
.mg-pb { position: absolute; top: 12px; height: 8px; border-radius: 3px; background: var(--ink-3); opacity: .45; }
.mg-b { position: absolute; top: 5px; height: 22px; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-4); color: var(--ink); }
.mg-b.done { background: var(--good-soft); color: var(--good-ink); box-shadow: inset 0 0 0 1px var(--good); } .mg-b.crit { background: var(--accent); color: #fff; box-shadow: none; } .mg-b.crit.late { box-shadow: 0 0 0 2px var(--bad); } .mg-b.over { background: var(--warn-soft); color: var(--warn-ink); box-shadow: inset 0 0 0 1.5px var(--warn); }
.mg-d { position: absolute; top: 9px; width: 13px; height: 13px; margin-left: -6.5px; transform: rotate(45deg); background: var(--accent); border-radius: 2px; z-index: 2; } .mg-l .mg-d { position: static; margin: 0 4px 0 2px; flex: none; width: 10px; height: 10px; }
.mg-d.good { background: var(--good); } .mg-d.warn { background: var(--warn); } .mg-d.bad { background: var(--bad); }
.mg-ml { position: absolute; top: 7px; font-size: 11px; font-style: normal; color: var(--ink-2); white-space: nowrap; font-weight: 500; } .mg.cmp .mg-ml { display: none; }
.mg-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--bad); z-index: 5; pointer-events: none; left: calc(var(--mgl) + (100% - var(--mgl)) * var(--p) / 100); } .mg-today span { position: absolute; top: 3px; left: 4px; font: 600 9px var(--font-mono); letter-spacing: .06em; background: var(--bad); color: #fff; padding: 1px 5px; border-radius: 4px; }
.mg-lg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-2); } .mg-lg span { display: inline-flex; align-items: center; gap: 6px; } .mg-lg i { width: 14px; height: 9px; border-radius: 3px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-4); } .mg-lg i.done { background: var(--good-soft); box-shadow: inset 0 0 0 1px var(--good); } .mg-lg i.crit { background: var(--accent); box-shadow: none; } .mg-lg i.over { background: var(--warn-soft); box-shadow: inset 0 0 0 1.5px var(--warn); } .mg-lg b { width: 9px; height: 9px; background: var(--warn); transform: rotate(45deg); border-radius: 2px; }
@media (max-width: 767px) { .mg { --mgl: 128px; } }
.np-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-weight: 600; color: var(--accent-ink); text-decoration: none; border-radius: 4px; }
.np-more span { transition: transform .15s var(--ease); } .np-more:hover { color: var(--accent); } .np-more:hover span { transform: translateX(3px); }
@media (max-width: 767px) { .np-foot { flex-wrap: wrap; } .np-foot .grow { flex-basis: 100%; height: 0; } .np-foot .btn.primary { flex: 1 1 100%; justify-content: center; } }

/* ====== Timeline project: header, needs-attention, tab bar ====== */
.ph-say { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin: 0 20px 14px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--paper-2); border-left: 3px solid var(--ink-4); }
.ph-say.warn { border-left-color: var(--warn); background: var(--warn-soft); } .ph-say.bad { border-left-color: var(--bad); background: var(--bad-soft); } .ph-say.good { border-left-color: var(--good); }
.ph-say > .grow { flex: 1 1 360px; min-width: 0; }
.ph-say-k { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: var(--r-sm); background: var(--paper); white-space: nowrap; margin-top: 3px; }
.ph-say-h { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; } .ph-say-h b { font-weight: 650; }
.ph-say-s { margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }
.ph-why { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 500; margin-left: 2px; }
.stats.ph-k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-attn2 { padding: 4px 0; } .tl-attn2-h { display: flex; gap: 8px; align-items: baseline; padding: 10px 16px 4px; } .tl-attn2-h h2 { margin: 0; font-size: 15px; }
.tl-attn2-r { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; } .tl-attn2-r:first-of-type { border-top: 0; }
.tl-attn2-r > .grow { flex: 1 1 320px; min-width: 0; }
.tl-attn2-n { width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--paper-3); color: var(--ink-2); flex: none; }
.tl-attn2-n.warn { background: var(--warn-soft); color: var(--warn-ink); } .tl-attn2-n.bad { background: var(--bad-soft); color: var(--bad-ink); }
.tl-attn2 .tl-ax { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.tl-attn2-a { gap: 6px; } .tl-attn2-more { margin: 0 16px 8px; }
.ph-ptabs button { padding: 10px 10px; }
