/* Vantriq Flow */
:root {
  --bg: #f4f4f5; --panel: #fff; --panel-2: #fafafa; --ink: #121214; --ink-2: #2b2b30; --grey: #67676d; --grey-2: #9b9ba1;
  --line: #e6e6e9; --line-2: #d6d6db; --wash: #efeff1;
  --ws: #ff5a1f; --ws-soft: color-mix(in srgb, var(--ws) 12%, #fff); --ws-ink: color-mix(in srgb, var(--ws) 75%, #000);
  --good: #12965f; --good-soft: #e3f5ec; --warn: #b97c00; --warn-soft: #fcf2d8; --bad: #dc3d43; --bad-soft: #fdeaea;
  --blue: #2f6bff; --blue-soft: #e8efff; --violet: #7048e8; --violet-soft: #efeafd;
  --side: #141416; --side-ink: #e9e9ec; --side-grey: #8d8d95; --side-line: #26262a;
  --r: 10px; --r-sm: 7px; --shadow: 0 1px 2px rgba(16, 16, 20, .06), 0 2px 8px rgba(16, 16, 20, .04);
  --shadow-lg: 0 12px 40px rgba(16, 16, 20, .18);
  --f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --day: 30px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f-sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.muted { color: var(--grey); }
.boot { display: grid; place-items: center; height: 100vh; }
.mark { width: 34px; height: 34px; display: inline-block; background:
  linear-gradient(var(--ws), var(--ws)) 0 0 / 100% 100%; -webkit-mask: url(/app/icon.svg) center / contain no-repeat; mask: url(/app/icon.svg) center / contain no-repeat; }
.boot .mark { background: var(--ink); animation: pulse 1.2s infinite ease-in-out; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 12px; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; text-decoration: none; }
.brand .logo { width: 26px; height: 26px; background: #fff; -webkit-mask: url(/app/icon.svg) center / contain no-repeat; mask: url(/app/icon.svg) center / contain no-repeat; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; color: var(--side-grey); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.wsw { display: grid; gap: 4px; margin-bottom: 10px; }
.wsw a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--side-grey); font-weight: 600; border: 1px solid transparent; }
.wsw a i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.wsw a.on { color: #fff; background: #1f1f23; border-color: var(--side-line); }
.wsw a:hover { color: #fff; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--side-ink); font-weight: 500; opacity: .78; }
.nav a:hover { background: #1c1c20; opacity: 1; }
.nav a.on { background: #232328; opacity: 1; box-shadow: inset 3px 0 0 var(--ws); }
.nav svg, .ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side .grow { flex: 1; }
.side .who { display: flex; align-items: center; gap: 10px; padding: 10px; border-top: 1px solid var(--side-line); text-decoration: none; }
.side .who small { display: block; color: var(--side-grey); font-size: 12px; }
.side .lock { font-size: 12px; color: var(--side-grey); padding: 8px 10px; border: 1px dashed var(--side-line); border-radius: 8px; margin: 4px 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 24px; background: rgba(244, 244, 245, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); min-height: 58px; }
.top .crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 600; color: var(--grey); }
.top .crumbs a { text-decoration: none; }
.top .crumbs b { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.search { position: relative; width: min(340px, 40vw); }
.search input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); outline: none; }
.search input:focus { border-color: var(--ws); box-shadow: 0 0 0 3px var(--ws-soft); }
.search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--grey-2); width: 16px; height: 16px; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); width: min(420px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); max-height: 70vh; overflow: auto; z-index: 40; padding: 6px; }
.pop .h { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-2); }
.pop a, .pop .row { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 8px; text-decoration: none; }
.pop a:hover { background: var(--wash); }
.pop .empty { padding: 18px; text-align: center; color: var(--grey); }
.bell { position: relative; }
.bell .dot { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.note { display: block !important; }
.note.unread { background: var(--ws-soft); }
.note small { display: block; color: var(--grey); font-size: 12px; margin-top: 2px; }
.page { padding: 22px 24px 60px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.tabbar { display: none; }

/* ---------- pieces ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; min-height: 36px; }
.btn:hover { border-color: var(--grey-2); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #2a2a30; }
.btn.ws { background: var(--ws); border-color: var(--ws); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--wash); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 5px 10px; min-height: 30px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 6px; min-width: 36px; }
.btn.sm.icon { min-width: 30px; padding: 4px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h2 { font-size: 15px; }
.card-h .sp { flex: 1; }
.card-b { padding: 16px; }
.head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.head .sp { flex: 1; }
.head p { margin: 4px 0 0; color: var(--grey); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--wash); color: var(--ink-2); white-space: nowrap; line-height: 20px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill.plain::before { display: none; }
.h-on_track, .s-done, .ps-completed { background: var(--good-soft); color: var(--good); }
.h-at_risk, .s-review { background: var(--warn-soft); color: var(--warn); }
.h-off_track { background: var(--bad-soft); color: var(--bad); }
.h-done { background: var(--good-soft); color: var(--good); }
.h-on_hold, .h-cancelled, .ps-on_hold, .ps-cancelled, .s-todo { background: var(--wash); color: var(--grey); }
.s-in_progress, .ps-active { background: var(--blue-soft); color: var(--blue); }
.s-client_review { background: var(--violet-soft); color: var(--violet); }
.ps-planning { background: var(--ws-soft); color: var(--ws-ink); }
.kind { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--grey); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; line-height: 18px; white-space: nowrap; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; flex: none; letter-spacing: 0; }
.av.lg { width: 36px; height: 36px; font-size: 13px; }
.av.none { background: transparent !important; border: 1.5px dashed var(--line-2); color: var(--grey-2); }
.bar { height: 6px; border-radius: 6px; background: var(--wash); overflow: hidden; min-width: 60px; }
.bar i { display: block; height: 100%; background: var(--ws); border-radius: 6px; }
.due { font-size: 13px; color: var(--grey); white-space: nowrap; }
.due.late { color: var(--bad); font-weight: 600; }
.due.soon { color: var(--warn); font-weight: 600; }
.field { display: grid; gap: 5px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--grey); }
.input, select.input, textarea.input { width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); outline: none; min-height: 38px; }
.input:focus { border-color: var(--ws); box-shadow: 0 0 0 3px var(--ws-soft); }
textarea.input { resize: vertical; min-height: 80px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; background: var(--wash); border-radius: 9px; padding: 3px; gap: 2px; overflow-x: auto; max-width: 100%; }
.seg a, .seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-weight: 600; color: var(--grey); cursor: pointer; text-decoration: none; white-space: nowrap; font-size: 13px; }
.seg .on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--grey); }
.empty-state b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 6px; }

/* ---------- projects ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 14px 16px; }
.stat small { color: var(--grey); font-weight: 600; font-size: 12px; }
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat.bad b { color: var(--bad); } .stat.warn b { color: var(--warn); }
.plist { display: grid; }
.prow { display: grid; grid-template-columns: 76px minmax(0, 2.4fr) minmax(0, 1.2fr) 96px 150px 90px 34px; gap: 14px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.prow:last-child { border-bottom: 0; }
.prow:hover { background: var(--panel-2); }
.prow.hd { font-size: 11px; font-weight: 700; color: var(--grey-2); letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; }
.prow.hd:hover { background: none; }
.prow .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .nm small { color: var(--grey); font-size: 12px; }
.prow .pg { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--grey); }
.prow .pg .bar { flex: 1; }
.num { font-family: var(--f-mono); font-size: 12px; color: var(--grey); font-weight: 500; }
.num .pill { font-family: var(--f-sans); }
.tpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.tpl label { border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; cursor: pointer; display: grid; gap: 2px; }
.tpl label:has(input:checked) { border-color: var(--ws); background: var(--ws-soft); }
.tpl input { position: absolute; opacity: 0; pointer-events: none; }
.tpl small { color: var(--grey); font-size: 12px; }

/* ---------- project ---------- */
.phead { display: grid; gap: 14px; }
.phead .t { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.phead h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.phead .meta { display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--grey); font-size: 13px; align-items: center; }
.phead .meta b { color: var(--ink); font-weight: 600; }
.phead .meta .bar { width: 120px; }
.chipsel { appearance: none; border: 0; border-radius: 99px; padding: 3px 26px 3px 11px; font-weight: 600; font-size: 12px; cursor: pointer; line-height: 20px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 13px) 50%, calc(100% - 9px) 50%; background-size: 4px 4px; background-repeat: no-repeat; }
.phase { overflow: hidden; }
.phase .card-h { background: var(--panel-2); padding: 11px 16px; }
.phase .card-h h2 { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.phase .card-h .count { color: var(--grey); font-size: 12px; font-weight: 600; }
.ms { width: 10px; height: 10px; background: var(--ws); transform: rotate(45deg); display: inline-block; border-radius: 2px; }
.trow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 120px 90px 30px; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 46px; }
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--panel-2); }
.trow.done .tt { color: var(--grey-2); text-decoration: line-through; }
.trow .tt { min-width: 0; display: flex; align-items: center; gap: 8px; }
.trow .tt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .tags { display: flex; gap: 6px; align-items: center; color: var(--grey-2); font-size: 12px; }
.trow .tags .ic { width: 14px; height: 14px; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 1.6px solid var(--line-2); display: grid; place-items: center; cursor: pointer; background: var(--panel); padding: 0; }
.tick:hover { border-color: var(--good); }
.tick.on { background: var(--good); border-color: var(--good); }
.tick.on::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.addrow { display: flex; gap: 8px; padding: 8px 16px; }
.addrow input { flex: 1; border: 0; outline: none; background: transparent; padding: 6px 0; }
.addrow input::placeholder { color: var(--grey-2); }
.wait { font-size: 11px; color: var(--warn); font-weight: 600; }

