:root {
  font: 14px/1.55 Inter, 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --ink:#211d36; --muted:#655f78; --line:#e8e4ef; --blue:#6548c5; --nav:#211938;
  --surface:#f7f6fb; --lavender:#f2edfe; --mint:#e5f7ed;
  background:var(--surface); color:var(--ink);
}

button, a.button { transition:background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
button:not(:disabled):active, a.button:active { transform:translateY(1px); }
button:hover, a.button:hover { background:#f4efff; border-color:#d9cdee; }
.primary, .primary:hover { color:white; background:#6548c5; border-color:#6548c5; }
.primary:not(:disabled):hover { background:#5536b5; box-shadow:0 5px 13px #4c2c9327; filter:none; }
.soft-button { color:#5437a5; background:#f2ecff; border-color:#e8defb; }
:focus-visible { outline:3px solid #7f63d8; outline-offset:3px; }
input,select,textarea,button,a.button { border-color:#e1dbe9; }
input,select,textarea { accent-color:var(--blue); }
label { color:#423852; }
progress { accent-color:#7756d1; }
.mark { background:linear-gradient(150deg,#9c7cf2,#6645c8); box-shadow:0 6px 15px #2a17583b; border-radius:13px; }

.auth-shell {
  background:#faf9fd; grid-template-columns:minmax(0,1fr) minmax(390px,.88fr);
  gap:clamp(28px,6vw,110px); padding:18px; overflow:hidden;
}
.auth-art {
  position:relative; display:grid; place-items:center; isolation:isolate; overflow:hidden; width:100%; min-height:calc(100dvh - 36px);
  border-radius:24px; background:radial-gradient(ellipse at 24% 80%,#6432b8 0%,transparent 49%),
    radial-gradient(ellipse at 85% 25%,#4f3f98 0%,transparent 52%), linear-gradient(145deg,#20173b,#302050 64%,#392366);
}
.auth-monogram {
  color:#fbf8ff; font-size:clamp(108px,22vw,300px); font-weight:750; letter-spacing:-.09em; line-height:.9;
  transform:translateX(-.06em) rotate(-9deg); text-shadow:0 22px 80px #11092366;
}
.orbit { position:absolute; border:1px solid #d5b4ff44; height:49%; width:85%; border-radius:50%; transform:rotate(-28deg); }
.orbit-one { width:115%; height:63%; transform:rotate(-43deg); }
.orbit-two { width:130%; height:49%; transform:rotate(28deg); }
.orbit-three { width:59%; height:71%; transform:rotate(20deg); }
.orbit-two::after { content:''; position:absolute; right:13%; top:14%; background:#bfa3ff; width:9px; height:9px; border-radius:50%; box-shadow:0 0 25px #d0b8ff; }
.auth-card { width:min(100%,450px); padding:clamp(22px,4vw,48px); border:0; box-shadow:none; background:transparent; margin-right:clamp(0px,3vw,48px); }
.auth-card .brand { margin-bottom:44px; font-size:15px; }
.auth-card h1 { font-size:clamp(31px,3.7vw,48px); line-height:1.02; font-weight:750; letter-spacing:-.055em; }
.auth-card p { margin:12px 0 24px; }
.auth-card label { margin:15px 0; }
.auth-card input { height:46px; }
.auth-card .primary { height:46px; }
.auth-card .message:empty { display:none; }

.workspace { grid-template-columns:225px minmax(0,1fr); }
.workspace aside { background:linear-gradient(170deg,#251b3b,#211834 75%); padding:21px 15px 16px; gap:21px; }
.workspace aside .brand { padding-inline:5px; }
.workspace aside small, .sidebar-end span { color:#c7b9df; }
.workspace aside button { color:#e2dbee; border-color:transparent; }
.workspace aside button:hover { color:#fff; background:#43325f; }
.workspace nav [aria-current=true] { color:#fff; background:#453267; box-shadow:inset 3px 0 #ad91fa; }
.workspace nav button { font-weight:600; padding:8px 12px; display:flex; gap:6px; align-items:center; justify-content:space-between; }
.nav-label { color:#ac99ca; }
.sidebar-end { border-top:1px solid #bfa5eb33; padding:13px 6px 0; }
.pagehead { background:#f7f6fbf2; padding:14px 0 17px; gap:20px; }
.pagehead h1 { font-size:clamp(27px,3vw,39px); font-weight:725; letter-spacing:-.052em; }
.pagehead p { font-size:13px; }
.head-actions { flex:0 1 auto; gap:9px; }
.head-actions button { min-height:42px; }
.search-trigger { display:flex; align-items:center; gap:9px; color:var(--muted); }
.search-symbol { border:2px solid currentColor; border-radius:50%; width:12px; height:12px; flex:none; position:relative; margin-right:3px; }
.search-symbol::after { content:''; position:absolute; width:6px; height:2px; transform:rotate(45deg); background:currentColor; top:8px; left:7px; border-radius:1px; }
kbd { font-family:inherit; font-size:11px; padding:1px 5px; border:1px solid #e1dbe9; border-radius:4px; color:#655974; }
.header-icon { position:relative; display:grid; place-items:center; min-width:42px; }
.chat-icon>span:first-child { position:relative; display:block; border:1.7px solid #53436d; border-radius:5px; width:16px; height:13px; }
.chat-icon>span:first-child::after { content:''; position:absolute; width:5px; height:5px; border-left:1.7px solid #53436d; border-bottom:1.7px solid #53436d; bottom:-4px; left:3px; background:white; transform:skewY(-35deg); }
.nav-count,.bell-count { background:#724ac7; color:#fff; font-weight:700; border-radius:99px; min-width:20px; padding:2px 5px; font-size:11px; text-align:center; }
.workspace aside .nav-count { color:white; }

.panel,.metric,.lane { border-color:var(--line); box-shadow:0 3px 15px #2a194a08; border-radius:15px; }
.panel { padding:clamp(14px,1.4vw,22px); }
.panel h2 { color:#28203d; font-size:19px; font-weight:700; }
.command-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.command-metrics .metric { padding:14px; min-height:123px; align-content:space-between; border-top:3px solid #daccf4; }
.command-metrics .metric:hover { border-color:#b99de8; box-shadow:0 7px 21px #4a2c7812; transform:translateY(-2px); }
.command-metrics .metric span { color:#463a5c; font-size:12px; }
.command-metrics .metric strong { font-size:clamp(21px,2.2vw,32px); font-variant-numeric:tabular-nums; }
.command-metrics .metric small { color:#585070; font-size:11px; font-weight:550; }
.command-metrics .metric[data-metric="3"] { background:#fff9f5; border-top-color:#eebd99; }
.command-metrics .metric[data-metric="4"] { background:#f3edff; border-top-color:#a887ec; }
.command-metrics .metric[data-metric="5"] { background:#ecf8f0; border-top-color:#79c7a0; }
.command-metrics .metric[data-metric="5"] strong { color:#126043; }
.dashboard-head .metric-inline { color:#6548c5; }
.dashboard-small { gap:16px; padding-top:7px; }
.dashboard-small strong { font-variant-numeric:tabular-nums; }
.scroll { border-color:#ebe6f1; border-radius:12px; }
th { background:#f5f2fa; color:#5b506d; font-size:11px; letter-spacing:.015em; }
th,td { border-bottom-color:#eeebf4; padding:11px 10px; }
tbody tr:hover { background:#fbf9ff; }
.contact-link { min-width:165px; }
.contact-label strong { font-weight:650; }
.avatar { background:#ede6fb; color:#563bb0; border-radius:10px; }
.pill { white-space:nowrap; background:#f0ebf8; color:#5f4488; }
.view-tab { border-color:#e8def8; background:#f7f2ff; }
.status-chip { background:#f2eefb; color:#59408f; border-color:#e9e0f8; }
.assignee-button { width:auto; max-width:155px; text-overflow:ellipsis; overflow:hidden; padding:5px 8px; font-size:12px; }
.assignee-button.unassigned { background:#f4edff; color:#5938a9; border:1px dashed #cbb7ec; }
.assignee-text,.worker-label { display:block; max-width:170px; overflow:hidden; text-overflow:ellipsis; }
.lead-row-actions { flex-wrap:nowrap; }
.lead-row-actions button { padding:5px 8px; font-size:12px; }
.contact-summary { background:#f4effa; }
.contact-people { display:grid; grid-template-columns:auto auto; align-items:center; gap:4px 9px; padding-inline:6px; }
.status-actions { margin-top:3px; }
.status-actions button { padding:4px 7px; font-size:11px; }
.inline-status { min-width:8rem; }
.inline-status-trigger::after { content:' ▾'; margin-left:.15rem; }
.inline-status-form { display:grid; grid-template-columns:minmax(7rem,1fr) auto auto; gap:.3rem; align-items:center; }
.inline-status-form :is(input,button) { font-size:.82rem; padding:.35rem .42rem; }
.inline-status-form .message { grid-column:1/-1; white-space:normal; }
.view-scope { margin-bottom:.85rem; }
.view-scope .view-tab[aria-pressed=true] { background:#ede4ff; color:#4a2d99; border-color:#a886ed; }
.sales-combined { text-align:right; }
.sales-combined strong { font-size:1.55rem; color:#176948; }
.sales-bars { list-style:none; margin:0; padding:0; display:grid; gap:.68rem; }
.sales-bars li { display:grid; grid-template-columns:minmax(8rem,1fr) minmax(8rem,3fr) minmax(7rem,auto); align-items:center; gap:.85rem; }
.sales-bars progress { width:100%; height:.65rem; margin:0; }
.sales-bar-name { font-size:.87rem; overflow-wrap:anywhere; }
.sales-bar-value { text-align:right; font-size:.82rem; font-variant-numeric:tabular-nums; }
@media(max-width:560px){.sales-bars li { grid-template-columns:minmax(0,1fr) auto; gap:.2rem .7rem; }.sales-bars progress { grid-column:1/-1; grid-row:2; }}
.inbox-item.unread { background:#f7f2ff; border-left-color:#8c66dc; }

.chat-layout { display:grid; grid-template-columns:minmax(200px,255px) minmax(0,1fr); border:1px solid var(--line); border-radius:16px; overflow:hidden; background:white; min-height:490px; box-shadow:0 5px 20px #2f205309; }
.chat-directory { background:#fcfaff; border-right:1px solid var(--line); padding:16px 10px; }
.chat-directory h2 { margin:0 0 10px 6px; font-size:17px; }
.chat-directory input { margin-bottom:10px; }
.chat-people { display:grid; gap:4px; max-height:57vh; overflow:auto; }
.chat-person { display:flex; width:100%; min-width:0; align-items:center; gap:8px; border:0; background:transparent; padding:8px; text-align:left; }
.chat-person[aria-pressed=true] { background:#eee6fc; }
.chat-person-main { display:grid; min-width:0; flex:1; }
.chat-person-main>* { overflow:hidden; text-overflow:ellipsis; }
.chat-person-main small { color:var(--muted); font-weight:500; }
.chat-thread { display:flex; flex-direction:column; min-width:0; }
.chat-banner { display:flex; gap:9px; align-items:center; border-bottom:1px solid var(--line); padding:12px 17px; }
.chat-history { overflow-y:auto; height:clamp(250px,49vh,650px); padding:14px; background:#fcfbff; }
.chat-older { align-self:center; font-size:12px; margin:6px; }
.chat-line { display:flex; margin-bottom:8px; }
.chat-line.mine { justify-content:flex-end; }
.chat-bubble { max-width:min(82%,580px); padding:8px 12px; border-radius:3px 12px 12px 12px; background:#f0ebf7; overflow-wrap:anywhere; }
.chat-bubble p { color:var(--ink); white-space:pre-wrap; }
.chat-line.mine .chat-bubble { background:#e8ddff; border-radius:12px 3px 12px 12px; }
.chat-bubble time { color:var(--muted); font-size:10px; }
.chat-composer { display:flex; align-items:end; gap:8px; padding:12px; border-top:1px solid var(--line); margin-top:auto; }
.chat-composer textarea { resize:vertical; }
.chat-thread>.message { padding:6px 12px; }

.search-results { display:grid; gap:12px; padding-top:10px; max-height:58vh; overflow:auto; }
.search-results section h3 { padding:6px 9px; font-size:12px; color:var(--muted); }
.search-result { display:grid; width:100%; text-align:left; border:0; gap:2px; padding:7px 9px; white-space:normal; overflow-wrap:anywhere; }
.search-result small { color:var(--muted); font-weight:500; }
.assistant-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:15px; }
.assistant-grid form { margin-top:13px; }
.assistant-grid .button, .assistant-grid .primary { justify-self:start; }
.assistant-grid button { margin-top:4px; white-space:normal; }
.assistant-history { display:grid; gap:11px; margin-top:12px; }
.assistant-response { background:#f6f1fd; border:1px solid #ebe2f8; border-radius:12px; padding:13px; }
.assistant-response p { white-space:pre-wrap; overflow-wrap:anywhere; margin-top:6px; }
#saleToast { position:fixed; z-index:4; right:20px; bottom:20px; display:flex; align-items:center; gap:10px; padding:11px 13px; background:#fff; border:1px solid #ddd1ee; border-radius:13px; box-shadow:0 12px 30px #3d246437; max-width:calc(100% - 40px); }
.coin-mark { flex:none; width:33px; height:33px; display:grid; place-items:center; border:2px solid #d8a438; background:#ffedb6; color:#745212; border-radius:50%; font-weight:750; animation:coin-drop .42s cubic-bezier(.22,.61,.35,1); }
@keyframes coin-drop { from { transform:translateY(-15px) rotate(-35deg); opacity:0; } 75% { transform:translateY(2px) rotate(8deg); } }

@media(max-width:1280px){ .command-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px){ .workspace { grid-template-columns:185px minmax(0,1fr); } .search-trigger kbd { display:none; } .pagehead { flex-wrap:wrap; } }
@media(max-width:830px){ .auth-shell { grid-template-columns:minmax(0,1fr); padding:12px; gap:12px; } .auth-art { min-height:160px; } .auth-monogram { font-size:115px; } .auth-card { margin:0; } .auth-card .brand { margin-bottom:25px; } .assistant-grid { grid-template-columns:1fr; } }
@media(max-width:700px){ .workspace aside { padding:12px; gap:9px; } .workspace nav button { white-space:nowrap; } .sidebar-end { padding-top:7px; } .pagehead { gap:11px; } .head-actions { justify-content:flex-start; } }
@media(max-width:520px){ .command-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .chat-layout { grid-template-columns:1fr; } .chat-directory { border:0; border-bottom:1px solid var(--line); } .chat-people { max-height:135px; } .chat-history { height:38vh; } }
@media(prefers-reduced-motion:reduce){ *,*::before,*::after { animation-duration:.01ms!important; transition-duration:.01ms!important; } }

/* Workspace chrome */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.workspace { grid-template-columns:184px minmax(0,1fr); }
.workspace.menu-collapsed { grid-template-columns:minmax(0,1fr); }
.workspace > aside { padding:12px 9px; gap:12px; overflow:auto; scrollbar-width:thin; }
.workspace aside .brand { white-space:nowrap; font-size:14px; gap:8px; min-height:38px; }
.workspace aside .mark { width:30px; height:30px; border-radius:9px; font-size:16px; }
.workspace nav { display:grid; gap:2px; overflow:visible; }
.workspace nav button { min-height:34px; padding:5px 10px; font-size:13px; border-radius:7px; }
.workspace .nav-label { font-size:10px; padding-inline:10px; }
.workspace .sidebar-end { padding-top:8px; font-size:13px; }
.workspace main { padding:0 clamp(12px,1.55vw,25px) 16px; }
.workspace .pagehead { flex-wrap:nowrap; gap:8px; min-height:54px; padding:6px 0; margin:0 0 12px; background:#f6f5fa; }
.page-identity,.page-title { min-width:0; }
.page-identity { display:flex; align-items:center; gap:9px; }
.workspace .pagehead h1 { font-size:clamp(18px,2vw,25px); line-height:1.15; letter-spacing:-.035em; }
.workspace .pagehead p { margin-top:2px; font-size:12px; line-height:1.2; }
.workspace .head-actions { gap:5px; flex-wrap:nowrap; }
.workspace .head-actions button,.menu-toggle { min-height:34px; padding:4px 9px; border-radius:7px; font-size:12px; white-space:nowrap; }
.menu-toggle { display:grid; place-items:center; flex:0 0 34px; width:34px; }
.menu-toggle span { width:14px; height:2px; background:currentColor; border-radius:2px; box-shadow:0 -4px currentColor,0 4px currentColor; }
.workspace .head-actions :is(.header-icon,.bell) { width:34px; }
.workspace .head-actions .bell > span:first-child { display:inline-block; width:12px; height:11px; border:1.5px solid currentColor; border-radius:7px 7px 3px 3px; color:#53446b; font-size:0; vertical-align:middle; }
.workspace .head-actions .bell > span:first-child::after { content:''; position:absolute; bottom:-4px; left:3px; width:3px; height:2px; background:currentColor; border-radius:50%; }
.workspace .head-actions .bell > span:first-child { position:relative; }
.mobile-menu-close,.nav-shade { display:none; }

/* Leads sheet */
.workspace.view-leads main { height:100dvh; min-height:315px; padding-bottom:9px; display:flex; flex-direction:column; }
.view-leads .pagehead { flex:none; margin-bottom:8px; }
.view-leads #content { min-height:0; flex:1; display:flex; flex-direction:column; }
.lead-sheet {
  --row-height:28px;
  --cell-line:#ebe7f1;
  --row-bg:#fff;
  display:flex; flex-direction:column; flex:1; min-height:0; min-width:0;
  background:white; border:1px solid #dfd8eb; border-radius:10px;
  color:#2b2440; font-size:13px;
}
.lead-sheet.comfortable { --row-height:39px; }
.lead-tools { position:relative; z-index:2; display:flex; align-items:center; gap:5px; min-height:39px; padding:4px 6px; }
.lead-search { flex:1; max-width:380px; min-width:70px; margin:0; }
.lead-sheet :is(button,.button,summary,input,select) { font-size:12px; }
.lead-sheet :is(button,.button,summary) { line-height:1.2; border-radius:6px; padding:3px 7px; min-height:26px; }
.lead-sheet .lead-search input { width:100%; margin:0; min-height:29px; height:29px; padding:3px 8px; border-radius:6px; }
.lead-tools .filter-toggle[aria-expanded="true"],.lead-views .view-tab[aria-pressed="true"],.lead-sheet .view-scope [aria-pressed="true"] { background:#eee8ff; border-color:#c9b7ed; color:#473080; font-weight:700; }
.lead-more { position:relative; margin-left:auto; }
.lead-more > summary { cursor:pointer; display:flex; gap:5px; align-items:center; white-space:nowrap; list-style:none; }
.lead-more > summary::-webkit-details-marker { display:none; }
.lead-more > summary::after { content:''; width:4px; height:4px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-2px; }
.lead-more-menu { position:absolute; right:0; top:calc(100% + 5px); z-index:4; display:grid; min-width:150px; gap:3px; padding:5px; background:#fff; border:1px solid #dfd7ea; border-radius:7px; box-shadow:0 6px 18px #23183322; }
.lead-more-menu :is(button,a) { text-align:left; padding:6px 7px; }
.lead-views,.lead-sheet .view-scope,.lead-sheet .lead-selection { flex:none; display:flex; align-items:center; gap:4px; padding:3px 6px; margin:0; border-top:1px solid var(--cell-line); overflow:auto; scrollbar-width:thin; }
.lead-views button,.lead-sheet .view-scope button,.lead-selection button { white-space:nowrap; }
.lead-views button { flex:none; max-width:175px; overflow:hidden; text-overflow:ellipsis; }
.lead-views .view-tab[aria-pressed="false"] { background:transparent; border-color:transparent; }
.lead-sheet .contact-filters { flex:none; display:flex; align-items:end; gap:7px; padding:7px; margin:0; border-top:1px solid var(--cell-line); background:#faf8fd; max-height:160px; overflow:auto; }
.lead-sheet .contact-filters label { font-size:11px; width:auto; min-width:99px; flex:1 1 118px; }
.lead-sheet .contact-filters select { height:29px; padding:3px 5px; margin-top:3px; border-radius:6px; width:100%; }
.lead-sheet .lead-selection { background:#f6f2ff; flex-wrap:nowrap; }
.lead-selection p { white-space:nowrap; margin-right:4px; }
.lead-grid { flex:1; min-height:0; display:flex; flex-direction:column; border-top:1px solid #ddd5e9; }
.lead-grid .scroll { flex:1; min-height:0; border:0; border-radius:0; background:#fff; overflow:auto; overscroll-behavior:contain; }
.lead-grid .scroll:focus-visible { outline-offset:-2px; }
.lead-grid table { width:100%; min-width:920px; table-layout:fixed; border:none; border-collapse:separate; border-spacing:0; }
.lead-grid.has-select table { min-width:954px; }
.lead-grid thead { position:sticky; top:0; z-index:2; }
.lead-grid :is(th,td) { padding:0 7px; vertical-align:middle; text-align:left; line-height:1.16; white-space:nowrap; border:0; border-right:1px solid var(--cell-line); border-bottom:1px solid var(--cell-line); }
.lead-grid th { height:29px; font-size:12px; font-weight:650; background:#f1edf7; color:#4a3d5f; }
.lead-grid td { height:var(--row-height); background:var(--row-bg); }
.lead-grid tr:nth-child(even) { --row-bg:#fbfaff; }
.lead-grid tr:hover { --row-bg:#f4f0ff; }
.lead-grid tr:has(td:first-child input:checked) { --row-bg:#eee9fc; }
.lead-grid :is(th,td):last-child { border-right:0; }
.lead-grid:not(.has-select) :is(th,td):nth-child(1),.lead-grid.has-select :is(th,td):nth-child(2) { position:sticky; left:0; z-index:1; width:17%; box-shadow:1px 0 var(--cell-line); }
.lead-grid.has-select :is(th,td):nth-child(2) { left:34px; }
.lead-grid.has-select :is(th,td):first-child { width:34px; padding:0; text-align:center; left:0; position:sticky; z-index:1; }
.lead-grid:not(.has-select) th:nth-child(2),.lead-grid.has-select th:nth-child(3) { width:100px; }
.lead-grid:not(.has-select) th:nth-child(3),.lead-grid.has-select th:nth-child(4) { width:16%; }
.lead-grid:not(.has-select) th:nth-child(4),.lead-grid.has-select th:nth-child(5) { width:92px; }
.lead-grid:not(.has-select) th:nth-child(5),.lead-grid.has-select th:nth-child(6) { width:92px; }
.lead-grid:not(.has-select) th:nth-child(6),.lead-grid.has-select th:nth-child(7) { width:131px; }
.lead-grid:not(.has-select) th:nth-child(7),.lead-grid.has-select th:nth-child(8) { width:17%; }
.lead-grid :is(th,td) input[type="checkbox"] { width:15px; height:15px; margin:0; vertical-align:middle; accent-color:#6548b9; }
.lead-grid :is(.pill,.status-chip,.row-worker,.row-assignee,.assignee-text,.assignee-button,.cell-text,.sheet-contact span:last-child) { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.lead-grid .row-worker,.lead-grid .row-assignee,.lead-grid .assignee-text { display:block; }
.lead-grid .cell-text,.lead-grid .worker-label { min-width:0; max-width:100%; }
.lead-grid .worker-label { display:block; overflow:hidden; text-overflow:ellipsis; }
.lead-grid :is(.pill,.status-chip,.assignee-button) { display:inline-block; vertical-align:middle; min-height:0; border-radius:5px; padding:2px 5px; line-height:16px; font-size:11.5px; }
.lead-grid .sheet-contact { display:flex; align-items:center; gap:6px; width:100%; max-width:100%; color:#352557; text-align:left; padding:0 2px; border-color:transparent; background:transparent; box-shadow:none; font-size:13px; font-weight:680; }
.lead-grid .sheet-contact:hover { text-decoration:underline; }
.lead-grid .sheet-contact .avatar { flex:0 0 20px; width:20px; height:20px; min-width:0; border-radius:5px; font-size:9px; }
.lead-grid .lead-row-actions { gap:3px; }
.lead-grid .lead-row-actions button { padding:1px 4px; min-height:22px; font-size:11.5px; }
.lead-grid .inline-status { min-width:0; }
.lead-grid .inline-status-form { grid-template-columns:minmax(0,1fr) auto auto; gap:2px; }
.lead-grid .inline-status-form :is(input,button) { width:auto; min-width:0; height:23px; min-height:23px; padding:1px 3px; font-size:11px; }
.lead-grid .inline-status-form .message { padding:3px; margin:0; }
.lead-footer { flex:none; min-height:32px; display:flex; align-items:center; justify-content:space-between; gap:4px; padding:3px 6px; border-top:1px solid var(--cell-line); font-size:11px; }
.lead-footer .pager { margin:0; gap:4px; align-items:center; }
.lead-footer .pager button { min-height:23px; font-size:11px; }

@media (max-width:1000px) {
  .workspace { grid-template-columns:164px minmax(0,1fr); }
}
@media (max-width:760px) {
  .workspace,.workspace.menu-collapsed { display:block; }
  .workspace > aside { position:fixed; inset:0 auto 0 0; z-index:6; width:min(248px,82vw); height:100dvh; min-height:0; }
  .workspace .mobile-menu-close { display:block; position:absolute; right:7px; top:12px; min-height:30px; min-width:30px; padding:0; font-size:21px; }
  .nav-shade:not([hidden]) { display:block; position:fixed; inset:0; z-index:5; background:#20183170; }
  .workspace .nav-label { display:block; }
  .workspace .sidebar-end { display:grid; padding-inline:6px; }
  .workspace .pagehead { position:static; }
  .workspace .pagehead p { display:none; }
  .workspace main { padding-inline:7px; }
  .workspace .head-actions .search-trigger > span:nth-child(2) { display:none; }
  .workspace .head-actions .search-trigger { justify-content:center; width:34px; }
  .lead-grid:not(.has-select) :is(th,td):nth-child(1),.lead-grid.has-select :is(th,td):nth-child(2) { width:138px; }
}
@media (max-width:390px) {
  .workspace .head-actions { gap:3px; }
  .workspace .head-actions button { padding-inline:5px; }
  .workspace .head-actions :is(.search-trigger,.header-icon,.bell) { width:28px; min-width:28px; }
  .page-identity { gap:5px; }
  .menu-toggle { flex-basis:28px; width:28px; }
  .lead-tools { gap:3px; }
  .lead-tools :is(button,summary) { padding-inline:4px; }
}

@media (min-width:761px) and (max-width:1100px) {
  .lead-sheet:not(.comfortable) { --row-height:27px; }
}
