/* mhllastudio — functional, quiet, nothing extra.
   Array (dot-matrix) for numbers and headings, Inter for reading. */

@font-face { font-family: 'Array'; src: url('../fonts/Array-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Array'; src: url('../fonts/Array-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Array'; src: url('../fonts/Array-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Array Wide'; src: url('../fonts/Array-BoldWide.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #e7e6e2;
  --panel: #f2f1ee;
  --field: #fbfaf8;
  --ink: #141414;
  --ink2: #3a3a38;
  --mute: #7d7c77;
  --line: #d3d1cb;
  --line2: #b8b6af;
  --acc: #ff5a1f;
  --ok: #2c9a58;
  --warn: #e9a800;
  --err: #e0341c;
  --rail: 196px;
  --r: 4px;
  --array: 'Array', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--sans); font-feature-settings: 'tnum' 1, 'cv11' 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--acc); }
p { margin: 0 0 .8em; }
h1, h2, h3 { margin: 0; font-weight: 600; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
img { max-width: 100%; display: block; }
::selection { background: var(--acc); color: #000; }
.dot { font-family: var(--array); letter-spacing: .04em; font-weight: 400; }
.hidden { display: none !important; }
.grow { flex: 1 1 auto; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 28px; }
.neg { color: var(--err); }
.small { display: block; font-size: 11.5px; }

/* ---------- rail ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 22px 0 16px; background: var(--bg); z-index: 5; }
.mark { font: 700 26px/0.95 var(--array); letter-spacing: .02em; padding: 0 22px 26px; display: block; }
.mark:hover { color: var(--ink); }
.rail nav { display: flex; flex-direction: column; }
.rail nav a { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; padding: 7px 22px; font-weight: 500; position: relative; color: var(--ink2); }
.rail nav a .n { font: 400 12px var(--array); color: var(--mute); }
.rail nav a:hover { color: var(--ink); background: rgba(0,0,0,.03); }
.rail nav a.on { color: var(--ink); }
.rail nav a.on::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; background: var(--acc); }
.rail nav a.on .n { color: var(--acc); }
.rail nav a.locked { color: var(--mute); }
.rail nav a .lk { font-size: 7px; color: var(--line2); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 0 22px; font-size: 12.5px; }
.rail-foot > a, .rail-foot .linkbtn { padding: 5px 0; color: var(--mute); text-align: left; }
.rail-foot > a.on { color: var(--ink); }
.tos-link { font-style: italic; }
.who { display: grid !important; grid-template-columns: 1fr auto; grid-template-areas: 'r c' 'u c'; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px !important; color: var(--ink) !important; }
.who .role { grid-area: r; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }
.who .role.r-member, .who .role.r-admin { color: var(--acc); }
.who .uname { grid-area: u; font-weight: 600; }
.who .cr { grid-area: c; align-self: center; font: 400 15px var(--array); }

.main { margin-left: var(--rail); padding: 30px 40px 80px; max-width: calc(1480px + var(--rail)); }

/* ---------- page header ---------- */
.ph { display: flex; align-items: flex-end; gap: 24px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ink); }
.ph-l { flex: 1; min-width: 0; }
.ph-n { font: 400 13px var(--array); color: var(--acc); display: block; margin-bottom: 6px; }
.ph h1 { font: 700 42px/1 var(--array); letter-spacing: .01em; text-transform: lowercase; overflow-wrap: anywhere; }
.ph-m { margin: 10px 0 0; color: var(--mute); font-size: 13px; }
.ph-m a { text-decoration: underline; text-underline-offset: 2px; }
.ph-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- controls ---------- */
.btn, .seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--r); font: 600 11px/1 var(--sans); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #111; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--acc); }
.btn.sm { height: 26px; padding: 0 10px; font-size: 10px; }
.btn[disabled], .btn[aria-disabled] { opacity: .35; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 12.5px; color: var(--mute); cursor: pointer; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.danger:hover { color: var(--err); }
.linkbtn.strong { color: var(--acc); font-weight: 600; }
form.inline { display: inline; margin: 0; }

input, select, textarea { font: inherit; color: var(--ink); background: var(--field); border: 1px solid var(--line2); border-radius: var(--r); padding: 0 10px; height: 34px; min-width: 0; }
textarea { padding: 8px 10px; height: auto; resize: vertical; line-height: 1.5; }
select { padding-right: 26px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: right 13px center, right 9px center; background-size: 4px 4px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: -1px; border-color: transparent; }
input[type=file] { height: auto; padding: 6px; font-size: 12.5px; }
input[type=color] { width: 44px; padding: 2px; }
input[type=checkbox] { height: auto; accent-color: var(--acc); width: 15px; height: 15px; }
.sm { height: 26px; font-size: 12.5px; padding: 0 6px; }
.w4 { width: 58px; } .w5 { width: 72px; }
.full { width: 100%; }
.ghost-in { background: transparent; border-color: transparent; }
.ghost-in:hover { border-color: var(--line); }

label { display: flex; flex-direction: column; gap: 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
label > input, label > select, label > textarea { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--ink); }
label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 8px; }

.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > input:not([type=checkbox]):not([type=color]):not([type=number]) { flex: 1 1 160px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-l { display: flex; flex-direction: column; gap: 20px; }
.grid-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.grid-form .span2 { grid-column: span 2; } .grid-form .span3 { grid-column: span 3; } .grid-form .span4 { grid-column: 1 / -1; }

.seg { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.seg > * { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border: 0 !important; border-radius: 0 !important; border-right: 1px solid var(--ink) !important; font-size: 11px; }
.seg > *:last-child { border-right: 0 !important; }
.seg .dot { font-size: 14px; min-width: 96px; justify-content: center; }
.seg a:hover { background: var(--ink); color: var(--bg); }
.seg button.on { background: var(--ink); color: var(--acc); }

.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.addbar { display: flex; gap: 8px; margin-bottom: 18px; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.addbar input.grow { flex: 1 1 220px; }

/* ---------- surfaces ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 20px; min-width: 0; }
.panel h2, .kcol h2, .shelf summary { font: 600 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel h2 a:hover { color: var(--acc); }
.panel h2.mt { margin-top: 22px; }
.panel > form + table, .panel > .row + table { margin-top: 14px; }
.panel > form.row + .tasklist { margin-top: 10px; }
.cols { display: grid; gap: 20px; align-items: start; }
.cols > .panel { margin-bottom: 0; }
.c-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hint { color: var(--mute); font-size: 12.5px; }
.empty { color: var(--mute); font-size: 13px; padding: 6px 0; }
.empty::before { content: '— '; }
.by { color: var(--mute); font-size: 12px; }
time { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }

.flash { padding: 10px 14px; margin-bottom: 16px; border-radius: var(--r); font-size: 13px; border: 1px solid var(--ink); background: var(--field); }
.flash::before { content: '●'; color: var(--ok); margin-right: 8px; font-size: 10px; vertical-align: 1px; }
.flash.f-err::before { color: var(--err); }

.tag { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line2); border-radius: 2px; color: var(--ink2); white-space: nowrap; }
.tag.on { border-color: var(--acc); color: var(--acc); }

.led { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); vertical-align: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.led-on { background: var(--acc); box-shadow: 0 0 6px var(--acc); }
.led-ok { background: var(--ok); box-shadow: 0 0 5px rgba(44,154,88,.6); }
.led-warn { background: var(--warn); box-shadow: 0 0 5px rgba(233,168,0,.6); }
.led-err { background: var(--err); box-shadow: 0 0 5px rgba(224,52,28,.6); }

.meter { display: inline-flex; gap: 2px; vertical-align: middle; }
.meter i { width: 5px; height: 12px; background: var(--line); border-radius: 1px; }
.meter i.on { background: var(--acc); }

.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--ink); border-radius: var(--r); margin-bottom: 16px; background: var(--field); }
.readout > div { padding: 12px 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.readout > div:last-child { border-right: 0; }
.readout .k { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.readout .v { font-size: 30px; line-height: 1; }
.readout .alert .v { color: var(--err); }
.readout.wide { margin-bottom: 22px; }

/* tables */
.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 0 10px 8px 0; border-bottom: 1px solid var(--line2); }
.t td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.dim td { opacity: .45; }
.t .by { display: block; }
.scroll-x { overflow-x: auto; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(255,90,31,.06); }
.gear .th { width: 44px; }
.gear .th img { width: 36px; height: 36px; object-fit: cover; border-radius: 2px; }
code.copy { cursor: copy; }
code.copy.done { color: var(--ok); }

/* lists & feeds */
.feed, .tasklist, .log, .timeline { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.feed li:last-child { border-bottom: 0; }
.feed li > a, .feed li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .by { white-space: nowrap; flex-shrink: 0; }
.log li { padding: 5px 0; font-size: 13px; display: flex; gap: 10px; align-items: baseline; }
.log li .dot { min-width: 48px; color: var(--ok); }
.log li .dot.neg { color: var(--err); }
.log time { margin-left: auto; }

.tasklist li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.tasklist li:last-child { border-bottom: 0; }
.tasklist .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tasklist li.late time { color: var(--err); }
.tasklist li.done .tt { text-decoration: line-through; color: var(--mute); }
.st { width: 16px; height: 16px; border: 1.5px solid var(--ink); background: transparent; border-radius: 2px; cursor: pointer; padding: 0; display: block; position: relative; }
.st-doing { background: linear-gradient(90deg, var(--acc) 50%, transparent 50%); }
.st-done { background: var(--ink); }
.st-done::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.timeline li { position: relative; padding: 0 0 14px 16px; border-left: 1px solid var(--line2); margin-left: 4px; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: 5px; width: 7px; height: 7px; background: var(--acc); }
.timeline li > div { margin-top: 2px; }
.timeline li form { position: absolute; right: 0; top: 0; }
.timeline .by { margin-left: 8px; }

.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); align-items: flex-end; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; font-size: 12.5px; font-weight: 500; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--ink); border-color: var(--acc); }
.tabs a span { font: 400 11px var(--array); margin-left: 4px; }
.tabs.sm a { padding: 6px 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chips a { font-size: 12px; padding: 4px 10px; border: 1px solid var(--line2); border-radius: 20px; }
.chips a.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips a span { font: 400 11px var(--array); margin-left: 4px; opacity: .7; }

.shelf { margin-top: 24px; }
.shelf summary { cursor: pointer; list-style: none; border-bottom: 1px dashed var(--line2); margin-bottom: 12px; }
.shelf summary::before { content: '+ '; color: var(--acc); }
.shelf[open] summary::before { content: '– '; }
.shelf .row { margin-bottom: 10px; }

/* ---------- bench ---------- */
.proj-row { display: grid; grid-template-columns: 60px 1fr auto 40px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.proj-row:last-child { border-bottom: 0; }
.proj-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-row .pct { font-size: 12px; text-align: right; color: var(--mute); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.room { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); color: var(--mute); }
.room .redact { margin-left: auto; letter-spacing: -2px; color: var(--line2); }
.lockedroom { text-align: center; padding: 120px 20px; }
.dot-title { font: 700 56px/1 var(--array); margin-bottom: 16px; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line2); border-left: 1px solid var(--line2); background: var(--panel); }
.cal-h { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding: 8px 10px; border-right: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--bg); }
.cal-d { min-height: 112px; padding: 6px 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d.we { background: rgba(0,0,0,.018); }
.cal-d.out { background: var(--bg); }
.cal-d.out .cal-n { color: var(--line2); }
.cal-n { font-size: 15px; align-self: flex-start; padding: 0 4px; margin-bottom: 2px; color: var(--ink2); }
.cal-d.today .cal-n { background: var(--acc); color: #111; }
.chip { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; background: var(--field); border-left: 3px solid var(--ink); border-radius: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip em { font-style: normal; color: var(--mute); margin-left: 5px; font-size: 10.5px; }
.chip.st-doing { border-left-color: var(--acc); }
.chip.st-done { border-left-color: var(--line2); color: var(--mute); text-decoration: line-through; }
.panel.edit { border-color: var(--ink); }

/* ---------- projects ---------- */
.plist { border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: 80px minmax(0, 3fr) 110px 120px 90px 70px 150px; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.prow:hover { background: var(--panel); color: var(--ink); }
.prow .pn { font-size: 22px; }
.prow .pt { min-width: 0; display: flex; flex-direction: column; }
.prow .pt em { font-style: normal; color: var(--mute); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .ps, .prow .pl, .prow .pd { font-size: 12.5px; color: var(--ink2); }
.prow .pm { font-size: 11.5px; color: var(--mute); display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.lrow { grid-template-columns: 80px minmax(0, 3fr) 110px 130px 80px 150px; }

.phero { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: end; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--ink); }
.phero-n { font: 700 104px/0.8 var(--array); color: var(--acc); }
.phero-b h1 { font: 700 36px/1.05 var(--array); text-transform: lowercase; margin-bottom: 8px; }
.phero-b p { color: var(--ink2); max-width: 70ch; }
.phero-m { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--ink2); }
.phero-p { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.phero-p .big { font-size: 48px; line-height: .9; }
.phero-p .k { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------- ideas ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.kcol h2 { display: flex; gap: 8px; align-items: baseline; border-bottom: 1px solid var(--ink); }
.kcol h2 .dot { color: var(--acc); font-size: 13px; }
.kcol h2 em { margin-left: auto; font-style: normal; color: var(--mute); }
.card { background: var(--field); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.card:target { outline: 2px solid var(--acc); }
.card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; line-height: 1.3; }
.card p { font-size: 13px; color: var(--ink2); }
.card-m { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.card-a { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; flex-wrap: wrap; }
.vote { border: 1px solid var(--line2); background: none; font: 400 12px var(--array); padding: 3px 8px; border-radius: 2px; cursor: pointer; }
.vote.on, .vote:hover { border-color: var(--acc); color: var(--acc); }
.dice-out { font: 700 22px/1.35 var(--array); margin-bottom: 14px; min-height: 2.7em; }
.dice-out span { color: var(--acc); }

/* ---------- moodboard ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.bcard { display: flex; flex-direction: column; gap: 4px; }
.bcover { aspect-ratio: 4/3; background: var(--panel) center/cover; border: 1px solid var(--line); border-radius: var(--r); }
.bcard:hover .bcover { border-color: var(--acc); }
.bt { font-weight: 600; margin-top: 4px; }
.pinbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 20px; }
.drop.over { outline: 2px dashed var(--acc); outline-offset: 4px; }
.masonry { columns: 4 240px; column-gap: 14px; }
.pin { break-inside: avoid; margin: 0 0 14px; background: var(--field); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pin img { width: 100%; height: auto; }
.pin figcaption { display: flex; gap: 8px; align-items: baseline; padding: 7px 10px; font-size: 12.5px; }
.pin figcaption .by { margin-left: auto; }
.pin .swatch { height: 120px; }
.pin-color code { display: block; padding: 8px 10px 0; }
.pin .lnk { display: block; padding: 22px 14px; font-weight: 600; word-break: break-all; }
.pin blockquote { margin: 0; padding: 18px 14px 6px; font: 400 17px/1.35 var(--sans); }

/* ---------- board ---------- */
.board { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 28px; }
.channels { display: flex; flex-direction: column; border-top: 1px solid var(--ink); align-self: start; position: sticky; top: 20px; }
.channels a { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
.channels a span { font-weight: 600; }
.channels a em { font: 400 12px var(--array); font-style: normal; color: var(--mute); }
.channels a small { grid-column: 1 / -1; color: var(--mute); font-size: 11.5px; }
.channels a.on span { color: var(--acc); }
.composer { margin-bottom: 22px; }
.thread { border-top: 1px solid var(--ink); padding: 14px 0 6px; margin-bottom: 8px; }
.thread:target { background: rgba(255,90,31,.05); }
.post { margin-bottom: 10px; }
.post.reply { margin-left: 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.post-h { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.post-h form { margin-left: auto; }
.post-b { margin-top: 2px; overflow-wrap: anywhere; }
.post-b a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink2); }
.reply-f { margin-left: 22px; }
.reply-f input { height: 30px; font-size: 13px; }

/* ---------- notes ---------- */
.notes { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.nlist { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.nlist .tabs { margin: 0; }
.nrow { display: flex; flex-direction: column; padding: 10px 10px 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.nrow.on { background: var(--panel); border-left-color: var(--acc); }
.nrow span { color: var(--ink2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nrow em { font-style: normal; color: var(--mute); font-size: 11.5px; }
.neditor { min-width: 0; }
.nform { display: flex; flex-direction: column; gap: 10px; }
.ntitle { font: 700 30px/1.1 var(--array) !important; height: auto !important; padding: 6px 0 !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; text-transform: lowercase; }
.nbody { min-height: 58vh; font: 400 15px/1.7 var(--sans); background: var(--field); border-color: var(--line); padding: 18px 20px; }
.nread { font-size: 15px; line-height: 1.7; max-width: 72ch; margin-top: 14px; }
.saved { color: var(--mute); font-size: 12px; }
.saved.busy { color: var(--acc); }

/* ---------- workshop ---------- */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); border-left: 1px solid var(--line); margin-bottom: 24px; }
.slot { min-height: 240px; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--panel); }
.slot-top { display: flex; justify-content: space-between; align-items: center; }
.slot-n { font-size: 26px; }
.slot h3 { font-size: 17px; margin-top: 18px; }
.slot p { color: var(--ink2); font-size: 13px; flex: 1; }
.slot-meta { font-size: 11px; color: var(--mute); letter-spacing: .04em; text-transform: uppercase; }
.slot-act { display: flex; gap: 12px; align-items: center; }
.slot.empty { background: transparent; color: var(--line2); justify-content: space-between; background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 10px 10px; }
.slot.empty span:last-child { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.slot.empty::before { content: none; }

/* ---------- warehouse checklist ---------- */
.cl { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.cl-t tr.ok td { color: var(--mute); }
.cl-t tr.ok strong { text-decoration: line-through; }
.cl-t tr.conflict td { background: rgba(224,52,28,.06); }
.cl-t .by { display: block; }
.box { width: 18px !important; height: 18px !important; cursor: pointer; }
.picker { position: sticky; top: 16px; }
.pick { max-height: 62vh; overflow: auto; margin-top: 10px; border-top: 1px solid var(--line); }
.pk { display: grid; grid-template-columns: 56px 1fr 44px 58px auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pk .dot { font-size: 11px; color: var(--mute); }
.pk-n { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.pk-n em { font-style: normal; color: var(--mute); font-size: 11px; }
.pk-f { font: 400 13px var(--array); text-align: right; }
.pk.none { opacity: .4; }

/* ---------- outside (landing, gates, public demos) ---------- */
body.out { background: #0d0d0d; color: #e7e6e2; min-height: 100vh; }
body.out .bare { min-height: 100vh; display: flex; flex-direction: column; }
body.out a:hover { color: var(--acc); }
body.out input { background: #151515; border-color: #2c2c2c; color: #e7e6e2; }
body.out label { color: #777; }
body.out label > input { color: #e7e6e2; }
body.out .btn { border-color: #e7e6e2; color: #e7e6e2; }
body.out .btn:hover { background: #e7e6e2; color: #0d0d0d; }
body.out .btn.primary { background: var(--acc); border-color: var(--acc); color: #0d0d0d; }
body.out .btn.inv { background: #e7e6e2; color: #0d0d0d; }
body.out .btn.inv:hover { background: var(--acc); border-color: var(--acc); }
body.out .btn.ghost { border-color: #3a3a3a; color: #999; }
body.out .flash { background: #151515; border-color: #333; color: #e7e6e2; }

.field { position: fixed; inset: 0; z-index: 0; }
.field canvas { width: 100%; height: 100%; display: block; }
.l-top, .l-center, .l-foot { position: relative; z-index: 1; }
.l-top { display: flex; justify-content: space-between; padding: 22px 28px; font: 400 13px var(--array); color: #8a8a8a; letter-spacing: .06em; }
.l-center { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 28px; }
.l-mark { font: 700 clamp(72px, 15vw, 230px)/0.82 var(--array); letter-spacing: .01em; margin: 0 0 30px -0.04em; color: #e7e6e2; }
.l-line { font-size: 15px; color: #9a9a9a; max-width: 34ch; margin-bottom: 26px; }
.l-act { display: flex; gap: 10px; flex-wrap: wrap; }
.l-foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 22px 28px; gap: 20px; flex-wrap: wrap; }
.l-stats { display: flex; gap: 34px; margin: 0; }
.l-stats div { display: flex; flex-direction: column; gap: 4px; }
.l-stats dt { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #5d5d5d; }
.l-stats dd { margin: 0; font: 400 24px var(--array); color: #cfcfcf; }
.l-tos { font-size: 11.5px; color: #4d4d4d; letter-spacing: .04em; }

.gate { margin: auto; width: min(380px, 100% - 40px); padding: 60px 0; }
.gate-mark { display: block; font: 700 48px/0.86 var(--array); margin-bottom: 30px; }
.gate-sub { color: #8a8a8a; font-size: 13.5px; }
.gate .stack { gap: 14px; margin-top: 8px; }
.gate .btn { margin-top: 6px; height: 40px; }
.gate-foot { margin-top: 26px; font-size: 12.5px; color: #6d6d6d; }
.gate-foot a { color: #bdbdbd; }

body.tos .bare { max-width: 980px; margin: 0 auto; width: 100%; }
.tos-head { padding: 60px 28px 30px; }
.tos-head p { color: #8a8a8a; }
body.out .tos-list { margin: 0 28px; border-top: 1px solid #333; }
body.out .tos-row { border-color: #222; }
body.out .tos-row .s { color: #7a7a7a; }
.tos-list { border-top: 1px solid var(--ink); }
.tos-row { display: grid; grid-template-columns: 70px 220px 1fr auto; gap: 18px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.tos-row .dot { font-size: 18px; color: var(--acc); }
.tos-row .t { font-weight: 600; font-size: 15px; }
.tos-row .s { color: var(--mute); font-size: 13px; }
.tos-row .go { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tos-foot { margin: 22px 28px; font-size: 12.5px; color: var(--mute); }
.in .tos-foot { margin: 22px 0; }

/* app runner */
body.runner { margin: 0; height: 100vh; display: flex; flex-direction: column; background: #0d0d0d; }
.run-bar { height: 44px; display: flex; align-items: center; gap: 18px; padding: 0 14px; background: var(--bg); border-bottom: 1px solid var(--ink); font-size: 13px; }
.run-t { flex: 1; text-align: center; font-weight: 600; }
.run-t .dot { color: var(--acc); margin-right: 6px; }
.run-t em { font-style: normal; color: var(--mute); font-weight: 400; margin-left: 6px; }
.run-r { display: flex; gap: 8px; }
#run { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow { grid-template-columns: 70px minmax(0, 1fr) 110px 110px 130px; }
  .prow .pl, .prow .pd { display: none; }
  .lrow { grid-template-columns: 70px minmax(0, 1fr) 100px 120px 130px; }
  .lrow .pl { display: none; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { position: sticky; top: 0; width: auto; flex-direction: row; align-items: center; padding: 8px 12px; overflow-x: auto; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .mark { font-size: 15px; padding: 0 8px 0 0; white-space: nowrap; }
  .mark br { display: none; }
  .rail nav { flex-direction: row; }
  .rail nav a { padding: 6px 8px; grid-template-columns: auto auto; gap: 4px; white-space: nowrap; }
  .rail nav a .lk { display: none; }
  .rail nav a.on::before { left: 6px; right: 6px; top: auto; bottom: 0; width: auto; height: 2px; }
  .rail-foot { flex-direction: row; margin: 0 0 0 auto; padding: 0; align-items: center; gap: 12px; white-space: nowrap; }
  .who { border: 0; margin: 0; padding: 0 !important; }
  .main { margin-left: 0; padding: 20px 16px 60px; }
  .c-2, .cl, .notes, .board { grid-template-columns: 1fr; }
  .ph { flex-direction: column; align-items: flex-start; }
  .ph h1 { font-size: 32px; }
  .grid-form { grid-template-columns: 1fr 1fr; }
  .grid-form .span3, .grid-form .span4, .grid-form .span2 { grid-column: 1 / -1; }
  .kanban, .slots, .pinbar { grid-template-columns: 1fr; }
  .prow, .lrow { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .prow .tag, .prow .ps { display: none; }
  .phero { grid-template-columns: 1fr; }
  .phero-n { font-size: 64px; }
  .phero-p { align-items: flex-start; }
  .tos-row { grid-template-columns: 60px 1fr; }
  .tos-row .s, .tos-row .go { grid-column: 2; }
  .channels { position: static; }
  .cal-d { min-height: 70px; }
  .chip em { display: none; }
}

@media print {
  .rail, .noprint, .flash, .shelf { display: none !important; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; }
  .panel { border: 0; padding: 0; background: #fff; }
  .cl { display: block; }
  input.sm, input.ghost-in { border: 0; background: none; }
}