/* board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--wash); border-radius: var(--r); padding: 8px; display: grid; gap: 8px; min-height: 120px; align-content: start; }
.col.over { outline: 2px dashed var(--ws); outline-offset: -2px; }
.col h3 { font-size: 13px; padding: 4px 6px; display: flex; gap: 8px; align-items: center; }
.col h3 small { color: var(--grey); font-weight: 600; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; display: grid; gap: 8px; cursor: grab; box-shadow: var(--shadow); }
.tcard.dragging { opacity: .45; }
.tcard b { font-weight: 600; font-size: 13.5px; }
.tcard .ft { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 12px; color: var(--grey); }
.tcard .ph { font-size: 11px; color: var(--grey-2); font-weight: 600; }

/* timeline */
.tl { overflow: auto; max-height: calc(100vh - 260px); position: relative; }
.tl-grid { display: grid; grid-template-columns: 260px auto; min-width: max-content; }
.tl-names, .tl-days { display: grid; grid-auto-rows: 36px; }
.tl-names { position: sticky; left: 0; z-index: 3; background: var(--panel); border-right: 1px solid var(--line); }
.tl-names > div { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; font-size: 13px; cursor: pointer; }
.tl-names > div span { overflow: hidden; text-overflow: ellipsis; }
.tl-names .ph, .tl-days .ph { background: var(--panel-2); font-weight: 700; cursor: default; }
.tl-names .hd, .tl-days .hd { position: sticky; top: 0; z-index: 2; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.tl-names .hd { z-index: 4; font-size: 11px; font-weight: 700; color: var(--grey-2); letter-spacing: .06em; text-transform: uppercase; cursor: default; }
.tl-days > div { position: relative; border-bottom: 1px solid var(--line); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: calc(var(--day) * 7) 100%; background-position: var(--off, 0) 0; }
.tl-days .hd { display: flex; background-image: none; }
.tl-days .hd span { width: var(--day); flex: none; text-align: center; font-size: 10px; color: var(--grey-2); line-height: 1.1; padding-top: 5px; font-family: var(--f-mono); }
.tl-days .hd span.we { color: var(--line-2); }
.tl-days .hd span.mo { color: var(--ink); font-weight: 600; }
.tl-days .hd span.td { color: var(--ws); font-weight: 700; }
.tl-bar { position: absolute; top: 8px; height: 20px; border-radius: 6px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; padding: 0 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; cursor: pointer; min-width: 6px; }
.tl-bar.todo { background: #b8bcc6; } .tl-bar.done { background: var(--good); } .tl-bar.review { background: var(--warn); } .tl-bar.client_review { background: var(--violet); }
.tl-bar.late { box-shadow: 0 0 0 2px var(--bad); }
.tl-bar.phasebar { background: color-mix(in srgb, var(--ws) 22%, transparent); color: var(--ws-ink); height: 8px; top: 14px; padding: 0; }
.tl-ms { position: absolute; top: 11px; width: 14px; height: 14px; background: var(--ws); transform: rotate(45deg); border-radius: 2px; }
.tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ws); z-index: 1; pointer-events: none; opacity: .7; }

