/* ==================================================================================================
   Prospex theme — "Ink & Signal". Loaded last, so it sets the look for the whole app.
   Ink-dark menu, airy light canvas, violet→aqua signal accent, soft rounded cards.
   ================================================================================================== */
:root {
  --bg: #f4f5fa; --panel: #ffffff; --ink: #141a2a; --muted: #687085; --line: #e8eaf2; --line-2: #f0f1f7;
  --brand: #5b4cf0; --brand-btn: #5b4cf0; --brand-2: #14b8d6; --brand-ink: #ffffff; --brand-soft: #efedfe;
  --grad: linear-gradient(135deg, #5b4cf0 0%, #7c5cf5 45%, #14b8d6 100%);
  --side: #0d1322; --side-2: #151d31; --side-ink: #c7cde0; --side-muted: #6f7a96;
  --ok: #12a46b; --warn: #d98a00; --bad: #e0464e;
  --radius: 14px; --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -16px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 19, 34, .35);
  --side-w: 252px;
}
body { font-family: "Plus Jakarta Sans", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
h1 { font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 11.5px; font-weight: 800; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
a { color: var(--brand); }
::selection { background: #dcd7ff; }

/* ---------- buttons & inputs */
button, .btn { border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 650; padding: 8px 14px;
  transition: border-color .15s, box-shadow .15s, transform .05s, background .15s; }
button:hover, .btn:hover { border-color: #cfd3e3; box-shadow: 0 2px 8px -4px rgba(16, 24, 40, .2); }
button:active, .btn:active { transform: translateY(1px); }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 18px -8px rgba(91, 76, 240, .7); }
button.primary:hover, .btn.primary:hover { filter: brightness(1.06); background: var(--grad); border-color: transparent; }
button.danger, .btn.danger { color: var(--bad); }
input, select, textarea { border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #a9a1f7; box-shadow: 0 0 0 4px rgba(91, 76, 240, .12); }
label { color: #4b5368; font-weight: 700; }
.linkish { color: var(--brand); text-decoration: none; font-weight: 650; }

/* ---------- layout */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; height: 100vh; transition: grid-template-columns .2s ease; }
.shell.collapsed { --side-w: 78px; }
.main-wrap { display: flex; flex-direction: column; min-width: 0; height: 100vh; }
.main-wrap .main { flex: 1; overflow-y: auto; }

/* ---------- the ink sidebar */
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; overflow-y: auto; overflow-x: hidden;
  border-right: none; align-items: stretch; scrollbar-width: thin; scrollbar-color: #2a3350 transparent; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 8px; }
.side .logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; padding: 0; text-decoration: none; }
.side .logo img { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 3px; object-fit: contain; }
.side .logo span { display: inline; }
.side-collapse { width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--side-muted); transform: rotate(180deg); }
.side-collapse:hover { background: var(--side-2); color: #fff; box-shadow: none; border-color: transparent; }
.side-add { width: 100%; justify-content: center; gap: 8px; background: var(--grad); color: #fff; border: none; border-radius: 12px; padding: 11px 12px; font-weight: 750;
  box-shadow: 0 10px 24px -12px rgba(124, 92, 245, .9); margin: 2px 0 8px; }
.side-add:hover { filter: brightness(1.08); box-shadow: 0 10px 24px -12px rgba(124, 92, 245, .9); }
.nav { width: 100%; display: block; }
.nav-group { margin-bottom: 10px; }
.nav-title { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--side-muted); padding: 8px 12px 6px; }
.nav a { display: flex; flex-direction: row; align-items: center; gap: 12px; color: var(--side-ink); padding: 9px 12px; border-radius: 11px; margin: 1px 0;
  font-size: 14px; font-weight: 600; text-align: left; position: relative; text-decoration: none; transition: background .15s, color .15s; }
.nav a .ico { font-size: 18px; width: 20px; display: inline-flex; justify-content: center; opacity: .9; }
.nav a .label { color: inherit; font-weight: 600; white-space: nowrap; line-height: 1.2; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: rgba(124, 92, 245, .16); color: #fff; box-shadow: inset 3px 0 0 #8b7bff; }
.nav a.active .ico { color: #a79cff; opacity: 1; }
.nav .badge { position: static; margin-left: auto; background: #ff5d73; color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 800; }
.side-foot { margin-top: auto; border-top: 1px solid #1c2540; padding-top: 10px; }
.side .me { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 10px 8px 2px; border: none; width: 100%; }
.side .me .avatar { width: 36px; height: 36px; border-radius: 12px; background: var(--grad) !important; color: #fff !important; font-size: 13px; flex: none; }
.me-txt { min-width: 0; }
.side .me-name { display: block; color: #fff; font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-links { font-size: 12px; color: var(--side-muted); }
.me-links a, .side .me-links .linkish { color: var(--side-muted); font-size: 12px; text-decoration: none; font-weight: 600; }
.me-links a:hover, .side .me-links .linkish:hover { color: #fff; }
#my-account-link { display: none; }

/* collapsed (icons only) */
.shell.collapsed .side { padding: 14px 10px; }
.shell.collapsed .side .logo span, .shell.collapsed .nav-title, .shell.collapsed .nav a .label, .shell.collapsed .side-add span, .shell.collapsed .me-txt { display: none; }
.shell.collapsed .side-top { flex-direction: column; gap: 8px; }
.shell.collapsed .side-collapse { transform: none; }
.shell.collapsed .nav a { justify-content: center; padding: 11px 0; }
.shell.collapsed .nav .badge { position: absolute; top: 3px; right: 6px; }
.shell.collapsed .side .me { justify-content: center; padding: 10px 0 2px; }
.shell.collapsed .nav-group { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #1a2238; }

/* ---------- top command bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: rgba(244, 245, 250, .82);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.gsearch { position: relative; flex: 1; max-width: 640px; }
.gsearch input { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 44px 11px 42px; font-size: 14.5px; box-shadow: var(--shadow); }
.gsearch input:focus { border-color: #a9a1f7; }
.gs-ico { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #8a91a8; }
.gs-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font: 700 11px/1 inherit; color: #8a91a8; background: var(--line-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 7px; pointer-events: none; }
.gs-results { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.newmenu .primary { padding: 10px 16px; border-radius: 12px; }
.iconbtn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: #5d6580; font-weight: 800; }
.iconbtn:hover { background: #fff; color: var(--brand); }
.menu-btn, .top-logo { display: none; }
.scrim { display: none; }
.ab-more { display: none; }
.menu, .gs-results { border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; }
.menu button { border: none; border-radius: 10px; padding: 9px 12px; font-weight: 650; gap: 10px; box-shadow: none; }
.menu button:hover { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.menu [class^="i-"] { color: var(--brand); }

/* ---------- pages, cards, headers */
.page { padding: 22px 28px 40px; max-width: 1440px; }
.page-head { margin-bottom: 18px; gap: 12px; }
.page-head .sub { margin-top: 3px; font-size: 13.5px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card-head { margin-bottom: 10px; }
.sub { color: var(--muted); }
.back { font-size: 13px; color: var(--muted); font-weight: 650; text-decoration: none; }
.back:hover { color: var(--brand); }
.pill { border-radius: 999px; font-weight: 700; font-size: 11.5px; padding: 2px 10px; background: #eef0f6; color: #48506a; }
.pill.Open, .pill.active, .pill.Client { background: #e3f7ee; color: #0e7a50; }
.pill.paused, .pill.Prospect { background: #fff4dd; color: #965c00; }
.pill.Closed, .pill.stopped { background: #f0f1f6; color: #6b7389; }
.pill#count, .page-head .pill { background: #fff; border: 1px solid var(--line); color: #5d6580; border-radius: 999px; }
.avatar { background: var(--brand-soft); color: var(--brand); font-weight: 800; border-radius: 12px; }
.avatar.sm, .avatar.xs { border-radius: 9px; }
.tag { background: #f1f2f8; color: #4b5368; border-radius: 8px; font-weight: 600; }

/* ---------- filters + segmented tabs (separate, rounded) */
.toolbar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 14px; margin-bottom: 14px; gap: 14px; }
.toolbar + .card, .toolbar + .table-card, .toolbar + #list > .card, .toolbar + #list .card.table-card { border-radius: var(--radius); }
.toolbar .search { background: var(--bg); border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; order: 0; margin-left: 0; max-width: 360px; }
.toolbar .search:focus { background: #fff; border-color: #a9a1f7; }
.filter { color: #4b5368; font-weight: 650; font-size: 13px; margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.filter select { border: none; background: transparent; font-weight: 750; color: var(--brand); padding: 4px 2px; cursor: pointer; box-shadow: none; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #e9ebf3; border: none; border-radius: 13px; padding: 4px; margin-bottom: 14px; overflow: visible; }
.tabs button { border: none; border-radius: 10px; background: transparent; padding: 7px 14px; color: #535b73; font-weight: 700; box-shadow: none; }
.tabs button:hover { background: rgba(255, 255, 255, .6); box-shadow: none; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(16, 24, 40, .25); }
.tabs button span { background: transparent; color: #8a91a8; font-weight: 700; }
.tabs button.on span { color: var(--brand); background: transparent; }
.tabs + .toolbar { border-radius: var(--radius); border-top: 1px solid var(--line); }
.dept-bar { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.dept-bar button { border-radius: 999px; }
.dept-bar button.on { background: var(--brand-soft); border-color: #c9c2fb; color: var(--brand); }
.seg { border-radius: 10px; border-color: var(--line); }
.seg button.on { background: var(--brand-soft); color: var(--brand); }

/* ---------- tables: airy, no grid lines */
.table-card { padding: 0; overflow: hidden; border-radius: var(--radius); }
table { font-size: 13.5px; }
th { background: #fafbfd; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #7a8198; padding: 12px 14px;
  border-bottom: 1px solid var(--line); border-right: none; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); border-right: none; color: #2c3347; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr.click { transition: background .12s; }
tr.click:hover td { background: #f7f6ff; }
.who b { color: var(--ink); font-weight: 750; }
tr.click:hover .who b { color: var(--brand); }

/* ---------- home + jobs */
.jobs-table td.sc.hot { color: var(--brand); background: #f5f3ff; }
.col { background: #eef0f6; border: none; border-radius: var(--radius); }
.kcard { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.kcard:hover { border-color: #c9c2fb; }
.kcard .n { color: var(--ink); }
.card-stage { border-radius: 999px; background: #eef0f6; }
.stat-ico { background: var(--brand-soft); color: var(--brand); border-radius: 12px; }
.bar > div { background: var(--grad); }
.timeline .k { background: var(--brand-soft); color: var(--brand); border-radius: 10px; }

/* ---------- person page */
.profile .avatar.lg { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; font-size: 22px; }
.profile h1 { font-size: 28px; }
.actionbar button.big, .actionbar .btn.big { background: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 700; }
.actionbar [class^="i-"] { color: var(--brand); }
.actionbar button.big:hover, .actionbar .btn.big:hover { border-color: #c9c2fb; color: var(--brand); }
.chips button { border-radius: 999px; }
.chips button.on { background: var(--brand-soft); border-color: #c9c2fb; color: var(--brand); }

/* ---------- modals, toasts, login */
.overlay { background: rgba(13, 19, 34, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px 24px; }
.modal h2 { font-size: 19px; }
#toast { background: var(--side); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 650; }
.login { background: radial-gradient(1000px 600px at 10% -10%, #e6e1ff 0%, transparent 60%), radial-gradient(900px 600px at 110% 110%, #d5f5fb 0%, transparent 55%), var(--bg); }
.login .card { border-radius: 22px; box-shadow: var(--shadow-lg); padding: 28px; }

/* ---------- the round quick-action button (phones) */
.fab { display: none; position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 45; width: 60px; height: 60px; border-radius: 20px;
  border: none; background: var(--grad); color: #fff; font-size: 26px; justify-content: center; box-shadow: 0 16px 32px -10px rgba(91, 76, 240, .8); }
.fab:hover { filter: brightness(1.08); box-shadow: 0 16px 32px -10px rgba(91, 76, 240, .8); }
.qa-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.qa-tile { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 16px; text-align: left; font-weight: 750; font-size: 14.5px; min-height: 96px; }
.qa-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.qa-tile:hover { border-color: #c9c2fb; }
.qp-res { margin-top: 10px; max-height: 50vh; overflow-y: auto; }
.qp-row { width: 100%; border: none; border-radius: 12px; gap: 12px; padding: 10px; text-align: left; box-shadow: none; }
.qp-row:hover { background: var(--brand-soft); box-shadow: none; }
.qp-row small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Customize: big friendly switches */
.cz-sec { margin-bottom: 16px; padding: 8px 20px 10px; }
.cz-head { display: flex; align-items: center; gap: 12px; padding: 12px 0 8px; }
.cz-head h2 { margin: 0; flex: 1; }
.cz-col { width: 64px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cz-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.cz-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cz-txt b { font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.cz-txt span { color: var(--muted); font-size: 13px; }
.cz-ico { color: var(--brand); display: inline-flex; }
.cz-off { font-style: normal; color: var(--bad); font-weight: 700; }
.switch { position: relative; width: 64px; display: inline-flex; justify-content: center; margin: 0; cursor: pointer; flex: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 50px; height: 30px; border-radius: 999px; background: #d5d8e4; position: relative; transition: background .2s; display: block; }
.switch .thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(16, 24, 40, .25); transition: transform .2s; }
.switch input:checked + .track { background: var(--grad); }
.switch input:checked + .track .thumb { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px rgba(91, 76, 240, .25); }
.switch.disabled { opacity: .45; cursor: not-allowed; }

/* ---------- personal switches */
body.px-compact .page { padding: 14px 18px 28px; }
body.px-compact td { padding: 7px 10px; }
body.px-compact th { padding: 8px 10px; }
body.px-compact .card { padding: 12px; }
body.px-compact .nav a { padding: 6px 12px; }
body.px-bigtext { font-size: 15.5px; }
body.px-bigtext table { font-size: 15px; }
body.px-calm *, body.px-calm *::before, body.px-calm *::after { transition: none !important; animation: none !important; }
body.px-no-askfab #ai-fab { display: none !important; }
body.px-no-badge #chat-badge { display: none !important; }
body.px-no-fab .fab { display: none !important; }

/* icons used by the new menu */
.i-sliders { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h10M18%206h2M4%2012h4M12%2012h8M4%2018h12M20%2018h0%22/%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%226%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2212%22%20r%3D%222%22/%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%222%22/%3E%3C/svg%3E"); }
.i-upload { --m: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M21%2015v4a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2v-4%22/%3E%3Cpolyline%20points%3D%2217%208%2012%203%207%208%22/%3E%3Cline%20x1%3D%2212%22%20y1%3D%223%22%20x2%3D%2212%22%20y2%3D%2215%22/%3E%3C/svg%3E"); }

/* ==================================================================== phones & small tablets */
@media (max-width: 860px) {
  .shell, .shell.collapsed { display: block; height: auto; --side-w: 0px; }
  .main-wrap { height: auto; min-height: 100vh; padding-bottom: 0; }
  .main-wrap .main { overflow: visible; }
  /* the menu slides in from the left */
  .side, .shell.collapsed .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 320px); z-index: 60; padding: calc(14px + env(safe-area-inset-top)) 14px calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-105%); transition: transform .25s ease; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; height: auto; overflow-y: auto; }
  body.drawer-open .side { transform: none; }
  .shell.collapsed .side .logo span, .shell.collapsed .nav-title, .shell.collapsed .nav a .label, .shell.collapsed .side-add span, .shell.collapsed .me-txt { display: revert; }
  .shell.collapsed .nav a { justify-content: flex-start; padding: 12px; }
  .side-collapse { display: none; }
  .nav a { padding: 12px; font-size: 15.5px; min-height: 48px; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(13, 19, 34, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  body.drawer-open { overflow: hidden; }
  /* app bar */
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 12px 10px; gap: 8px; background: rgba(244, 245, 250, .92); }
  .menu-btn { display: inline-flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; flex: none; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #2c3347; }
  .top-logo { display: inline-flex; flex: none; }
  .top-logo img { width: 34px; height: 34px; border-radius: 10px; background: #fff; padding: 3px; border: 1px solid var(--line); }
  .gsearch input { padding: 10px 12px 10px 38px; font-size: 16px; }
  .gs-kbd, .nb-label, #help-btn { display: none; }
  .newmenu .primary { width: 42px; height: 42px; padding: 0; justify-content: center; }
  .newmenu .menu { right: 0; left: auto; }
  .fab { display: inline-flex; }
  #ai-fab { bottom: calc(90px + env(safe-area-inset-bottom)) !important; right: 18px !important; }
  #toast { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
  .page { padding: 14px 14px calc(100px + env(safe-area-inset-bottom)); }
  h1, .page-head h1 { font-size: 23px; }
  .tabs { display: flex; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs button { flex: none; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .search { flex: 1 1 100%; max-width: none; }
  .scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .home-pipe { table-layout: auto !important; min-width: 860px; }
  .home-pipe td.hj { min-width: 200px; }
  .home-pipe col.hcol-job { width: 210px !important; }
  .hc-own { display: inline !important; }
  .actionbar:not(.ab-open) .ab-extra { display: none !important; }
  .ab-more { display: inline-flex !important; grid-column: 1 / -1; justify-content: center; color: var(--brand); font-weight: 750; background: var(--brand-soft) !important; border-color: transparent !important; }
  .g-side, .g2, .home-grid, .grid { grid-template-columns: minmax(0, 1fr) !important; }
  .grid > *, .card { min-width: 0; }
  .kv { grid-template-columns: 84px minmax(0, 1fr); }
  .kv dd { overflow-wrap: anywhere; }
  .pipe-row select, .kv select { max-width: 100%; min-width: 0; }
  .cz-sec { padding: 6px 14px 8px; }
  .cz-col { width: 54px; }
  .switch { width: 54px; }
  .modal, .modal.wide { border-radius: 0; }
  .modal.qa-sheet { border-radius: 22px 22px 0 0; margin-top: auto; height: auto; max-height: 90vh; }
  .overlay:has(.qa-sheet) { align-items: flex-end; display: flex; }
}
@media (max-width: 860px) and (min-width: 600px) {
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
}
@media print { .side, .topbar, .fab, .scrim { display: none !important; } .shell { display: block; } }
.home-pipe td.hc.hot { background: #f7f6ff; }
.timeline li > div, .timeline .body { min-width: 0; overflow-wrap: anywhere; }
