/* AllHands CRM — visual system. Light and dark themes via tokens on :root / [data-theme=dark]. */
:root {
  /* ink ramp (cool, technical), one accent: Allseas blue. unslop tokens, CC BY 4.0 @heydamir */
  --bg: #f5f7fa; --bg-2: #fafbfc; --bg-3: #eceff4; --hover: #eef1f5; --active: #e4e8ef; --line: rgba(17, 24, 39, .08); --line-2: rgba(17, 24, 39, .13);
  --ink: #111827; --ink-2: #4b5565; --muted: #5f6879; --faint: #7c8496;
  --accent: #0034b5; --accent-2: #002a93; --accent-wash: rgba(0, 52, 181, .07); --accent-ink: #0034b5;
  --green: #16a34a; --green-wash: rgba(22, 163, 74, .09); --red: #dc2626; --red-wash: rgba(220, 38, 38, .07); --amber: #b45309; --amber-wash: rgba(180, 83, 9, .08); --blue: #0034b5; --blue-wash: rgba(0, 52, 181, .07); --pink: #9d174d; --teal: #0f766e;
  --side: #eef1f5; --card: #ffffff; --raised: #eceff4; --chart: #c3c9d4; --chart-2: #e3c3c3;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05); --shadow-lg: 0 8px 24px rgba(17, 24, 39, .08), 0 1px 2px rgba(17, 24, 39, .06);
  --r: 8px; --r-lg: 12px; --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'IBM Plex Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #0b0d14; --bg-2: #0e1119; --bg-3: #1a1e28; --hover: #151923; --active: #1a1e28; --line: rgba(238, 240, 245, .08); --line-2: rgba(238, 240, 245, .13);
  --ink: #eef0f5; --ink-2: #a3a9b8; --muted: #8a92a6; --faint: #737b8f;
  --accent: #6f8fff; --accent-2: #8aa3ff; --accent-wash: rgba(111, 143, 255, .1); --accent-ink: #8aa3ff;
  --green: #4cc38a; --green-wash: rgba(76, 195, 138, .1); --red: #e5484d; --red-wash: rgba(229, 72, 77, .1); --amber: #e2a336; --amber-wash: rgba(226, 163, 54, .1); --blue: #8aa3ff; --blue-wash: rgba(111, 143, 255, .1);
  --side: #07080d; --card: #11141c; --raised: #1a1e28; --chart: #3a4050; --chart-2: #5a3236;
  --shadow: none; --shadow-lg: 0 12px 32px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 13.5px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01', 'tnum' 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--bg); border: 1px solid var(--line-2); border-radius: 7px; padding: 7px 10px; outline: none; transition: border-color .12s, box-shadow .12s; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; width: 100%; line-height: 1.5; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); padding: 0; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; } code { background: var(--bg-3); padding: 1px 5px; border-radius: 4px; }
kbd { font: 500 11px var(--font); background: var(--bg-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--muted); }
h1, h2, h3 { margin: 0; letter-spacing: -.015em; }
.muted { color: var(--muted); } .small { font-size: 12px; } .grow { flex: 1; min-width: 0; } .num { font-variant-numeric: tabular-nums; } .err { color: var(--red); } .warn { color: var(--amber); }
.pad { padding: 8px 12px; } .sep { height: 1px; background: var(--line); margin: 4px 0; } .dim { opacity: .5; }
.clamp1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ico { flex: none; display: block; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg); } ::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow); transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { background: var(--hover); } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(91, 91, 214, .3), inset 0 1px 0 rgba(255, 255, 255, .15); }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; } .btn.ghost { border-color: transparent; box-shadow: none; background: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; } .btn.big { height: 40px; justify-content: center; font-size: 14px; }
.btn.active { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); color: var(--accent-ink); background: var(--accent-wash); }
.btn.won { background: var(--green); border-color: var(--green); color: #fff; } .btn.lostb { color: var(--red); } .danger-t { color: var(--red); }
.iconbtn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.iconbtn:hover { background: var(--hover); color: var(--ink); } .iconbtn.xs { width: 22px; height: 22px; border-radius: 5px; } .iconbtn.fav { color: var(--amber); } .iconbtn.fav svg { fill: var(--amber); }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; font-weight: 500; } .link:hover { text-decoration: underline; } .link.xs { font-size: 11.5px; }
.seg { display: inline-flex; background: var(--bg-3); border-radius: 8px; padding: 2px; gap: 2px; } .seg button { border: 0; background: transparent; padding: 0 10px; height: 26px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.seg button.on { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 1px var(--line); } .seg.full { display: flex; } .seg.full button { flex: 1; justify-content: center; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg); font-size: 12.5px; cursor: pointer; color: var(--ink-2); } .pill.on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }
.toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--ink-2); font-size: 12.5px; }
.spin { display: inline-block; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; height: 100vh; height: 100dvh; }
.shell.collapsed { grid-template-columns: 60px 1fr; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.sb-top { display: flex; align-items: center; gap: 4px; padding: 10px 8px 6px 10px; }
.ws { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 5px 6px; border-radius: 8px; cursor: pointer; flex: 1; min-width: 0; text-align: left; }
.ws:hover { background: var(--hover); } .ws-n { display: flex; flex-direction: column; min-width: 0; flex: 1; } .ws-n b { font-size: 13.5px; } .ws-n small { color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-search { margin: 2px 10px 8px; display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--muted); cursor: pointer; box-shadow: var(--shadow); }
.sb-search .nl { flex: 1; text-align: left; } .sb-search kbd { flex: none; }
.sb-nav { flex: 1; overflow-y: auto; padding: 2px 8px; }
.nav { display: flex; align-items: center; gap: 10px; height: 31px; padding: 0 9px; border-radius: 7px; color: var(--ink-2); font-weight: 500; position: relative; }
.nav:hover { background: var(--hover); color: var(--ink); } .nav.on { background: var(--active); color: var(--ink); }
.nav .nl { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nav .ico { color: var(--muted); } .nav.on .ico { color: var(--accent); }
.nb { background: var(--red); color: #fff; font-size: 10.5px; font-weight: 600; border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 5px; } .nb.soft { background: var(--bg-3); color: var(--muted); }
.sb-sec { margin: 16px 9px 4px; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; }
.ldot { width: 8px; height: 8px; border-radius: 3px; margin: 0 4px; flex: none; }
.sb-bot { padding: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.me { display: flex; align-items: center; gap: 9px; border: 0; background: transparent; padding: 6px 7px; border-radius: 8px; cursor: pointer; text-align: left; width: 100%; }
.me:hover { background: var(--hover); } .me b { display: block; font-size: 13px; } .me small { color: var(--muted); font-size: 11.5px; }
.collapsed .nl, .collapsed .ws-n, .collapsed .sb-sec, .collapsed .nb, .collapsed .ws .ico { display: none; } .collapsed .nav { justify-content: center; padding: 0; } .collapsed .sb-search { justify-content: center; padding: 0; margin: 2px 8px 8px; }
.collapsed .sb-top { flex-direction: column; } .collapsed .sb-col { transform: rotate(180deg); }
.main { overflow: auto; min-width: 0; position: relative; background: var(--bg); }
.mnav-btn, .scrim { display: none; }
.splash { height: 100vh; display: grid; place-content: center; gap: 18px; justify-items: center; color: var(--muted); }

/* ---------- pages ---------- */
.page { padding: 0 28px 60px; max-width: 1680px; margin: 0 auto; }
.page-h { display: flex; align-items: center; gap: 12px; min-height: 60px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); margin: 0 -28px; padding: 10px 28px; border-bottom: 1px solid transparent; }
.page-h.slim { min-height: 50px; }
.ph-title { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; } .ph-title h1 { font-size: 18px; font-weight: 650; } .ph-actions { display: flex; gap: 8px; align-items: center; }
.count { color: var(--muted); background: var(--bg-3); border-radius: 99px; padding: 1px 8px; font-size: 12px; font-weight: 500; }
.obj-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex: none; }
.obj-ico.xs { width: 20px; height: 20px; border-radius: 5px; } .obj-ico.lg { width: 48px; height: 48px; border-radius: 12px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex: 1; color: var(--muted); min-width: 0; } .crumbs a:hover { color: var(--ink); } .crumbs span { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loading-row { display: flex; align-items: center; gap: 10px; padding: 26px; color: var(--muted); justify-content: center; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px; gap: 8px; color: var(--muted); }
.empty-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); margin-bottom: 4px; }
.empty-t { color: var(--ink); font-weight: 600; font-size: 14.5px; } .empty-b { max-width: 380px; }

/* ---------- avatars, tags ---------- */
.avatar { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600; flex: none; letter-spacing: .02em; } .avatar.sq { border-radius: 6px; }
.logo { border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px var(--line); flex: none; object-fit: contain; padding: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: color-mix(in srgb, var(--c) 12%, transparent); color: color-mix(in srgb, var(--c) 78%, var(--ink)); white-space: nowrap; }
.tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); } .tag-x { border: 0; background: none; cursor: pointer; color: inherit; padding: 0 0 0 2px; opacity: .6; }
.tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.who, .team, .ref { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; } .team i { width: 8px; height: 8px; border-radius: 3px; }
.ref { color: var(--ink); font-weight: 500; } .ref:hover { color: var(--accent-ink); } .ext { color: var(--accent-ink); } .ext:hover { text-decoration: underline; }
.nil { color: var(--faint); } .stars { color: var(--amber); letter-spacing: 1px; } .stars .dim { color: var(--line-2); opacity: 1; }
.chk { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line-2); } .chk.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.stage-pill { display: inline-flex; padding: 1px 8px; border-radius: 6px; background: var(--bg-3); font-size: 12px; font-weight: 500; white-space: nowrap; }
.listpill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 99px; font-size: 11.5px; font-weight: 500; background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); color: color-mix(in srgb, var(--c, var(--accent)) 80%, var(--ink)); margin-right: 3px; }
.badge.red { background: var(--red); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 0 6px; margin-left: 6px; font-weight: 600; }

/* ---------- popovers & option lists ---------- */
.pop-wrap { position: relative; display: inline-block; }
.pop { position: absolute; top: calc(100% + 6px); z-index: 60; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 4px; min-width: 200px; animation: pop .12s ease-out; max-width: calc(100vw - 24px); }
.pop-left { left: 0; } .pop-right { right: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 8px 8px 4px; }
.pop-foot { display: flex; align-items: center; gap: 6px; justify-content: flex-end; padding: 6px; border-top: 1px solid var(--line); margin-top: 4px; } .pop-foot .hint { margin-right: auto; }
.menu-item, .opt { display: flex; align-items: center; gap: 9px; width: 100%; border: 0; background: transparent; padding: 7px 8px; border-radius: 6px; cursor: pointer; text-align: left; color: var(--ink); min-height: 32px; }
.menu-item:hover, .opt.hl { background: var(--hover); } .menu-item.danger { color: var(--red); } .menu-item.active { color: var(--accent-ink); font-weight: 500; } .menu-item .ico { color: var(--muted); }
.opt.on { color: var(--accent-ink); } .opt.create { color: var(--accent-ink); font-weight: 500; } .opt .dot { width: 8px; height: 8px; border-radius: 50%; }
.hint { color: var(--faint); font-size: 11.5px; white-space: nowrap; }
.opt-search { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 10px 9px; margin-bottom: 4px; background: transparent; box-shadow: none !important; }
.opt-scroll { max-height: 300px; overflow-y: auto; } .opt-scroll.short { max-height: 200px; } .opt-none { padding: 12px; color: var(--faint); text-align: center; }
.opt-add { padding: 4px; } .opt-add input { width: 100%; }
.ed-box { padding: 4px; } .ed-box input, .ed-box textarea { width: 100%; }
.rate-ed { display: flex; gap: 2px; padding: 8px; align-items: center; } .rate-ed button { border: 0; background: none; font-size: 20px; color: var(--line-2); cursor: pointer; } .rate-ed button.on { color: var(--amber); }

/* editable values */
.ev { min-height: 28px; display: flex; align-items: center; padding: 3px 7px; margin: -3px -7px; border-radius: 6px; cursor: pointer; min-width: 0; overflow: hidden; }
.ev:hover { background: var(--hover); } .ev:focus-visible { outline: 2px solid var(--accent); } .ev.ro { cursor: default; } .ev.ro:hover { background: transparent; } .ev.busy { opacity: .5; }
.ev.compact { margin: 0; padding: 0 2px; min-height: 22px; } .ev > span, .ev > a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ev .long { white-space: pre-wrap; }

/* ---------- views bar / table ---------- */
.viewbar { display: flex; align-items: center; gap: 12px; padding: 6px 0 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.views { display: flex; gap: 4px; align-items: center; flex: 1; min-width: 0; flex-wrap: wrap; } /* no overflow here: it would clip the menus that open from this bar */
.vtab { border: 0; background: transparent; height: 30px; padding: 0 11px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.vtab:hover { background: var(--hover); color: var(--ink); } .vtab.on { background: var(--active); color: var(--ink); } .vtab.save { color: var(--accent-ink); } .vtab.icon { padding: 0 6px; }
.tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.search-in { display: flex; align-items: center; gap: 6px; height: 32px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 9px; background: var(--bg); color: var(--muted); }
.search-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); } .search-in input { border: 0; padding: 0; height: 30px; width: 170px; box-shadow: none !important; background: transparent; }
.sel { height: 32px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px 0 10px; border-radius: 7px; background: var(--accent-wash); color: var(--accent-ink); cursor: pointer; font-size: 12.5px; }
.chip b { font-weight: 600; } .chip em { font-style: normal; font-weight: 500; color: var(--ink); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 15px; width: 20px; height: 20px; border-radius: 4px; } .chip button:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.fpanel { display: flex; flex-direction: column; gap: 6px; padding: 6px; } .fpanel select, .fpanel input { width: 100%; }
.colpick { padding: 2px; } .colrow { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: grab; } .colrow:hover { background: var(--hover); }
.table-wrap { overflow: auto; height: calc(100vh - 175px); height: calc(100dvh - 175px); margin: 0 -28px; border-top: 0; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--bg-2); text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.grid th:hover { color: var(--ink); } .grid th.r, .grid td.r { text-align: right; } .grid td.r .ev { justify-content: flex-end; }
.grid td { height: 38px; padding: 0 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--bg); }
.grid tr:hover td { background: var(--bg-2); } .grid tr.selected td { background: var(--accent-wash); }
.grid .sel { width: 40px; min-width: 40px; text-align: center; padding: 0; position: sticky; left: 0; z-index: 1; } .grid th.sel { z-index: 3; }
.grid .first { position: sticky; left: 40px; z-index: 1; min-width: 240px; max-width: 340px; box-shadow: 1px 0 0 var(--line); } .grid th.first { z-index: 3; }
.grid .fill { width: 100%; border-right: 0; }
.rec { display: flex; align-items: center; gap: 9px; font-weight: 550; min-width: 0; } .rec .t { overflow: hidden; text-overflow: ellipsis; } .rec:hover .t { color: var(--accent-ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
.sort-ind { color: var(--accent); margin-left: 4px; }
.bulkbar { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); border-radius: 12px; padding: 8px 8px 8px 16px; min-width: 520px; animation: pop .15s; }

/* ---------- board ---------- */
.board-page { display: flex; flex-direction: column; }
.board-sum { display: flex; gap: 6px; align-items: baseline; margin-left: 10px; } .board-sum span:first-child { font-weight: 650; font-size: 15px; }
.board { display: flex; gap: 12px; overflow-x: auto; padding: 14px 28px 24px; margin: 0 -28px; height: calc(100vh - 140px); height: calc(100dvh - 140px); align-items: flex-start; }
.col { flex: 0 0 280px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; transition: background .12s, border-color .12s; }
.col.over { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.col-h { padding: 11px 12px 8px; } .col-t { display: flex; align-items: center; gap: 7px; font-weight: 600; } .col-t span:first-child { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-t .n { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--bg-3); padding: 0 7px; border-radius: 99px; }
.col-v { font-size: 12.5px; margin-top: 2px; font-weight: 500; font-variant-numeric: tabular-nums; }
.col-bar { height: 3px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; } .col-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8e7ff0); border-radius: 3px; }
.col-body { padding: 4px 8px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; min-height: 60px; }
.col-empty { border: 1.5px dashed var(--line-2); border-radius: 9px; padding: 18px; text-align: center; color: var(--faint); font-size: 12px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; box-shadow: var(--shadow); cursor: grab; transition: box-shadow .12s, transform .12s, border-color .12s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 6px 16px -6px rgba(16, 24, 40, .18); transform: translateY(-1px); } .card.drag { opacity: .4; }
.card.rot { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: linear-gradient(var(--red-wash), var(--card) 40%); }
.card-t { font-weight: 600; line-height: 1.3; margin-bottom: 5px; } .card-org { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-bottom: 7px; } .card-org span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tags { margin-bottom: 7px; } .card-f { display: flex; align-items: center; gap: 7px; } .card-v { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.card-due { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); } .card-due.overdue { color: var(--red); font-weight: 500; } .card-due.today { color: var(--green); font-weight: 500; } .card-due.warn { color: var(--amber); }
.rot-tag { margin-top: 7px; font-size: 11px; color: var(--red); font-weight: 500; }
.dropbar { position: fixed; bottom: 0; left: 0; right: 0; display: flex; gap: 14px; justify-content: center; padding: 18px; z-index: 30; background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 92%, transparent) 30%); animation: up .15s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.drop { width: 260px; height: 64px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px; border: 2px dashed; }
.drop.won { color: var(--green); border-color: var(--green); background: var(--green-wash); } .drop.lost { color: var(--red); border-color: var(--red); background: var(--red-wash); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------- record page ---------- */
.rec-hero { display: flex; align-items: center; gap: 16px; padding: 14px 0 18px; }
.rec-title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; } .rec-title.editable { cursor: text; border-radius: 6px; padding: 0 4px; margin: 0 -4px; } .rec-title.editable:hover { background: var(--hover); }
.title-in { font-size: 24px; font-weight: 700; padding: 0 4px; width: 100%; letter-spacing: -.02em; }
.sub { color: var(--muted); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; } .hero-actions { display: flex; gap: 8px; }
.status { display: inline-flex; height: 21px; align-items: center; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; } .status.open { background: var(--blue-wash); color: var(--blue); } .status.won { background: var(--green-wash); color: var(--green); } .status.lost { background: var(--red-wash); color: var(--red); }
.stagetrack { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; } .st-pipe { color: var(--muted); font-size: 12px; white-space: nowrap; }
.st-steps { display: flex; flex: 1; gap: 3px; min-width: 0; }
.st { flex: 1; height: 32px; border: 0; background: var(--bg-3); color: var(--muted); font-weight: 500; font-size: 12px; cursor: pointer; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; transition: background .12s; }
.st:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 7px 0 0 7px; } .st:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); border-radius: 0 7px 7px 0; }
.st span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .st small { opacity: .75; } .st:hover { background: var(--active); color: var(--ink); }
.st.past { background: color-mix(in srgb, var(--accent) 22%, var(--bg-3)); color: var(--accent-ink); } .st.cur { background: var(--accent); color: #fff; } .st.won { background: var(--green); color: #fff; } .st.lost { background: var(--red); color: #fff; }
.rec-body { display: grid; grid-template-columns: 360px 1fr; gap: 26px; align-items: start; }
.rec-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 60px; max-height: calc(100vh - 70px); overflow-y: auto; padding-right: 4px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 4px 0 6px; }
.panel-h { display: flex; align-items: center; gap: 6px; padding: 9px 14px 6px; font-weight: 600; font-size: 12.5px; } .panel-h .n { color: var(--muted); font-weight: 500; } .panel-h .iconbtn { margin-left: auto; }
.attrs { padding: 0 14px; } .attr { display: grid; grid-template-columns: 122px 1fr; gap: 10px; align-items: center; min-height: 32px; }
.attr-k { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .attr-v { min-width: 0; }
.attr.custom .attr-k::after { content: '•'; color: var(--accent); margin-left: 4px; opacity: .6; }
.relrow { display: flex; align-items: center; gap: 9px; padding: 6px 14px; min-height: 36px; } a.relrow:hover { background: var(--hover); }
.relrow small { display: block; color: var(--muted); font-size: 11.5px; } .relrow.small { font-size: 12.5px; min-height: 30px; } .relrow.tot { border-top: 1px solid var(--line); margin-top: 4px; }
.relrow .dot { width: 8px; height: 8px; border-radius: 50%; } .dot.open { background: var(--blue); } .dot.won { background: var(--green); } .dot.lost { background: var(--red); }
.more { display: block; padding: 6px 14px; color: var(--accent-ink); font-size: 12.5px; }
.clist { padding: 0 14px 4px; } .crow { display: flex; align-items: center; gap: 8px; min-height: 30px; } .crow input { width: 100%; }
.prod-ed { padding: 6px 12px; } .prod-row { display: flex; gap: 4px; margin-bottom: 4px; } .prod-row input { flex: 1; } .prod-row .q { width: 52px; flex: none; } .prod-row .pr { width: 80px; flex: none; }
.composer { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); margin-bottom: 18px; } .composer.inline { margin: 10px 0; box-shadow: none; }
.comp-tabs { display: flex; gap: 2px; padding: 6px 6px 0; border-bottom: 1px solid var(--line); }
.comp-tabs button { border: 0; background: none; padding: 7px 12px 9px; cursor: pointer; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.comp-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.comp-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; } .comp-body textarea { border: 0; padding: 4px 2px; box-shadow: none !important; } .comp-body.email textarea { border: 1px solid var(--line-2); padding: 8px 10px; }
.comp-foot { display: flex; align-items: center; gap: 8px; }
.types { display: flex; gap: 4px; flex-wrap: wrap; } .type { display: flex; align-items: center; gap: 5px; border: 1px solid var(--line-2); background: var(--bg); border-radius: 7px; height: 30px; padding: 0 10px; cursor: pointer; color: var(--muted); font-size: 12.5px; }
.type.on { background: var(--accent-wash); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line-2)); }
.subj { font-weight: 500; font-size: 14px; } .act-row { display: flex; gap: 6px; flex-wrap: wrap; } .act-row > * { flex: 1; min-width: 110px; } .quickdates { display: flex; gap: 5px; flex-wrap: wrap; }
.mrow { display: flex; align-items: center; gap: 8px; } .mrow > span { width: 56px; color: var(--muted); font-size: 12.5px; flex: none; } .mrow input, .mrow select { flex: 1; }
.connect-cta { display: flex; align-items: center; gap: 12px; padding: 4px; color: var(--accent); } .connect-cta b { color: var(--ink); }
.tl-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; overflow-x: auto; }
.tl-tabs button { border: 0; background: none; padding: 8px 10px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.tl-tabs button.on { color: var(--ink); border-bottom-color: var(--ink); } .tl-tabs .n { background: var(--bg-3); border-radius: 99px; padding: 0 6px; font-size: 11px; }
.timeline { display: flex; flex-direction: column; } .tl-group { margin-bottom: 8px; }
.tl-month { font-size: 11.5px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 14px 0 6px; }
.tl-item { display: flex; gap: 11px; padding: 10px 10px; border-radius: 10px; position: relative; align-items: flex-start; } .tl-item:hover { background: var(--bg-2); }
.tl-item:hover .tl-acts { opacity: 1; } .tl-acts { opacity: 0; display: flex; gap: 2px; transition: opacity .1s; }
.tl-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-3); color: var(--muted); display: grid; place-items: center; flex: none; }
.tl-ico.note { background: var(--amber-wash); color: var(--amber); } .tl-ico.mail { background: var(--blue-wash); color: var(--blue); } .tl-ico.mail.out { background: var(--accent-wash); color: var(--accent); } .tl-ico.ch { background: transparent; border: 1px solid var(--line-2); width: 24px; height: 24px; margin: 2px; }
.tl-t { font-weight: 600; } .tl-meta { color: var(--muted); font-size: 12.5px; } .tl-meta b { color: var(--ink); font-weight: 600; } .tl-meta a { color: var(--accent-ink); }
.tl-body { margin-top: 5px; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); line-height: 1.55; }
.tl-item.note .tl-body { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--ink); } .tl-item.pinned .tl-body { border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); background: var(--amber-wash); }
.tl-item.email { cursor: pointer; } .tl-item.done .tl-t { text-decoration: line-through; color: var(--muted); } .tl-item.change { padding: 4px 10px; align-items: center; }
.check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer; display: grid; place-items: center; flex: none; margin-top: 4px; color: #fff; transition: all .12s; }
.check:hover { border-color: var(--green); background: var(--green-wash); } .check.on { background: var(--green); border-color: var(--green); }
.due.overdue { color: var(--red); font-weight: 500; } .due.today { color: var(--green); font-weight: 500; }
.tl-item.editing { flex-direction: column; background: var(--bg-2); }

