/* Wearly portalas */
@font-face { font-family: "Figtree"; font-weight: 300 800; font-display: swap; src: url("fonts/figtree-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 300 800; font-display: swap; src: url("fonts/figtree-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --canvas: #F4F3F6; --paper: #fff; --soft: #F8F7FB;
  --ink: #0E0D12; --ink-2: #4A4757; --ink-3: #6E6A7C;
  --hair: #E6E4EE; --hair-2: #EFEDF4; --chip: #ECEAF2;
  --accent: #6E6BF7; --accent-ink: #4C4FE0; --accent-soft: #EEEDFF;
  --grad: linear-gradient(100deg, #5A6FFC 0%, #AF6ADF 55%, #FF66C4 100%);
  --bad: #D63B4B; --bad-soft: #FDECEE; --ok: #14A38B; --ok-soft: #E4F6F2; --warn: #E8930C;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(14,13,18,.05), 0 8px 24px -12px rgba(14,13,18,.14);
  --shadow-lg: 0 24px 60px -20px rgba(14,13,18,.35);
  --sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --side: 260px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--sans); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 17px; letter-spacing: -.01em; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.pad { padding: 8px 12px; } .pad-b { margin-bottom: 14px; }
.mt { margin-top: 20px; }
.link { color: var(--accent-ink); } .link:hover { text-decoration: underline; }
.inline { display: inline; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; background: var(--paper); border-right: 1px solid var(--hair); overflow-y: auto; }
.brand { display: flex; align-items: flex-end; gap: 8px; padding: 0 10px 22px; }
.brand span { font-size: 13px; color: var(--ink-3); font-weight: 500; padding-bottom: 3px; }
.logo { height: 28px; width: auto; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; padding: 16px 12px 6px; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; transition: background .15s; }
.side nav a:hover { background: var(--soft); color: var(--ink); }
.side nav a.on { background: var(--ink); color: #fff; }
.side nav a.on .dot { box-shadow: 0 0 0 2px #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; display: inline-block; }
.side nav a .dot { margin: 0 4px 0 5px; }
.me { display: flex; align-items: center; gap: 6px; padding: 12px 6px 0; border-top: 1px solid var(--hair); margin-top: 12px; }
.me-link { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: 10px; }
.me-link:hover { background: var(--soft); }
.me-link > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.me-link strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-link small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { padding: 32px clamp(16px, 3.4vw, 48px) 64px; min-width: 0; max-width: 1400px; }
.mbar { display: none; }
.scrim { display: none; }

/* ---------- avatars, tags, pills ---------- */
.av { --h: 250; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  color: hsl(var(--h) 55% 30%); background: hsl(var(--h) 80% 91%); }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.av.xs { width: 24px; height: 24px; font-size: 10px; }
.av.lg { width: 52px; height: 52px; font-size: 17px; }
.avs { display: flex; } .avs .av { margin-left: -7px; box-shadow: 0 0 0 2px var(--paper); } .avs .av:first-child { margin-left: 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; white-space: nowrap;
  color: color-mix(in srgb, var(--c) 70%, #000); background: color-mix(in srgb, var(--c) 13%, #fff); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tag-all { --c: #8A86A0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--chip); color: var(--ink-2); white-space: nowrap; }
.pill .i { width: 12px; height: 12px; }
.pill.bad, .pill.hot { background: var(--bad-soft); color: var(--bad); }
.pill.strong { background: var(--ink); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: #2a2833; box-shadow: var(--shadow); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.wide { width: 100%; height: 48px; }
.btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--chip); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-sm:hover { background: #E1DEEA; }
.btn-sm .i { width: 15px; height: 15px; }
.btn-sm.danger { background: var(--bad-soft); color: var(--bad); }
.btn-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; flex: none; }
.btn-icon:hover { background: var(--chip); color: var(--ink); }
.btn-icon.danger:hover { background: var(--bad-soft); color: var(--bad); }

/* ---------- page parts ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p.muted { margin-top: 8px; max-width: 640px; }
.eyebrow { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 6px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--paper); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { margin-bottom: 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sec-head.mt { margin-top: 26px; }
section + section, .grid-2 + .grid-2, section + .grid-2 { margin-top: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.grid-2.wide-left { grid-template-columns: 1.5fr 1fr; }
.grid-2 > section + section, .board > section + section { margin-top: 0; }
.grid-2 { align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.stack > section + section { margin-top: 0; }
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; border-radius: 14px; background: var(--ok-soft); color: #0B6B5B; font-weight: 500; margin-bottom: 18px; }
.flash.err { background: var(--bad-soft); color: #A1202E; }
.flash > :first-child { flex: 1; }
.flash .btn-icon { color: inherit; margin-left: auto; }
.empty { text-align: center; padding: 36px 20px; border: 1.5px dashed var(--hair); border-radius: var(--r); background: var(--soft); }
.empty strong { display: block; font-size: 16px; margin-bottom: 4px; }
.empty p { color: var(--ink-3); margin-bottom: 14px; }
.empty p:last-child { margin-bottom: 0; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-3); background: var(--soft); padding: 10px 12px; border-radius: 10px; }
.hint .i { width: 16px; height: 16px; margin-top: 1px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--paper); border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat-l { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.stat strong { font-size: 32px; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.stat-s { font-size: 12.5px; color: var(--ink-3); } .stat-s.bad { color: var(--bad); font-weight: 600; }

/* departments */
.depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dept-card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.dept-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
a.dept-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.dept-card.locked { opacity: .65; }
.dept-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dept-badge { display: inline-grid; place-items: center; height: 34px; min-width: 44px; padding: 0 8px; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: color-mix(in srgb, var(--c) 75%, #000); background: color-mix(in srgb, var(--c) 15%, #fff); }
.dept-badge.sm { height: 30px; min-width: 40px; }
.dept-card h3 { font-size: 17px; margin-bottom: 4px; }
.dept-card p { font-size: 13.5px; color: var(--ink-3); flex: 1; }
.dept-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); margin-top: 16px; align-items: center; }
.dept-meta .i { width: 14px; height: 14px; vertical-align: -2px; }
.bar { flex-basis: 100%; height: 6px; border-radius: 9px; background: var(--hair-2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--c); border-radius: 9px; }

/* lists */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--hair-2); }
.list > li:first-child { border-top: 0; }
.task-row, .row-link { display: flex; align-items: center; gap: 12px; padding: 11px 2px; }
.task-row > .i { color: var(--ink-3); }
.t { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.sub .dot { width: 7px; height: 7px; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 1.8px solid #C9C5D6; background: none; display: grid; place-items: center; cursor: pointer; color: transparent; flex: none; padding: 0; }
.tick .i { width: 14px; height: 14px; }
.tick:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.due .i { width: 13px; height: 13px; }
.due.bad { color: var(--bad); font-weight: 600; }
.date-box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--soft); font-size: 11px; color: var(--ink-3); line-height: 1.1; flex: none; }
.date-box b { font-size: 17px; color: var(--ink); }
.date-box.bad { background: var(--bad-soft); color: var(--bad); } .date-box.bad b { color: var(--bad); }
.st { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.st-todo { box-shadow: inset 0 0 0 2px #B5B0C4; } .st-doing { background: var(--warn); } .st-done { background: var(--ok); }

/* posts */
.post { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hair-2); }
.card > .post:first-of-type, .sec-head + .post { border-top: 0; }
.post.pinned { background: linear-gradient(90deg, var(--accent-soft), transparent); margin: 0 -22px; padding: 14px 22px; }
.post-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; }
.post-h .dot { width: 7px; height: 7px; margin-left: 4px; }
.post-tools { margin-left: auto; display: flex; opacity: 0; transition: opacity .15s; }
.post:hover .post-tools, .post-tools:focus-within { opacity: 1; }
.post-tools .btn-icon { width: 28px; height: 28px; } .post-tools .i { width: 15px; height: 15px; }
.post-b { color: var(--ink-2); word-wrap: break-word; }
.composer { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--hair-2); margin-bottom: 4px; }
.composer textarea { flex: 1; resize: vertical; min-height: 42px; border: 1px solid var(--hair); background: var(--soft); border-radius: 12px; padding: 9px 12px; }
.composer textarea:focus { outline: 0; border-color: var(--accent); background: #fff; }

/* activity */
.acts { list-style: none; margin: 0; padding: 0; }
.acts li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--ink-2); }
.acts li .grow { padding-top: 2px; }
.acts b { color: var(--ink); font-weight: 600; }
.acts time { padding-top: 3px; white-space: nowrap; }
.pager { display: flex; gap: 10px; justify-content: center; padding-top: 14px; }

/* quick links / tools */
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick-i { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--soft); min-width: 0; }
.quick-i:hover { background: var(--chip); }
.quick-i span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.quick-i b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-i small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad); flex: none; font-size: 15px; }
.cat-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 22px 0 10px; }
.cat-h:first-of-type { margin-top: 4px; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tool { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tool-a { display: flex; align-items: center; gap: 12px; padding: 16px; flex: 1; }
.tool-a > .i { color: var(--ink-3); width: 16px; height: 16px; }
.tool-a:hover > .i { color: var(--accent-ink); }
.tool-a .grow { display: flex; flex-direction: column; line-height: 1.3; }
.tool-a small { color: var(--ink-3); font-size: 12.5px; }
.tool-f { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 10px 16px; min-height: 30px; }
.tool-f.end { justify-content: flex-end; }
.row-tools { display: flex; align-items: center; gap: 2px; }

/* toolbar / chips / search */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; font-weight: 550; color: var(--ink-2); cursor: pointer; border: 0; }
.chip:hover { color: var(--ink); background: var(--soft); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chip .dot { width: 8px; height: 8px; }
.chip .i { width: 14px; height: 14px; }
.search { height: 38px; width: 260px; max-width: 100%; border: 1px solid var(--hair); background: var(--paper); border-radius: 999px; padding: 0 16px; }
.search:focus { outline: 0; border-color: var(--accent); }

/* tables */
.table { background: var(--paper); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.card .table { box-shadow: none; border: 1px solid var(--hair-2); }
.tr { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; border-top: 1px solid var(--hair-2); flex-wrap: wrap; }
.tr:first-child { border-top: 0; }
.tr:hover { background: #FCFBFE; }
.tr > a.grow { min-width: 160px; }
.ext { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; background: var(--chip); color: var(--ink-2); flex: none; }
.ext-pdf { background: #FDECEE; color: #C2283A; }
.ext-doc, .ext-docx, .ext-pages { background: #E8EEFF; color: #3552D8; }
.ext-xls, .ext-xlsx, .ext-csv, .ext-numbers { background: #E4F6EC; color: #11804D; }
.ext-ppt, .ext-pptx, .ext-key { background: #FFF0E3; color: #C2620B; }
.ext-link { background: var(--accent-soft); color: var(--accent-ink); }
.ext-png, .ext-jpg, .ext-jpeg, .ext-webp, .ext-svg, .ext-gif, .ext-heic { background: #FCE9F6; color: #B4237F; }
a.ext-link { display: inline-flex; vertical-align: -3px; color: var(--ink-3); background: none; }
a.ext-link .i { width: 15px; height: 15px; }
.vault .tr .grow { min-width: 160px; }
.cred { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cred .chip { height: 32px; font-size: 13px; padding: 0 12px; }
.cred .chip .i { width: 13px; height: 13px; color: var(--ink-3); }
.secret { display: inline-flex; align-items: center; gap: 2px; background: var(--soft); border-radius: 999px; padding: 0 4px 0 12px; height: 34px; }
.secret code { font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; min-width: 90px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secret .btn-icon { width: 28px; height: 28px; } .secret .i { width: 15px; height: 15px; }
.notes-box { flex-basis: 100%; background: var(--soft); border-radius: 10px; padding: 10px 14px; font: 13px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.user-row input, .user-row select { height: 34px; border: 1px solid var(--hair); border-radius: 10px; padding: 0 10px; background: var(--paper); }
.user-row input { width: 170px; }
.user-row.off { opacity: .55; }

/* dept page */
.dept-hero { position: relative; display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; background: var(--paper); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 18px; }
.dept-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 220px at 100% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); pointer-events: none; }
.dept-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--c); }
.dept-hero > * { position: relative; }
.dept-hero .muted { margin-top: 8px; max-width: 560px; }
.hero-people { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.person { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: 4px 14px 4px 4px; }
.person span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.person b { font-size: 13.5px; } .person small { font-size: 11.5px; color: var(--ink-3); }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; padding: 4px; background: var(--paper); border-radius: 999px; box-shadow: var(--shadow); width: max-content; max-width: 100%; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 550; color: var(--ink-2); white-space: nowrap; font-size: 14px; }
.tabs a:hover { background: var(--soft); color: var(--ink); }
.tabs a.on { background: var(--ink); color: #fff; }
.cnt { font-size: 11.5px; background: var(--chip); color: var(--ink-2); border-radius: 999px; padding: 0 7px; line-height: 18px; font-weight: 700; }
.tabs a.on .cnt { background: rgba(255,255,255,.2); color: #fff; }
.mini-funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mini-funnel > div { background: var(--soft); border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; }
.mini-funnel b { font-size: 22px; letter-spacing: -.02em; }
.mini-funnel span { font-size: 12px; color: var(--ink-3); }
.mini-funnel small { font-size: 11.5px; font-weight: 600; color: var(--ok); }

/* kanban */
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.board.pipe { grid-template-columns: repeat(5, minmax(190px, 1fr)); }
.col { background: #EAE8F0; border-radius: var(--r); padding: 12px; min-height: 160px; }
.col h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 6px 12px; }
.col h3 .sum { margin-left: auto; font-size: 12px; color: var(--ok); font-weight: 700; }
.col-body { display: flex; flex-direction: column; gap: 8px; min-height: 60px; border-radius: 12px; transition: background .15s; }
.col-body.over { background: rgba(110,107,247,.1); outline: 2px dashed var(--accent); outline-offset: 2px; }
.col-empty { text-align: center; color: var(--ink-3); font-size: 13px; padding: 16px 0; }
.kcard { background: var(--paper); border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(14,13,18,.06); cursor: pointer; border-left: 3px solid transparent; transition: box-shadow .15s, transform .15s; }
.kcard:hover { box-shadow: var(--shadow); }
.kcard.dragging { opacity: .5; transform: rotate(1.5deg); }
.kcard.prio-high { border-left-color: var(--bad); }
.kcard .t { white-space: normal; font-size: 14px; }
.kcard .sub { display: block; margin-top: 4px; }
.clamp { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kfoot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kfoot:empty { display: none; }
.col[data-status="done"] .kcard .t { color: var(--ink-3); text-decoration: line-through; text-decoration-color: #C9C5D6; }
.kind { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 4px; }
.kind-investor { color: #11804D; } .kind-partner { color: #3552D8; } .kind-sponsor { color: #B4237F; } .kind-event { color: #C2620B; } .kind-grant { color: #7B3FC4; }
.amount { font-weight: 700; color: var(--ok); font-size: 13.5px; margin-top: 2px; }
.stage-won { background: #DDF3EC; } .stage-lost { background: #EEEDF1; opacity: .8; }

/* people */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.person-card { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); flex-wrap: wrap; }
.person-card .grow { display: flex; flex-direction: column; gap: 1px; }
.person-card b { font-size: 15.5px; }
.person-tools { flex-basis: 100%; display: flex; gap: 6px; padding-top: 6px; border-top: 1px solid var(--hair-2); }
.row-form { display: flex !important; flex-direction: row !important; gap: 10px; flex-wrap: wrap; }
.row-form select { flex: 1; min-width: 160px; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.form input:not([type=checkbox]):not([type=file]):not([type=color]), .form select, .form textarea {
  width: 100%; height: 44px; border: 1px solid var(--hair); border-radius: 12px; padding: 0 14px; background: var(--paper); font-size: 15px; font-weight: 400; color: var(--ink); }
.form textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form input:disabled { background: var(--soft); color: var(--ink-3); }
.form input[type=color] { width: 64px; height: 44px; border: 1px solid var(--hair); border-radius: 12px; padding: 4px; background: var(--paper); }
.form .check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.form .check input { width: 18px; height: 18px; accent-color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.span2 { grid-column: span 2; }
.actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding-top: 6px; }
.drop { position: relative; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px !important; text-align: center; padding: 22px; border: 1.5px dashed #CFCBDA; border-radius: 14px; background: var(--soft); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .i { width: 24px; height: 24px; color: var(--accent-ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop small { font-weight: 400; color: var(--ink-3); }

/* modal */
.modal { border: 0; padding: 0; border-radius: 22px; width: min(600px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(14,13,18,.4); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 4px 24px; }
.modal-head h2 { font-size: 20px; }
.modal .form { padding: 14px 24px 24px; }

/* auth */
.bare { background: var(--paper); }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; background: #0E0D14; overflow: hidden; display: flex; align-items: flex-end; padding: 56px; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .85; }
.b1 { width: 520px; height: 520px; background: #5A6FFC; top: -120px; left: -80px; animation: float 16s ease-in-out infinite; }
.b2 { width: 440px; height: 440px; background: #AF6ADF; top: 30%; right: -120px; animation: float 19s ease-in-out infinite reverse; }
.b3 { width: 380px; height: 380px; background: #FF66C4; bottom: -140px; left: 30%; animation: float 22s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.08); } }
.auth-copy { position: relative; color: #fff; max-width: 460px; }
.logo-xl { width: 220px; height: auto; margin-bottom: 18px; }
.auth-copy p { font-size: 22px; line-height: 1.35; letter-spacing: -.015em; font-weight: 500; opacity: .92; }
.auth-panel { display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 30px; margin-bottom: 8px; }
.auth-box > .muted { margin-bottom: 24px; }
.auth-box .form { margin-bottom: 18px; }
.auth-box p.small { margin-top: 8px; }
.auth-logo { display: none; height: 32px; margin-bottom: 28px; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 99; animation: pop .2s; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .depts, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
  .menu-open .side { box-shadow: var(--shadow-lg); }
  .menu-open .side { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(14,13,18,.35); z-index: 40; }
  .mbar { display: flex; align-items: center; justify-content: space-between; margin: -16px 0 20px; }
  .mbar .logo { height: 24px; }
  .main { padding: 24px 16px 48px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-logo { display: block; }
  .board, .board.pipe { grid-template-columns: repeat(var(--cols, 3), 82vw); scroll-snap-type: x mandatory; }
  .board.pipe { --cols: 5; }
  .col { scroll-snap-align: start; }
  .hide-sm { display: none; }
  .search { width: 100%; }
  .toolbar .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; max-width: 100%; }
  .people { grid-template-columns: 1fr; }
  .user-row select { flex: 1; }
}
@media (max-width: 560px) {
  .depts, .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .depts { grid-template-columns: 1fr; }
  .stat strong { font-size: 26px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .quick { grid-template-columns: 1fr; }
  .mini-funnel { grid-template-columns: 1fr 1fr; }
  .page-head { align-items: flex-start; }
  .head-actions { width: 100%; } .head-actions .btn { flex: 1; }
  .dept-hero { padding: 22px; }
  .card { padding: 18px; }
  .post.pinned { margin: 0 -18px; padding: 14px 18px; }
  .post-tools { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
