/* Wise Visibility Admin System - styles. No inline styles anywhere (strict security policy), everything is here. */
/* Fonts: Figtree and Poppins (SIL Open Font License), served from this site. */
@font-face { font-family: Figtree; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Figtree; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Figtree; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: Figtree; font-weight: 700; font-style: normal; font-display: swap; src: url('/assets/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
:root {
  --navy: #1a1a2e; --side: #131a30; --side-2: #1c2542; --side-text: #c7d0e4;
  --accent: #2f5bff; --accent-d: #2347d4; --accent-l: #e8edff; --gold: #c9a227;
  --bg: #f4f6fa; --card: #fff; --line: #e3e7ef; --line-2: #d3d9e6; --text: #14203a; --muted: #5a6578; --faint: #8a94a8;
  --green: #0f7b4f; --green-l: #ddf3ea; --red: #c2271f; --red-l: #fde3e1; --amber: #b45309; --amber-l: #ffe9c7;
  --purple: #5b3fd1; --purple-l: #ece8fa; --blue: #1f3a8a; --blue-l: #e3ebff; --grey-l: #e9ecf2;
  --r: 10px; --shadow: 0 1px 2px rgba(16,27,51,.06), 0 4px 14px rgba(16,27,51,.06); --shadow-lg: 0 16px 44px rgba(16,27,51,.22);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--accent-d); }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #2f5bff; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1 1 auto; min-width: 0; } .right { margin-left: auto; } .gap-6 { gap: 6px; } .gap-16 { gap: 16px; }
.nowrap { white-space: nowrap; } .center { text-align: center; } .strong { font-weight: 700; } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ---------- boot / login ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-card { text-align: center; } .boot-logo { font-weight: 800; letter-spacing: .3em; font-size: 20px; color: var(--navy); } .boot-sub { color: var(--muted); margin-top: 8px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(160deg, #131a30 0%, #1a1a2e 55%, #243066 100%); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow-lg); }
.auth-brand { text-align: center; margin-bottom: 22px; } .auth-brand .logo { font-weight: 800; letter-spacing: .28em; font-size: 20px; color: var(--navy); } .auth-brand .auth-tag { font-size: 11px; letter-spacing: .24em; color: var(--faint); margin-top: 6px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; } .auth-card .lead { color: var(--muted); margin-bottom: 18px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 12px; color: var(--faint); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.brand { padding: 4px 10px 18px; } .brand .logo { font-weight: 800; letter-spacing: .22em; font-size: 15px; color: #fff; } .brand .sub { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-left: 3px solid transparent; border-radius: 9px; background: transparent; color: var(--side-text); font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; }
.nav-btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn.on { background: rgba(255,255,255,.1); color: #fff; border-left-color: var(--gold); }
.nav-btn .badge { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #d12b2b; color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.nav-btn .badge.gold { background: var(--gold); color: #14203a; }
.nav-sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 8px; }
.nav-label { padding: 8px 12px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7f8db0; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid rgba(255,255,255,.1); }
.side-user .who { min-width: 0; flex: 1; } .side-user .nm { color: #fff; font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .side-user .rl { font-size: 12px; color: #9aa7c7; }
.side-user button { background: transparent; border: 0; color: #c7d0e4; border-radius: 8px; padding: 8px; } .side-user button:hover { background: rgba(255,255,255,.1); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.menu-toggle { display: none; }
.search { position: relative; flex: 1 1 320px; max-width: 640px; }
.search .box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.search .box:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,91,255,.15); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.search kbd { font: 12px var(--font); padding: 2px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--faint); background: #fff; }
.search-results { position: absolute; top: 50px; left: 0; right: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 70vh; overflow-y: auto; z-index: 60; }
.search-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: #fff; text-align: left; }
.search-item:hover, .search-item.on { background: var(--accent-l); }
.search-item .lbl { font-weight: 700; } .search-item .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-none { padding: 14px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.page { padding: 26px 28px 60px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.page-head h1 { font-size: 28px; } .page-head .lead { color: var(--muted); margin-top: 4px; max-width: 70ch; }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn:hover:not(:disabled) { background: #f3f5f9; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn-primary:hover:not(:disabled) { background: var(--accent-d); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: #fff; } .btn-dark:hover:not(:disabled) { background: #24243f; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; } .btn-danger:hover:not(:disabled) { background: #a51f18; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-outline-danger { border-color: #e5a19b; color: var(--red); background: #fff; }
.btn-good { background: var(--green); border-color: var(--green); color: #fff; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; } .btn-lg { min-height: 46px; padding: 0 22px; font-size: 15px; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--grey-l); color: var(--text); }
.input { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--text); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,91,255,.15); }
.input.invalid { border-color: var(--red); } .input::placeholder { color: var(--faint); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; } select.input { padding-right: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-weight: 700; font-size: 13px; color: #2a3550; } .field .opt { font-weight: 400; color: var(--faint); }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; } .field-error { min-height: 0; font-size: 13px; font-weight: 700; color: var(--red); } .field-error:empty { display: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.form-grid .span2 { grid-column: 1 / -1; }
.switch { flex: 0 0 auto; width: 46px; height: 28px; border: 0; border-radius: 999px; background: #aeb8cc; padding: 3px; display: flex; align-items: center; }
.switch .knob { width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .12s; } .switch.on { background: var(--green); } .switch.on .knob { transform: translateX(18px); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-weight: 700; font-size: 13px; }
.chip:hover { background: #f3f5f9; } .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); }
.tab { min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; background: transparent; font-weight: 700; color: var(--muted); }
.tab:hover { color: var(--text); } .tab.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-badge { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--grey-l); font-size: 12px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: #fff; border: 1px solid var(--line-2); border-radius: 11px; flex-wrap: wrap; }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: 14px; color: var(--text); }
.seg button.on { background: var(--navy); color: #fff; }

/* ---------- cards, kpis, misc ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card h2 { font-size: 17px; margin-bottom: 4px; } .card .sub { color: var(--muted); margin-bottom: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.kpi-label { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 32px; font-weight: 800; line-height: 1.15; margin-top: 4px; } .kpi-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.kpi-red .kpi-value { color: var(--red); } .kpi-green .kpi-value { color: var(--green); } .kpi-purple .kpi-value { color: var(--purple); } .kpi-amber .kpi-value { color: var(--amber); }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: var(--grey-l); color: #3f4859; white-space: nowrap; }
.pill-green { background: var(--green-l); color: #0b5c3e; } .pill-red { background: var(--red-l); color: #8c1d18; } .pill-amber { background: var(--amber-l); color: #7a4300; }
.pill-blue { background: var(--blue-l); color: var(--blue); } .pill-purple { background: var(--purple-l); color: #40308f; } .pill-grey { background: var(--grey-l); color: #3f4859; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; background: var(--grey-l); color: #3f4859; }
.tag-client { background: #ddf3ea; color: #0b5c3e; } .tag-lead { background: var(--blue-l); color: var(--blue); } .tag-ticket { background: #ffe3d3; color: #8a3a12; }
.tag-prospect { background: #fff1cc; color: #6b5000; } .tag-internal { background: var(--purple-l); color: #40308f; } .tag-task { background: var(--grey-l); }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; color: #fff; font-weight: 800; user-select: none; }
.avatar-empty { background: #fff !important; color: var(--faint); border: 1.5px dashed #b6bfd0; }
.loading { display: flex; align-items: center; gap: 12px; padding: 40px; color: var(--muted); justify-content: center; }
.spin { width: 18px; height: 18px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); } .empty h3 { color: var(--text); margin: 10px 0 6px; font-size: 18px; } .empty p { max-width: 52ch; margin: 0 auto; }
.empty-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--grey-l); color: var(--muted); } .empty-actions { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.notice.warn { background: #fff8e6; border-color: #f0d28a; } .notice.bad { background: var(--red-l); border-color: #e5a19b; } .notice.good { background: var(--green-l); border-color: #9bd3b6; } .notice.info { background: var(--blue-l); border-color: #b9c9f5; }
.notice .ni { flex: 0 0 auto; margin-top: 1px; } .notice strong { display: block; }
.code { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; font: 12.5px/1.55 ui-monospace, Consolas, monospace; overflow: auto; white-space: pre; max-height: 260px; }
.divider { height: 1px; background: var(--line); margin: 8px 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; } .kv dt { color: var(--muted); font-weight: 700; font-size: 13px; } .kv dd { margin: 0; word-break: break-word; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 14px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #f8f9fc; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid #eef1f6; vertical-align: middle; } .table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #f8faff; } .table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border-radius: 12px; }
.bar { height: 10px; background: var(--grey-l); border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--green); border-radius: 99px; }

/* ---------- boards (monday-style grouped tables) ---------- */
.board-group { margin-bottom: 22px; }
.group-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.group-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: transparent; font-weight: 800; font-size: 18px; border-radius: 8px; }
.group-toggle svg { transition: transform .15s; } .group-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.group-sum { font-size: 14px; font-weight: 600; color: var(--muted); }
.grp-red { color: #b4231f; } .grp-gold { color: #7a5c00; } .grp-purple { color: var(--purple); } .grp-blue { color: #2748d6; } .grp-green { color: #0e7a55; } .grp-grey { color: #3f4859; } .grp-orange { color: #b45309; } .grp-pink { color: #9b1d6a; }
.board { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.board-in { min-width: var(--minw, 980px); }
.brow { display: grid; grid-template-columns: var(--cols); align-items: stretch; border-bottom: 1px solid #eef1f6; min-height: 58px; }
.brow:last-child { border-bottom: 0; }
.brow.head { min-height: 0; background: #f8f9fc; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.brow.head > div { padding: 12px 14px; }
.brow:not(.head):not(.add):hover { background: #fafbfe; }
.bar-c { width: 6px; } .bar-c.c-red { background: #d12b2b; } .bar-c.c-gold { background: #c9a227; } .bar-c.c-purple { background: #7b5ce0; } .bar-c.c-blue { background: #3d6bff; } .bar-c.c-green { background: #12936a; } .bar-c.c-grey { background: #8a94a8; } .bar-c.c-orange { background: #e08a00; } .bar-c.c-pink { background: #c43b8d; }
.cell { padding: 8px 14px; display: flex; align-items: center; min-width: 0; } .cell.col-c { justify-content: center; padding-left: 0; padding-right: 0; }
.cell.name { flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; }
.name-btn { text-align: left; background: transparent; border: 0; padding: 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--text); }
.name-btn:hover { color: var(--accent-d); text-decoration: underline; } .done .name-btn { color: var(--muted); text-decoration: line-through; }
.name-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.cell-status { flex: 1; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; margin: 0; padding: 0 8px; color: #fff; font-weight: 700; font-size: 14px; }
.cell-status:hover { filter: brightness(1.08); }
.cell.status { padding: 0; }
.st-not_started { background: #6b7280; } .st-working { background: #b45309; } .st-waiting { background: #5b3fd1; } .st-stuck { background: #c2271f; } .st-done { background: #0f7b4f; }
.st-new { background: #6b7280; } .st-verified { background: #0b6e8c; } .st-outreach { background: #b45309; } .st-nurturing { background: #6d4ac9; } .st-replied { background: #0f7b4f; } .st-booked { background: #9b1d6a; } .st-lost { background: #6b7280; }
.pr { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 0; }
.pr-critical { background: #fde3e1; color: #8c1d18; } .pr-high { background: #ffe9c7; color: #7a4300; } .pr-medium { background: #e3ebff; color: #1f3a8a; } .pr-low { background: #e9ecf2; color: #3f4859; }
.due { font-size: 14px; font-weight: 600; background: transparent; border: 0; padding: 4px 6px; border-radius: 6px; text-align: left; } .due:hover { background: var(--grey-l); } .due.overdue { color: #b4231f; font-weight: 800; } .due.done { color: #0e7a55; }
.upd-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 8px; border-radius: 8px; color: var(--faint); font-weight: 800; font-size: 13px; } .upd-btn.has { color: var(--accent-d); } .upd-btn:hover { background: var(--grey-l); }
.cell-btn { background: transparent; border: 0; padding: 4px 6px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; } .cell-btn:hover { background: var(--grey-l); }
.brow.add { min-height: 46px; background: #fcfcfe; }
.add-input { width: 100%; border: 0; background: transparent; padding: 0 14px; height: 46px; font-size: 14px; outline: none; color: var(--text); } .add-input:focus { background: #f3f7ff; } .add-input::placeholder { color: var(--faint); }
.segbar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; width: 120px; background: var(--grey-l); } .segbar i { display: block; height: 100%; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kcol { background: #eef1f7; border-radius: 12px; padding: 10px; min-height: 140px; } .kcol.over { outline: 3px dashed var(--accent); outline-offset: -3px; background: var(--accent-l); }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 800; } .kcol-head .dot { width: 12px; height: 12px; border-radius: 50%; }
.kcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(16,27,51,.05); }
.kcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); } .kcard.dragging { opacity: .45; } .kcard .t { font-weight: 700; margin-bottom: 4px; } .kcard .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- menus, modal, drawer, toast ---------- */
.menu { position: fixed; z-index: 200; min-width: 200px; max-width: 320px; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.menu-item { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; text-align: left; } .menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--grey-l); outline: none; }
.menu-item.danger { color: var(--red); } .menu-item.active { font-weight: 800; } .menu-check { margin-left: auto; color: var(--accent-d); }
.menu-item.swatch { color: #fff; justify-content: center; height: 40px; } .menu-item.swatch:hover { filter: brightness(1.1); background: inherit; } .menu-item.swatch.active { outline: 3px solid var(--navy); outline-offset: 1px; }
.menu-div { height: 1px; background: var(--line); margin: 4px 0; } .menu-head { padding: 6px 12px 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.overlay { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(16,23,43,.55); }
.modal { width: 100%; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 8px; } .modal-head h2 { font-size: 20px; }
.modal-body { padding: 8px 22px 18px; overflow-y: auto; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.confirm-text { line-height: 1.6; color: #2a3550; }
.drawer-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(16,23,43,0); transition: background .15s; } .drawer-overlay.open { background: rgba(16,23,43,.35); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(560px, 100vw); background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .16s ease-out; display: flex; flex-direction: column; } .drawer.open { transform: none; } .drawer.wide { width: min(760px, 100vw); }
.drawer-top { display: flex; justify-content: flex-end; padding: 8px 10px 0; } .drawer-body { padding: 0 24px 28px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.drawer-title { width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; margin: 0 -8px; font-size: 22px; font-weight: 800; background: transparent; letter-spacing: -.01em; } .drawer-title:hover { border-color: var(--line-2); } .drawer-title:focus { outline: none; border-color: var(--accent); background: #fff; }
.meta-grid { display: grid; grid-template-columns: 110px 1fr; gap: 12px 12px; align-items: center; } .meta-grid .k { font-size: 13px; font-weight: 700; color: var(--muted); }
.upd { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); } .upd:last-child { border-bottom: 0; }
.upd .who { font-weight: 800; } .upd .when { font-size: 12.5px; color: var(--faint); } .upd .body { margin-top: 6px; white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.composer { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; background: #fff; } .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,91,255,.12); }
.composer textarea { width: 100%; border: 0; outline: none; resize: vertical; min-height: 84px; font-size: 15px; line-height: 1.5; background: transparent; }
.toasts { position: fixed; z-index: 300; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 8px 12px 14px; border-radius: 12px; background: #14203a; color: #fff; box-shadow: var(--shadow-lg); font-weight: 600; } .toast span { flex: 1; line-height: 1.45; padding-top: 1px; }
.toast-error { background: #8c1d18; } .toast-x { color: #fff !important; width: 28px; height: 28px; } .toast-x:hover { background: rgba(255,255,255,.18) !important; }

/* conversation (tickets) */
.msg { padding: 14px 16px; border-radius: 12px; max-width: 92%; } .msg.in { background: #f3f5f9; align-self: flex-start; } .msg.out { background: var(--blue-l); align-self: flex-end; } .msg.note { background: #fff8e6; border: 1px dashed #e8c76a; align-self: stretch; max-width: 100%; }
.msg .mh { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; font-size: 13px; color: var(--muted); } .msg .mh strong { color: var(--text); } .msg .mb { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.thread { display: flex; flex-direction: column; gap: 10px; }

/* invoice editor */
.lines { display: flex; flex-direction: column; gap: 8px; } .line { display: grid; grid-template-columns: minmax(180px, 3fr) 90px 130px 120px 40px; gap: 8px; align-items: center; } .line.head { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.line .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals { margin-left: auto; width: min(340px, 100%); display: flex; flex-direction: column; gap: 6px; } .totals .tr { display: flex; justify-content: space-between; } .totals .tr.big { font-size: 20px; font-weight: 800; padding-top: 8px; border-top: 2px solid var(--navy); }
.preview-frame { width: 100%; height: 70vh; border: 1px solid var(--line-2); border-radius: 12px; background: #f4f4f4; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .18s; box-shadow: var(--shadow-lg); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(16,23,43,.45); z-index: 35; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 10px 14px; } .page { padding: 18px 14px 50px; }
  .line { grid-template-columns: 1fr 70px 100px; } .line.head { display: none; } .line .amt { text-align: left; grid-column: 1 / -1; }
  .meta-grid { grid-template-columns: 1fr; gap: 4px; } .kv { grid-template-columns: 1fr; }
}
@media print { .sidebar, .topbar, .toasts, .btn, .icon-btn { display: none !important; } .shell { display: block; } body { background: #fff; } }

ul.col > li { display: list-item; }

/* ---------- white theme: mostly white, colour reserved for status, badges and highlights ---------- */
:root { --bg: #ffffff; --shadow: 0 1px 2px rgba(16,27,51,.05), 0 4px 14px rgba(16,27,51,.05); }
.auth-wrap { background: linear-gradient(160deg, #ffffff 0%, #f1f5fe 100%); }
.auth-card { border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(31,58,138,.10); }
.sidebar { background: #ffffff; color: #3a4660; border-right: 1px solid var(--line); }
.brand .logo { color: var(--navy); }
.brand .sub { color: #a88a14; }
.nav-btn { color: #3a4660; }
.nav-btn:hover { background: #f3f6fc; color: var(--navy); }
.nav-btn.on { background: var(--accent-l); color: var(--accent-d); border-left-color: var(--accent); }
.nav-sep { background: var(--line); }
.nav-label { color: var(--faint); }
.side-user { border-top: 1px solid var(--line); }
.side-user .nm { color: var(--text); }
.side-user .rl { color: var(--muted); }
.side-user button { color: var(--muted); }
.side-user button:hover { background: var(--grey-l); color: var(--text); }
.topbar { box-shadow: 0 1px 0 var(--line); }
.search .box { background: #f6f8fc; }
.card, .kpi, .board, .table { box-shadow: var(--shadow); }
.brow.head, .table th { background: #f7f9fd; }
.kcol { background: #f6f8fc; border: 1px solid var(--line); }
.code { background: #f6f8fc; color: #1e293b; border: 1px solid var(--line); }
.page-head h1 { color: var(--navy); }

/* ---------- v2: dropdown colors and monday-style grid ---------- */
/* The swatch colors must beat ".menu-item { background: transparent }", which comes later in this file. */
.menu-item.st-not_started, .menu-item.st-new, .menu-item.st-lost { background: #6b7280; }
.menu-item.st-working, .menu-item.st-outreach { background: #b45309; }
.menu-item.st-waiting { background: #5b3fd1; }
.menu-item.st-stuck { background: #c2271f; }
.menu-item.st-done, .menu-item.st-replied { background: #0f7b4f; }
.menu-item.st-verified { background: #0b6e8c; }
.menu-item.st-nurturing { background: #6d4ac9; }
.menu-item.st-booked { background: #9b1d6a; }
.menu-item.swatch { margin: 3px 0; font-weight: 700; }
.menu-item.swatch:hover:not(:disabled) { filter: brightness(1.12); }

/* Lines between every row and every column, like monday.com */
:root { --grid: #dfe3ec; }
.board { border: 1px solid var(--grid); border-radius: 8px; box-shadow: none; }
.brow { border-bottom: 1px solid var(--grid); min-height: 52px; }
.brow > .cell, .brow > div:not(.bar-c):not(.foot-in) { border-left: 1px solid var(--grid); }
.brow > .bar-c + .cell, .brow > .bar-c + div { border-left: 0; }
.brow.head { background: #f5f6f8; border-bottom: 1px solid var(--grid); }
.brow.head > div { padding: 10px 14px; font-size: 12px; }
.brow.head > div.center { text-align: center; }
.brow:not(.head):not(.add):not(.foot):hover { background: #f5f8ff; }
.brow .cell.status { padding: 0; }
.brow .cell-status { border-radius: 0; }
.brow .cell-btn:hover, .brow .due:hover { background: #e9edf5; }
.brow.add { background: #fff; }
.brow.add .add-input { color: #4b5563; }
.brow.add > div[style] { border-left: 0; }
.bar-c { width: 6px; border-radius: 0; }
.bar-c.c-none { background: transparent; }
.brow.foot { min-height: 38px; background: #fafbfc; border-bottom: 0; }
.foot-in { grid-column: 2 / -1; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-left: 0; }
.sumbar { display: flex; height: 14px; width: min(320px, 60%); border-radius: 4px; overflow: hidden; background: #e8eaf0; }
.sumbar i { display: block; height: 100%; min-width: 6px; }
.sumbar i + i { border-left: 2px solid #fff; }
.group-head { margin-bottom: 6px; }

.table { border-collapse: collapse; }
.table th, .table td { border: 1px solid var(--grid); }
.table-wrap { border: 1px solid var(--grid); border-radius: 8px; }
.table thead th { background: #f5f6f8; }
.table tbody tr:hover td { background: #f5f8ff; }
.table { border: 0; border-radius: 0; box-shadow: none; }
.brow.head > div:first-child, .brow.head > div:nth-child(2) { border-left: 0; }

/* v3: solid, clearly visible grid (change --grid to adjust every line at once) */
:root { --grid: #7d8aa6; --grid-outer: #3d4a68; }
.board { border: 2px solid var(--grid-outer); border-radius: 6px; }
.brow { border-bottom: 1px solid var(--grid); }
.brow.head { background: #e9edf5; border-bottom: 2px solid var(--grid-outer); color: #2b3752; }
.brow > .cell, .brow > div:not(.bar-c):not(.foot-in) { border-left: 1px solid var(--grid); }
.brow > .bar-c + .cell, .brow > .bar-c + div, .brow.head > div:first-child, .brow.head > div:nth-child(2), .brow.add > div[style] { border-left: 0; }
.brow.foot { background: #f1f4f9; border-top: 2px solid var(--grid-outer); border-bottom: 0; }
.table th, .table td { border: 1px solid var(--grid); }
.table thead th { background: #e9edf5; color: #2b3752; border-bottom: 2px solid var(--grid-outer); }
.table-wrap { border: 2px solid var(--grid-outer); border-radius: 6px; }
.cell { overflow-wrap: anywhere; } .cell .tiny, .cell .small { min-width: 0; }

/* ---------- v4: compact, monday-like density (more on screen at a glance) ---------- */
:root { --font: Figtree, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; --text: #323338; --muted: #676879; --grid: #b9c0d4; --grid-outer: #b9c0d4; }
body { font-size: 14px; line-height: 1.35; }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.strong { font-weight: 600; }

/* frame */
.shell { grid-template-columns: 216px minmax(0, 1fr); }
.sidebar { padding: 12px 8px; gap: 1px; }
.brand { padding: 2px 8px 12px; } .brand .logo { font-size: 13px; }
.nav-btn { min-height: 34px; padding: 0 10px; gap: 10px; font-size: 14px; font-weight: 500; border-radius: 6px; }
.nav-btn .badge { font-size: 11px; padding: 0 6px; min-width: 18px; }
.nav-sep { margin: 6px 6px; }
.topbar { padding: 8px 20px; gap: 10px; }
.search .box { height: 34px; border-radius: 6px; } .search input { font-size: 14px; }
.page { padding: 14px 20px 40px; gap: 12px; }
.page-head { align-items: center; gap: 10px; }
.page-head h1 { font-size: 24px; font-weight: 600; } .page-head .lead { font-size: 13px; margin-top: 2px; max-width: 90ch; }

/* controls */
.btn { min-height: 32px; padding: 0 12px; font-size: 13.5px; font-weight: 500; border-radius: 4px; gap: 6px; }
.btn-sm { min-height: 28px; padding: 0 10px; font-size: 12.5px; } .btn-lg { min-height: 40px; font-size: 14px; }
.icon-btn { width: 30px; height: 30px; }
.input { min-height: 34px; padding: 5px 10px; border-radius: 4px; }
.seg { padding: 2px; gap: 2px; border-radius: 6px; } .seg button { min-height: 28px; padding: 0 12px; font-size: 13px; font-weight: 500; border-radius: 4px; }
.tab { min-height: 36px; padding: 0 12px; font-weight: 500; font-size: 14px; border-bottom-width: 2px; }
.chip { min-height: 28px; padding: 0 10px; font-weight: 500; }
.field label { font-size: 12.5px; font-weight: 600; } .field { gap: 4px; }

/* cards and KPIs */
.card { padding: 14px; border-radius: 8px; } .card h2 { font-size: 15px; font-weight: 600; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.kpi { padding: 8px 12px; border-radius: 8px; }
.kpi-label { font-size: 11px; font-weight: 600; } .kpi-value { font-size: 22px; font-weight: 600; margin-top: 0; } .kpi-note { font-size: 12px; margin-top: 0; }
.pill { padding: 2px 9px; font-size: 12px; font-weight: 600; } .tag { padding: 1px 6px; font-size: 10.5px; font-weight: 700; }

/* boards */
.board-group { margin-bottom: 14px; }
.group-head { gap: 8px; margin-bottom: 4px; }
.group-toggle { font-size: 16px; font-weight: 600; padding: 2px 4px; } .group-sum { font-size: 12.5px; }
.board { border: 1px solid var(--grid); border-radius: 4px; box-shadow: none; }
.brow { min-height: 36px; border-bottom: 1px solid var(--grid); }
.brow.head { min-height: 0; background: #fff; border-bottom: 1px solid var(--grid); color: var(--text); font-size: 13.5px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.brow.head > div { padding: 6px 10px; text-align: center; font-size: 13.5px; }
.cell { padding: 2px 10px; min-height: 35px; }
.cell.name { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.name-btn { font-size: 14px; font-weight: 500; }
.name-sub { font-size: 12px; gap: 6px; flex-wrap: nowrap; }
.cell-status { font-size: 13.5px; font-weight: 500; }
.pr { padding: 2px 10px; font-size: 12.5px; font-weight: 600; }
.due { font-size: 13.5px; padding: 2px 4px; }
.upd-btn { padding: 4px; } .upd-btn svg { width: 16px; height: 16px; }
.cell-btn { padding: 2px 4px; font-size: 13px; gap: 6px; }
.brow .avatar { width: 22px !important; height: 22px !important; font-size: 9.5px !important; }
.brow.add { min-height: 32px; } .add-input { height: 32px; font-size: 13.5px; }
.brow.foot { min-height: 28px; background: #fafbfc; border-top: 1px solid var(--grid); }
.sumbar { height: 10px; } .foot-in { gap: 10px; }
.bar-c { width: 4px; }

/* tables */
.table { font-size: 13.5px; }
.table th { font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text); background: #fff; padding: 6px 10px; text-align: center; border-bottom: 1px solid var(--grid); }
.table td { padding: 6px 10px; }
.table thead th { background: #fff; color: var(--text); border-bottom: 1px solid var(--grid); }
.table-wrap { border: 1px solid var(--grid); border-radius: 4px; }
.table th, .table td { border: 1px solid var(--grid); }

/* menus */
.menu-item { min-height: 30px; font-size: 13.5px; font-weight: 500; padding: 0 10px; }
.menu-item.swatch { height: 30px; margin: 2px 0; font-weight: 500; }

/* status colors in monday.com's palette */
.st-not_started, .menu-item.st-not_started, .st-new, .menu-item.st-new, .st-lost, .menu-item.st-lost { background: #9aa0b5; }
.st-working, .menu-item.st-working, .st-outreach, .menu-item.st-outreach { background: #fdab3d; }
.st-waiting, .menu-item.st-waiting { background: #a25ddc; }
.st-stuck, .menu-item.st-stuck { background: #df2f4a; }
.st-done, .menu-item.st-done, .st-replied, .menu-item.st-replied { background: #00c875; }
.st-verified, .menu-item.st-verified { background: #66ccff; }
.st-nurturing, .menu-item.st-nurturing { background: #579bfc; }
.st-booked, .menu-item.st-booked { background: #ff158a; }
.cell.name { justify-content: flex-start; text-align: left; }
.brow.head > div:nth-child(2) { text-align: left; padding-left: 12px; }
.due { white-space: nowrap; }

/* headings in Poppins like monday.com */
.page-head h1, .group-toggle, .auth-card h1, .card h2 { font-family: Poppins, Figtree, "Segoe UI", system-ui, sans-serif; }
.group-toggle { font-weight: 500; } .page-head h1 { font-weight: 500; }

/* keep the status color (and white text) while hovering or tabbing through the menu */
.menu-item.swatch.st-not_started:hover:not(:disabled), .menu-item.swatch.st-not_started:focus-visible { background: #9aa0b5; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-new:hover:not(:disabled), .menu-item.swatch.st-new:focus-visible { background: #9aa0b5; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-lost:hover:not(:disabled), .menu-item.swatch.st-lost:focus-visible { background: #9aa0b5; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-working:hover:not(:disabled), .menu-item.swatch.st-working:focus-visible { background: #fdab3d; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-outreach:hover:not(:disabled), .menu-item.swatch.st-outreach:focus-visible { background: #fdab3d; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-waiting:hover:not(:disabled), .menu-item.swatch.st-waiting:focus-visible { background: #a25ddc; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-stuck:hover:not(:disabled), .menu-item.swatch.st-stuck:focus-visible { background: #df2f4a; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-done:hover:not(:disabled), .menu-item.swatch.st-done:focus-visible { background: #00c875; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-replied:hover:not(:disabled), .menu-item.swatch.st-replied:focus-visible { background: #00c875; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-verified:hover:not(:disabled), .menu-item.swatch.st-verified:focus-visible { background: #66ccff; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-nurturing:hover:not(:disabled), .menu-item.swatch.st-nurturing:focus-visible { background: #579bfc; color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-booked:hover:not(:disabled), .menu-item.swatch.st-booked:focus-visible { background: #ff158a; color: #fff; filter: brightness(1.08); }

/* names never wrap onto a second line: they shorten with ... instead */
.cell-btn { max-width: 100%; white-space: nowrap; min-width: 0; }
.cell-btn .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cell.name .name-btn { white-space: normal; }

/* ---------- v5: sub-menu, resizable columns, selection (monday-style) ---------- */
.nav-sub { display: none; margin: 1px 0 6px 20px; padding-left: 8px; border-left: 1px solid var(--grid); }
.nav-group.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 5px 10px; margin: 1px 0; border-radius: 5px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-sub a:hover { background: #f3f6fc; color: var(--navy); }
.nav-sub a.on { background: var(--accent-l); color: var(--accent-d); font-weight: 600; }

.brow.head > div.resizable { position: relative; }
.col-rs { position: absolute; top: 0; right: -4px; bottom: 0; width: 9px; cursor: col-resize; z-index: 3; touch-action: none; }
.col-rs::after { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: 2px; border-radius: 2px; background: transparent; }
.col-rs:hover::after { background: var(--accent); }

.cell.chk { justify-content: center; padding: 0; }
.cell.chk input[type=checkbox], .brow input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.brow.head > .cell.chk { padding: 0; }
.bulkbar { position: sticky; top: 52px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: #fff; border: 1px solid var(--accent); border-radius: 6px; box-shadow: var(--shadow); }
.name-btn.static { cursor: default; } .name-btn.static:hover { color: inherit; text-decoration: none; }
.err-text { color: #b4231f; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-0 { gap: 0; }
.email-link { color: var(--accent-d); text-decoration: none; word-break: break-all; } .email-link:hover { text-decoration: underline; }
a.ext { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-d); text-decoration: none; word-break: break-all; } a.ext:hover { text-decoration: underline; }
.cell.name .err-text { flex-basis: 100%; }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none !important; }

.steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; } .steps li { line-height: 1.45; }

/* ---------- v6: monday-style rail + sub-page panel, centered cells, CRM boards ---------- */
.shell { grid-template-columns: 78px minmax(0, 1fr); }
.shell.has-panel { grid-template-columns: 300px minmax(0, 1fr); }
.sidebar { display: grid; grid-template-columns: 78px minmax(0, 1fr); padding: 0; gap: 0; overflow: hidden; background: #fff; border-right: 1px solid var(--grid); }
.shell:not(.has-panel) .panel { display: none; }
.rail { width: 78px; background: #f6f7fb; border-right: 1px solid #e3e7f0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 10px; height: 100vh; overflow-y: auto; }
.rail-logo { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; font: 700 14px Poppins, Figtree, sans-serif; letter-spacing: .02em; display: grid; place-items: center; text-decoration: none; margin: 2px 0 10px; }
.rail-nav, .rail-bottom { display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
.rail-nav { flex: 1 1 auto; }
.rail-bottom { margin-top: 8px; padding-top: 8px; border-top: 1px solid #e3e7f0; }
.rail-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; padding: 6px 2px; border-radius: 8px; color: #4a5470; text-decoration: none; text-align: center; }
.rail-btn:hover { background: #e9edf7; color: var(--navy); }
.rail-btn.on { background: #dbe6ff; color: var(--accent-d); }
.rail-btn .ri { position: relative; display: inline-grid; place-items: center; height: 24px; }
.rail-btn .rl { font-size: 10.5px; font-weight: 500; line-height: 1.15; max-width: 68px; }
.rail-btn .badge { position: absolute; top: -5px; right: -12px; min-width: 16px; padding: 0 4px; border-radius: 99px; background: #d12b2b; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.rail-btn .badge.gold { background: var(--gold); color: #14203a; font-size: 8.5px; padding: 0 3px; right: -18px; }
.rail-user { margin-top: 10px; padding: 4px; border: 0; background: transparent; border-radius: 50%; }
.rail-user:hover { background: #e9edf7; }
.panel { padding: 14px 10px 14px 12px; overflow-y: auto; height: 100vh; min-width: 0; }
.panel-brand { padding: 2px 8px 14px; } .panel-brand .logo { font-weight: 800; letter-spacing: .2em; font-size: 12px; color: var(--navy); } .panel-brand .sub { margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #a88a14; }
.panel-title { font: 600 16px Poppins, Figtree, sans-serif; color: var(--navy); padding: 4px 8px 10px; }
.panel nav { display: flex; flex-direction: column; gap: 1px; }
.panel a { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 6px; font-size: 14px; color: #3a4660; text-decoration: none; }
.panel a svg { color: #6b7590; flex: 0 0 auto; }
.panel a:hover { background: #f3f6fc; color: var(--navy); }
.panel a.on { background: var(--accent-l); color: var(--accent-d); font-weight: 600; } .panel a.on svg { color: var(--accent-d); }
@media (max-width: 960px) {
  .shell, .shell.has-panel { grid-template-columns: minmax(0, 1fr); }
  .sidebar { width: min(300px, 92vw); grid-template-columns: 78px minmax(0, 1fr); }
  .shell:not(.has-panel) .sidebar { width: 78px; }
}

/* everything centered, like monday.com, so a row can be scanned at a glance */
.brow > .cell, .brow > div:not(.bar-c):not(.foot-in) { justify-content: center; text-align: center; }
.cell.name { justify-content: center; text-align: center; }
.cell .col { align-items: center; }
.name-sub { justify-content: center; }
.brow.head > div, .brow.head > div:nth-child(2) { text-align: center; padding-left: 10px; }
.table td, .table th { text-align: center; }
.table td .row { justify-content: center; }
.brow, .table { font-variant-numeric: tabular-nums; }
.brow.add .add-input { text-align: left; }
.kpi { text-align: center; }

/* deal stages and CRM dashboards */
.st-discovery, .menu-item.st-discovery { background: #579bfc; } .st-proposal, .menu-item.st-proposal { background: #66ccff; }
.st-negotiation, .menu-item.st-negotiation { background: #fdab3d; } .st-won, .menu-item.st-won { background: #00c875; } .st-lost, .menu-item.st-lost { background: #df2f4a; }
.menu-item.swatch.st-discovery:hover:not(:disabled), .menu-item.swatch.st-proposal:hover:not(:disabled), .menu-item.swatch.st-negotiation:hover:not(:disabled), .menu-item.swatch.st-won:hover:not(:disabled), .menu-item.swatch.st-lost:hover:not(:disabled) { color: #fff; filter: brightness(1.08); }
.menu-item.swatch.st-discovery:hover:not(:disabled) { background: #579bfc; } .menu-item.swatch.st-proposal:hover:not(:disabled) { background: #66ccff; } .menu-item.swatch.st-negotiation:hover:not(:disabled) { background: #fdab3d; } .menu-item.swatch.st-won:hover:not(:disabled) { background: #00c875; } .menu-item.swatch.st-lost:hover:not(:disabled) { background: #df2f4a; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.dash-card { background: #fff; border: 1px solid var(--grid); border-radius: 8px; padding: 14px 16px; }
.dash-card h2 { font: 600 15px Poppins, Figtree, sans-serif; margin: 0 0 10px; }
.bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; align-items: center; gap: 10px; margin: 7px 0; font-size: 13px; }
.bar-row .bl { text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bar-row .bv { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar { height: 16px; background: #eef0f6; border-radius: 4px; overflow: hidden; } .hbar > i { display: block; height: 100%; border-radius: 4px; min-width: 2px; }
.vbars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding-top: 8px; }
.vbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 12px; }
.vbar > i { display: block; width: 100%; max-width: 46px; background: #00c875; border-radius: 4px 4px 0 0; min-height: 2px; } .vbar .vv { font-weight: 600; font-variant-numeric: tabular-nums; }
.skeleton { background: linear-gradient(90deg, #eef0f6 25%, #f7f8fb 50%, #eef0f6 75%); background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- logo ---------- */
.rail-logo { background: transparent; width: 46px; height: 46px; margin: 0 0 8px; border-radius: 10px; }
.rail-logo img { width: 40px; height: 40px; object-fit: contain; }
.brand-logo { display: block; width: 100%; max-width: 190px; height: auto; }
.panel-brand { padding: 4px 6px 12px; } .panel-brand .sub { margin-top: 4px; }
.auth-brand { text-align: center; margin-bottom: 18px; } .auth-logo { max-width: 260px; margin: 0 auto 4px; }
.boot-img { display: block; width: min(240px, 70vw); height: auto; margin: 0 auto; }

/* ---------- v7: monday.com color coding ---------- */
/* group edge strips use the vivid colors; group titles use readable darker tones of the same hue */
.bar-c.c-green { background: #00c875; } .bar-c.c-blue { background: #579bfc; } .bar-c.c-red { background: #df2f4a; } .bar-c.c-orange { background: #fdab3d; }
.bar-c.c-purple { background: #a25ddc; } .bar-c.c-pink { background: #ff158a; } .bar-c.c-grey { background: #c4c4c4; } .bar-c.c-gold { background: #ffcb00; }
.grp-green { color: #037f4c; } .grp-blue { color: #3f7fe0; } .grp-orange { color: #c97800; } .grp-purple { color: #8a45cf; }
.grp-red { color: #c4153c; } .grp-pink { color: #d1006e; } .grp-grey { color: #5d6475; } .grp-gold { color: #8a6d00; }

/* priority: a full colored cell like Status */
.pri-critical { background: #df2f4a; } .pri-high { background: #ff642e; } .pri-medium { background: #0086c0; } .pri-low { background: #579bfc; }
.menu-item.pri-critical { background: #df2f4a; } .menu-item.pri-high { background: #ff642e; } .menu-item.pri-medium { background: #0086c0; } .menu-item.pri-low { background: #579bfc; }
.menu-item.swatch.pri-critical:hover:not(:disabled) { background: #df2f4a; color: #fff; } .menu-item.swatch.pri-high:hover:not(:disabled) { background: #ff642e; color: #fff; }
.menu-item.swatch.pri-medium:hover:not(:disabled) { background: #0086c0; color: #fff; } .menu-item.swatch.pri-low:hover:not(:disabled) { background: #579bfc; color: #fff; }

/* activity types, lead sources */
.st-act-email { background: #0086c0; } .st-act-text { background: #66ccff; } .st-act-lead { background: #fdab3d; } .st-act-support { background: #a25ddc; } .st-act-task { background: #225091; }
.st-act-billing { background: #00c875; } .st-act-client { background: #037f4c; } .st-act-phone { background: #ff642e; } .st-act-system { background: #9aa0b5; }
.st-src-0 { background: #579bfc; } .st-src-1 { background: #ff7575; } .st-src-2 { background: #00c875; } .st-src-3 { background: #a25ddc; } .st-src-4 { background: #fdab3d; } .st-src-5 { background: #66ccff; } .st-src-6 { background: #037f4c; }
.st-prio-done { background: #9cd326; } .st-prio-open { background: #0086c0; }

/* items connected to another board: the teal pill monday uses for accounts, contacts, deals */
.pill-link { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 8px; border-radius: 4px; background: #d1ecef; color: #323338; font-size: 13px; line-height: 1.35; border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
button.pill-link { cursor: pointer; } button.pill-link:hover { background: #bfe3e8; }
.timeline-pill { display: inline-block; min-width: 118px; padding: 2px 12px; border-radius: 999px; background: #333; color: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.timeline-pill.empty { background: #c4c4c4; }

/* the dashboard in monday's style */
.kpi { border-top: 3px solid #579bfc; } .kpi-green { border-top-color: #00c875; } .kpi-red { border-top-color: #df2f4a; } .kpi-purple { border-top-color: #a25ddc; } .kpi-amber { border-top-color: #fdab3d; }
.big-number { font: 500 38px/1.1 Poppins, Figtree, sans-serif; text-align: center; padding: 18px 0 8px; font-variant-numeric: tabular-nums; } .big-note { text-align: center; color: var(--muted); font-size: 13px; padding-bottom: 8px; }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; padding: 6px 0; }
.donut { width: 168px; height: 168px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.donut::after { content: ""; position: absolute; inset: 34px; border-radius: 50%; background: #fff; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; text-align: center; font-weight: 600; font-size: 13px; line-height: 1.2; }
.legend { display: flex; flex-direction: column; gap: 6px; font-size: 13px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.gauge { position: relative; width: 240px; height: 126px; margin: 8px auto 0; overflow: hidden; }
.gauge::before { content: ""; position: absolute; left: 0; top: 0; width: 240px; height: 240px; border-radius: 50%; background: var(--gauge, #e5e8ef); }
.gauge::after { content: ""; position: absolute; left: 30px; top: 30px; width: 180px; height: 180px; border-radius: 50%; background: #fff; }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; text-align: center; font: 600 22px Poppins, Figtree, sans-serif; line-height: 1; }
.gauge-legend { display: flex; justify-content: space-around; padding: 8px 0 2px; text-align: center; font-size: 12px; color: var(--muted); } .gauge-legend strong { display: block; font-size: 20px; color: var(--text); font-family: Poppins, Figtree, sans-serif; }
.funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; } .funnel-step { height: 34px; border-radius: 4px; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 500; min-width: 120px; }
.vbars { height: 190px; } .vbar > i { background: #579bfc; max-width: 70px; }
.axis-note { font-size: 11px; color: var(--muted); text-align: left; margin-top: 4px; }

/* ---------- v7: side panel can be hidden; layout stays tidy at every width ---------- */
.menu-toggle { display: inline-grid; }
@media (min-width: 961px) {
  .shell.has-panel.panel-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
  .shell.panel-collapsed .panel { display: none; }
}
@media (min-width: 961px) and (max-width: 1180px) { .page { padding: 12px 14px 32px; } }
@media (max-width: 960px) {
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head .row.wrap { justify-content: flex-start; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .search { flex: 1 1 0; min-width: 0; } .search kbd { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 96px minmax(0, 1fr) 70px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .modal { max-width: 96vw; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi-value { font-size: 19px; } .page { padding: 10px 10px 28px; } .big-number { font-size: 30px; } .donut { width: 140px; height: 140px; } }

/* ---------- v8: row selection bar (top), checkbox column, richer add-task row ---------- */
.cell.chk { justify-content: center; padding: 0; }
.brow.sel { background: #e6f1ff !important; }
.selbar { position: sticky; top: 56px; z-index: 25; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 12px; background: #fff; border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 6px 20px rgba(16,27,51,.14); }
.selbar-count { margin-right: 8px; padding-right: 12px; border-right: 1px solid var(--grid); font-size: 14px; } .selbar-count b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-right: 4px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 13px; }
.selbar-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 13.5px; font-weight: 500; }
.selbar-btn:hover { background: #eef2fb; } .selbar-btn.danger { color: #c4153c; } .selbar-btn.danger:hover { background: #fde3e8; }
.selbar-x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; place-items: center; } .selbar-x:hover { background: #eef2fb; }
.brow.task-add .add-x { visibility: hidden; } .brow.task-add.open .add-x { visibility: visible; }
.brow.task-add { background: #fbfcff; }
.brow.task-add .cell.add-name { flex-direction: row; gap: 8px; justify-content: flex-start; }
.brow.task-add .add-input { flex: 1 1 140px; min-width: 100px; text-align: left; }
.brow.task-add select, .brow.task-add input[type=date] { height: 28px; min-height: 28px; font-size: 12.5px; padding: 0 6px; width: 100%; min-width: 0; }
.brow.task-add .cell.add-name select { flex: 0 1 150px; width: auto; }
.brow.task-add .btn-sm { min-height: 28px; padding: 0 10px; }
@media (max-width: 960px) { .selbar { top: 52px; } .selbar-btn span { display: none; } .selbar-btn { padding: 0 8px; } }

/* ---------- v9: Gmail-style compose, rich-text editor, email steps and planner ---------- */
.gmail { max-width: 880px; background: #fff; border: 1px solid #dadce0; border-radius: 10px; box-shadow: 0 8px 28px rgba(60,64,67,.18); overflow: visible; }
.gm-head { display: flex; align-items: center; height: 40px; padding: 0 16px; background: #f2f6fc; border-radius: 10px 10px 0 0; font-size: 14px; font-weight: 600; color: #202124; }
.gm-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid #ecedef; position: relative; }
.gm-label { flex: 0 0 auto; width: 44px; font-size: 14px; color: #5f6368; }
.gm-row .gm-input, .gm-to .gm-input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font-size: 14px; color: #202124; }
.gm-select { border: 0; background: transparent; height: 38px; font-size: 14px; max-width: 100%; }
.gm-to-wrap { flex: 1; min-width: 0; position: relative; } .gm-chip-box { display: flex; align-items: center; min-height: 40px; }
.gm-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 6px 3px 4px; border: 1px solid #dadce0; border-radius: 16px; background: #fff; font-size: 13.5px; }
.gm-chip-dot { display: inline-grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #1a73e8; color: #fff; font-size: 12px; font-weight: 700; }
.gm-chip-x { border: 0; background: transparent; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #5f6368; } .gm-chip-x:hover { background: #e8eaed; }
.gm-suggest { position: absolute; left: 0; right: 0; top: 40px; z-index: 40; background: #fff; border: 1px solid #dadce0; border-radius: 8px; box-shadow: 0 8px 24px rgba(60,64,67,.25); padding: 6px; max-height: 320px; overflow: auto; }
.gm-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: #fff; text-align: left; } .gm-opt:hover, .gm-opt:focus-visible { background: #f1f3f4; }
.gm-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-top: 1px solid #ecedef; }
.gm-send { display: inline-flex; border-radius: 18px; overflow: hidden; background: #0b57d0; }
.gm-send-main, .gm-send-caret { border: 0; background: #0b57d0; color: #fff; height: 36px; font-size: 14px; font-weight: 500; } .gm-send-main { padding: 0 22px; } .gm-send-caret { padding: 0 8px; border-left: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; }
.gm-send-main:hover, .gm-send-caret:hover { background: #0a49ad; } .gm-send-main:disabled { opacity: .6; }
.gm-preset { justify-content: flex-start; }
.rte { display: flex; flex-direction: column; }
.rte-area { padding: 14px 16px; outline: 0; font: 14px/1.5 Arial, Helvetica, sans-serif; color: #202124; overflow-wrap: anywhere; }
.rte-area:empty::before { content: attr(data-placeholder); color: #80868b; pointer-events: none; }
.rte-area p { margin: 0 0 10px; } .rte-area a { color: #0b57d0; } .rte-area ul, .rte-area ol { margin: 0 0 10px; padding-left: 26px; }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 12px; border-top: 1px solid #ecedef; background: #fff; order: 2; }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: #444746; font-size: 13.5px; }
.rte-btn:hover { background: #e8eaed; } .rte-txt { padding: 0 9px; }
.card .rte, .col > .rte { border: 1px solid var(--line-2); border-radius: 6px; } .card .rte .rte-bar { border-top: 0; border-bottom: 1px solid #ecedef; order: 0; background: #f8fafd; border-radius: 6px 6px 0 0; }
.steps-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps-strip li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--grid); border-radius: 8px; background: #fff; text-align: left; } .steps-strip li button:not(:disabled):hover { background: #f5f8ff; }
.steps-strip li.on button { border-color: var(--accent); background: var(--accent-l); } .steps-strip b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e8eaed; font-size: 13px; } .steps-strip li.on b { background: var(--accent); color: #fff; }
.steps-strip small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.launch-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--grid); border-radius: 8px; cursor: pointer; } .launch-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-l); } .launch-opt input { margin-top: 4px; }
.plan-line { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; background: #f6f8fc; }
.rot-up svg { transform: rotate(180deg); }
.icon-btn.rot-up { transform: none; }
@media (max-width: 700px) { .steps-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gm-row { padding: 0 10px; } .gm-label { width: 36px; } }

.camp-grid { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.4fr); align-items: start; }
@media (max-width: 900px) { .camp-grid { grid-template-columns: minmax(0, 1fr); } }

/* ===== v10: bold headers everywhere, notes thread with replies and files, lead groups, new lead colors ===== */
.brow.head > div, .table th, .line.head, .kv dt.hd, .group-toggle { font-weight: 700; }
.brow.head > div { color: #1f2a44; }
.st-verified, .menu-item.st-verified { background: #0ea5c6; } .st-nurturing, .menu-item.st-nurturing { background: #a25ddc; }
.selbar-btn:disabled { opacity: .4; cursor: not-allowed; } .selbar-btn:disabled:hover { background: transparent; }

.notes-panel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nt-composer { padding: 10px; } .nt-composer textarea { min-height: 64px; }
.nt-tools { margin-top: 8px; gap: 6px; align-items: center; }
.nt-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .nt-files:empty { display: none; }
.nt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 8px; border: 1px solid var(--grid); border-radius: 6px; background: #f5f6f8; font-size: 12.5px; }
.nt-chip .nm, .nt-att .nm { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-x { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; } .nt-x:hover { background: #dfe3ec; color: #1f2a44; }
.nt-list { display: flex; flex-direction: column; min-width: 0; }
.nt-thread { padding: 12px 0; border-bottom: 1px solid var(--grid); } .nt-thread:last-child { border-bottom: 0; }
.nt { display: flex; gap: 10px; padding: 4px 0; min-width: 0; } .nt > .grow { min-width: 0; }
.nt .who { font-weight: 700; } .nt .when { font-size: 12.5px; color: var(--faint); }
.nt .body { margin-top: 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.nt-head { gap: 8px; align-items: center; }
.nt-about { max-width: 240px; padding: 1px 8px; border-radius: 99px; background: #eef1f7; color: #4a5568; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-replies { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0 42px; padding-left: 12px; border-left: 2px solid #dfe3ec; }
.nt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.nt-link { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; } .nt-link:hover { background: #eef2fb; color: var(--accent); } .nt-link.danger:hover { background: #fde3e8; color: #c4153c; }
.nt-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nt-att { position: relative; display: inline-flex; }
.nt-att.img img { display: block; max-width: 200px; max-height: 120px; border: 1px solid var(--grid); border-radius: 6px; }
.nt-att.doc a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--grid); border-radius: 6px; background: #fff; color: var(--text); font-size: 13px; text-decoration: none; } .nt-att.doc a:hover { background: #f5f8ff; }
.nt-att .nt-x { position: absolute; top: -7px; right: -7px; border: 1px solid var(--grid); background: #fff; }
.nt-empty { padding: 8px 0; }
.dlg-notes { padding-top: 12px; border-top: 1px solid var(--grid); } .dlg-notes h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
@media (max-width: 600px) { .nt-replies { margin-left: 18px; padding-left: 8px; } .nt-att.img img { max-width: 140px; } .nt-chip .nm, .nt-att .nm { max-width: 120px; } }

.grp-pill { display: inline-block; padding: 2px 9px; border: 0; border-radius: 99px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; } button.grp-pill { cursor: pointer; } button.grp-pill:hover { filter: brightness(1.1); }
.grp-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; }
.gp-blue { background: #579bfc; } .gp-green { background: #00c875; } .gp-orange { background: #fdab3d; } .gp-red { background: #df2f4a; } .gp-purple { background: #a25ddc; } .gp-teal { background: #0ea5c6; } .gp-pink { background: #ff158a; } .gp-gray { background: #9aa0b5; }
.gp-swatches { display: flex; flex-wrap: wrap; gap: 8px; } .gp-swatch { width: 28px; height: 28px; padding: 0; border: 2px solid #fff; border-radius: 50%; cursor: pointer; } .gp-swatch.on { outline: 3px solid #14203a; outline-offset: 1px; }
.rate { display: inline-flex; align-items: center; gap: 8px; width: 100%; } .rate-track { display: block; flex: 1; height: 8px; border-radius: 99px; background: #e6e9ef; overflow: hidden; } .rate-track i { display: block; height: 100%; } .rate b { min-width: 36px; text-align: right; font-size: 13px; }
.page-head h1, .card h2, .dash-card h2, .modal-head h2, .drawer-body h2, .auth-card h1 { font-weight: 700; }
.nt-att.img img { min-width: 44px; min-height: 44px; object-fit: contain; background: #f3f5f9; }

/* ===== v11: notes panel on the right, rich notes, file viewer, filters, click-to-edit cells, added columns, templates, group pickers ===== */
.form-grid3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } @media (max-width: 520px) { .form-grid3 { grid-template-columns: minmax(0, 1fr); } }
.drawer.notes-drawer { width: min(760px, 100vw); }
.nd { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .nd-head h2 { margin: 6px 0 2px; font-size: 20px; font-weight: 700; }
.nt .body.rich p { margin: 0 0 6px; } .nt .body.rich ul, .nt .body.rich ol { margin: 0 0 6px; padding-left: 22px; } .nt .body.rich a { color: #0b57d0; text-decoration: underline; }
.nt-composer .rte { border: 0; } .nt-composer .rte-area { padding: 6px 4px; min-height: 60px; font-size: 14px; } .nt-composer .rte-bar { padding: 2px 0; border-top: 1px solid #ecedef; }
.nt-taskrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #effaf4; border: 1px solid #b9e6cf; } .nt-taskrow select, .nt-taskrow input { height: 32px; width: auto; min-width: 120px; }
.nt-taskchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 6px; padding: 4px 10px; border: 1px solid #b9e6cf; border-radius: 99px; background: #effaf4; color: #037f4c; font-size: 12.5px; cursor: pointer; } .nt-taskchip:hover { background: #dff5ea; } .nt-taskchip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.cell-status.mini { min-height: 0; height: auto; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; width: auto; }
.tag-task { background: #dff5ea; color: #037f4c; } .tag-steps { background: #e6e9ff; color: #3b44b3; }
.nt-thumb { display: block; padding: 0; border: 0; background: transparent; cursor: zoom-in; } .nt-doc { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--grid); border-radius: 6px 0 0 6px; background: #fff; color: var(--text); font-size: 13px; cursor: pointer; } .nt-doc:hover { background: #f5f8ff; }
.nt-dl { display: inline-grid; place-items: center; width: 30px; border: 1px solid var(--grid); border-left: 0; border-radius: 0 6px 6px 0; background: #fff; color: var(--muted); } .nt-dl:hover { background: #f5f8ff; color: var(--accent); }
.nt-att.doc a.nt-dl { padding: 0; }
.pv .pv-body { display: flex; justify-content: center; min-height: 200px; } .pv-img { max-width: 100%; max-height: 72vh; object-fit: contain; } .pv-frame { width: 100%; height: 72vh; border: 1px solid var(--grid); border-radius: 6px; } .pv-media { max-width: 100%; max-height: 72vh; } .pv-text { width: 100%; max-height: 72vh; overflow: auto; margin: 0; padding: 12px; border: 1px solid var(--grid); border-radius: 6px; background: #f8f9fc; font: 13px/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
.modal.pv .modal-body { overflow: auto; }

.flt { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; } .flt-bar { gap: 8px; align-items: center; }
.flt-panel { padding: 10px 12px; border: 1px solid var(--grid); border-radius: 8px; background: #fbfcfe; display: flex; flex-direction: column; gap: 8px; }
.flt-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .flt-rule select, .flt-rule input { width: auto; min-width: 140px; height: 34px; } .flt-and { width: 48px; font-size: 12.5px; font-weight: 700; color: var(--muted); }

.ed { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-width: 0; }
.ed-view { max-width: 100%; padding: 2px 6px; border: 1px dashed transparent; border-radius: 4px; background: transparent; color: inherit; font: inherit; font-size: 13px; text-align: center; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ed-view:hover { border-color: #b8c2d8; background: #fff; } .ed-view.empty { color: #aab2c3; }
.ed-input { width: 100%; min-width: 90px; height: 30px; padding: 2px 8px; font-size: 13px; }
.ed-ok, .ed-no { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; padding: 0; border: 0; border-radius: 50%; cursor: pointer; } .ed-ok { background: #00c875; color: #fff; } .ed-no { background: #e9ecf2; color: #4a5568; } .ed-ok:disabled { opacity: .5; }
.ed-pencil { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--faint); opacity: 0; cursor: pointer; } .ed-pencil:hover { background: #e9ecf2; color: var(--accent); } .brow:hover .ed-pencil, .ed-pencil:focus-visible { opacity: 1; }
.name-cell { gap: 2px; }
.cell-status.cell-empty { background: #f1f3f8; color: #9aa3b5; } .cell-status.cell-empty:hover { background: #e6eaf3; }
.col-add { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px dashed #aab2c3; border-radius: 50%; background: #fff; color: var(--accent); cursor: pointer; } .col-add:hover { background: var(--accent-l); }
.col-menu { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 4px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; vertical-align: middle; } .col-menu:hover { background: #dfe3ec; }
.gp-swatch.on-small { width: 22px; height: 22px; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1px #c9d0de; }

.grp-pill.off { background: #e9ecf2; color: #5d6475; } .grp-pill.off:hover { background: #dfe3ec; }
.gp-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; } .gp-picker input { width: 160px; height: 30px; }
.grp-new { padding: 2px 10px; border: 1px dashed #aab2c3; border-radius: 99px; background: #fff; color: var(--accent); font-size: 12px; cursor: pointer; } .grp-new:hover { background: var(--accent-l); }
.grp-cell { gap: 4px; min-height: 28px; padding: 2px 6px; flex-wrap: wrap; justify-content: center; }

.tpl-card { display: flex; flex-direction: column; gap: 12px; } .tpl-card h2 { margin: 0; font-size: 18px; }
.tpl-row { display: grid; grid-template-columns: minmax(180px, 3fr) 70px 110px minmax(130px, 1.4fr) 62px; gap: 8px; align-items: center; } .tpl-head { font-size: 12px; font-weight: 700; color: var(--muted); } .tpl-rows { display: flex; flex-direction: column; gap: 6px; overflow-x: auto; }
@media (max-width: 700px) { .tpl-row { min-width: 640px; } }
.steps { display: flex; flex-direction: column; gap: 2px; } .step { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--grid); } .step.done .name-btn { text-decoration: line-through; color: var(--muted); } .step .overdue { color: #b4231f; font-weight: 700; }

/* the notes panel docks on the right and pushes the page over, so the table and the notes are visible together */
.dock { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: 540px; display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--grid); box-shadow: -8px 0 24px rgba(16,27,51,.08); }
.dock-head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--grid); } .dock-head h2 { margin: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.dock-body { flex: 1; overflow-y: auto; padding: 14px 20px 28px; }
body.dock-open .main-content { margin-right: 540px; }
@media (max-width: 1000px) { .dock { width: 100vw; z-index: 90; } body.dock-open .main-content { margin-right: 0; } }

/* Overview: task names (and their small labels) read from the left */
.ov-left .brow > .cell.name { justify-content: flex-start; text-align: left; padding-left: 12px; }
.ov-left .brow.head > div:nth-child(3) { text-align: left; padding-left: 12px; }

/* ===== v12: shared outreach inbox, mailbox pool, "send from" chooser ===== */
.ib { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 0; min-height: 560px; border: 1px solid var(--grid); border-radius: 8px; background: #fff; overflow: hidden; }
.ib-list { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--grid); max-height: calc(100vh - 230px); }
.ib-bar { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-bottom: 1px solid var(--grid); } .ib-bar input, .ib-bar select { height: 34px; } .ib-bar .row > * { flex: 1 1 140px; min-width: 0; }
.ib-bulk { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--accent-l); border-bottom: 1px solid var(--grid); }
.ib-items { flex: 1; overflow-y: auto; }
.ib-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--grid); cursor: pointer; } .ib-item:hover { background: #f5f8ff; } .ib-item.on { background: var(--accent-l); } .ib-item.unread .ib-from, .ib-item.unread .ib-subj { font-weight: 800; } .ib-item.unread { box-shadow: inset 3px 0 0 var(--accent); }
.ib-item .row-check { margin-top: 3px; flex: none; } .ib-main { flex: 1; min-width: 0; }
.ib-top { display: flex; justify-content: space-between; gap: 8px; } .ib-from, .ib-subj, .ib-snip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ib-snip { color: var(--muted); font-size: 12.5px; }
.ib-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; } .ib-box { overflow: hidden; text-overflow: ellipsis; max-width: 170px; white-space: nowrap; }
.ib-read { padding: 16px 20px 24px; overflow-y: auto; max-height: calc(100vh - 230px); min-width: 0; } .ib-none, .ib-empty { padding: 30px 10px; }
.ib-head h2 { margin: 0 0 2px; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.ib-lead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; padding: 10px 12px; border: 1px solid var(--grid); border-radius: 8px; background: #fafbfe; }
.ib-thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.ib-msg { max-width: 92%; padding: 10px 12px; border-radius: 10px; background: #f1f3f8; align-self: flex-start; } .ib-msg.out { background: var(--blue-l); align-self: flex-end; } .ib-msg.current { outline: 2px solid var(--accent); }
.ib-meta { margin-bottom: 4px; } .ib-text { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.ib-reply { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--grid); } .ib-reply .rte { border: 1px solid var(--grid); border-radius: 8px; } .ib-back { display: none; }
@media (max-width: 900px) {
  .ib { grid-template-columns: minmax(0, 1fr); } .ib-list, .ib-read { max-height: none; border-right: 0; }
  .ib.reading .ib-list { display: none; } .ib:not(.reading) .ib-read { display: none; } .ib-back { display: inline-flex; margin-bottom: 8px; } .ib-back svg { transform: rotate(90deg); }
}

.mb-chooser { display: flex; flex-direction: column; gap: 8px; }
.mb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; max-height: 220px; overflow-y: auto; }
.mb-opt { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--grid); border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; } .mb-opt.on { border-color: var(--accent); background: var(--accent-l); } .mb-opt.off { opacity: .55; cursor: not-allowed; } .mb-opt .grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-chart { min-height: 150px; } .day-chart .vbar span:last-child { font-size: 10.5px; }
.day-chart { gap: 6px; overflow-x: auto; } .day-chart .vbar { min-width: 34px; }
@media (max-width: 700px) { .day-chart { gap: 4px; } .day-chart .vbar { min-width: 30px; } }

/* ---------- v13: booking automation, previews ---------- */
.bk-card { gap: 10px; } .bk-steps { gap: 6px; }
.bk-step { display: inline-flex; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: #eef1f8; } .bk-step b { font-weight: 700; }
.bk-step.bk-email, .bk-chan.bk-email { background: var(--blue-l); color: #1e4fb8; } .bk-step.bk-sms, .bk-chan.bk-sms { background: var(--green-l); color: #037f4c; } .bk-step.bk-task, .bk-chan.bk-task { background: #fff1dc; color: #9a5b00; }
.bk-chan { font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 6px; background: #eef1f8; }
.bk-stepcard { padding: 12px 14px; background: #fafbfe; gap: 10px; }
.rot180 svg { transform: rotate(180deg); }
.chip-check { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--grid); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; } .chip-check:has(input:checked) { border-color: var(--accent); background: var(--accent-l); }
.pv-mail { border: 1px solid var(--grid); border-radius: 10px; overflow: hidden; background: #fff; } .pv-mail-head { padding: 12px 16px; border-bottom: 1px solid var(--grid); background: #fafbfe; } .pv-subject { font-weight: 700; font-size: 16px; margin-top: 4px; }
.pv-mail-body { padding: 16px; line-height: 1.55; } .pv-mail-body p { margin: 0 0 12px; } .pv-mail-foot { padding: 10px 16px; border-top: 1px solid var(--grid); background: #fafbfe; }
.pv-phone { background: #f1f3f8; border-radius: 18px; padding: 18px; } .pv-bubble { background: #2f80ed; color: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 80%; margin-left: auto; line-height: 1.4; white-space: pre-wrap; }
.tag-auto { background: #e6f4ff; color: #1560a8; }
.bk-stepcard .row > .input { width: auto; flex: 0 0 auto; } .bk-stepcard .row > select.input { min-width: 150px; } .bk-stepcard .row > input.input[type=number] { width: 84px; }
.bk-bar > .input { width: auto; min-width: 240px; flex: 0 1 280px; }

/* ---------- v13b: email design builder ---------- */
.dz-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; } .dz-top > .input { flex: 1 1 200px; min-width: 160px; max-width: 360px; } .dz-back svg { transform: rotate(90deg); }
.dz-body { display: grid; grid-template-columns: 210px minmax(0, 1fr) 310px; gap: 12px; align-items: start; }
.dz-palette, .dz-inspector { background: #fff; border: 1px solid var(--grid); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; max-height: calc(100vh - 90px); overflow-y: auto; }
.dz-ptitle { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.dz-pitem { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--grid); border-radius: 8px; background: #fafbfe; cursor: grab; user-select: none; } .dz-pitem:hover, .dz-pitem:focus-visible { border-color: var(--accent); background: var(--accent-l); outline: none; } .dz-pitem b { font-size: 13px; } .dz-pitem span { font-size: 12px; color: var(--muted); }
.dz-canvas { border: 1px solid var(--grid); border-radius: 10px; padding: 18px 10px; min-height: 420px; overflow-x: auto; }
.dz-page { width: 600px; max-width: 100%; margin: 0 auto; background: #fff; box-shadow: 0 1px 4px rgba(20, 32, 58, .12); }
.dz-block { position: relative; outline: 2px solid transparent; outline-offset: -2px; cursor: pointer; } .dz-block:hover { outline-color: #b9c9f5; } .dz-block.sel { outline-color: var(--accent); } .dz-block.dragging { opacity: .45; }
.dz-drop { height: 6px; transition: height .08s; } .dz-drop.over { height: 28px; background: var(--accent-l); border: 2px dashed var(--accent); } .dz-drop.tall { height: auto; min-height: 56px; display: grid; place-items: center; border: 2px dashed var(--grid); color: var(--muted); font-size: 13px; margin: 6px; } .dz-drop.tall.over { height: auto; }
.dz-header { padding: 28px 24px; } .dz-h-title { font-size: 26px; font-weight: 700; line-height: 1.25; } .dz-h-sub { margin-top: 6px; opacity: .9; }
.dz-text { padding: 12px 24px; line-height: 1.6; font-size: 15px; color: #222; } .dz-text p { margin: 0 0 10px; } .dz-text h2 { margin: 0 0 8px; font-size: 20px; }
.dz-image { padding: 10px 24px; } .dz-image img { display: inline-block; max-width: 100%; height: auto; } .dz-ph { display: inline-flex; gap: 8px; align-items: center; padding: 28px 40px; border: 2px dashed var(--grid); color: var(--muted); border-radius: 8px; }
.dz-buttonrow { padding: 14px 24px; } .dz-btn { display: inline-block; padding: 12px 28px; border-radius: 6px; font-weight: 700; }
.dz-linewrap { padding: 10px 24px; } .dz-line { height: 1px; } .dz-space { background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f3f5f9 6px, #f3f5f9 12px); display: grid; place-items: center; color: var(--muted); font-size: 11px; }
.dz-cols { display: flex; gap: 6px; padding: 6px 12px; } .dz-col { flex: 1 1 0; min-width: 0; min-height: 40px; border: 1px dashed #e3e7ef; }
.dz-table { width: calc(100% - 48px); margin: 10px 24px; border-collapse: collapse; } .dz-table td { border: 1px solid #e5e7eb; padding: 8px 10px; font-size: 14px; }
.dz-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 2px; background: #fff; border: 1px solid var(--grid); border-radius: 8px; padding: 2px; z-index: 3; box-shadow: 0 2px 6px rgba(20, 32, 58, .15); } .dz-tools .icon-btn { width: 28px; height: 28px; }
.dz-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 280px; overflow-y: auto; } .dz-img { border: 1px solid var(--grid); border-radius: 8px; padding: 4px; background: #fff; cursor: pointer; } .dz-img:hover { border-color: var(--accent); } .dz-img img { width: 100%; height: 72px; object-fit: contain; display: block; }
.dz-frame { width: 100%; height: 66vh; border: 1px solid var(--grid); border-radius: 8px; background: #fff; }
.dz-grid { display: flex; flex-direction: column; gap: 6px; } .dz-grow { gap: 4px; flex-wrap: nowrap; } .dz-grow .input { min-width: 0; padding: 0 6px; } .dz-actions { margin-top: 6px; }
.dz-card { gap: 8px; } .dz-picker .input { width: auto; min-width: 220px; }
@media (max-width: 1100px) { .dz-body { grid-template-columns: minmax(0, 1fr); } .dz-palette, .dz-inspector { position: static; max-height: none; } .dz-palette { flex-direction: row; flex-wrap: wrap; } .dz-palette .dz-ptitle, .dz-palette .hint { flex: 1 0 100%; } .dz-pitem { flex: 0 0 auto; } .dz-inspector { order: 3; } }
.rp-step { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) 90px; gap: 10px; align-items: center; padding: 4px 0; } .rp-step .hbar { height: 16px; } .rp-num { text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .rp-step { grid-template-columns: minmax(0, 1fr) 70px; } .rp-step .hbar { grid-column: 1 / -1; order: 3; } }

/* ---------- v14: a button with white text must keep a dark background when the mouse is over it ---------- */
.btn-good:hover:not(:disabled), .btn-good:focus-visible { background: #00a862; border-color: #00a862; color: #fff; }
.btn-outline-danger:hover:not(:disabled) { background: var(--red-l); color: var(--red); }
.btn-primary:hover:not(:disabled), .btn-dark:hover:not(:disabled), .btn-danger:hover:not(:disabled) { color: #fff; }
.reset-card { border-color: #e5a19b; }

/* ---------- v15: conversations as a thread (every inbox): full width, a blue line for what they wrote, no boxes ---------- */
.ib-thread, .thread { gap: 0; }
.ib-msg, .msg { max-width: 100%; align-self: stretch; padding: 12px 4px 12px 16px; border-radius: 0; background: transparent; border: 0; border-left: 3px solid #cfd6e4; border-bottom: 1px solid var(--grid); outline: 0; }
.ib-msg.in, .msg.in { border-left-color: var(--accent); }
.ib-msg.out, .msg.out { background: transparent; align-self: stretch; border-left-color: #cfd6e4; }
.ib-msg.current { outline: 0; background: #f7f9ff; }
.msg.note { background: #fff8e6; border-left-color: #e8c76a; border-bottom: 1px solid var(--grid); }
.ib-text { white-space: pre-wrap; word-break: break-word; line-height: 1.55; }
.cstats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; } .cstat { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); } .cstat svg { color: var(--accent); } .cstat.warn svg { color: #e2445c; } .cstat.amber svg { color: #fdab3d; } .cstat.good svg { color: #00c875; }
.sig-prev { border: 1px dashed var(--grid); border-radius: 8px; padding: 12px 14px; background: #fafbfe; font-size: 13px; line-height: 1.5; white-space: pre-wrap; } .sig-prev .ft { margin-top: 12px; padding-top: 8px; border-top: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; }

/* v16: announcement bar (client systems), client portals, module pickers */
.ann-stack { display: block; }
.ann-bar { position: relative; display: flex; align-items: center; justify-content: center; padding: 9px 46px; color: #fff; font-size: 14px; line-height: 1.35; text-align: center; }
.ann-text { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; align-items: center; }
.ann-text a { color: #fff; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.ann-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.ann-x:hover { background: rgba(255,255,255,.22); }
.ann-success { background: #00a86b; } .ann-info { background: #0073ea; } .ann-warning { background: #c27a00; } .ann-urgent { background: #d83a52; }
.ann-preview .ann-bar { border-radius: 6px; }
.card .ann-bar { border-radius: 6px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; margin-top: 6px; }
.mod-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border: 1px solid var(--grid); border-radius: 8px; cursor: pointer; font-size: 13px; background: #fff; }
.mod-item input { margin-top: 3px; }
@media (max-width: 600px) { .ann-bar { padding: 9px 40px 9px 12px; text-align: left; justify-content: flex-start; } }