/* ---------- home ---------- */
.home-h { display: flex; align-items: flex-end; gap: 14px; padding: 28px 0 20px; flex-wrap: wrap; } .home-h > div:first-child { flex: 1; } .home-h h1 { font-size: 26px; font-weight: 700; } .home-h .date { color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 12px; background: var(--card); position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; gap: 8px; } .kpi-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--t) 13%, transparent); color: var(--t); }
.kpi-l { color: var(--muted); font-size: 12.5px; font-weight: 500; } .kpi-v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; } .kpi-s { color: var(--muted); font-size: 12px; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; width: 70px; height: 24px; color: var(--t); opacity: .7; }
.tone-indigo { --t: #5b5bd6; } .tone-blue { --t: #0090ff; } .tone-green { --t: #30a46c; } .tone-amber { --t: #e5a00d; } .tone-pink { --t: #d6409f; } .tone-teal { --t: #12a594; }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; } .span2 { grid-column: span 2; }
.card-p { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 14px 16px; min-width: 0; }
.cp-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .cp-h h3 { font-size: 14px; font-weight: 650; flex: 1; }
.legend { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.lg-won, .b-won { fill: var(--accent); background: var(--accent); } .lg-lost, .b-lost { fill: color-mix(in srgb, var(--red) 55%, var(--bg-3)); background: color-mix(in srgb, var(--red) 55%, var(--bg-3)); } .b-act { fill: var(--teal); }
.chart { position: relative; } .bars, .weekly { width: 100%; height: auto; display: block; } .gridline { stroke: var(--line); stroke-dasharray: 3 3; } .axis { fill: var(--faint); font-size: 10.5px; font-family: var(--font); }
.hovband { fill: transparent; } .hovband.on { fill: var(--bg-3); }
.tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); border-radius: 9px; padding: 8px 10px; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 3; }
.funnel { display: flex; flex-direction: column; gap: 9px; } .fn-row { display: grid; grid-template-columns: 110px 1fr 76px; gap: 10px; align-items: center; font-size: 12.5px; }
.fn-n { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fn-bar { height: 22px; background: var(--bg-3); border-radius: 6px; overflow: hidden; }
.fn-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #8e7ff0); border-radius: 6px; } .fn-v { text-align: right; font-variant-numeric: tabular-nums; } .fn-v small { color: var(--muted); margin-left: 5px; }
.mini-acts .tl-item { padding: 7px 6px; } .overdue-banner { display: flex; align-items: center; gap: 7px; background: var(--red-wash); color: var(--red); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; font-size: 12.5px; font-weight: 500; } .overdue-banner a { text-decoration: underline; }
.close-row { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 8px; } .close-row:hover { background: var(--hover); } .close-row small { display: block; color: var(--muted); font-size: 11.5px; } .close-row b { font-weight: 550; }
.lead-row { display: flex; align-items: center; gap: 9px; padding: 6px 2px; } .lead-row small { display: block; color: var(--muted); font-size: 11.5px; } .rank { width: 18px; color: var(--faint); font-weight: 600; font-size: 12px; text-align: center; }
.lbar, .rbar { width: 80px; height: 6px; background: var(--bg-3); border-radius: 6px; overflow: hidden; } .lbar i { display: block; height: 100%; background: var(--green); } .rbar i { display: block; height: 100%; background: var(--red); opacity: .7; }
.reason { display: flex; align-items: center; gap: 10px; padding: 6px 2px; font-size: 12.5px; } .act-types { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; } .act-types .pill { cursor: default; height: 24px; text-transform: capitalize; }

/* ---------- tasks / inbox ---------- */
.agenda { max-width: 900px; padding-top: 6px; } .ag-group { margin-top: 10px; } .ag-h { display: flex; align-items: center; gap: 8px; font-weight: 650; padding: 10px 10px 4px; } .ag-h.red { color: var(--red); } .ag-h.blue { color: var(--accent); }
.ag-h .n { color: var(--muted); font-weight: 500; font-size: 12px; } .wk { margin-left: 8px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-top: 14px; } .wday { border: 1px solid var(--line); border-radius: 10px; min-height: 420px; padding: 6px; background: var(--bg-2); }
.wday.today { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-wash); } .wd-h { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 8px; color: var(--muted); } .wd-h b { font-size: 18px; color: var(--ink); } .wday.today .wd-h b { color: var(--accent); }
.wev { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 7px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); margin-bottom: 5px; font-size: 12px; cursor: pointer; }
.wev:hover { box-shadow: var(--shadow); } .wev.done { opacity: .5; text-decoration: line-through; } .wev .wt { color: var(--muted); font-variant-numeric: tabular-nums; } .wev .ws { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wev.t-call { border-left-color: var(--green); } .wev.t-meeting { border-left-color: var(--blue); } .wev.t-deadline { border-left-color: var(--red); } .wev.t-email { border-left-color: var(--pink); }
.link-pick { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.mail-list { display: flex; flex-direction: column; max-width: 1000px; padding-top: 6px; }
.mrow-x, .mrow { display: flex; gap: 12px; padding: 11px 12px; border: 0; background: transparent; text-align: left; border-radius: 10px; cursor: pointer; width: 100%; } .mrow:hover { background: var(--bg-2); }
.mrow.unread .mr1 b, .mrow.unread .mr2 { font-weight: 700; } .mrow.unread { background: color-mix(in srgb, var(--accent-wash) 50%, transparent); }
.mr1 { display: flex; justify-content: space-between; gap: 10px; } .mr2 { font-weight: 500; margin-top: 1px; } .mr3 { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mr4 { margin-top: 4px; }
.hero-empty { max-width: 560px; margin: 60px auto; text-align: center; } .he-ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 16px; background: linear-gradient(135deg, var(--accent), #8e7ff0); color: #fff; box-shadow: 0 12px 30px -10px var(--accent); }
.hero-empty h2 { font-size: 21px; margin-bottom: 8px; } .hero-empty p { color: var(--muted); line-height: 1.6; } .he-acts { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.mail-read .mr-head { display: flex; gap: 12px; align-items: flex-start; } .mr-links, .mr-att { margin: 10px 0 0; display: flex; gap: 4px; flex-wrap: wrap; } .att { display: inline-flex; gap: 4px; align-items: center; background: var(--bg-3); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.mr-body { width: 100%; height: 52vh; border: 1px solid var(--line); border-radius: 10px; margin-top: 12px; background: #fff; }
.mr-thread { margin-top: 10px; } .thr { display: flex; gap: 10px; align-items: center; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: 7px; cursor: pointer; text-align: left; font-size: 12.5px; } .thr:hover, .thr.on { background: var(--hover); }

/* ---------- modal & palette & toasts ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15, 15, 20, .38); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: start center; padding-top: 9vh; animation: fade .12s; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); animation: pop .16s ease-out; max-height: 84vh; display: flex; flex-direction: column; margin-bottom: 40px; }
.modal-h { display: flex; align-items: center; padding: 14px 16px 10px 20px; } .modal-h h3 { flex: 1; font-size: 15.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-b { padding: 4px 20px 18px; overflow-y: auto; } .modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 14px 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; } .span2 { grid-column: span 2; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .fld > span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); } .fld input, .fld select, .fld textarea { width: 100%; }
.input-like { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 35px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 7px; background: var(--bg); cursor: pointer; text-align: left; }
.palette { width: min(640px, calc(100vw - 24px)); background: var(--card); border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; animation: pop .14s ease-out; }
.pal-bg { padding-top: 14vh; } .pl-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); } .pl-in input { flex: 1; border: 0; height: 52px; font-size: 15px; box-shadow: none !important; background: transparent; padding: 0; }
.pl-list { max-height: 400px; overflow-y: auto; padding: 6px; } .pl-sec { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); padding: 8px 10px 4px; }
.pl-item { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; min-height: 40px; }
.pl-item.hl { background: var(--hover); } .pl-item small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pl-ico { width: 26px; height: 26px; border-radius: 7px; background: var(--bg-3); display: grid; place-items: center; color: var(--muted); }
.pl-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; background: var(--bg-2); } .pl-foot kbd { margin-right: 3px; }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 300; }
.toast { display: flex; align-items: center; gap: 9px; background: #1c2024; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); animation: up .2s ease-out; max-width: 420px; font-weight: 500; }
[data-theme=dark] .toast { background: #2a2a30; border: 1px solid #3a3a42; } .toast.ok .ico { color: #4cc38a; } .toast.err .ico { color: #ff6369; }
.keys .krow { display: flex; align-items: center; gap: 12px; padding: 6px 0; } .keys kbd { min-width: 54px; text-align: center; }

/* ---------- auth ---------- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; } .auth.single { grid-template-columns: 1fr; place-items: center; background: var(--bg-2); }
.auth-art { background: radial-gradient(1200px 600px at 10% 10%, #7a6ff0 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #3e63dd 0%, transparent 60%), linear-gradient(135deg, #2b2a7a, #1a2557); color: #fff; display: grid; place-items: center; position: relative; overflow: hidden; }
.aa-inner { max-width: 440px; padding: 40px; } .aa-inner h2 { font-size: 36px; line-height: 1.12; margin: 26px 0 12px; letter-spacing: -.025em; } .aa-inner p { color: rgba(255, 255, 255, .75); font-size: 15px; }
.aa-cards { margin-top: 40px; position: relative; height: 150px; } .aa-card { position: absolute; display: flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .12); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; padding: 12px 16px; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); animation: float 6s ease-in-out infinite; }
.aa-card .dot { width: 9px; height: 9px; border-radius: 50%; } .aa-card.s2 { top: 52px; left: 90px; animation-delay: -2s; } .aa-card.s3 { top: 104px; left: 30px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-6px); } }
.auth-box { width: min(380px, calc(100vw - 40px)); margin: auto; display: flex; flex-direction: column; gap: 14px; } .auth-box h1 { font-size: 24px; } .auth-box .link { align-self: center; }
.ab-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; } .ab-brand b { font-size: 17px; } .ab-brand span { color: var(--muted); font-weight: 500; background: var(--bg-3); border-radius: 6px; padding: 1px 7px; font-size: 12px; }
.auth-err { background: var(--red-wash); color: var(--red); padding: 9px 12px; border-radius: 8px; font-weight: 500; font-size: 13px; }

/* ---------- settings ---------- */
.set-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 28px; padding-top: 10px; } .set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 70px; align-self: start; }
.set-nav a { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; } .set-nav a:hover { background: var(--hover); } .set-nav a.on { background: var(--active); color: var(--ink); }
.set-sep { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin: 16px 10px 4px; }
.set-body { max-width: 900px; display: flex; flex-direction: column; gap: 16px; } .set-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; background: var(--card); }
.set-card h2 { font-size: 15.5px; margin-bottom: 12px; } .sc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .sc-h h2 { margin: 0; flex: 1; }
.set-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; align-items: center; }
.acc { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); } .acc:first-of-type { border-top: 0; }
.acc-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; flex: none; }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; } .conn { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; } .conn p { margin: 0 0 6px; }
.conn-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 4px; } .conn-logo.ms { grid-template-columns: 1fr 1fr; gap: 2px; padding: 7px; background: var(--bg-3); }
.conn-logo.ms span { display: block; } .conn-logo.ms span:nth-child(1) { background: #f25022; } .conn-logo.ms span:nth-child(2) { background: #7fba00; } .conn-logo.ms span:nth-child(3) { background: #00a4ef; } .conn-logo.ms span:nth-child(4) { background: #ffb900; }
.conn-logo.imap { background: var(--blue-wash); color: var(--blue); }
.imap-form, .tpl-ed { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px; background: var(--bg-2); display: flex; flex-direction: column; gap: 12px; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; } .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; } .sw.on { box-shadow: 0 0 0 2px var(--ink); }
.team-dot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
table.simple { width: 100%; border-collapse: collapse; margin-top: 10px; } .simple th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.simple td { padding: 8px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; } .simple td small { display: block; } .simple .acts { text-align: right; white-space: nowrap; } .simple .acts .btn { margin-left: 4px; } .simple select { height: 30px; padding: 0 6px; }
.otp { font: 600 22px ui-monospace, Menlo, monospace; letter-spacing: .08em; background: var(--bg-3); border-radius: 10px; padding: 14px; text-align: center; margin: 12px 0; user-select: all; }
.stage-strip { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; } .stage-strip span { background: var(--bg-3); border-radius: 6px; padding: 1px 8px; font-size: 12px; } .stage-strip small { color: var(--muted); margin-left: 4px; }
.stage-ed { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); cursor: grab; } .stage-ed > input { flex: 1; } .stage-ed label { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); white-space: nowrap; } .stage-ed input.sm { width: 52px; }
.stats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 14px; } .stats div { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; } .stats b { display: block; font-size: 18px; } .stats span { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.audit { max-height: 360px; overflow-y: auto; font-size: 12.5px; } .au { display: grid; grid-template-columns: 140px 140px 140px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.drop-x, .drop:not(.won):not(.lost) { }
label.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px; border: 2px dashed var(--line-2); border-radius: 12px; cursor: pointer; color: var(--accent); width: auto; height: auto; font-size: 14px; } label.drop input { display: none; } label.drop:hover { border-color: var(--accent); background: var(--accent-wash); }
.map-grid { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; } .map-row { display: grid; grid-template-columns: 1fr 20px 1fr; gap: 10px; align-items: center; } .map-src { font-weight: 500; } .map-src small { display: block; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.errs { color: var(--red); font-size: 12.5px; max-height: 200px; overflow-y: auto; } .simple-list .sl-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1300px) { .kpis { grid-template-columns: repeat(3, 1fr); } .dash-grid { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
@media (max-width: 1000px) { .rec-body { grid-template-columns: 1fr; } .rec-side { position: static; max-height: none; } .set-wrap { grid-template-columns: 1fr; } .set-nav { position: static; flex-direction: row; flex-wrap: wrap; } .set-sep { display: none; } .week { grid-template-columns: 1fr; } .wday { min-height: 0; } }
@media (max-width: 760px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 90; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .collapsed .nl, .collapsed .ws-n, .collapsed .sb-sec, .collapsed .nb { display: revert; } .collapsed .nav { justify-content: flex-start; padding: 0 9px; } .sb-col { display: none; }
  .mnav .sidebar { transform: none; } .mnav .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 80; }
  .mnav-btn { display: grid; place-items: center; position: fixed; top: 10px; left: 10px; z-index: 20; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--card); box-shadow: var(--shadow); }
  .page { padding: 0 14px 60px; } .page-h { margin: 0 -14px; padding: 10px 14px 10px 56px; flex-wrap: wrap; } .home-h { padding-left: 46px; }
  .kpis { grid-template-columns: 1fr 1fr; } .dash-grid { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .table-wrap, .board { margin: 0 -14px; } .board { padding: 12px 14px; } .col { flex-basis: 82vw; }
  .search-in input { width: 120px; } .form-grid { grid-template-columns: 1fr; } .form-grid .span2 { grid-column: auto; }
  .bulkbar { min-width: 0; left: 10px; right: 10px; transform: none; flex-wrap: wrap; } .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .connect-grid { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(3, 1fr); } .rec-hero { flex-wrap: wrap; } .stagetrack { flex-direction: column; align-items: stretch; } .st { padding: 0 6px; font-size: 11px; }
  .au { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================================================
   LEDGER — the unslop pass (unslop by Damir Sokolovsky, @heydamir, CC BY 4.0).
   Direction: dependable, exact, a little nautical. Quiet ink chrome, Allseas blue used rarely, IBM Plex,
   manifest-style references in mono as the one signature detail.
   ===================================================================================================== */
html, body { background: var(--bg); }
body { font-size: 14px; line-height: 20px; letter-spacing: 0; font-feature-settings: normal; }
h1, h2, h3 { letter-spacing: 0; font-weight: 500; }
.num, .mono, code, .ref-no, .kpi-v, .col-v, .card-v, .fn-v, .board-sum span:first-child, .count, .nb, .n, .hint { font-variant-numeric: tabular-nums; }
.num, .kpi-v, .col-v, .card-v, .fn-v b, .board-sum span:first-child, .ref-no, .count { font-family: var(--mono); }
.ref-no { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; white-space: nowrap; }
* { transition-timing-function: var(--ease); }

/* labels: sentence case, no tracking */
.sb-sec, .pop-h, .tl-month, .pl-sec, .set-sep { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--muted); }
.sb-sec { margin: 24px 8px 8px; } .tl-month { padding: 16px 0 8px; } .pop-h { padding: 8px 8px 4px; }
.grid th { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; background: var(--bg-2); color: var(--muted); }

/* buttons: control radius, quiet surfaces, one accent */
.btn { height: 32px; padding: 0 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: background-color 150ms var(--ease), border-color 150ms var(--ease), transform 120ms var(--ease); }
.btn:hover { background: var(--hover); } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary:hover { background: var(--accent-2); }
[data-theme=dark] .btn.primary { background: #eef0f5; border-color: #eef0f5; color: #0b0d14; box-shadow: none; } [data-theme=dark] .btn.primary:hover { background: #ffffff; }
.btn.won { background: var(--card); color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, var(--line-2)); box-shadow: var(--shadow); }
.btn.won:hover { background: var(--green-wash); } .btn.lostb { color: var(--red); }
.btn.sm { height: 28px; padding: 0 8px; } .btn.big { height: 40px; }
.btn.active { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 30%, var(--line-2)); color: var(--accent-ink); }
.iconbtn { width: 32px; height: 32px; border-radius: 8px; } .iconbtn.xs { width: 24px; height: 24px; border-radius: 6px; }
.btn:focus-visible, .iconbtn:focus-visible, .nav:focus-visible, .vtab:focus-visible, .opt:focus-visible, .menu-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { background: var(--bg-3); border-radius: 8px; padding: 2px; } .seg button { height: 28px; border-radius: 6px; padding: 0 8px; }
.seg button.on { background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.pill { height: 28px; padding: 0 12px; border-radius: 6px; background: var(--card); border-color: var(--line-2); }
input, select, textarea { border-radius: 8px; background: var(--card); padding: 8px 12px; }
.search-in { height: 32px; border-radius: 8px; background: var(--card); padding: 0 8px; }

/* sidebar: the densest part, 32px rows, one icon column */
.shell { grid-template-columns: 256px 1fr; } .shell.collapsed { grid-template-columns: 64px 1fr; }
.sidebar { background: var(--side); border-right: 1px solid var(--line); }
.sb-top { padding: 12px 8px 8px 12px; } .ws { padding: 4px; gap: 8px; border-radius: 8px; }
.ws-n b { font-size: 15px; font-weight: 500; } .ws-n small { font-size: 12px; }
.sb-search { margin: 4px 12px 12px; height: 32px; border-radius: 8px; background: var(--card); border-color: var(--line-2); padding: 0 8px; }
.sb-search kbd.nl { flex: 0 0 auto; }
.sb-nav { padding: 0 12px; } .nav { height: 32px; padding: 0 8px; gap: 8px; border-radius: 8px; margin-bottom: 2px; font-weight: 400; color: var(--ink-2); }
.nav.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-weight: 500; }
[data-theme=dark] .nav.on { background: var(--raised); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.nav .ico, .nav.on .ico { color: var(--muted); } .nav.on .ico { color: var(--ink); }
.nb { background: var(--red); font-family: var(--mono); font-weight: 500; font-size: 11px; min-width: 20px; height: 18px; border-radius: 6px; }
.nb.soft { background: transparent; color: var(--muted); }
.ldot { border-radius: 50%; width: 8px; height: 8px; margin: 0 4px; }
.sb-bot { padding: 8px 12px 12px; } .me { padding: 4px; gap: 8px; } .me b { font-weight: 500; }

/* page */
.page { padding: 0 32px 64px; } .page-h { margin: 0 -32px; padding: 12px 32px; min-height: 64px; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: none; }
.page-h.slim { min-height: 56px; }
.ph-title { gap: 12px; } .ph-title h1 { font-size: 20px; font-weight: 500; }
.obj-ico, .obj-ico.xs, .obj-ico.lg { color: var(--muted); background: var(--bg-3); box-shadow: none; border-radius: 8px; } .obj-ico { width: 28px; height: 28px; } .obj-ico.xs { width: 20px; height: 20px; border-radius: 6px; } .obj-ico.lg { width: 48px; height: 48px; border-radius: 12px; }
.count { background: transparent; color: var(--muted); padding: 0; font-size: 13px; font-weight: 400; }
.viewbar { padding: 12px 0; gap: 12px; } .vtab { height: 32px; padding: 0 12px; border-radius: 8px; font-weight: 400; }
.vtab.on { background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); font-weight: 500; }
.chips { padding: 0 0 12px; } .chip { border-radius: 6px; height: 28px; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); } .chip b { font-weight: 500; }
.chip em { color: var(--ink); }

/* table */
.table-wrap { margin: 0 -32px; border-top: 1px solid var(--line); height: calc(100vh - 170px); height: calc(100dvh - 170px); }
.grid td { height: 40px; background: var(--card); } .grid tr:hover td { background: var(--bg-2); } .grid tr.selected td { background: var(--accent-wash); }
.grid .sel, .grid .first { background: var(--card); } .grid th.sel, .grid th.first { background: var(--bg-2); }
.rec { gap: 8px; font-weight: 500; } .rec .ref-no { margin-left: auto; padding-left: 8px; }
.rec:hover .t { color: var(--ink); text-decoration-color: var(--line-2); }

/* tags: neutral chip, the colour lives only in the dot */
.tag { background: var(--bg-3); color: var(--ink-2); border-radius: 6px; height: 22px; padding: 0 8px; font-weight: 400; }
.tag i { background: var(--c); }
.listpill { background: var(--bg-3); color: var(--ink-2); border-radius: 6px; }
.stage-pill { border-radius: 6px; font-weight: 400; }
.status { border-radius: 6px; font-weight: 500; height: 22px; } .status.open { background: var(--bg-3); color: var(--ink-2); }
.status.won { background: var(--green-wash); color: var(--green); } .status.lost { background: var(--red-wash); color: var(--red); }
.badge.red { border-radius: 6px; font-family: var(--mono); font-weight: 500; }

/* board: the one rich moment is the stage values */
.board { margin: 0 -32px; padding: 16px 32px 24px; gap: 12px; }
.col { flex-basis: 280px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.col-h { padding: 12px 12px 8px; } .col-t { gap: 8px; font-weight: 500; } .col-t .n { background: transparent; padding: 0; font-family: var(--mono); color: var(--muted); }
.col-v { font-size: 13px; margin-top: 4px; font-weight: 400; color: var(--ink); }
.col-bar { height: 4px; margin-top: 8px; background: var(--bg-3); } .col-bar i { background: var(--accent); box-shadow: none; opacity: .85; }
.col.over { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.col-body { padding: 4px 8px 12px; gap: 8px; }
.card { border-radius: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color 150ms var(--ease); }
.card:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line-2); }
.card.rot { background: var(--card); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.card-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 4px; } .card-top .card-t { flex: 1; margin: 0; }
.card-t { font-weight: 500; line-height: 20px; } .card-org { margin-bottom: 8px; gap: 8px; }
.card-v { font-size: 13px; font-weight: 500; } .rot-tag { margin-top: 8px; font-size: 12px; }
.board-sum { gap: 8px; margin-left: 12px; } .board-sum span:first-child { font-size: 15px; font-weight: 500; }
.drop { border-radius: 12px; border-width: 1px; border-style: dashed; height: 64px; font-weight: 500; }
.dropbar { background: linear-gradient(transparent, var(--bg) 40%); }

/* record page */
.rec-hero { gap: 16px; padding: 16px 0 20px; } .rec-title { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -.01em; }
.title-in { font-size: 26px; font-weight: 500; } .sub { margin-top: 4px; gap: 8px; } .sub .ref-no { color: var(--muted); }
.stagetrack { margin-bottom: 20px; gap: 12px; } .st { height: 32px; background: var(--bg-3); font-weight: 400; color: var(--ink-2); }
.st.past { background: color-mix(in srgb, var(--accent) 14%, var(--bg-3)); color: var(--accent-ink); } .st.cur { background: var(--accent); color: #fff; font-weight: 500; }
[data-theme=dark] .st.cur { color: #0b0d14; } .st.won { background: var(--green); } .st.lost { background: var(--red); }
.rec-body { gap: 24px; grid-template-columns: 352px 1fr; } .rec-side { gap: 16px; top: 72px; }
.panel { border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 4px 0 8px; box-shadow: var(--shadow); }
.panel-h { padding: 12px 16px 8px; font-weight: 500; font-size: 13px; } .attrs { padding: 0 16px; } .attr { grid-template-columns: 120px 1fr; gap: 12px; min-height: 32px; }
.attr.custom .attr-k::after { display: none; } .relrow { padding: 8px 16px; gap: 8px; } .clist { padding: 0 16px 4px; }
.composer { border-radius: 12px; background: var(--card); border-color: var(--line-2); margin-bottom: 20px; }
.comp-tabs { padding: 4px 8px 0; } .comp-tabs button { padding: 8px 12px; font-weight: 400; } .comp-tabs button.on { font-weight: 500; border-bottom-color: var(--ink); }
.comp-body { padding: 12px 16px 16px; gap: 8px; } .type { height: 32px; padding: 0 12px; border-radius: 8px; } .type.on { background: var(--accent-wash); color: var(--accent-ink); }
.tl-tabs button.on { border-bottom-color: var(--ink); font-weight: 500; } .tl-tabs button { font-weight: 400; }
.tl-item { padding: 12px; gap: 12px; border-radius: 8px; } .tl-t { font-weight: 500; } .tl-meta b { font-weight: 500; }
.tl-ico, .tl-ico.note, .tl-ico.mail, .tl-ico.mail.out { background: var(--bg-3); color: var(--muted); width: 28px; height: 28px; }
.tl-item.note .tl-body { background: var(--bg-2); border-color: var(--line); border-radius: 8px; padding: 12px; }
.tl-item.pinned .tl-body { background: var(--bg-2); border-color: var(--line-2); border-left: 2px solid var(--ink-2); }
.check.on { background: var(--green); border-color: var(--green); }

/* home: four stats, one main chart, then lists */
.home-h { padding: 32px 0 24px; gap: 16px; } .home-h h1 { font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -.01em; } .home-h .date { font-weight: 400; margin-bottom: 4px; }
.kpis { grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.kpi { border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 16px 20px; box-shadow: var(--shadow); }
.kpi-l { font-size: 13px; font-weight: 400; color: var(--ink-2); } .kpi-v { font-size: 28px; line-height: 36px; font-weight: 500; margin-top: 8px; letter-spacing: -.01em; }
.kpi-s { font-size: 13px; color: var(--muted); margin-top: 4px; } .kpi-s .up { color: var(--green); } .kpi-s .down { color: var(--red); }
.dash-grid { grid-template-columns: 2fr 1fr; gap: 12px; } .dash-grid.three { grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.card-p { border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 16px 20px; box-shadow: var(--shadow); }
.cp-h { margin-bottom: 12px; gap: 12px; } .cp-h h3 { font-size: 15px; font-weight: 500; }
.legend { gap: 8px; font-size: 12px; } .legend i { width: 8px; height: 8px; border-radius: 2px; margin-left: 8px; }
.lg-won { background: var(--chart); } .lg-cur { background: var(--accent); } .lg-lost { background: var(--chart-2); }
.b-won { fill: var(--chart); } .b-won.cur { fill: var(--accent); } .b-lost { fill: var(--chart-2); } .b-act { fill: var(--chart); }
.axis { font-family: var(--mono); font-size: 10px; } .gridline { stroke: var(--line); stroke-dasharray: none; } .baseline { stroke: var(--line-2); }
.hovband.on { fill: var(--bg-3); } .tip { border-radius: 8px; background: var(--card); box-shadow: var(--shadow-lg); }
.chart-meta { display: flex; gap: 24px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.chart-meta b { font-family: var(--mono); font-weight: 500; color: var(--ink); margin-left: 4px; }
.fn-row { grid-template-columns: 120px 1fr 96px; gap: 12px; } .fn-bar { height: 8px; background: var(--bg-3); border-radius: 4px; } .fn-bar i { background: var(--chart); border-radius: 4px; box-shadow: none; }
.fn-row.top .fn-bar i { background: var(--accent); } .fn-v b { font-weight: 500; }
.lbar i { background: var(--chart); } .lead-row:first-child .lbar i { background: var(--accent); } .rbar i { background: var(--chart-2); opacity: 1; }
.lbar, .rbar { height: 4px; } .rank { font-family: var(--mono); font-weight: 400; } .lead-row { gap: 8px; padding: 8px 0; } .reason { gap: 12px; padding: 8px 0; }
.close-row { padding: 8px; gap: 12px; } .close-row b { font-weight: 500; }
.overdue-banner { border-radius: 8px; padding: 8px 12px; font-weight: 400; } .act-list .reason .ico { color: var(--muted); }

/* empty states, overlays, settings, auth */
.empty-ico, .he-ico { background: var(--bg-3); color: var(--muted); box-shadow: none; border-radius: 12px; }
.empty-t { font-weight: 500; } .hero-empty h2 { font-weight: 500; }
.pop { border-radius: 12px; background: var(--card); border-color: var(--line-2); animation: pop 180ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.modal { border-radius: 16px; background: var(--card); } .modal-h h3 { font-weight: 500; } .modal-f { background: var(--bg-2); border-radius: 0 0 16px 16px; }
.modal-bg { background: rgba(11, 13, 20, .32); backdrop-filter: none; }
.palette { border-radius: 16px; background: var(--card); } .pl-item.hl { background: var(--hover); } .pl-item b { font-weight: 500; }
.toast { border-radius: 8px; background: #111827; } [data-theme=dark] .toast { background: #1a1e28; }
.set-card { border-radius: 12px; background: var(--card); border: 1px solid var(--line); padding: 20px 24px; box-shadow: var(--shadow); } .set-card h2 { font-weight: 500; }
.set-nav a { height: 32px; padding: 0 8px; gap: 8px; border-radius: 8px; font-weight: 400; } .set-nav a.on { background: var(--card); box-shadow: 0 0 0 1px var(--line-2); font-weight: 500; }
.acc-ico { background: var(--bg-3); color: var(--muted); border-radius: 8px; }
.stats div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; } .stats b { font-family: var(--mono); font-weight: 500; }
.auth, .auth.single { grid-template-columns: 1fr; place-items: center; background: var(--bg); }
.auth-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); width: min(400px, calc(100vw - 32px)); gap: 16px; }
.auth-box h1 { font-size: 22px; font-weight: 500; } .ab-brand { margin-bottom: 8px; gap: 8px; } .ab-brand b { font-weight: 500; } .ab-brand span { display: none; }
.wday.today { box-shadow: none; border-color: var(--ink-2); } .wday.today .wd-h b { color: var(--ink); } .wd-h b { font-family: var(--mono); font-weight: 500; }
.wev { border-left-color: var(--ink-2); } .wev.t-call, .wev.t-meeting, .wev.t-deadline, .wev.t-email { border-left-color: var(--ink-2); }
.mail-list .mrow { border-radius: 8px; } .mrow.unread .mr1 b, .mrow.unread .mr2 { font-weight: 600; } .mrow.unread { background: var(--card); }
.brandmark { color: var(--accent); flex: none; } [data-theme=dark] .brandmark { color: #eef0f5; }
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation-duration: 0s !important; } }
@media (max-width: 1300px) { .kpis { grid-template-columns: repeat(2, 1fr); } .dash-grid, .dash-grid.three { grid-template-columns: 1fr 1fr; } .span2 { grid-column: span 2; } }
@media (max-width: 760px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .page { padding: 0 16px 64px; } .page-h { margin: 0 -16px; padding: 12px 16px 12px 56px; } .table-wrap, .board { margin: 0 -16px; } .board { padding: 12px 16px; }
  .kpis { grid-template-columns: 1fr 1fr; } .dash-grid, .dash-grid.three { grid-template-columns: 1fr; } .span2 { grid-column: auto; } .home-h { padding-left: 44px; } .kpi-v { font-size: 22px; line-height: 28px; }
}
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ---------- tables: search, filter panel, grouping, resize, reorder, layouts ---------- */
.search-in.wide input { width: 220px; }
table.grid { table-layout: fixed; width: 100%; }
.grid td { max-width: none; }
.grid th { padding: 0; position: sticky; }
.grid th .th { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 4px; width: 100%; height: 36px; padding: 0 12px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid th.r .th { justify-content: flex-end; } .grid th .th:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grid th[draggable=true] { cursor: grab; } .grid th.dragging { opacity: .45; }
.grid th.drop-target { box-shadow: inset 2px 0 0 var(--accent); }
.rz { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 4; }
.rz::after { content: ''; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; transition: background-color 120ms var(--ease); }
.grid th:hover .rz::after, body.resizing .rz::after { background: var(--line-2); } .rz:hover::after { background: var(--accent) !important; }
body.resizing, body.resizing * { cursor: col-resize !important; user-select: none; }
.vtab .ico { color: var(--muted); } .vdef { font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
tbody.grp .grp-h td { background: var(--bg-2); cursor: pointer; height: 40px; position: sticky; left: 0; }
tbody.grp .grp-h:hover td { background: var(--hover); }
.grp-in { display: flex; align-items: center; gap: 8px; position: sticky; left: 12px; width: max-content; font-weight: 500; }
.grp-n { font-family: var(--mono); color: var(--muted); font-weight: 400; font-size: 12px; } .grp-v { font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-weight: 400; }
.grp-more td, .grp-load { background: var(--card); padding-left: 52px !important; height: 36px; }
.fpanel2 { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.fp-match { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fp-row { display: grid; grid-template-columns: 48px 150px 150px 1fr 24px; gap: 8px; align-items: center; }
.fp-row select, .fp-row input, .fp-val .input-like { width: 100%; height: 32px; padding: 0 8px; } .fp-val .pop-wrap { display: block; }
.fp-join { font-size: 12px; color: var(--muted); text-align: right; } .fp-empty { padding: 8px 4px; }
.fp-foot { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.fp-picked { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 8px 0; } .fp-picked .tag i { background: var(--accent); }
.input-like { height: 32px; } .input-like .clamp1 { max-width: 200px; }
.scope-pick { display: flex; flex-direction: column; gap: 8px; }
.scope-opt { display: grid; grid-template-columns: 16px 16px 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.scope-opt.on { border-color: var(--accent); background: var(--accent-wash); } .scope-opt b { font-weight: 500; display: block; } .scope-opt small { color: var(--muted); font-size: 12px; }
.scope-opt select { grid-column: 3; margin-top: 4px; } .scope-opt .ico { color: var(--muted); }
@media (max-width: 760px) { .search-in.wide input { width: 120px; } .fp-row { grid-template-columns: 1fr 1fr; } .fp-join { display: none; } }

/* ---------- notifications, insight, forecast, goals, automations, duplicates ---------- */
.bell { position: relative; } .bell-n { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font: 500 10px/16px var(--mono); text-align: center; }
.notif { width: 100%; } .notif-h { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); }
.notif-h b { font-weight: 500; } .notif-list { max-height: 420px; overflow-y: auto; padding: 4px; }
.notif-i { display: flex; gap: 12px; padding: 8px; border-radius: 8px; align-items: flex-start; } .notif-i:hover { background: var(--hover); }
.notif-i.unread { background: var(--accent-wash); } .notif-i .nt { display: block; font-size: 13px; line-height: 18px; } .notif-i small { color: var(--muted); font-size: 12px; }
.notif-ico { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-3); color: var(--muted); display: grid; place-items: center; flex: none; }
.pad-x { padding: 0 16px 8px; }
.hscore { margin-left: auto; font: 500 13px var(--mono); padding: 0 8px; border-radius: 6px; height: 22px; line-height: 22px; }
.hscore.good { background: var(--green-wash); color: var(--green); } .hscore.fair { background: var(--amber-wash); color: var(--amber); } .hscore.poor { background: var(--red-wash); color: var(--red); }
.next-step { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; } .next-step b { font-weight: 500; } .next-step .ico { margin-top: 2px; color: var(--accent); }
.reasons { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 13px; } .reasons li { margin: 2px 0; }
.rel { margin-left: auto; font-size: 12px; font-weight: 500; padding: 0 8px; border-radius: 6px; height: 22px; line-height: 22px; background: var(--bg-3); color: var(--ink-2); }
.rel-very-strong, .rel-strong { background: var(--green-wash); color: var(--green); } .rel-weak, .rel-none { color: var(--muted); }
.rel-facts { display: flex; gap: 16px; margin-bottom: 4px; } .rel-facts b { font-family: var(--mono); font-weight: 500; }
.rel-best { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; align-items: center; } .rel-best .who .muted { margin-left: 4px; }
.card-health { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin: 0 0 8px; } .card-health i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.card-health.fair i { background: var(--amber); } .card-health.poor i { background: var(--red); }
.brief p { margin: 0 0 12px; line-height: 22px; } .brief h4 { margin: 16px 0 4px; font-size: 13px; font-weight: 500; color: var(--muted); } .brief ul { margin: 0; padding-left: 20px; } .brief li { margin: 4px 0; } .brief a { color: var(--accent-ink); }
.fc-bar { display: flex; align-items: center; gap: 12px; padding: 0 0 4px; } .board.forecast { height: calc(100vh - 210px); height: calc(100dvh - 210px); }
.col.late { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); } .won-t { color: var(--green); } .card.is-won { border-left: 2px solid var(--green); }
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; padding-top: 16px; }
.goal-fig { margin: 12px 0 8px; } .goal-fig b { font: 500 26px/32px var(--mono); }
.goal-bar { position: relative; height: 8px; background: var(--bg-3); border-radius: 4px; margin-bottom: 8px; } .goal-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.goal-exp { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--ink-2); border-radius: 1px; } .up { color: var(--green); } .down { color: var(--red); }
.autos, .dups { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; max-width: 1100px; }
.auto { display: flex; align-items: center; gap: 12px; } .auto-l { flex: 1; min-width: 0; } .auto-l b { font-weight: 500; } .auto-s { color: var(--ink-2); margin: 4px 0; font-size: 13px; } .auto-s b { font-weight: 500; }
.auto-step { display: flex; gap: 12px; margin-top: 16px; } .step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font: 500 12px var(--mono); flex: none; }
.auto-step b { font-weight: 500; } .row-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .row-inline input.xs { width: 56px; }
.act-card { border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px 12px; margin: 8px 0; background: var(--bg-2); } .act-card textarea { margin-top: 8px; }
.dup-r { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--line); cursor: pointer; } .dup-r a { font-weight: 500; }
/* help */
.help-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding-top: 16px; }
.help-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 80px; align-self: start; } .help-nav .search-in { margin-bottom: 8px; } .help-nav .search-in input { width: 100%; }
.help-nav a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: 8px; color: var(--ink-2); } .help-nav a:hover { background: var(--hover); } .help-nav a.on { background: var(--card); box-shadow: 0 0 0 1px var(--line-2); color: var(--ink); font-weight: 500; }
.help-art { max-width: 820px; } .help-art h2 { font-size: 24px; line-height: 32px; margin-bottom: 12px; } .help-art h3 { font-size: 16px; margin: 24px 0 8px; }
.help-art p, .help-art li { line-height: 24px; color: var(--ink-2); } .help-art li { margin: 4px 0; }
.help-art figure { margin: 24px 0; } .help-art img { width: 100%; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); display: block; }
.help-art figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; } .help-pager { display: flex; justify-content: space-between; margin: 32px 0 16px; padding-top: 16px; border-top: 1px solid var(--line); } .help-pager a { color: var(--accent-ink); }
@media (max-width: 900px) { .help-wrap { grid-template-columns: 1fr; } .help-nav { position: static; } }
.sel { padding: 0 8px; height: 32px; }
/* settings → fields */
.co-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 12px; }
.co-tab { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); cursor: pointer; font-weight: 500; color: var(--ink-2); }
.co-tab i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); } .co-tab.on { border-color: var(--c); color: var(--ink); box-shadow: inset 0 -2px 0 var(--c); }
.obj-seg { margin-bottom: 16px; } .cats { display: flex; flex-direction: column; gap: 12px; }
.cat { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 4px 0 8px; } .cat.builtin { background: var(--bg-2); }
.cat-h { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; } .cat-h b { font-weight: 500; }
.frow { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-top: 1px solid var(--line); cursor: grab; } .frow:hover { background: var(--bg-2); } .frow.dragging { opacity: .4; } .frow.hid b { color: var(--muted); }
.frow b { font-weight: 500; } .ftype { color: var(--ink-2); font-size: 13px; min-width: 160px; } .fused { color: var(--muted); font: 12px var(--mono); min-width: 80px; text-align: right; }
.cat-empty { margin: 4px 16px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--muted); font-size: 13px; text-align: center; }
.add-f { display: inline-flex; align-items: center; gap: 4px; margin: 8px 16px 0; } .add-cat { align-self: flex-start; } .up-ico { transform: rotate(180deg); }
.checks { display: flex; flex-direction: column; gap: 8px; } .cat-n { margin-left: auto; font-weight: 400; }
/* filter value suggestions */
.suggest { position: relative; } .suggest input { width: 100%; }
.sugg-list { position: absolute; z-index: 70; left: 0; right: 0; top: calc(100% + 4px); background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; padding: 4px; }
.sugg { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 8px; border-radius: 6px; cursor: pointer; text-align: left; } .sugg.hl, .sugg:hover { background: var(--hover); }
.sugg .n { margin-left: auto; color: var(--muted); font: 12px var(--mono); } .sugg mark { background: var(--accent-wash); color: inherit; border-radius: 2px; } .sugg.on { color: var(--accent-ink); }
.vpick { padding: 4px; } .vpick .opt-search { margin-bottom: 4px; } .vchips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; }
.sugg-list { min-width: 260px; } .sugg span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* reports */
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.rep-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; } .rep-card.wide { grid-column: span 2; }
@media (max-width: 860px) { .rep-card.wide { grid-column: auto; } .rep-grid { grid-template-columns: 1fr; } }
.rep-h { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; } .rep-h b { font-weight: 500; }
.rep-num { display: flex; flex-direction: column; padding: 16px 0; } .rep-num b { font: 600 36px/1.1 var(--mono); letter-spacing: -0.02em; }
.rep-bars { display: flex; flex-direction: column; gap: 6px; } .rb { display: grid; grid-template-columns: minmax(80px, 34%) 1fr auto; gap: 8px; align-items: center; font-size: 13px; }
.rb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .rb-t { height: 14px; background: var(--bg-2); border-radius: 3px; overflow: hidden; } .rb-t i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rb-v { font: 12px var(--mono); min-width: 56px; text-align: right; }
.rep-cols { display: flex; align-items: flex-end; gap: 6px; height: 200px; overflow-x: auto; padding-top: 8px; } .rc { flex: 1 0 36px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 36px; }
.rc i { width: 70%; background: var(--accent); border-radius: 3px 3px 0 0; display: block; } .rc-v { font: 11px var(--mono); color: var(--ink-2); } .rc-l { font-size: 11px; color: var(--muted); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-line svg { width: 100%; height: 180px; display: block; } .rep-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.rep-donut { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .rep-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rep-legend div { display: flex; gap: 8px; align-items: center; } .rep-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; } .rep-legend b { font: 500 12px var(--mono); }
.rep-tbl, .plain-tbl { width: 100%; border-collapse: collapse; font-size: 13px; } .rep-tbl th, .rep-tbl td, .plain-tbl th, .plain-tbl td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.rep-tbl th, .plain-tbl th { font-weight: 500; color: var(--muted); } .rep-tbl .n, .plain-tbl .n { text-align: right; font-family: var(--mono); }
.plain-tbl { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.rb-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; } .rb-form { display: flex; flex-direction: column; gap: 12px; } .rb-prev { background: var(--bg-2); border-radius: 12px; padding: 16px; min-width: 0; }
@media (max-width: 860px) { .rb-grid { grid-template-columns: 1fr; } }
/* quotes */
.qs { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); text-transform: lowercase; }
.qs-sent, .qs-active { background: var(--accent-wash); color: var(--accent-ink); } .qs-accepted, .qs-replied, .qs-finished { background: #e3f4ea; color: #1d6b3f; } .qs-declined, .qs-stopped { background: #fbe9e9; color: #a3282c; }
:root[data-theme="dark"] .qs-accepted, :root[data-theme="dark"] .qs-replied, :root[data-theme="dark"] .qs-finished { background: #17321f; color: #7fd39b; } :root[data-theme="dark"] .qs-declined, :root[data-theme="dark"] .qs-stopped { background: #3a1a1b; color: #f2a3a5; }
.q-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; } .q-items { width: 100%; border-collapse: collapse; } .q-items th { font-weight: 500; color: var(--muted); font-size: 13px; text-align: left; padding: 4px; }
.q-items td { padding: 4px; vertical-align: top; } .q-items input { width: 100%; } .q-items input.n { text-align: right; width: 90px; } .q-items .q-desc { margin-top: 4px; font-size: 13px; } .q-items th.n, .q-items td.n { text-align: right; }
.q-tot { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin: 12px 0; font-size: 14px; } .q-tot b { min-width: 120px; display: inline-block; text-align: right; } .q-tot .grand { font-size: 16px; font-weight: 600; }
@media (max-width: 700px) { .q-meta { grid-template-columns: 1fr 1fr; } }
.tl { text-align: left; }
/* sequences, forms */
.seq-step { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; } .seq-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seq-h .inl { display: flex; align-items: center; gap: 6px; font-size: 13px; } .seq-h .inl input { width: 64px; }
.pick-list { display: flex; flex-direction: column; gap: 6px; } .pick { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; } .pick.on { border-color: var(--accent); }
.chips-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; } .ff-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; } .ff-row { display: flex; gap: 8px; align-items: center; } .ff-row input:first-child { flex: 1; }
/* assistant */
.ai-page { display: grid; grid-template-columns: 260px 1fr; height: 100vh; min-height: 0; } .ai-side { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: var(--bg-2); }
.ai-hist { overflow-y: auto; display: flex; flex-direction: column; gap: 2px; } .ai-h { display: flex; align-items: center; border-radius: 8px; } .ai-h.on, .ai-h:hover { background: var(--hover); }
.ai-h > button.grow { border: 0; background: none; padding: 8px; cursor: pointer; color: inherit; display: flex; flex-direction: column; min-width: 0; font: inherit; font-size: 13px; } .ai-h small { color: var(--muted); font-size: 11px; }
.ai-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; } .ai-scroll { flex: 1; overflow-y: auto; padding: 32px max(24px, calc((100% - 820px) / 2)); display: flex; flex-direction: column; gap: 16px; }
.ai-intro h1 { font-size: 24px; font-weight: 600; margin: 24px 0 8px; } .ai-ex { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.ai-ex button { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 12px; cursor: pointer; font: inherit; font-size: 14px; color: var(--ink-2); } .ai-ex button:hover { border-color: var(--accent); color: var(--ink); }
.ai-q { align-self: flex-end; max-width: 80%; background: var(--accent-wash); color: var(--ink); padding: 10px 14px; border-radius: 12px 12px 2px 12px; white-space: pre-wrap; }
.ai-a { display: flex; flex-direction: column; gap: 10px; } .ai-steps { font-size: 13px; color: var(--muted); } .ai-steps summary { cursor: pointer; } .ai-steps ol { margin: 4px 0 0; padding-left: 20px; }
.md { line-height: 1.6; } .md p { margin: 0 0 10px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md h4 { margin: 14px 0 6px; font-weight: 600; } .md code { font: 13px var(--mono); background: var(--bg-2); padding: 1px 4px; border-radius: 4px; }
.md a { color: var(--accent-ink); } .md-tbl { overflow-x: auto; margin: 0 0 10px; } .md table { border-collapse: collapse; font-size: 13px; width: 100%; } .md th, .md td { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; } .md th { font-weight: 500; color: var(--muted); } .md td.n { text-align: right; font-family: var(--mono); }
.ai-chart { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--card); } .ai-fb { display: flex; align-items: center; gap: 6px; }
.ai-ask { display: flex; gap: 8px; padding: 12px max(24px, calc((100% - 820px) / 2)) 4px; align-items: flex-end; } .ai-ask textarea { flex: 1; resize: none; min-height: 48px; } .ai-foot { padding: 0 max(24px, calc((100% - 820px) / 2)) 12px; margin: 0; }
@media (max-width: 860px) { .ai-page { grid-template-columns: 1fr; height: auto; } .ai-side { display: none; } .ai-ex { grid-template-columns: 1fr; } }
.rep-grid, .page > .plain-tbl { margin-top: 16px; }
/* workflows */
.wf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; } .wf-card { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.wf-card:hover { border-color: var(--line-2); } .wf-name { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .wf-name b { font-weight: 500; } .wf-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 13px; }
.wf-st { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); text-transform: lowercase; }
.wf-st.live, .wf-st.completed { background: #e3f4ea; color: #1d6b3f; } .wf-st.draft, .wf-st.waiting, .wf-st.queued, .wf-st.running { background: var(--accent-wash); color: var(--accent-ink); } .wf-st.failed { background: #fbe9e9; color: #a3282c; }
:root[data-theme="dark"] .wf-st.live, :root[data-theme="dark"] .wf-st.completed { background: #17321f; color: #7fd39b; } :root[data-theme="dark"] .wf-st.failed { background: #3a1a1b; color: #f2a3a5; }
.wf-tpls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .wf-tpl { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.wf-tpl:hover { border-color: var(--accent); } .wf-tpl b { font-weight: 500; } .wf-tpl.blank { align-items: flex-start; }
.wfb { display: flex; flex-direction: column; height: 100vh; min-height: 0; } .wfb-top { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.wfb-name { font: 500 16px var(--sans, inherit); border: 1px solid transparent; background: none; padding: 6px 8px; border-radius: 6px; min-width: 220px; color: inherit; } .wfb-name:hover:not(:disabled), .wfb-name:focus { border-color: var(--line-2); }
.wfb-tabs { margin-left: 8px; } .wfb-body { flex: 1; display: grid; grid-template-columns: 250px 1fr 340px; min-height: 0; }
.wfb-canvas { position: relative; overflow: hidden; background-color: var(--bg-2); background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 20px 20px; cursor: grab; touch-action: none; user-select: none; }
.wfb-canvas:active { cursor: grabbing; } .wfb-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; } .wfb-edges { position: absolute; left: 0; top: 0; overflow: visible; }
.edge .line { fill: none; stroke: var(--ink-3, #8b919a); stroke-width: 1.5; } .edge .hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; pointer-events: stroke; } .edge .arrow { fill: none; stroke: var(--ink-3, #8b919a); stroke-width: 1.5; }
.edge.on .line, .edge.on .arrow { stroke: var(--accent); stroke-width: 2; } .edge-x { cursor: pointer; } .edge-x circle { fill: var(--card); stroke: var(--accent); } .edge-x path { stroke: var(--accent); stroke-width: 1.5; }
.edge-draft { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; }
.wfn { position: absolute; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px 14px; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 20, 24, .06); }
.wfn.trig { border-top: 3px solid var(--accent); } .wfn.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); } .wfn.bad { border-color: #d64545; }
.wfn-h { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); } .wfn-k { flex: 1; } .wfn-id { font: 11px var(--mono); }
.wfn-ico { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); flex: none; } .wfn.trig .wfn-ico { background: var(--accent-wash); color: var(--accent-ink); }
.wfn-t { font-weight: 500; margin-top: 6px; } .wfn-s { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wfn-err { font-size: 12px; color: #c4320a; margin-top: 4px; }
.wfn-in { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--ink-3, #8b919a); }
.wfn-ports { position: absolute; left: 0; right: 0; bottom: 0; height: 0; } .wfn-out { position: absolute; top: -6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); cursor: crosshair; }
.wfn-out:hover { background: var(--accent); transform: scale(1.2); } .wfn-out em { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font: normal 500 11px var(--sans, inherit); color: var(--accent-ink); white-space: nowrap; background: var(--bg-2); padding: 0 4px; border-radius: 4px; }
.wf-qadd { position: absolute; width: 280px; z-index: 5; } .wfb-hint { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); color: var(--muted); background: var(--card); border: 1px dashed var(--line-2); padding: 16px 20px; border-radius: 12px; pointer-events: none; }
.wfb-zoom { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 6px; }
.wf-lib { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--card); } .wf-lib.compact { border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 360px; }
.wf-lib-h { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); } .wf-lib-h input { flex: 1; } .wf-lib-l { overflow-y: auto; padding: 4px 8px 12px; }
.wf-cat { font-size: 12px; color: var(--muted); margin: 12px 4px 4px; } .wf-item { display: flex; gap: 8px; align-items: flex-start; width: 100%; border: 0; background: none; text-align: left; padding: 6px; border-radius: 8px; cursor: grab; color: inherit; font: inherit; }
.wf-item:hover { background: var(--hover); } .wf-item b { font-weight: 500; font-size: 13px; display: block; } .wf-item small { font-size: 12px; color: var(--muted); display: block; line-height: 1.35; }
.wfb-side { border-left: 1px solid var(--line); background: var(--card); overflow-y: auto; min-height: 0; } .bp { padding: 16px; display: flex; flex-direction: column; gap: 12px; } .bp-h { display: flex; align-items: center; gap: 8px; }
.bp-f { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; } .req { color: #c4320a; font-style: normal; }
.vtext { position: relative; display: flex; gap: 4px; align-items: flex-start; flex: 1; min-width: 0; } .vtext input, .vtext textarea { flex: 1; min-width: 0; font-size: 13px; } .vtext textarea { font-family: var(--mono); font-size: 12px; }
.var-wrap { position: relative; } .var-btn { font: 500 12px var(--mono); border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 6px; height: 32px; padding: 0 6px; cursor: pointer; color: var(--accent-ink); }
.var-pop { position: absolute; right: 0; top: 36px; z-index: 30; width: 300px; background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; } .var-pop input { width: 100%; margin-bottom: 4px; }
.var-l { max-height: 300px; overflow-y: auto; } .var-g { font-size: 11px; color: var(--muted); margin: 8px 4px 2px; } .var-l button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: none; padding: 5px 6px; border-radius: 6px; cursor: pointer; text-align: left; color: inherit; font: inherit; font-size: 13px; }
.var-l button:hover { background: var(--hover); } .var-l code { font: 11px var(--mono); color: var(--muted); }
.cond { display: flex; gap: 4px; align-items: flex-start; margin-bottom: 6px; } .cond.col { flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--line); border-radius: 8px; } .cond select { min-width: 0; }
.case { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; } .kv { display: grid; grid-template-columns: 120px 1fr auto; gap: 4px; margin-bottom: 6px; align-items: start; } .add-sel { width: 100%; }
.chk-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; } .outs { display: flex; flex-wrap: wrap; gap: 4px; } .outs code { font: 11px var(--mono); background: var(--bg-2); padding: 2px 4px; border-radius: 4px; }
.wh { font: 12px var(--mono); word-break: break-all; background: var(--bg-2); padding: 6px; border-radius: 6px; } .err-row { display: block; width: 100%; text-align: left; border: 0; background: #fbe9e9; color: #a3282c; padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; cursor: pointer; font: inherit; font-size: 13px; }
.tips { padding-left: 18px; margin: 4px 0; } .tips li { margin-bottom: 4px; }
.wf-runs { flex: 1; display: grid; grid-template-columns: 380px 1fr; min-height: 0; } .wf-runs-l { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; } .wf-runs-d { overflow-y: auto; padding: 16px 24px; }
.wf-run { display: flex; gap: 8px; align-items: center; width: 100%; border: 0; background: none; padding: 8px; border-radius: 8px; text-align: left; cursor: pointer; color: inherit; font: inherit; } .wf-run small { display: block; color: var(--muted); font-size: 12px; } .wf-run.on, .wf-run:hover { background: var(--hover); }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; } .step > button { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 6px 0; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.io { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .io pre { font: 11px var(--mono); background: var(--bg-2); padding: 8px; border-radius: 6px; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; }
@media (max-width: 1100px) { .wfb-body { grid-template-columns: 1fr 300px; } .wfb-body > .wf-lib { display: none; } .wf-runs { grid-template-columns: 1fr; } }
.perm-sets { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; } .perm-set { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; } .perm-set b { font-weight: 500; }
.perm-set p { margin: 0; } .perm-chips { display: flex; flex-wrap: wrap; gap: 4px; } .pchip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--bg-2); } .pchip.on { background: var(--accent-wash); color: var(--accent-ink); } .pchip.off { color: var(--muted); text-decoration: none; }
/* focus */
.fx-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; } .fx-k { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.fx-k span { font-size: 13px; color: var(--muted); } .fx-k b { font: 600 24px var(--mono); letter-spacing: -0.02em; } .fx-k small { font-size: 12px; color: var(--muted); } .fx-k.bad b { color: #b42318; } .fx-k.warn2 b { color: #b54708; }
.fx-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; } .fx-main, .fx-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fx-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; } .fx-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .fx-h b { font-weight: 500; }
.fx-card.plan { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); } .fx-headline { margin: 0 0 10px; } .fx-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fx-pi { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; } .fx-pi.done { opacity: .55; } .fx-pi b { font-weight: 500; }
.fx-n { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font: 600 12px var(--mono); flex: none; }
.fx-when { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; background: var(--bg-2); white-space: nowrap; } .fx-when.now { background: #fbe9e9; color: #a3282c; } .fx-when.today { background: var(--accent-wash); color: var(--accent-ink); }
.fx-deal { border-top: 1px solid var(--line); } .fx-deal:first-of-type { border-top: 0; } .fx-dh { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 4px; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.fx-dh:hover { background: var(--hover); border-radius: 8px; } .fx-dh b { font-weight: 500; display: block; } .fx-dh small { color: var(--muted); font-size: 12px; } .fx-val { font: 500 13px var(--mono); min-width: 70px; text-align: right; } .ico.fx-open { transform: rotate(180deg); }
.hdot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8b919a; } .hdot.good { background: #2f9e5b; } .hdot.fair { background: #d69e2e; } .hdot.poor { background: #d64545; }
.fx-tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; } .tg { font-size: 11px; padding: 2px 6px; border-radius: 4px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; } .tg.bad { background: #fbe9e9; color: #a3282c; } .tg.good { background: #e3f4ea; color: #1d6b3f; }
.fx-db { padding: 4px 4px 16px 24px; display: flex; flex-direction: column; gap: 10px; } .fx-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; } .fx-facts span { display: block; color: var(--muted); font-size: 12px; }
.fx-meet { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); } .fx-meet:first-of-type { border-top: 0; } .fx-meet b { font-weight: 500; font-size: 13px; display: block; } .fx-meet small { color: var(--muted); font-size: 12px; }
.fx-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--bg-2); display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
@media (max-width: 1000px) { .fx-grid { grid-template-columns: 1fr; } .fx-kpis { grid-template-columns: 1fr 1fr; } }
.ns-start { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .ns { display: flex; flex-direction: column; gap: 8px; } .ns-a { display: flex; gap: 6px; align-items: center; } .ns p { margin: 0; }
.ns-steps { display: flex; flex-direction: column; gap: 6px; } .ns-s { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 8px; } .ns-s.done { opacity: .55; } .ns-s b { font-weight: 500; font-size: 13px; display: block; } .ns-s small { font-size: 12px; color: var(--accent-ink); }
pre.draft { white-space: pre-wrap; font: 13px/1.5 var(--sans, inherit); background: var(--bg-2); padding: 8px 10px; border-radius: 6px; margin: 4px 0 0; }
.ai-panel .panel-h { display: flex; gap: 6px; align-items: center; } .ai-acts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; } .ai-panel .ns-start, .ai-panel .ns { padding: 0 16px 14px; }
.nu { display: flex; flex-direction: column; gap: 8px; } .nu h4 { margin: 8px 0 0; font-weight: 500; } .nu-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; } .nu-row b { font-weight: 500; }
.askf { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: 8px; color: var(--accent-ink); } .askf input { flex: 1; border: 0; background: none; padding: 4px; font: inherit; color: var(--ink); min-width: 0; } .askf input:focus { outline: none; }
.askf-m { max-width: 40%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* resizable details column on record pages */
.rec-body { grid-template-columns: var(--side, 352px) 12px minmax(0, 1fr); gap: 12px; }
.rec-split { position: sticky; top: 72px; height: calc(100vh - 90px); cursor: col-resize; display: flex; justify-content: center; border-radius: 6px; touch-action: none; }
.rec-split::after { content: ''; width: 2px; height: 100%; border-radius: 2px; background: transparent; transition: background .15s; }
.rec-split:hover::after, .rec-split:focus-visible::after, body.resizing .rec-split::after { background: var(--accent); }
.rec-split:focus-visible { outline: none; } body.resizing { cursor: col-resize; user-select: none; }
@media (max-width: 1000px) { .rec-body { grid-template-columns: 1fr; } .rec-split { display: none; } }
/* permissions grid */
.perm-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 12px; } .perm-list { display: flex; flex-direction: column; gap: 4px; }
.perm-li { text-align: left; border: 1px solid transparent; background: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; } .perm-li b { display: block; font-weight: 500; } .perm-li small { color: var(--muted); font-size: 12px; }
.perm-li:hover { background: var(--hover); } .perm-li.on { background: var(--card); border-color: var(--accent); }
.perm-edit { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .perm-top { display: flex; align-items: center; gap: 10px; } .perm-name { font: 600 18px inherit; flex: 0 1 320px; }
.perm-desc { width: 100%; } .perm-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: var(--bg-2); border-radius: 10px; } .perm-scope p { margin: 0; }
.perm-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; } .perm-gh { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-2); flex-wrap: wrap; } .perm-gh b { font-weight: 500; }
.perm-all { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.perm-row { display: flex; align-items: center; gap: 12px; padding: 6px 14px; border-top: 1px solid var(--line); min-height: 44px; } .perm-row:hover { background: var(--hover); }
.seg.lv button { min-width: 92px; } .seg.lv button.on.lv-none { background: #fbe9e9; color: #a3282c; } .seg.lv button.on.lv-read { background: #fff4e0; color: #8a5300; } .seg.lv button.on.lv-full { background: #e3f4ea; color: #1d6b3f; }
:root[data-theme="dark"] .seg.lv button.on.lv-none { background: #3a1a1b; color: #f2a3a5; } :root[data-theme="dark"] .seg.lv button.on.lv-read { background: #3a2a10; color: #f5c46b; } :root[data-theme="dark"] .seg.lv button.on.lv-full { background: #17321f; color: #7fd39b; }
.perm-people { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; } .perm-group .add-sel { margin: 0 14px 12px; width: calc(100% - 28px); }
.ro-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; background: var(--bg-2); padding: 8px 12px; border-radius: 8px; margin: 0 0 12px; }
fieldset.ro-set { border: 0; padding: 0; margin: 0; min-width: 0; } fieldset.ro-set button.primary, fieldset.ro-set .danger-t { display: none; }
@media (max-width: 900px) { .perm-layout { grid-template-columns: 1fr; } .perm-list { flex-direction: row; flex-wrap: wrap; } .perm-row { flex-wrap: wrap; } }
/* users list */
.users-tbl { overflow-x: auto; margin: 8px -4px 0; } .users-tbl table { width: 100%; min-width: 720px; } .users-tbl th { white-space: nowrap; }
.who2 { display: flex; gap: 10px; align-items: center; min-width: 0; } .who2 b { font-weight: 500; } .who2 small { display: block; font-size: 12px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-sel { min-width: 190px; } .users-tbl td.acts { width: 1%; white-space: nowrap; text-align: right; } .nowrap { white-space: nowrap; } .users-tbl td.num, .users-tbl th.num { text-align: right; }
.users-tbl th.num { font-family: inherit; }
/* help: explanation boxes, contextual button and drawer */
.hb { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; } .hb p { margin: 0; } .hb ul { margin: 0; padding-left: 20px; } .hb li { margin: 2px 0; }
.hb-k { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); margin-bottom: 4px; }
.hb.what { background: var(--accent-wash); } .hb.what p { font-size: 15px; line-height: 1.6; }
.hb.why { border: 1px solid var(--line); } .hb.ex { background: var(--bg-2); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; } .hb.ex .hb-k { color: var(--ink-2); }
.hb.tip { display: flex; gap: 10px; align-items: flex-start; background: #fff7e6; color: #5c3d00; } :root[data-theme="dark"] .hb.tip { background: #33270f; color: #f5d595; }
.hb-faq details { border-top: 1px solid var(--line); padding: 10px 0; } .hb-faq summary { cursor: pointer; font-weight: 500; } .hb-faq details p { margin: 6px 0 0; color: var(--ink-2); }
.hb-see { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--line); } .hb-see a { color: var(--accent-ink); }
.help-art h3 { margin-top: 22px; }
.help-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--card); color: var(--accent-ink); font: 600 17px var(--sans, inherit); cursor: pointer; box-shadow: 0 2px 8px rgba(16, 20, 24, .12); }
.help-fab:hover { border-color: var(--accent); }
.help-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 80; background: var(--card); border-left: 1px solid var(--line-2); box-shadow: -8px 0 24px rgba(16, 20, 24, .12); display: flex; flex-direction: column; }
.hd-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); } .hd-body { overflow-y: auto; padding: 4px 22px 40px; }
.help-art.compact h2 { font-size: 20px; } .help-art.compact figure img { max-width: 100%; }
@media (prefers-reduced-motion: no-preference) { .help-drawer { animation: hd-in .18s ease-out; } @keyframes hd-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } } }
/* dashboards */
.dash-pick { display: flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; color: inherit; padding: 2px 6px; border-radius: 8px; } .dash-pick:hover { background: var(--hover); } .dash-pick h1 { margin: 0; }
.dgrid { position: relative; margin-top: 16px; } .dw { position: absolute; transition: left .15s, top .15s, width .15s, height .15s; } body.dragging-w .dw { transition: none; } body.dragging-w { user-select: none; cursor: grabbing; }
@media (max-width: 760px) { .dgrid { display: flex; flex-direction: column; gap: 12px; } .dw { position: static; } }
.wcard { height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; overflow: hidden; }
.dgrid.editing .wcard { border-style: dashed; border-color: var(--line-2); } .dgrid.editing .wc-h { cursor: grab; }
.wc-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px 6px; min-height: 40px; } .wc-h b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-b { flex: 1; min-height: 0; overflow: auto; padding: 4px 14px 12px; }
.dw-resize { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-radius: 0 0 8px 0; }
.wk { display: flex; flex-direction: column; gap: 2px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; color: inherit; width: 100%; } .wk b { font: 600 30px var(--mono); letter-spacing: -0.02em; } .wk:hover b { color: var(--accent-ink); }
.wk .up { color: #1d6b3f; } .wk .down { color: #b42318; } :root[data-theme="dark"] .wk .up { color: #7fd39b; } :root[data-theme="dark"] .wk .down { color: #f2a3a5; }
.wbars { display: flex; flex-direction: column; gap: 4px; } .wb { display: grid; grid-template-columns: minmax(70px, 36%) 1fr auto; gap: 8px; align-items: center; border: 0; background: none; padding: 3px 4px; border-radius: 6px; cursor: pointer; font: inherit; font-size: 13px; color: inherit; text-align: left; }
.wb:hover { background: var(--hover); } .wb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); } .wb-t { height: 12px; background: var(--bg-2); border-radius: 3px; overflow: hidden; } .wb-t i { display: block; height: 100%; background: var(--accent); border-radius: 3px; } .wb-v { font: 12px var(--mono); min-width: 52px; text-align: right; }
.wcols { display: flex; align-items: stretch; gap: 4px; height: 100%; min-height: 120px; } .wc { flex: 1; min-width: 24px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; border: 0; background: none; cursor: pointer; padding: 0 0 2px; border-radius: 6px; color: inherit; }
.wc:hover { background: var(--hover); } .wc i { display: block; width: 70%; background: var(--accent); border-radius: 3px 3px 0 0; } .wc-v { font: 10px var(--mono); color: var(--muted); white-space: nowrap; } .wc-l { font-size: 11px; color: var(--muted); white-space: nowrap; }
.wrows { display: flex; flex-direction: column; } .wr { display: flex; gap: 10px; align-items: center; padding: 7px 4px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: 4px; } .wr:first-child { border-top: 0; } .wr:hover { background: var(--hover); }
.wr b { font-weight: 500; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wr small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wr .grow { min-width: 0; } .wr .late { color: #b42318; }
.wgoals { display: flex; flex-direction: column; gap: 10px; } .wg { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.wg i { grid-column: 1 / -1; position: relative; height: 8px; background: var(--bg-2); border-radius: 4px; } .wg em { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; } .wg s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink-2); }
.wtbl { width: 100%; border-collapse: collapse; font-size: 13px; } .wtbl td { padding: 6px 4px; border-top: 1px solid var(--line); cursor: pointer; } .wtbl tr:hover td { background: var(--hover); } .wtbl .n { text-align: right; font-family: var(--mono); }
.dir-h { margin: 16px 0 8px; font-weight: 500; } .dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .dir-i { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font: inherit; color: inherit; }
.dir-i:hover { border-color: var(--accent); } .dir-i b { font-weight: 500; } .assign-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; margin-top: 8px; } .dash-tip { margin-top: 12px; }
/* reports: grouped list + editor */
.rp-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.rp-list { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.rp-group { display: flex; flex-direction: column; } .rp-gh { display: flex; align-items: center; gap: 4px; } .rp-gt { flex: 1; display: flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 4px; cursor: pointer; font: inherit; color: inherit; text-align: left; border-radius: 6px; }
.rp-gt:hover { background: var(--hover); } .rp-gt b { font-weight: 500; flex: 1; } .rot-90 { transform: rotate(-90deg); }
.rp-item { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px 7px 22px; border-radius: 8px; color: inherit; text-decoration: none; } .rp-item:hover { background: var(--hover); } .rp-item.on { background: var(--accent-wash); }
.rp-item .ico { margin-top: 2px; color: var(--muted); flex: none; } .rp-item.on .ico { color: var(--accent-ink); } .rp-n { display: block; font-size: 14px; } .rp-item small { display: block; font-size: 12px; color: var(--muted); }
.rp-main { min-width: 0; } .rp-ed { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .rp-name { flex: 1 1 320px; font: 600 18px inherit; }
.rb-form { border: 0; padding: 0; margin: 0; min-width: 0; } .seg.wrap { flex-wrap: wrap; } .rp-ed .rb-prev { min-height: 320px; }
@media (max-width: 900px) { .rp-layout { grid-template-columns: 1fr; } .rp-list { position: static; max-height: 320px; } }
/* reports list */
.rl { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; } .rl-group { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rl-gh { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: var(--bg-2); } .rl-gh .rp-gt b { font-weight: 500; }
.rl-tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .rl-tbl th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 14px; border-bottom: 1px solid var(--line); }
.rl-tbl td { padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; } .rl-tbl tbody tr:first-child td { border-top: 0; } .rl-tbl tr:hover td { background: var(--hover); } .rl-tbl a { color: var(--ink); font-weight: 500; text-decoration: none; }
.rp-back { margin: 8px 0 12px; } .rp-back a { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); text-decoration: none; font-size: 14px; }
.reports-page .ph-actions .search-in { width: 240px; }
@media (max-width: 760px) { .rl-tbl th:nth-child(n+3), .rl-tbl td:nth-child(n+3) { display: none; } }
.rl-tbl { table-layout: fixed; } .rl-tbl th:nth-child(1) { width: 32%; } .rl-tbl th:nth-child(2) { width: 17%; } .rl-tbl th:nth-child(3) { width: 15%; } .rl-tbl th:nth-child(4) { width: 11%; } .rl-tbl th:nth-child(5) { width: 12%; }
.rl-tbl td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* wide settings pages use the full width; the users table fits instead of scrolling */
.set-body:has(.users-card), .set-body:has(.perm-page), .set-body:has(.fields-setup) { max-width: none; }
.users-tbl { overflow-x: visible; margin: 8px 0 0; } .users-tbl table { min-width: 0; table-layout: auto; }
.users-tbl td, .users-tbl th { padding-left: 8px; padding-right: 8px; } .users-tbl select { width: 100%; min-width: 0; } .access-sel { min-width: 150px; }
.who2 > div { min-width: 0; } .who2 small { max-width: 100%; }
@media (max-width: 1180px) { .users-tbl th:nth-child(4), .users-tbl td:nth-child(4) { display: none; } }
@media (max-width: 900px) { .users-tbl th:nth-child(5), .users-tbl td:nth-child(5) { display: none; } .users-tbl th:nth-child(3), .users-tbl td:nth-child(3) { display: none; } }
.users-tbl table { table-layout: fixed; width: 100%; }
.users-tbl th:nth-child(1) { width: auto; } .users-tbl th:nth-child(2) { width: 200px; } .users-tbl th:nth-child(3) { width: 190px; } .users-tbl th:nth-child(4) { width: 92px; } .users-tbl th:nth-child(5) { width: 96px; } .users-tbl th:nth-child(6) { width: 52px; }
.users-tbl td:first-child { overflow: hidden; } .who2 small, .who2 b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
@media (max-width: 1180px) { .users-tbl th:nth-child(2) { width: 180px; } .users-tbl th:nth-child(3) { width: 170px; } }
.users-tbl th:nth-child(1) { width: 33%; } .users-tbl th:nth-child(2) { width: 22%; } .users-tbl th:nth-child(3) { width: 20%; } .users-tbl th:nth-child(4) { width: 9%; } .users-tbl th:nth-child(5) { width: 11%; } .users-tbl th:nth-child(6) { width: 5%; }
@media (max-width: 1180px) { .users-tbl th:nth-child(1) { width: 38%; } .users-tbl th:nth-child(2) { width: 25%; } .users-tbl th:nth-child(3) { width: 22%; } .users-tbl th:nth-child(5) { width: 10%; } }
@media (max-width: 900px) { .users-tbl th:nth-child(1) { width: 55%; } .users-tbl th:nth-child(2) { width: 37%; } }
.users-tbl th:nth-child(1) { width: 38%; } .users-tbl th:nth-child(2) { width: 26%; } .users-tbl th:nth-child(3) { width: 22%; } .users-tbl th:nth-child(4) { width: 9%; } .users-tbl th:nth-child(5) { width: 5%; }
@media (max-width: 1180px) { .users-tbl th:nth-child(1) { width: 38%; } .users-tbl th:nth-child(2) { width: 28%; } .users-tbl th:nth-child(3) { width: 26%; } .users-tbl th:nth-child(4), .users-tbl td:nth-child(4) { display: none; } .users-tbl th:nth-child(5) { width: 8%; } .users-tbl th:nth-child(5), .users-tbl td:nth-child(5) { display: table-cell; } }
@media (max-width: 900px) { .users-tbl th:nth-child(3), .users-tbl td:nth-child(3) { display: none; } .users-tbl th:nth-child(1) { width: 52%; } .users-tbl th:nth-child(2) { width: 38%; } .users-tbl th:nth-child(5) { width: 10%; } }
.users-tbl th { overflow: hidden; text-overflow: ellipsis; }
.users-tbl select { box-sizing: border-box; max-width: 100%; } .users-tbl .who2 { max-width: 100%; }
/* settings for one company */
.co-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; } .co-bar select { width: auto; min-width: 220px; }
.co-dot { width: 10px; height: 10px; border-radius: 3px; } .co-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rep-tg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; cursor: pointer; } .frow.std { cursor: default; }
.rl-tbl th:nth-child(7) { width: 44px; } .rl-tbl th:nth-child(1) { width: 30%; } .rl-act { text-align: right; cursor: default; overflow: visible !important; } .rl-tbl tr.rl-empty td { cursor: default; } .rl-tbl tr.rl-empty:hover td { background: none; }
.rl-group { overflow: visible; } .rl-gh { border-radius: 12px 12px 0 0; } .rl-tbl tbody tr:last-child td:first-child { border-bottom-left-radius: 12px; } .rl-tbl tbody tr:last-child td:last-child { border-bottom-right-radius: 12px; }
.rl-gh .pop, .rl-act .pop { z-index: 40; }
/* privacy & gdpr */
.gdpr .sc-h { flex-wrap: wrap; gap: 8px; } .gd-score { display: flex; gap: 16px; align-items: center; padding: 14px; background: var(--bg-2); border-radius: 12px; margin: 12px 0; flex-wrap: wrap; }
.gd-ring { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 20px; border: 6px solid; flex: none; } .gd-ring b { font: 600 24px var(--mono); } .gd-ring span { font-size: 11px; color: var(--muted); }
.gd-ring.ok { border-color: #2f9e5b; } .gd-ring.warn { border-color: #d69e2e; } .gd-ring.bad { border-color: #d64545; } .gd-score p { margin: 4px 0 0; }
.gd-list { display: flex; flex-direction: column; gap: 8px; } .gd-c { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; } .gd-c p { margin: 4px 0 0; } .gd-c b { font-weight: 500; }
.gd-dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; background: #8b919a; } .gd-c.g-ok .gd-dot { background: #2f9e5b; } .gd-c.g-warn .gd-dot { background: #d69e2e; } .gd-c.g-bad .gd-dot { background: #d64545; } .gd-c.g-bad { border-color: #f0c2c2; }
.gd-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } tr.late-row td { background: #fff4f4; } td.late, .late { color: #b42318; }
.pp-facts { display: grid; gap: 6px; padding: 0 16px 8px; font-size: 13px; } .pp-facts span { display: block; font-size: 12px; color: var(--muted); }
.tpl-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 10px 12px; background: var(--bg-2); border-radius: 8px; }
.dir-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
.dir-top { margin-bottom: 12px; gap: 12px; }
/* selection bar: centred in the content area (not the whole window), never wider than it, buttons wrap */
.bulkbar { --sbw: 256px; left: calc(var(--sbw) + (100vw - var(--sbw)) / 2); min-width: 0; width: max-content; max-width: calc(100vw - var(--sbw) - 32px); flex-wrap: wrap; row-gap: 6px; }
.shell.collapsed .bulkbar { --sbw: 64px; }
.bulkbar > b { white-space: nowrap; margin-right: 4px; } .bulkbar .btn { white-space: nowrap; }
@media (max-width: 900px) { .bulkbar { --sbw: 0px; left: 12px; right: 12px; width: auto; max-width: none; transform: none; } }
.views { flex: 1 0 auto; } .viewbar > .tools { margin-left: auto; }
/* the signed-in person, with a visible log-out button */
.me-row { display: flex; align-items: center; gap: 4px; } .me-row > :first-child { flex: 1; min-width: 0; } .me-row .me { width: 100%; } .me-caret { color: var(--muted); }
.me-out { flex: none; color: var(--muted); } .me-out:hover { color: #b42318; background: var(--hover); }
.shell.collapsed .me-out { display: none; }
.me-row .pop { top: auto; bottom: calc(100% + 6px); left: 0; }
/* ===================== Smart Docs ===================== */
.dstat { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--hover); color: var(--muted); }
.st-sent { background: #e8efff; color: #0034b5; } .st-viewed { background: #fff4d6; color: #8a5a00; } .st-signed { background: #e3f5ea; color: #16794a; } .st-declined, .st-void { background: #fde8e8; color: #b42318; }
[data-theme="dark"] .st-sent { background: #1b2a4d; color: #9db7ff; } [data-theme="dark"] .st-viewed { background: #3a2f12; color: #f3c766; } [data-theme="dark"] .st-signed { background: #133224; color: #7fd8a5; } [data-theme="dark"] .st-declined, [data-theme="dark"] .st-void { background: #3d1717; color: #ff9b94; }
.docs-tbl tr.click { cursor: pointer; } .docs-tbl tr.click:hover td { background: var(--hover); } .sigcount { font-variant-numeric: tabular-nums; } .sigcount.all { color: #16794a; font-weight: 600; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.tpl-card { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.tpl-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); } .tpl-main { display: flex; flex-direction: column; gap: 4px; padding: 16px; color: inherit; text-decoration: none; }
.tpl-ico { width: 38px; height: 46px; border-radius: 6px; background: linear-gradient(180deg, #f4f6fb, #e8ecf6); color: #0034b5; display: grid; place-items: center; margin-bottom: 8px; border: 1px solid var(--line); }
.tpl-more { position: absolute; top: 10px; right: 10px; } .tpl-card .pop-wrap { position: absolute; top: 10px; right: 10px; }
.doc-page { max-width: none; } .doc-page .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); text-decoration: none; margin: 4px 0 8px; }
.doc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; } .doc-head .ph-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.doc-title { font-size: 22px; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 4px 8px; margin-left: -8px; background: none; color: var(--ink); min-width: 0; flex: 1 1 280px; max-width: 640px; }
.doc-title:hover:not(.ro), .doc-title:focus { border-color: var(--line-2); background: var(--card); outline: none; } h1.doc-title { margin: 0; }
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .doc-body { grid-template-columns: 1fr; } }
.doc-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; } .doc-side .panel { margin: 0; } .doc-side .pad { padding: 4px 14px 14px; } .doc-side .fld { margin-bottom: 10px; display: flex; flex-direction: column; gap: 4px; }
.doc-side .fld input, .doc-side .fld select { width: 100%; } .dchk { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; font-size: 13.5px; width: auto; height: auto; border: 0; place-items: initial; } .dchk input { margin-top: 2px; flex: none; } .viewbar .dchk { margin: 0; align-items: center; }
.doc-banner { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 14px; } .doc-banner.ok { background: #e3f5ea; color: #145c39; } .doc-banner.bad { background: #fde8e8; color: #8c1d18; }
.doc-preview { background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 28px 16px; max-height: calc(100vh - 210px); overflow: auto; }
.doc-preview .ks-paper, .rte-area { color: #1b1f24; }
.rte { border: 1px solid var(--line); border-radius: 12px; background: var(--side); overflow: hidden; }
.rte-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 8px; background: var(--card); border-bottom: 1px solid var(--line); }
.rte-b { min-width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; font-size: 13px; padding: 0 6px; }
.rte-b:hover { background: var(--hover); } .rte-sel { height: 30px; font-size: 13px; padding: 0 6px; } .rte-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; } .rte-bar .grow { flex: 1; }
.btn.primary-soft { background: #e8efff; color: #0034b5; border-color: #cddafc; } [data-theme="dark"] .btn.primary-soft { background: #1b2a4d; color: #9db7ff; border-color: #2c3f6b; }
.rte-note { padding: 8px 14px; font-size: 12.5px; color: var(--muted); background: var(--card); border-bottom: 1px solid var(--line); }
.rte-scroll { padding: 28px 16px; max-height: calc(100vh - 230px); overflow: auto; } .rte-area { min-height: 640px; outline: none; }
.rte-area:focus { box-shadow: 0 0 0 2px #cddafc, 0 8px 32px rgba(0,0,0,.06); }
.ks-mf { display: inline-block; padding: 0 7px; margin: 0 1px; border-radius: 6px; background: #e8efff; color: #0034b5; font-size: .88em; font-weight: 500; line-height: 1.6; border: 1px solid #cddafc; user-select: all; white-space: nowrap; }
.ks-mf-block { display: block; text-align: center; padding: 14px; margin: 10px 0; border-style: dashed; font-size: 13px; }
.fpick-l { max-height: 360px; overflow: auto; } .fpick-g { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 10px 4px; }
.fpick .opt { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; } .fpick .opt .hint { margin-left: auto; }
.trk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .trk > div { background: var(--side); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; } .trk b { font-size: 17px; } .trk span { font-size: 11.5px; color: var(--muted); }
.sub-h { font-size: 12px; color: var(--muted); margin: 14px 0 4px; font-weight: 600; }
.linkrow { display: flex; gap: 6px; align-items: center; margin: 8px 0; } .linkrow input { flex: 1; min-width: 0; font-size: 12.5px; height: 30px; } .lr-n { width: 110px; flex: none; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signer { padding: 10px 0; border-bottom: 1px solid var(--line); } .signer:last-child { border-bottom: 0; } .signer-n { display: flex; gap: 8px; align-items: center; }
.signer-e { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0; } .signer-e .grow { display: flex; flex-direction: column; gap: 4px; } .signer-e input { width: 100%; height: 30px; font-size: 13px; }
.ord { width: 20px; height: 20px; border-radius: 99px; background: var(--hover); font-size: 11px; font-weight: 600; display: inline-grid; place-items: center; flex: none; margin-top: 5px; }
.aud-ev { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; } .aud-ev:last-child { border-bottom: 0; } .more-tpl { margin-top: 12px; } .more-tpl summary { cursor: pointer; margin-bottom: 8px; } .err-t { color: #b42318; }
/* the document itself (same look as the signing page) */
.ks-paper{background:#fff;color:#1b1f24;max-width:820px;margin:0 auto;padding:56px 64px;box-shadow:0 1px 3px rgba(0,0,0,.08),0 8px 32px rgba(0,0,0,.06);border-radius:6px;font:15px/1.6 'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;word-wrap:break-word}
.ks-paper h1{font-size:28px;line-height:1.25;margin:0 0 16px}.ks-paper h2{font-size:21px;margin:28px 0 10px}.ks-paper h3{font-size:17px;margin:22px 0 8px}
.ks-paper table{border-collapse:collapse;width:100%;margin:12px 0}.ks-paper th,.ks-paper td{border:1px solid #dfe2e6;padding:7px 10px;vertical-align:top;text-align:left}.ks-paper th{background:#f4f5f7;font-weight:600}
.ks-paper tfoot td{background:#fafbfc}.ks-products th{white-space:nowrap}.ks-paper img{max-width:100%}.ks-paper blockquote{border-left:3px solid #dfe2e6;margin:12px 0;padding:2px 14px;color:#4a5059}.ks-paper a{color:#0034b5}
.ks-sigs{display:flex;flex-wrap:wrap;gap:28px;margin:18px 0 8px}.ks-sig{width:250px}.ks-sig-box{height:84px;border-bottom:1.5px solid #1b1f24;display:flex;align-items:flex-end;padding-bottom:4px}
.ks-sig-box img{max-height:80px;max-width:240px}.ks-typed{font:italic 30px/1 'Brush Script MT','Segoe Script','Snell Roundhand',cursive}.ks-wait{color:#9aa0a6;font-size:13px}.ks-dec{color:#b42318;font-weight:600}
.ks-sig-name{font-weight:600;margin-top:6px}.ks-sig-meta{font-size:12px;color:#6b7280}
@media (max-width: 700px) { .ks-paper { padding: 28px 20px; } }
/* deals: the strip under the title (health, products, quotes, documents) */
.deal-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.ds-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.ds-pill:hover { border-color: var(--line-2); box-shadow: var(--shadow); } .ds-pill.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.ds-pill > svg:first-child { color: var(--muted); } .ds-l { color: var(--muted); } .ds-v { color: var(--ink); white-space: nowrap; } .ds-v b { font-weight: 600; } .ds-car { color: var(--muted); margin-left: 1px; }
.ds-v.hs-good b { color: var(--green); } .ds-v.hs-fair b { color: var(--amber); } .ds-v.hs-poor b { color: var(--red); }
.ds-v.qs-t-accepted { color: var(--green); } .ds-v.qs-t-declined { color: var(--red); } .ds-v .dstat { margin-left: 2px; }
.ds-pop .pop { padding: 0; max-height: min(70vh, 560px); overflow: auto; } .ds-pop .panel { border: 0; box-shadow: none; margin: 0; background: transparent; }
.ds-pop .panel-h { position: sticky; top: 0; background: var(--card); z-index: 1; }
/* Settings → Products */
.prod-tools { gap: 8px; margin: 10px 0 12px; flex-wrap: wrap; } .prod-tools .search-in { min-width: 200px; }
.prod-tbl td { vertical-align: top; } .prod-tbl .nowrap { white-space: nowrap; } .imp-steps { padding-left: 18px; margin: 0 0 12px; } .imp-steps li { margin-bottom: 6px; }
.imp-err { color: #b42318; max-height: 160px; overflow: auto; } .prod-manage { margin-left: auto; margin-right: 6px; font-weight: 400; }
.q-add { gap: 14px; margin: 8px 0; flex-wrap: wrap; } .q-pick { height: 30px; font-size: 13px; max-width: 360px; }
.prod-tbl td.acts { text-align: right; font-family: inherit; } .prod-tbl td.acts .btn { font-family: inherit; }
.q-add .link, .imp-steps .link { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .q-pick { height: 34px; padding: 0 10px; line-height: normal; }
.prod-ed .q-pick { max-width: 100%; flex: 1; min-width: 0; }
/* health panel: the next step and reasons are actionable */
.hp-next { width: 100%; border: 1px solid var(--line); text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; gap: 10px; align-items: flex-start; transition: border-color .15s, background .15s; }
.hp-next:hover, .hp-next.on { border-color: var(--accent); } .hp-go { align-self: center; display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.hp-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 8px 0; background: var(--side); } .hp-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .hp-btns input[type=date] { height: 30px; }
.hp-act { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .hp-act small { display: block; } .due-bad { color: var(--red); }
.hp-reasons li { display: flex; gap: 8px; align-items: baseline; } .hp-reasons li .link { white-space: nowrap; } .hp-li-box { display: block !important; list-style: none; margin-left: -16px; }
.hp-search .optlist { max-height: 240px; } .ds-ai > svg:first-child { color: #7c4dff; }
/* ===================== Projects ===================== */
.ps-open { background: #e8efff; color: #0034b5; } .ps-done { background: #e3f5ea; color: #16794a; } .ps-cancel { background: var(--hover); color: var(--muted); }
[data-theme="dark"] .ps-open { background: #1b2a4d; color: #9db7ff; } [data-theme="dark"] .ps-done { background: #133224; color: #7fd8a5; }
.pj-board { height: 32px; margin-left: 10px; font-size: 13px; }
.projects-page { max-width: none; } .pj-board-wrap { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 16px; align-items: flex-start; min-height: 60vh; }
.pj-col { flex: 0 0 272px; background: var(--side); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; transition: border-color .15s, background .15s; }
.pj-col.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--side)); } .pj-col-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px; font-size: 13px; }
.pj-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: inherit; text-decoration: none; cursor: grab; transition: box-shadow .15s, border-color .15s; }
.pj-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); } .pj-card.dragging { opacity: .45; } .pj-card.closed { opacity: .7; } .pj-t { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.pj-meta { display: flex; align-items: center; gap: 8px; } .pj-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; } .pj-late { font-size: 11.5px; font-weight: 600; color: var(--red); background: var(--red-wash); padding: 0 6px; border-radius: 6px; }
.pj-prog { flex: 1; height: 5px; border-radius: 99px; background: var(--hover); overflow: hidden; min-width: 60px; } .pj-prog span { display: block; height: 100%; background: #12a594; border-radius: 99px; } .pj-prog.lg { height: 7px; }
.pj-empty { text-align: center; padding: 16px 0; border: 1.5px dashed var(--line); border-radius: 10px; } .pj-tbl tr.click { cursor: pointer; } .pj-tbl tr.click:hover td { background: var(--hover); }
.pj-page .rec-hero .doc-title { font-size: 24px; } .pj-in { width: 100%; height: 30px; font-size: 13px; } .pj-desc { width: 100%; font: inherit; font-size: 13.5px; }
.pj-tasks { padding: 8px 0; } .pj-sum { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .pj-sec { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 16px 0 4px; }
.pj-task { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-bottom: 1px solid var(--line); } .pj-task:hover { background: var(--hover); border-radius: 8px; }
.pj-task.done .pj-tt { text-decoration: line-through; color: var(--muted); } .pj-who { height: 28px; font-size: 12.5px; max-width: 150px; } .pj-due { height: 28px; font-size: 12.5px; width: 136px; }
.pj-add { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; } .pj-add input.grow { flex: 1 1 220px; height: 32px; } .pj-secin { width: 120px; height: 32px; }
.pj-note { padding: 10px 0; border-bottom: 1px solid var(--line); } .pj-note-b { white-space: pre-wrap; margin-top: 4px; font-size: 14px; } .pj-dealpick .optlist { max-height: 200px; }
.pj-bed, .pj-ted { display: flex; flex-direction: column; gap: 8px; } .pj-ph { gap: 6px; } .pj-ph input { height: 32px; } .rot90 { transform: rotate(90deg); }
.pj-ttbl input, .pj-ttbl select { width: 100%; height: 30px; font-size: 13px; } .pj-ttbl td:nth-child(3) { width: 130px; } .pj-ttbl td:nth-child(4) { width: 170px; }
.pj-page .rec-hero .grow { min-width: 0; } .pj-page .doc-title { width: 100%; max-width: none; display: block; }
.pj-in, .pj-who, .pj-due, .pj-board, .pj-ttbl select { height: 32px; padding: 0 8px; line-height: normal; }
.pj-task { min-height: 44px; }
/* projects: health */
.pj-ct { display: flex; gap: 6px; align-items: flex-start; justify-content: space-between; }
.pj-hd { flex: none; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 6px; } .pj-hd.hs-good { background: var(--green-wash); color: var(--green); } .pj-hd.hs-fair { background: var(--amber-wash); color: var(--amber); } .pj-hd.hs-poor { background: var(--red-wash); color: var(--red); }
.pj-hchip { display: inline-flex; align-items: center; gap: 4px; border: 0; border-radius: 99px; padding: 2px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pj-hchip.hs-good { background: var(--green-wash); color: var(--green); } .pj-hchip.hs-fair { background: var(--amber-wash); color: var(--amber); } .pj-hchip.hs-poor { background: var(--red-wash); color: var(--red); }
.ai-btn { border-color: #d9ccff; color: #5b3fd6; } .ai-btn:hover { background: #f6f2ff; } [data-theme="dark"] .ai-btn { border-color: #4a3d7a; color: #c2b2ff; }
.ko-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, #f6f2ff, #eef4ff); border: 1px solid #e2d9ff; margin-bottom: 12px; font-size: 13.5px; }
[data-theme="dark"] .ko-banner { background: #221d3a; border-color: #3a3166; } .ko-banner > svg { color: #7c4dff; flex: none; }
.pj-crit { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #c2410c; background: #fff1e6; padding: 0 5px; border-radius: 4px; }
.pj-wait { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: var(--card); border-radius: 6px; height: 26px; padding: 0 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.pj-wait.empty { border-style: dashed; opacity: .6; } .pj-wait.on { color: #c2410c; border-color: #fed7aa; background: #fff7ed; } .pj-waitlist { max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
/* timeline */
.gantt-wrap { padding: 8px 0; } .gantt-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; } .lg-crit { display: inline-block; width: 14px; height: 8px; border-radius: 3px; background: #ea580c; vertical-align: middle; }
.gantt { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.g-left { flex: 0 0 230px; border-right: 1px solid var(--line); } .g-head { height: 44px; border-bottom: 1px solid var(--line); position: relative; background: var(--side); }
.g-name, .g-sec { height: 34px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 4px; }
.g-sec { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--side); } .g-name.done { color: var(--muted); text-decoration: line-through; } .g-name.crit { font-weight: 600; }
.g-right { flex: 1; overflow-x: auto; } .g-canvas { position: relative; } .g-mon { position: absolute; top: 2px; height: 18px; font-size: 11px; font-weight: 600; color: var(--muted); padding-left: 4px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; }
.g-day { position: absolute; top: 22px; height: 20px; font-size: 10.5px; color: var(--muted); text-align: center; } .g-day.we { color: var(--line-2); }
.g-body { position: relative; } .g-we { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--hover) 70%, transparent); } .g-secrow { position: absolute; left: 0; right: 0; height: 34px; background: var(--side); opacity: .6; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: #2563eb; opacity: .55; z-index: 1; } .g-due { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #dc2626; z-index: 1; } .g-due span { position: absolute; top: 2px; left: 3px; font-size: 10px; color: #dc2626; font-weight: 600; }
.g-arrows { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2; } .g-arrows path { fill: none; stroke: #94a3b8; stroke-width: 1.4; } .g-arrows path.head { fill: #94a3b8; stroke: none; } .g-arrows path.crit { stroke: #ea580c; } .g-arrows path.head.crit { fill: #ea580c; }
.g-bar { position: absolute; height: 20px; border-radius: 6px; background: #12a594; z-index: 3; cursor: grab; display: flex; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,.12); touch-action: none; min-width: 10px; }
.g-bar.crit { background: #ea580c; } .g-bar.done { background: #b6c2cc; } .g-bar.late { outline: 2px solid #dc2626; outline-offset: 1px; } .g-bar.dragging { opacity: .85; cursor: grabbing; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.g-lbl { font-size: 10.5px; color: #fff; padding: 0 6px; white-space: nowrap; overflow: hidden; pointer-events: none; } .g-grip { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; cursor: ew-resize; border-radius: 0 6px 6px 0; background: rgba(0,0,0,.15); }
.g-nodate { position: absolute; height: 34px; cursor: copy; } .g-nodate span { position: absolute; left: 8px; top: 9px; font-size: 11px; color: var(--muted); } .g-nodate:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
/* money */
.pj-money { padding: 8px 0; } .mn-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mn-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 3px; background: var(--card); } .mn-card b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mn-card.pos b { color: var(--green); } .mn-card.neg b { color: var(--red); } .mn-card .link { align-self: flex-start; }
.mn-burn { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; margin: 4px 0 2px; } .mn-burn span { display: block; height: 100%; background: #12a594; } .mn-burn.near span { background: var(--amber); } .mn-burn.over span { background: var(--red); }
.mn-add { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.mn-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .mn-form input, .mn-form select { height: 32px; } .mn-form .grow { flex: 1 1 180px; } .mn-num { width: 100px; } .mn-thin { color: var(--amber); }
.prof-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; margin-top: 18px; }
/* workload */
.wl-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 6px 0 10px; flex-wrap: wrap; } .wl-cap { width: 64px; height: 30px; }
.wl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; } .wl-tbl { border-collapse: collapse; width: 100%; min-width: 1000px; }
.wl-tbl th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; padding: 8px; border-bottom: 1px solid var(--line); background: var(--side); white-space: nowrap; }
.wl-tbl td, .wl-who { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); vertical-align: top; } .wl-who { width: 180px; background: var(--card) !important; }
.wl-who, .wl-none { display: table-cell; } .wl-who > span, .wl-none { display: flex; flex-direction: column; font-size: 13px; color: var(--ink); } .wl-who { padding: 8px !important; } .wl-who .avatar, .wl-who > svg { float: left; margin-right: 8px; }
.wl-cell { padding: 6px; min-width: 130px; transition: background .12s; } .wl-cell.lo { background: color-mix(in srgb, #12a594 6%, transparent); } .wl-cell.mid { background: var(--amber-wash); } .wl-cell.hi { background: var(--red-wash); } .wl-cell.late { background: #fff1f0; } .wl-cell.over { outline: 2px solid var(--accent); outline-offset: -2px; }
.wl-n { border: 0; background: none; font: 600 12px var(--mono); padding: 0 2px; cursor: pointer; color: var(--ink); } .wl-ov { color: var(--red); font-family: inherit; font-size: 11px; }
.wl-chips { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; } .wl-chip { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; text-decoration: none; color: inherit; cursor: grab; font-size: 12px; }
.wl-chip b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .wl-chip span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; } .wl-chip.dragging { opacity: .4; }
/* kick-off */
.ko-wait { display: flex; gap: 10px; align-items: center; padding: 28px 8px; color: var(--muted); } .ko-sum { font-size: 15px; line-height: 1.55; background: var(--side); border-radius: 10px; padding: 12px 14px; }
.ko-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .ko h4 { margin: 14px 0 6px; font-size: 13px; } .ko-ul { margin: 0; padding-left: 18px; font-size: 13.5px; } .ko-ul li { margin-bottom: 3px; }
.ko-tasks tr.off td { opacity: .45; } .ko-tasks td { vertical-align: top; } .nowrap { white-space: nowrap; }
@media (max-width: 760px) { .ko-cols { grid-template-columns: 1fr; } }
/* SharePoint */
.sp-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; margin-right: 6px; vertical-align: 2px; }
.sp-howto { padding-left: 18px; line-height: 1.6; background: var(--side); border-radius: 10px; padding: 12px 12px 12px 30px; margin: 8px 0; } .sp-howto li { margin-bottom: 6px; }
.sp-code { background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; font: 12px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; margin: 6px 0; }
.sp-app { margin-top: 10px; } .sp-dim { opacity: .6; } .sp-ok { color: var(--green); display: flex; gap: 6px; align-items: center; } .sp-save { gap: 10px; margin-top: 10px; align-items: center; }
.sp-counts { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; } .sp-banner { background: #eef6ff; color: #0b4a8b; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
[data-theme="dark"] .sp-banner { background: #14263f; color: #9cc6ff; } .sp .fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; } .sp code { font: 11.5px var(--mono); background: var(--hover); padding: 0 4px; border-radius: 4px; }
.prof-tot { margin-top: 6px; } .prof-wrap { margin-top: 8px; }
/* a link inside an editable value (company, contact) still needs a way to open the editor */
.ev-pen { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; color: var(--muted); opacity: 0; transition: opacity .12s; }
.ev:hover .ev-pen, .ev:focus-within .ev-pen { opacity: 1; } .ev-pen:hover { background: var(--line); color: var(--ink); } .ev > a.ref { flex: 0 1 auto; }
@media (hover: none) { .ev-pen { opacity: .6; } }
.grid td:has(.pop) { overflow: visible; position: relative; z-index: 30; }
.tl-item.email.private { cursor: default; opacity: .85; }
/* AllHands AI allowance */
.ai-use { padding: 10px 10px 8px; margin: 2px 2px 6px; border-radius: 10px; background: var(--side); }
.ai-use-h { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); } .ai-use-h span { display: inline-flex; gap: 5px; align-items: center; } .ai-use-h svg { color: #7c4dff; }
.ai-use-h b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; } .ai-use-h b.high { color: var(--amber); } .ai-use-h b.full { color: var(--red); }
.ai-meter { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; margin: 6px 0 5px; } .ai-meter.sm { display: inline-block; width: 90px; vertical-align: middle; margin: 0 6px 0 0; }
.ai-meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #7c4dff, #4f7cff); transition: width .3s; } .ai-meter span.high { background: var(--amber); } .ai-meter span.full { background: var(--red); }
.ai-use-f { font-size: 11.5px; color: var(--muted); } .ai-lim { width: 160px; height: 32px; } .ai-today { margin-top: 10px; }
fieldset.plain-set { border: 0; padding: 0; margin: 0; min-width: 0; }
/* workflows: describe it to AllHands AI */
.wf-ai-start { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px; margin-bottom: 14px; border-radius: 12px; border: 1px solid #ddd2ff; background: linear-gradient(90deg, #f6f2ff, #eef4ff); cursor: pointer; font: inherit; color: var(--ink); }
.wf-ai-start:hover { border-color: #b9a6ff; box-shadow: var(--shadow); } .wf-ai-start > svg:first-child { color: #7c4dff; } .wf-ai-start .grow { display: flex; flex-direction: column; gap: 2px; }
[data-theme="dark"] .wf-ai-start { background: #221d3a; border-color: #3a3166; }
.wf-ai-text { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border-radius: 10px; } .wf-ai-ex { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.wf-ai-chip { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; } .wf-ai-chip:hover { border-color: #b9a6ff; background: #faf8ff; }
.wf-ai-h { margin: 12px 0 4px; font-size: 13px; } .wf-ai-ul { margin: 0; padding-left: 18px; font-size: 13.5px; } .wf-ai-ok { color: var(--green); display: flex; gap: 6px; align-items: center; }
.wf-ai-warn { background: var(--amber-wash); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-top: 10px; } .wf-ai-warn ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- rotten deals ---------- */
.rot-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--red-wash); color: var(--red); font-size: 12.5px; font-weight: 600; text-decoration: none; margin-left: 10px; white-space: nowrap; }
.rot-chip:hover { background: color-mix(in srgb, var(--red) 16%, transparent); }
.rot-page { --rz-fresh: #30a46c; --rz-warning: #f5a524; --rz-rotting: #e5484d; --rz-stale: #8e2d31; --rz-snoozed: #8b8d98; }
.rz-fresh { --c: var(--rz-fresh); } .rz-warning { --c: var(--rz-warning); } .rz-rotting { --c: var(--rz-rotting); } .rz-stale { --c: var(--rz-stale); } .rz-snoozed { --c: var(--rz-snoozed); }
.rot-kpis { grid-template-columns: repeat(4, 1fr); margin-top: 6px; }
.rot-kpis .kpi { text-align: left; font: inherit; color: inherit; cursor: pointer; border-top: 3px solid var(--t); }
.rot-kpis div.kpi { cursor: default; }
.rot-kpis button.kpi:hover { box-shadow: var(--shadow); } .rot-kpis .kpi.on { outline: 2px solid color-mix(in srgb, var(--t) 45%, transparent); outline-offset: -1px; }
.rot-kpis .kpi-s { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rot-charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; margin-bottom: 8px; }
.rot-charts .panel-h { flex-wrap: wrap; row-gap: 4px; }
.rot-legend { display: inline-flex; flex-wrap: wrap; gap: 10px; font-weight: 400; font-size: 11.5px; color: var(--muted); }
.rot-legend span { display: inline-flex; align-items: center; gap: 4px; } .rot-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.rot-bars { display: flex; flex-direction: column; gap: 7px; padding: 4px 14px 8px; max-height: 330px; overflow: auto; }
.rot-bar { display: grid; grid-template-columns: minmax(90px, 190px) 1fr 42px; align-items: center; gap: 10px; }
.rot-bar .rb-name { text-align: left; color: var(--ink); font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rot-bar.on .rb-name { color: var(--accent-ink); }
.rb-track { height: 22px; border-radius: 6px; background: var(--bg-3); overflow: hidden; }
.rb-fill { display: flex; height: 100%; min-width: 24px; gap: 1px; }
.rb-fill button { border: 0; background: var(--c); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; cursor: pointer; padding: 0 4px; overflow: hidden; white-space: nowrap; transition: filter .12s; }
.rb-fill button:hover { filter: brightness(1.1); } .rb-fill button.on { box-shadow: inset 0 0 0 2px var(--ink); }
.rb-fill button.rz-warning { color: #3b2500; }
.rb-pct { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; color: var(--muted); } .rb-pct.meh { color: var(--amber); font-weight: 600; } .rb-pct.bad { color: var(--red); font-weight: 600; }
.rot-owners { display: flex; flex-direction: column; padding: 2px 6px 6px; max-height: 330px; overflow: auto; }
.ro-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 70px 22px 56px; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 12.5px; padding: 5px 8px; border-radius: 7px; cursor: pointer; text-align: left; }
.ro-row:hover { background: var(--hover); } .ro-row.on { background: var(--accent-wash); }
.ro-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ro-v { text-align: right; font-size: 11.5px; }
.ro-bar { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; } .ro-bar i { display: block; height: 100%; background: var(--rz-rotting); border-radius: 3px; }
.rot-listbar { margin-top: 6px; }
.rot-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin-bottom: 70px; }
.rot-grid td { height: 52px; max-width: 260px; } .rot-grid td small { display: block; font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.rot-grid .rot-deal a { color: var(--ink); text-decoration: none; } .rot-grid .rot-deal a:hover b { text-decoration: underline; }
.rot-grid .rot-deal b, .rot-stage { display: block; overflow: hidden; text-overflow: ellipsis; }
.rot-meter { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.rm-track { position: relative; height: 6px; border-radius: 3px; background: var(--bg-3); } .rm-track i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c); }
.rm-track em { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--muted); opacity: .6; border-radius: 1px; }
.rm-t { font-size: 12px; } .rm-t b { color: var(--c); font-variant-numeric: tabular-nums; }
.rot-snz { margin-left: 6px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; }
.rot-next .rn { font-size: 12.5px; } .rot-next .rn.late { color: var(--red); font-weight: 500; } .rot-next .rn.none { color: var(--amber); display: inline-flex; align-items: center; gap: 4px; }
.rot-own { display: inline-flex; align-items: center; gap: 6px; }
.rot-acts { white-space: nowrap; text-align: right; } .rot-acts > * { margin-left: 4px; } .rot-grid td.rot-acts { overflow: visible; }
.rot-form { display: flex; flex-direction: column; gap: 8px; padding: 4px 10px 10px; } .rot-form .pop-h { padding: 6px 0 0; }
.rot-form input { width: 100%; }
.rf-dates, .rf-reasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .rf-dates input { flex: 1; min-width: 120px; width: auto; }
.rf-reasons { margin: 4px 0 12px; }
.rot-how p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2, var(--ink)); }
@media (max-width: 1000px) { .rot-charts { grid-template-columns: 1fr; } .rot-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .rot-bar { grid-template-columns: 90px 1fr 36px; } }
.rot-grid td { max-width: 200px; } .rot-grid td.rot-deal { min-width: 220px; max-width: 300px; } .rot-grid td.r, .rot-grid td.rot-acts { width: 1%; }
.rot-grid .rot-meter { min-width: 120px; } .rot-own span { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.bulkbar .pop { top: auto; bottom: calc(100% + 8px); } .rot-acts .pop { text-align: left; white-space: normal; }
.rot-page .viewbar .views { flex-wrap: wrap; min-width: 0; } .rot-page .viewbar select { max-width: 100%; }
@media (max-width: 700px) { .rot-page .viewbar { flex-wrap: wrap; height: auto; gap: 8px; } .rot-page .viewbar .tools { width: 100%; } .rot-page .ph-title h1 { font-size: 18px; } }

/* ---------- sign-in (colourful, glass) ---------- */
.auth2 { --a2-ink: #0f172a; --a2-muted: #475569; --a2-card: #ffffff; --a2-line: #e2e8f0; --a2-field: #f8fafc; --a2-bg: #f5f7ff;
  --g1: #4f46e5; --g2: #9333ea; --g3: #ec4899; --g4: #f97316; --g5: #06b6d4;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); min-height: 100vh; min-height: 100dvh; background: var(--a2-bg); color: var(--a2-ink); }
[data-theme="dark"] .auth2, .dark .auth2 { --a2-ink: #e2e8f0; --a2-muted: #94a3b8; --a2-card: #0f1424; --a2-line: #23293d; --a2-field: #141a2e; --a2-bg: #0a0e1a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth2 { --a2-ink: #e2e8f0; --a2-muted: #94a3b8; --a2-card: #0f1424; --a2-line: #23293d; --a2-field: #141a2e; --a2-bg: #0a0e1a; } }
.logo-tile { display: inline-flex; flex: none; line-height: 0; }

.a2-art { position: relative; overflow: hidden; isolation: isolate; padding: 44px 52px; display: flex; flex-direction: column; color: #fff;
  background: #4f46e5; }
.a2-brand { display: flex; align-items: center; gap: 12px; }
.a2-brand .logo-tile { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.a2-brand b { display: block; font: 800 22px/1.1 'Plus Jakarta Sans', var(--font); letter-spacing: -.02em; } .a2-brand small { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.a2-copy { margin: auto 0; max-width: 520px; padding: 40px 0; }
.a2-copy h2 { font: 800 clamp(34px, 4.2vw, 56px)/1.04 'Plus Jakarta Sans', var(--font); letter-spacing: -.035em; margin: 0 0 18px; text-wrap: balance; }
.a2-copy h2 em { font-style: normal; color: #fcd34d; }
.a2-copy p { font-size: 17px; line-height: 1.6; opacity: .92; margin: 0 0 24px; max-width: 460px; }
.a2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.a2-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }

.a2-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 20px; position: relative;
  background: var(--a2-bg); }
.a2-box { width: min(400px, 100%); display: flex; flex-direction: column; gap: 16px; margin: auto 0; }
.a2-mark { margin-bottom: 4px; }
.a2-box h1 { font: 800 30px/1.15 'Plus Jakarta Sans', var(--font); letter-spacing: -.03em; margin: 0; color: var(--a2-ink); }
.a2-sub { margin: -6px 0 6px; color: var(--a2-muted); font-size: 15px; line-height: 1.5; }
.a2-fld { display: flex; flex-direction: column; gap: 7px; } .a2-fld > span { font-size: 13.5px; font-weight: 600; color: var(--a2-ink); }
.a2-in { position: relative; display: flex; align-items: center; } .a2-in > .ico { position: absolute; left: 14px; color: var(--a2-muted); pointer-events: none; }
.a2-in input { width: 100%; height: 48px; padding: 0 46px 0 42px; font-size: 16px; color: var(--a2-ink); background: var(--a2-field); border: 1.5px solid var(--a2-line); border-radius: 12px; transition: border-color .18s, box-shadow .18s, background .18s; }
.a2-in input:hover { border-color: color-mix(in srgb, var(--g1) 35%, var(--a2-line)); }
.a2-in input:focus { outline: none; background: var(--a2-card); border-color: var(--g1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1) 18%, transparent); }
.a2-eye { position: absolute; right: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--a2-muted); cursor: pointer; display: grid; place-items: center; }
.a2-eye:hover { background: color-mix(in srgb, var(--g1) 10%, transparent); color: var(--a2-ink); } .a2-eye[aria-pressed="true"] { color: var(--g1); }
.a2-eye:focus-visible, .a2-go:focus-visible { outline: 3px solid color-mix(in srgb, var(--g1) 55%, transparent); outline-offset: 2px; }
.a2-caps { color: #b45309; font-size: 12.5px; font-weight: 500; }
.a2-go { height: 50px; margin-top: 4px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 700 15.5px 'Plus Jakarta Sans', var(--font); letter-spacing: .01em; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--g1); transition: background .18s, transform .15s; }
.a2-go:hover:not(:disabled) { background: #4338ca; } .a2-go:active:not(:disabled) { transform: translateY(1px); }
.a2-go:disabled { opacity: .75; cursor: progress; } .a2-go .spin { border-color: rgba(255, 255, 255, .4); border-top-color: #fff; }
.a2-go .ico { transition: transform .2s; } .a2-go:hover .ico { transform: translateX(3px); }
.a2-help { margin: 2px 0 0; text-align: center; color: var(--a2-muted); font-size: 13px; line-height: 1.5; } .a2-help.left { text-align: left; margin-top: -4px; }
.a2-box .link { align-self: center; }
.a2-foot { color: var(--a2-muted); font-size: 12px; margin: 24px 0 0; }

@media (max-width: 860px) {
  .auth2 { grid-template-columns: 1fr; }
  .a2-art { display: none; }
  .a2-main { padding: 24px 16px; }
  .a2-box { background: var(--a2-card); border: 1px solid var(--a2-line); border-radius: 16px; padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .a2-go, .a2-go .ico, .a2-in input { transition: none; } }
.pf-multi { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }

/* record side panels: the label column fits the longest label (wrapping past ~55% of the panel) */
.attrs { display: grid; grid-template-columns: fit-content(55%) minmax(0, 1fr); column-gap: 14px; }
.attrs > .attr { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0; }
.attrs > :not(.attr) { grid-column: 1 / -1; }
.attr-k { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.3; padding: 4px 0; min-width: 96px; }

/* ---------- waste trading ---------- */
.wm-page { --ag: #12a594; --pr: color-mix(in srgb, #12a594 45%, var(--bg-3)); --op: color-mix(in srgb, #f76b15 30%, var(--bg-3)); --fr: #30a46c; }
.wm-tabs { margin: 4px 0 14px; } .wm-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.wm-kpis .kpi { border-top: 3px solid var(--t); }
.ewc { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; background: var(--bg-3); font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; color: var(--ink-2); white-space: nowrap; }
.ewc.haz { background: var(--red-wash); color: var(--red); }
.wm-stage { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); white-space: nowrap; }
.wm-stage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.wm-m { font-variant-numeric: tabular-nums; } .wm-m.pos, .wm-ok { color: var(--green); } .wm-m.low { color: var(--amber); } .wm-m.neg { color: var(--red); }
.wm-board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding: 14px 0 8px; align-items: start; }
.wm-col { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.wm-col > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.wm-col-empty { color: var(--faint); text-align: center; padding: 18px 0; }
.wm-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: inherit; box-shadow: var(--shadow); transition: border-color .15s; }
.wm-card:hover { border-color: var(--line-2); text-decoration: none; }
.wm-card-t { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; } .wm-card-t b { font-weight: 600; line-height: 1.3; }
.wm-card-f { display: flex; align-items: center; gap: 6px; }
.wm-miss { display: flex; flex-wrap: wrap; gap: 4px; } .wm-miss span { font-size: 11px; color: var(--red); background: var(--red-wash); border-radius: 4px; padding: 1px 6px; }
.wm-warnline { font-size: 11.5px; color: var(--amber); display: flex; align-items: center; gap: 4px; }
.wm-cover { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg-3); gap: 1px; }
.wm-cover.big { height: 14px; border-radius: 7px; gap: 2px; }
.wm-cover i { display: block; min-width: 3px; } .wm-cover i.ag { background: var(--ag); } .wm-cover i.pr { background: var(--pr); } .wm-cover i.op { background: var(--op); }
.wm-cover i.inc { background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(255, 255, 255, .45) 4px 7px); }
.wm-cover-wrap { padding: 4px 16px 12px; } .wm-cover-k, .wm-key { display: flex; gap: 14px; margin-top: 6px; } .wm-cover-k span, .wm-key span { display: inline-flex; align-items: center; gap: 5px; }
.wm-cover-k i, .wm-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; } i.ag { background: var(--ag); } i.pr { background: var(--pr); } i.op { background: var(--op); } i.fr { background: var(--fr); }
.wm-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0; }
.wm-facts > div { background: var(--card); padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wm-facts span { font-size: 11.5px; color: var(--muted); font-weight: 500; } .wm-facts b { font-weight: 600; overflow-wrap: anywhere; } .wm-facts small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.wm-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.wm-steps li { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 500; }
.wm-steps li > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-3); font-size: 11px; flex: none; }
.wm-steps li.done { color: var(--ink-2); } .wm-steps li.done > span { background: var(--green); color: #fff; }
.wm-steps li.cur { color: var(--ink); border-color: var(--accent); background: var(--accent-wash); } .wm-steps li.cur > span { background: var(--accent); color: #fff; }
.wm-steps li.bad { color: var(--red); border-color: var(--red); background: var(--red-wash); } .wm-steps li.bad > span { background: var(--red); color: #fff; }
.wm-place, .wm-match { margin-bottom: 14px; } .wm-place .panel-h, .wm-match .panel-h { gap: 8px; }
.wm-alloc td, .wm-mt td, .wm-bal td, .wm-cap td { vertical-align: middle; } .wm-alloc td small, .wm-mt td small, .wm-bal td small, .wm-cap td small { display: block; }
.wm-alloc tr.inc td { background: color-mix(in srgb, var(--amber-wash) 60%, transparent); }
.wm-alloc tfoot td { border-top: 1px solid var(--line-2); background: var(--bg-2); }
.wm-x { width: 34px; } .wm-acts { white-space: nowrap; text-align: right; } .wm-acts > * + * { margin-left: 4px; }
.wm-sub td { background: var(--bg-2); } .wm-warn { color: var(--amber); font-size: 12.5px; display: flex; align-items: center; gap: 6px; padding: 2px 0; }
.wm-st { border: 0; border-radius: 99px; height: 22px; padding: 0 9px; font-size: 12px; font-weight: 600; cursor: pointer; background: var(--bg-3); color: var(--muted); text-transform: capitalize; }
.wm-st.agreed { background: var(--green-wash); color: var(--green); }
.wm-sums { display: flex; flex-direction: column; gap: 3px; padding: 6px 0; max-width: 560px; font-size: 12.5px; }
.wm-sums > div { display: flex; justify-content: space-between; gap: 16px; } .wm-sums b { font-variant-numeric: tabular-nums; font-weight: 500; } .wm-sums b.neg { color: var(--ink-2); }
.wm-sums .tot { border-top: 1px solid var(--line-2); padding-top: 4px; margin-top: 2px; } .wm-sums .tot b { font-weight: 700; }
.wm-tin { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 400; color: var(--muted); } .wm-tin input { width: 90px; height: 28px; }
.wm-hbtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 3px 8px; cursor: pointer; color: inherit; font: inherit; font-size: 12.5px; }
.wm-hbtn:hover { border-color: var(--line-2); } .wm-hopt { display: flex; flex-direction: column; } .wm-hopt small { font-size: 11.5px; }
.wm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .wm-notes { white-space: pre-wrap; }
.wm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .wm-row > input, .wm-row > select { flex: 1; min-width: 90px; width: auto; }
.wm-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.wm-fees { display: flex; flex-direction: column; gap: 6px; } .wm-fee { display: grid; grid-template-columns: 1fr 110px 150px 24px; gap: 6px; align-items: center; } .wm-fee-add { display: flex; flex-wrap: wrap; gap: 2px; }
.wm-try { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.wm-try input { width: 90px; flex: none; } .wm-try select { flex: none; width: auto; } .wm-tl { display: flex; justify-content: space-between; gap: 12px; } .wm-tl b { font-weight: 500; font-variant-numeric: tabular-nums; }
.wm-prev { font-size: 13px; }
.wm-checks { display: flex; gap: 16px; flex-wrap: wrap; } .wm-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.wm-bal-bar { width: 34%; min-width: 200px; } .wm-hb { display: flex; align-items: center; gap: 6px; height: 12px; margin: 2px 0; } .wm-hb i { display: block; height: 8px; border-radius: 4px; min-width: 1px; } .wm-hb span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.wm-cap-bar { width: 30%; min-width: 180px; } .wm-capbar { display: flex; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--fr) 18%, var(--bg-3)); overflow: hidden; }
.wm-page .grid .wm-cap-act, .wm-cap-act { width: 80px; min-width: 80px; white-space: nowrap; text-align: right; } .wm-cap-act .iconbtn + .iconbtn { margin-left: 2px; }
.wm-capbar.sm { height: 7px; width: 120px; } .wm-capbar i { display: block; } .wm-capbar.over { outline: 2px solid var(--red); outline-offset: 1px; }
.wm-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 12px; padding-top: 14px; }
.wm-pc .panel-h { gap: 8px; flex-wrap: wrap; }
.wm-roles { display: inline-flex; gap: 4px; flex-wrap: wrap; } .wm-roles span { font-size: 11px; font-weight: 500; border-radius: 4px; padding: 1px 6px; background: color-mix(in srgb, #12a594 12%, transparent); color: #0f766e; }
[data-theme="dark"] .wm-roles span { color: #4fd1c5; }
.wm-permit { font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; } .wm-permit.bad { color: var(--red); border-color: var(--red); }
table.wm-mini { width: 100%; border-collapse: collapse; font-size: 12.5px; } .wm-mini th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 4px 16px 4px 0; border-bottom: 1px solid var(--line); }
.wm-mini th:first-child, .wm-mini td:first-child { padding-left: 16px; } .wm-mini td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--line); vertical-align: middle; } .wm-mini td small { display: block; } .wm-mini tr:last-child td { border-bottom: 0; }
.wm-addrow { margin: 4px 0 0 10px; }
@media (max-width: 1100px) { .wm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wm-two { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .wm-facts { grid-template-columns: 1fr; } .wm-grid4 { grid-template-columns: 1fr 1fr; } .wm-fee { grid-template-columns: 1fr 80px; } .wm-fee select { grid-column: 1; } .wm-board { grid-template-columns: repeat(6, 82vw); } .wm-steps li { min-width: 45%; } }
.wm-page .grid-wrap { overflow-x: auto; }
.wm-page .grid td { white-space: normal; overflow: visible; padding-top: 6px; padding-bottom: 6px; } .wm-page .grid td.r, .wm-page .grid td.num { white-space: nowrap; }
.wm-page .grid th { white-space: nowrap; }  .wm-alloc td:nth-child(5) small { overflow-wrap: anywhere; }
.wm-board { grid-template-columns: repeat(6, minmax(170px, 1fr)); }
.wm-alloc tr.wm-sub:hover td, .wm-alloc tfoot tr:hover td { background: var(--bg-2); }
.wm-mini th { white-space: nowrap; }
@media (max-width: 860px) { .wm-stream .page-h { flex-wrap: wrap; } .wm-stream .ph-title { flex-basis: 100%; } .wm-stream .ph-title h1 { font-size: 17px; overflow-wrap: anywhere; } .wm-stream .ph-title .obj-ico { display: none; } .wm-stream .ph-actions { flex-wrap: wrap; } }
.wm-mt td:first-child, .wm-alloc td:nth-child(2) { min-width: 160px; width: 18%; } .wm-mt td:nth-child(5) { width: 22%; }
.wm-page .grid th.r + th:not(.r) { padding-left: 18px; }

.wm-card-h { display: flex; align-items: center; gap: 6px; } .wm-card-t { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.wm-col { min-width: 0; } .wm-board { grid-template-columns: repeat(6, minmax(165px, 1fr)); }
/* help: inline screenshots and tables */
.help-art .hb-shot { margin: 8px 0 22px; }
.hb-table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.hb-table table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; }
.hb-table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-2); background: var(--bg-2); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.hb-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } .hb-table tr:last-child td { border-bottom: 0; }
.hb-table td:first-child { font-weight: 500; white-space: nowrap; } .help-art.compact .hb-table td:first-child { white-space: normal; }

/* ---------- company addresses ---------- */
.addr-list { list-style: none; margin: 0; padding: 0 12px 10px; }
.addr-list li { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); } .addr-list li:first-child { border-top: 0; }
.addr-list .addr-notes { white-space: pre-wrap; } .addr-acts { display: flex; gap: 2px; align-items: flex-start; opacity: .55; } .addr-list li:hover .addr-acts { opacity: 1; }
.addr-main, .addr-kind { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 8px; background: var(--bg-3); color: var(--ink-2); font-weight: 500; vertical-align: 1px; }
.addr-main { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.addr-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 14px; font-size: 12.5px; cursor: pointer; user-select: none; }
.chip-check input { display: none; } .chip-check.on { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--accent); }
.chk-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; }
.addr-opt { align-items: flex-start !important; text-align: left; } .addr-opt .grow b { font-weight: 600; } .addr-opt small { display: block; white-space: normal; line-height: 1.35; }
.addr-add { padding: 10px; } .addr-add .form-grid { gap: 8px; }
.input-like.addr-pick { height: auto; min-height: 35px; padding: 5px 10px; } .input-like.addr-pick .grow { min-width: 0; } .input-like.addr-pick small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.input-like.addr-pick b { font-weight: 500; } .input-like:disabled { opacity: .6; cursor: not-allowed; }
.addr-val b { font-weight: 500; } .addr-val .muted { font-size: 12px; }
.wm-at { display: block; } .wm-at svg { vertical-align: -1px; }

/* ---------- pointer effects (public/js/fx.js): magnetic buttons, cursor spotlight, tilt cards, sticky bars ---------- */
.fx-spot { position: fixed; inset: 0; pointer-events: none; z-index: 60; transition: opacity .3s;
  background: radial-gradient(560px circle at var(--cx, -999px) var(--cy, -999px), color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%); }
[data-theme=dark] .fx-spot { background: radial-gradient(560px circle at var(--cx, -999px) var(--cy, -999px), rgba(255, 255, 255, .045), color-mix(in srgb, var(--accent) 3%, transparent) 30%, transparent 62%); }
.fx-spot.off { opacity: 0; }
.fx .fx-mag { will-change: translate; }
.fx .fx-tilt { will-change: transform; transform-style: preserve-3d; box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .28), var(--shadow); }
[data-theme=dark] .fx .fx-tilt { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6), var(--shadow); }
/* the card lights up where the cursor is: a glow inside and a brighter rim */
.fx .fx-glow { background-image: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%); }
[data-theme=dark] .fx .fx-glow { background-image: radial-gradient(340px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 255, 255, .05), transparent 70%); }
.fx .card.fx-glow, .fx .wm-card.fx-glow, .fx .kpi.fx-glow, .fx .card-p.fx-glow { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
/* bars that stick under the page header (positions set by fx.js) */
.fx-stick { position: sticky; z-index: 4; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.page > .fx-stick, .wm-page > .fx-stick { margin-left: -32px; margin-right: -32px; padding-left: 32px; padding-right: 32px; }
.fx-stuck { box-shadow: 0 8px 16px -14px rgba(16, 24, 40, .35); }
.page-h.fx-stuck { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 96%, transparent); }
.rec-main > .tl-tabs.fx-stick { margin-left: -4px; margin-right: -4px; padding-left: 4px; padding-right: 4px; }
@media (max-width: 860px) { .page > .fx-stick, .wm-page > .fx-stick { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; } }
@media (prefers-reduced-motion: reduce) { .fx-spot { display: none; } }
.fx-toggle { display: flex; align-items: center; gap: 8px; padding: 4px 12px 10px; font-size: 13px; cursor: pointer; } .fx-toggle .muted { margin-left: -2px; }