/* links, activity */
.lrow { display: flex; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.lrow:last-child { border-bottom: 0; }
.lrow .ico { width: 34px; height: 34px; border-radius: 8px; background: var(--wash); display: grid; place-items: center; flex: none; font-weight: 800; font-size: 12px; color: var(--grey); }
.lrow a { font-weight: 600; text-decoration: none; }
.lrow a:hover { text-decoration: underline; }
.lrow small { display: block; color: var(--grey); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.lrow .grow { flex: 1; min-width: 0; }
.feed { display: grid; }
.feed > div { display: flex; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.feed > div:last-child { border-bottom: 0; }
.feed small { display: block; color: var(--grey-2); font-size: 12px; }

/* my work */
.group h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); margin: 0 0 8px 2px; display: flex; gap: 8px; }
.group h3.late { color: var(--bad); }
.wrow { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 100px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.wrow:last-child { border-bottom: 0; }
.wrow:hover { background: var(--panel-2); }
.wrow .tt b { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow .tt small { color: var(--grey); font-size: 12px; }

/* team */
.load { width: 100%; border-collapse: collapse; }
.load th, .load td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.load th { font-size: 11px; color: var(--grey-2); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.load td.cell { text-align: center; padding: 6px; }
.load td.cell span { display: block; border-radius: 7px; padding: 7px 4px; font-weight: 600; font-family: var(--f-mono); font-size: 12px; }
.l0 { background: var(--panel-2); color: var(--grey-2); } .l1 { background: var(--good-soft); color: var(--good); } .l2 { background: #d2efe0; color: #0b7a4b; }
.l3 { background: var(--warn-soft); color: var(--warn); } .l4 { background: var(--bad-soft); color: var(--bad); }
.person { display: flex; gap: 10px; align-items: center; min-width: 180px; }
.person small { display: block; color: var(--grey); font-size: 12px; }
.scroll-x { overflow-x: auto; }
.keybox { font-family: var(--f-mono); font-size: 13px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 8px; word-break: break-all; user-select: all; }
.row-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-line:last-child { border-bottom: 0; }
.row-line .grow { flex: 1; min-width: 0; }
.row-line small { display: block; color: var(--grey); font-size: 12px; }

/* ---------- drawer, modal, toasts ---------- */
#drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(16, 16, 20, .28); }
#drawer .dr { width: min(620px, 100%); height: 100%; background: var(--panel); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
.dr-h { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dr-h .sp { flex: 1; }
.dr-b { overflow: auto; padding: 18px 22px 40px; display: grid; gap: 18px; align-content: start; }
.dr-b .title { font-size: 20px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; margin: -4px -8px; width: calc(100% + 16px); outline: none; background: transparent; letter-spacing: -.01em; resize: none; overflow: hidden; }
.dr-b .title:hover { border-color: var(--line); }
.dr-b .title:focus { border-color: var(--ws); }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; align-items: center; }
.props > span { color: var(--grey); font-size: 13px; font-weight: 500; }
.props .input { min-height: 34px; padding: 5px 10px; }
.sec h3 { font-size: 13px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.sec h3 small { color: var(--grey); font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; padding: 5px 0; }
.check span { flex: 1; }
.check.done span { color: var(--grey-2); text-decoration: line-through; }
.check .x { opacity: 0; }
.check:hover .x { opacity: 1; }
.cmt { display: flex; gap: 10px; padding: 8px 0; }
.cmt .b { flex: 1; min-width: 0; }
.cmt .b small { color: var(--grey-2); font-size: 12px; margin-left: 6px; }
.cmt .b p { margin: 3px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.dep { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; }
.dep span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(16, 16, 20, .4); padding: 16px; }
#modal .md { background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg); width: min(640px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
#modal .md-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
#modal .md-h h2 { font-size: 17px; flex: 1; }
#modal .md-b { padding: 18px 20px; overflow: auto; display: grid; gap: 14px; }
#modal .md-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; animation: up .2s ease-out; max-width: 90vw; }
.toast.bad { background: var(--bad); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth .art { background: var(--side); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth .art::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, #ff5a1f 0, transparent 65%); opacity: .35; }
.auth .art::before { content: ""; position: absolute; left: -80px; top: 40%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #2f56d9 0, transparent 65%); opacity: .35; }
.auth .art h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; max-width: 12ch; position: relative; z-index: 1; }
.auth .art p { color: var(--side-grey); max-width: 40ch; position: relative; z-index: 1; }
.auth .art .brand { padding: 0; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; }
.auth form { width: min(380px, 100%); display: grid; gap: 14px; }
.auth form h2 { font-size: 22px; font-weight: 800; }
.auth .err { color: var(--bad); background: var(--bad-soft); padding: 9px 12px; border-radius: 8px; font-size: 13px; }
.auth .hint { color: var(--grey); font-size: 13px; }

/* ---------- phones ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .top { padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .top .ws-chip { display: inline-flex; }
  .search { width: auto; flex: 1; }
  .page { padding: 16px 14px calc(90px + env(safe-area-inset-bottom)); gap: 14px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--grey); text-decoration: none; padding: 4px 0; }
  .tabbar a.on { color: var(--ws-ink); }
  .tabbar .ic { width: 22px; height: 22px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .prow.hd { display: none; }
  .prow .num { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; }
  .prow .cl, .prow .av, .prow .dd { display: none; }
  .prow .pg { grid-column: 1 / -1; }
  .head h1, .phead h1 { font-size: 20px; }
  .trow { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 10px 14px; }
  .trow .st, .trow .tags { display: none; }
  .trow .meta2 { display: flex; gap: 8px; align-items: center; }
  .board { grid-auto-columns: 82%; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
  .tl-grid { grid-template-columns: 150px auto; }
  .tl { max-height: calc(100vh - 230px); }
  .wrow { grid-template-columns: 26px minmax(0, 1fr) auto; padding: 11px 14px; }
  .wrow .pill { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  #drawer .dr { width: 100%; }
  .dr-b { padding: 16px 16px 60px; }
  .props { grid-template-columns: 100px 1fr; }
  #modal { padding: 0; place-items: end stretch; }
  #modal .md { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { padding: 28px 22px; min-height: 0; gap: 18px; }
  .auth .art p { display: none; }
  .hide-sm { display: none !important; }
  .input, select.input, textarea.input { font-size: 16px; }
}
@media (min-width: 901px) {
  .ws-chip, .show-sm { display: none !important; }
  .trow .meta2 { display: contents; }
}
.ws-chip { display: none; align-items: center; gap: 7px; font-weight: 700; padding: 6px 10px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line-2); cursor: pointer; white-space: nowrap; }
.ws-chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--ws); }
@media print { .side, .top, .tabbar { display: none; } .shell { display: block; } }
