:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --sidebar: #10151b;
  --panel: #171c21;
  --panel-2: #1d242b;
  --line: #313941;
  --line-strong: #46515b;
  --text: #eef3f8;
  --muted: #a7b0bb;
  --blue: #8ec8ff;
  --blue-strong: #1f6fa8;
  --blue-soft: #173757;
  --good: #8ee0a1;
  --warn: #f2d17a;
  --danger: #f19aae;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}
body.light {
  color-scheme: light;
  --bg: #f6f8fb;
  --sidebar: #ffffff;
  --panel: #ffffff;
  --panel-2: #edf3fa;
  --line: #d4dfeb;
  --line-strong: #b8c8d8;
  --text: #121820;
  --muted: #5e6a78;
  --blue: #2f7fbd;
  --blue-soft: #dceeff;
  --shadow: 0 18px 50px rgba(53,73,97,.14);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; font-size:14px; line-height:1.45; font-weight:400; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 12px; }
.mark { width: 48px; height: 48px; border: 1px solid var(--blue); border-radius: 12px; display: grid; place-items: center; color: var(--blue); font-weight: 700; margin: 0 auto; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 272px 1fr; }
.sidebar { background: var(--sidebar); border-right: 1px solid var(--line-strong); padding: 28px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 52px; }
.brand .mark { margin: 0; width: 46px; height: 46px; }
.brand .business-mark { overflow:hidden; background:rgba(142,200,255,.08); }
.brand .business-mark img { width:100%; height:100%; object-fit:cover; display:block; }
.brand b { display:block; font-size: 21px; letter-spacing: 0; font-weight:700; }
.brand span { color: var(--muted); font-size: 14px; }
.nav { display: grid; gap: 12px; }
.nav-btn { border: 0; background: transparent; color: var(--text); display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; min-height: 54px; border-radius: 13px; padding: 0 13px; text-align: left; font-weight: 650; }
.nav-btn svg { width: 18px; height: 18px; color: var(--warn); }
.nav-btn .count { min-width: 24px; height: 24px; border-radius: 999px; display:grid; place-items:center; background: var(--blue-soft); color: var(--blue); font-size: 12px; border: 1px solid rgba(142,200,255,.22); }
.nav-btn.active { background: var(--blue-soft); outline: 2px solid rgba(142,200,255,.72); }
.main { min-width: 0; }
.global-bar { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap:24px; padding: 24px 32px; border-bottom: 1px solid var(--line-strong); background: linear-gradient(90deg, transparent, rgba(29,91,142,.14)); }
.business-title { min-width:0; display:grid; gap:4px; }
.business-title b { font-size:24px; line-height:1.12; letter-spacing:0; font-weight:700; }
.business-title span { color:var(--muted); font-weight:500; font-size:14px; }
.user-pill { display:flex; align-items:center; gap: 16px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); border-radius: 999px; padding: 8px 12px; position: relative; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,#dfb45d,#8ec8ff); overflow:hidden; display:grid; place-items:center; font-weight:700; color:var(--blue); flex:0 0 auto; }
.avatar img { width:100%; height:100%; object-fit:cover; display:block; grid-area:1/1; }
.avatar span { display:none; grid-area:1/1; }
.avatar.fallback span { display:block; }
.profile-avatar { border:1px solid rgba(142,200,255,.35); box-shadow: 0 0 0 4px rgba(142,200,255,.08); }
.user-meta b { display:block; font-size:15px; }
.user-meta span { color: var(--muted); font-size:13px; }
.balance { border-left: 1px solid var(--line); padding-left: 18px; font-weight: 700; color: var(--blue); }
.toggle { display:flex; background: rgba(255,255,255,.06); border:1px solid var(--line); border-radius:999px; padding:3px; }
.toggle button { border:0; background:transparent; color:var(--muted); border-radius:999px; padding:8px 12px; font-weight:650; }
.toggle .on { background: var(--blue-soft); color: var(--blue); }
.account-trigger { min-width:48px; padding:0 14px; border-radius:18px; }
.account-menu { position:absolute; right:0; top:calc(100% + 10px); z-index:20; min-width:220px; display:grid; gap:6px; padding:10px; border:1px solid var(--line); border-radius:18px; background:rgba(23,28,33,.96); box-shadow:0 22px 60px rgba(0,0,0,.36); backdrop-filter: blur(18px); }
.account-menu button { width:100%; min-height:46px; border:0; border-radius:12px; background:transparent; color:var(--text); text-align:left; padding:0 12px; font-weight:650; }
.account-menu button:hover { background:rgba(142,200,255,.12); }
.page { padding: 34px 36px 80px; max-width: 1180px; }
.title-row { display:flex; justify-content:space-between; gap: 20px; align-items:flex-start; margin-bottom: 28px; }
h1 { font-size: 34px; line-height: 1.12; margin: 0 0 8px; letter-spacing: 0; font-weight:700; }
p { margin:0; color: var(--muted); }
.actions, .filters { display:flex; gap: 12px; flex-wrap: wrap; }
.btn, .filter { min-height: 48px; border-radius: 14px; border:1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 18px; font-weight: 650; }
.btn.primary, .filter.active { background: var(--blue); color: #07121d; border-color: transparent; }
.icon-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.icon-btn img { width:22px; height:22px; object-fit:contain; flex:0 0 auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,.18)); }
.btn.danger { color: var(--danger); border-color: rgba(241,154,174,.35); }
.concierge-btn,
.concierge-btn.primary {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(135deg,#050505,#171009 45%,#2c1b07) !important;
  color:#ffe7a3 !important;
  border-color:rgba(231,178,74,.70) !important;
  box-shadow:0 0 0 1px rgba(255,235,170,.18) inset, 0 14px 32px rgba(207,144,35,.26), 0 0 26px rgba(241,191,84,.26) !important;
}
.concierge-btn::before {
  content:"";
  position:absolute;
  inset:-40% -30%;
  z-index:-1;
  background:radial-gradient(circle at 22% 20%, rgba(255,226,143,.46), transparent 32%), linear-gradient(100deg, transparent 0 34%, rgba(255,218,124,.22) 45%, transparent 58%);
  opacity:.9;
}
.concierge-btn img { filter:drop-shadow(0 2px 6px rgba(0,0,0,.55)); }
.concierge-btn:hover,
.concierge-btn.primary:hover {
  border-color:rgba(255,214,112,.92) !important;
  box-shadow:0 0 0 1px rgba(255,235,170,.25) inset, 0 18px 42px rgba(207,144,35,.34), 0 0 34px rgba(241,191,84,.36) !important;
}
.control-row { display:flex; justify-content:space-between; align-items:center; gap:16px; margin: 0 0 22px; }
.stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:16px; margin-bottom:24px; }
.stat { background: linear-gradient(180deg,var(--panel-2),var(--panel)); border:1px solid var(--line); border-radius:18px; padding:22px; display:flex; gap:14px; align-items:center; }
.dot { width:34px; height:34px; border-radius:50%; background: var(--blue-soft); color: var(--blue); display:grid; place-items:center; font-weight:700; }
.headshot { width:54px; height:54px; border-radius:50%; overflow:hidden; display:grid; place-items:center; background: var(--blue-soft); color: var(--blue); border:1px solid rgba(142,200,255,.35); box-shadow: 0 0 0 4px rgba(142,200,255,.06); font-weight:700; }
.headshot img { width:100%; height:100%; object-fit:cover; display:block; grid-area:1/1; }
.headshot span { display:none; grid-area:1/1; }
.headshot.fallback span { display:block; }
.stat b { display:block; font-size:26px; font-weight:700; }
.stat span { color: var(--muted); font-size:13px; }
.card { background: linear-gradient(145deg,var(--panel),rgba(23,28,33,.82)); border:1px solid var(--line); border-radius:24px; box-shadow: var(--shadow); padding: 24px; }
.list { display:grid; gap: 14px; }
.row { width:100%; border:1px solid var(--line); background: linear-gradient(135deg,rgba(142,200,255,.08),rgba(255,255,255,.02)); color:var(--text); border-radius:20px; padding:22px; display:grid; grid-template-columns: 58px 1fr auto; align-items:center; gap:18px; text-align:left; }
.row:hover { border-color: rgba(142,200,255,.5); }
.referral-intro { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.referral-intro b { display:block; font-size:18px; }
.referral-category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; }
.referral-search-row { margin:0 0 20px; }
.referral-search-row .search { width:100%; min-height:48px; }
.referral-category-card { display:grid; gap:16px; align-content:start; }
.referral-category-card h2 { margin:0; font-size:20px; }
.referral-category-media { height:150px; border-radius:16px; overflow:hidden; background:var(--panel-2); display:grid; place-items:center; }
.referral-category-media img { width:100%; height:100%; object-fit:cover; }
.referral-picker-head { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.referral-client-list { display:grid; gap:10px; margin-top:14px; max-height:48vh; overflow:auto; }
.referral-client-row { width:100%; grid-template-columns:54px minmax(0,1fr) auto; }
.referral-selected { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--line); border-radius:14px; margin-bottom:12px; }
.referral-selected b, .referral-selected small { display:block; }
.success-banner { margin-bottom:20px; padding:16px 18px; border:1px solid rgba(142,224,161,.45); background:rgba(142,224,161,.12); color:var(--good); border-radius:14px; font-weight:700; }
.row-title { font-weight: 700; font-size:16px; letter-spacing:0; }
.row-sub { color: var(--muted); margin-top:6px; line-height:1.35; }
.row-sub strong { color: var(--text); font-weight:650; }
.market-row { grid-template-columns:58px minmax(0,1fr) minmax(150px,auto); }
.market-thumb,
.market-thumb-fallback { width:46px; height:46px; border-radius:14px; }
.market-thumb { box-shadow:0 0 0 3px rgba(142,200,255,.08); }
.market-thumb img { object-fit:cover; }
.service-thumb,
.service-thumb-fallback { width:46px; height:46px; border-radius:14px; }
.service-thumb { box-shadow:0 0 0 3px rgba(142,200,255,.08); }
.service-thumb img { object-fit:cover; }
.market-row-action { justify-items:end; text-align:right; }
.market-list { gap:14px; }
.concierge-list-head { margin:0 0 2px; padding:0 2px 12px; border-bottom:1px solid rgba(231,178,74,.22); }
.concierge-list-head h2 { color:var(--text); }
.concierge-list-head p { color:var(--muted); }
.role-payline strong { color: var(--blue); font-weight:700; letter-spacing:0; }
.role-row { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
.role-row > .stack { min-width:0; gap:8px; }
.role-row .row-title { font-size:17px; }
.role-row .row-sub { max-width:620px; line-height:1.45; }
.role-row .actions { justify-content:flex-end; align-items:center; flex-wrap:wrap; }
.role-row .btn { min-width:96px; }
.role-pay-badge { min-height:42px; padding:0 14px; border-radius:12px; white-space:nowrap; }
.stack { display:grid; gap:6px; }
.price { color: var(--blue); font-weight:700; font-size:20px; white-space:nowrap; }
.work-row { grid-template-columns: 58px minmax(220px,1fr) minmax(360px,auto); }
.work-actions { display:flex; justify-content:flex-end; align-items:center; gap:10px; flex-wrap:wrap; }
.payment-state { color:var(--muted); font-size:13px; font-weight:650; white-space:nowrap; }
.work-toolbar { display:grid; grid-template-columns:minmax(280px,1fr) auto; gap:14px; align-items:center; margin-bottom:18px; padding:18px; }
.work-search { min-height:52px; display:grid; grid-template-columns:1fr 24px; align-items:center; gap:12px; border:1px solid var(--line); border-radius:15px; background:var(--panel); padding:0 14px; }
.work-search input { min-width:0; width:100%; border:0; outline:0; background:transparent; color:var(--text); font-weight:500; }
.work-search span { color:var(--muted); font-size:24px; line-height:1; }
.work-tabs { justify-content:flex-end; flex-wrap:nowrap; }
.work-tabs .filter { min-height:44px; padding:0 15px; }
.work-table { padding:0; overflow:hidden; }
.work-table-head,
.work-table-row { display:grid; grid-template-columns:minmax(230px,1.65fr) .7fr .95fr .75fr 1fr .95fr .8fr; gap:14px; align-items:center; }
.work-table-head { padding:14px 18px; border-bottom:1px solid var(--line); color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0; }
.work-table-row { min-height:84px; padding:14px 18px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,rgba(142,200,255,.055),rgba(255,255,255,.018)); }
.work-table-row:last-child { border-bottom:0; }
.work-table-row:hover { background:linear-gradient(145deg,rgba(142,200,255,.10),rgba(255,255,255,.03)); }
.work-table-row-action { cursor:pointer; transition:background .14s ease,box-shadow .14s ease,transform .08s ease; }
.work-table-row-action:focus-visible { position:relative; z-index:1; outline:2px solid var(--accent); outline-offset:-2px; }
.work-table-row-action:active { background:linear-gradient(145deg,rgba(74,164,246,.22),rgba(142,200,255,.10)); box-shadow:inset 0 0 0 1px rgba(118,188,255,.24); transform:scale(.998); }
.work-table-row .row-title { font-size:14px; line-height:1.18; letter-spacing:0; }
.work-table-row .row-sub { margin-top:4px; font-size:12px; line-height:1.2; }
.work-main { display:grid; grid-template-columns:minmax(0,1fr); gap:10px; align-items:center; min-width:0; }
.type-quote { background:rgba(245,159,80,.16); color:#f59f50; }
.type-work { background:rgba(245,159,80,.16); color:#f59f50; }
.type-invoice { background:rgba(173,116,255,.16); color:#ad74ff; }
.type-subscription { background:rgba(46,204,113,.16); color:#43c47a; border:1px solid rgba(46,204,113,.22); }
body.light .type-quote { background:rgba(245,159,80,.15); color:#b95e10; border:1px solid rgba(245,159,80,.22); }
body.light .type-subscription { background:rgba(46,204,113,.14); color:#147a43; border-color:rgba(46,204,113,.24); }
.date-stack { display:grid; gap:4px; align-content:center; min-width:0; }
.date-stack b { font-size:14px; color:var(--text); white-space:nowrap; }
.date-stack small { color:var(--muted); font-size:12px; line-height:1.2; }
.work-total { font-size:15px; color:var(--text); }
.work-table-actions { display:flex; gap:8px; justify-content:flex-end; align-items:center; }
.work-table-row .badge { min-height:22px; font-size:11px; padding:0 8px; }
.work-table-row .status-pill { min-height:24px; gap:6px; padding:0 9px; font-size:11px; }
.work-table-row .status-pill i { width:6px; height:6px; }
.work-table-row .icon-btn { min-height:38px; min-width:48px; border-radius:12px; padding:0 12px; font-size:12px; }
.work-table-row .icon-btn.kebab { min-width:38px; font-size:20px; }
.icon-btn { min-height:48px; min-width:58px; border-radius:14px; border:1px solid var(--line); background:var(--panel); color:var(--text); padding:0 14px; font-weight:650; }
.icon-btn:hover { border-color:rgba(142,200,255,.55); }
.icon-btn.kebab { min-width:48px; font-size:24px; padding:0; line-height:1; }
.work-empty { padding:34px; color:var(--muted); font-weight:650; text-align:center; }
.work-table-foot { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 22px; border-top:1px solid var(--line); color:var(--muted); font-weight:500; }
.subscription-table-head,
.subscription-table-row { grid-template-columns:minmax(230px,1.8fr) 1fr .85fr .75fr 1fr .95fr; }
.subscription-client-main { grid-template-columns:54px minmax(0,1fr); align-items:center; }
.subscription-note { min-height:44px; display:flex; align-items:center; justify-content:flex-end; color:var(--muted); font-weight:650; }
.icon-btn:disabled { opacity:.55; cursor:not-allowed; }
.pager { display:flex; gap:8px; align-items:center; }
.pager .btn { min-width:48px; padding:0 12px; }
.payments-grid { display:grid; gap:18px; }
.payment-tabs .filter { min-width:120px; justify-content:center; }
.payment-search { margin-bottom:18px; }
.section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:4px; }
.section-head h2 { margin:0 0 6px; font-size:22px; letter-spacing:0; font-weight:700; }
.payment-row,
.payout-row { grid-template-columns: 58px minmax(0,1fr) minmax(260px,auto); }
.payment-actions { align-items:center; justify-content:flex-end; }
.payment-actions .price { min-width:120px; text-align:right; }
.payout-history { display:grid; gap:16px; }
.history-controls { display:grid; grid-template-columns:minmax(280px,1fr) auto; gap:14px; align-items:center; }
.payment-history-search { margin:0; }
.history-subtabs { justify-content:flex-end; flex-wrap:nowrap; }
.history-subtabs .filter { min-height:42px; padding:0 16px; }
.history-table { overflow:auto; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,rgba(142,200,255,.055),rgba(255,255,255,.018)); }
.history-table-head,
.history-table-row { min-width:760px; display:grid; grid-template-columns:1.1fr 1.35fr .9fr .9fr .75fr .7fr; gap:14px; align-items:center; }
.history-table-head { padding:14px 16px; color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; border-bottom:1px solid var(--line); }
.history-table-row { min-height:62px; padding:12px 16px; border-bottom:1px solid var(--line); color:var(--muted); font-weight:600; }
.history-table-row:last-child { border-bottom:0; }
.history-table-row b { color:var(--text); }
.history-table-row .price { font-size:15px; }
.history-person { display:flex; align-items:center; gap:10px; min-width:0; }
.history-person .headshot { width:34px; height:34px; border-radius:11px; box-shadow:none; flex:0 0 auto; }
.history-person b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.product-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:18px; }
.product-card { min-height:480px; display:grid; grid-template-rows: 290px 1fr auto; gap:16px; border:1px solid var(--line); border-radius:24px; padding:18px; background:linear-gradient(145deg,rgba(142,200,255,.10),rgba(255,255,255,.025)); box-shadow:var(--shadow); overflow:hidden; }
.product-art { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:
  radial-gradient(circle at 72% 18%, rgba(142,200,255,.36), transparent 28%),
  linear-gradient(145deg,#1e2a35,#10161c); }
.product-art img { width:100%; height:100%; display:block; object-fit:cover; }
.product-copy h3 { margin:0; font-size:19px; line-height:1.25; letter-spacing:0; font-weight:700; }
.product-copy p { margin-top:8px; line-height:1.4; }
.product-buy { display:flex; justify-content:space-between; align-items:center; gap:14px; padding-top:14px; border-top:1px solid var(--line); }
.product-buy strong { color:var(--blue); font-size:24px; letter-spacing:0; font-weight:700; }
.product-buy .btn { min-width:112px; }
.professional-intro { margin-bottom:18px; }
.professional-intro h2 { margin:14px 0 8px; font-size:26px; line-height:1.18; letter-spacing:0; }
.professional-intro p { max-width:720px; line-height:1.5; }
.professional-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.professional-plan { display:grid; gap:18px; align-content:start; }
.professional-plan.featured { border-color:rgba(242,209,122,.44); box-shadow:0 20px 48px rgba(0,0,0,.24), 0 0 0 1px rgba(242,209,122,.12) inset; }
.plan-head h2 { margin:12px 0 8px; font-size:24px; line-height:1.2; letter-spacing:0; }
.plan-head p { line-height:1.45; }
.plan-price { display:flex; align-items:flex-end; gap:10px; padding:16px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.plan-price b { color:var(--blue); font-size:38px; line-height:1; letter-spacing:0; }
.plan-price span { color:var(--muted); font-weight:650; padding-bottom:4px; }
.plan-features { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.plan-features li { position:relative; padding-left:22px; color:var(--text); font-weight:600; line-height:1.35; }
.plan-features li::before { content:""; position:absolute; left:0; top:.5em; width:8px; height:8px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px rgba(142,200,255,.13); }
.badge { display:inline-flex; align-items:center; min-height:24px; border-radius:8px; padding:0 9px; background:var(--blue-soft); color:var(--blue); font-weight:650; font-size:12px; width:max-content; }
.badge.good { background: rgba(142,224,161,.16); color: var(--good); }
.badge.warn { background: rgba(242,209,122,.16); color: var(--warn); }
.badge.danger { background: rgba(241,154,174,.16); color: var(--danger); }
body.light .badge.good { background: rgba(51,154,93,.14); color: #267947; border:1px solid rgba(51,154,93,.18); }
body.light .badge.warn { background: rgba(173,119,24,.14); color: #9a650f; border:1px solid rgba(173,119,24,.18); }
body.light .badge.danger { background: rgba(199,66,101,.14); color: #b73559; border:1px solid rgba(199,66,101,.18); }
.badge.type-quote { background:rgba(245,159,80,.16); color:#f59f50; }
body.light .badge.type-quote { background:rgba(245,159,80,.15); color:#b95e10; border:1px solid rgba(245,159,80,.22); }
.danger-text { color: var(--danger); }
.applicant-row { grid-template-columns: 68px minmax(0,1fr) minmax(260px,auto); align-items:start; }
.applicant-actions { max-width: 340px; justify-content:flex-end; align-items:center; }
.member-row { grid-template-columns: 68px minmax(0,1fr) auto; }
.member-actions { align-items:center; }
.status-board { display:grid; gap:0; padding:0; overflow:auto; background:linear-gradient(145deg,rgba(142,200,255,.10),rgba(255,255,255,.025)); }
.dispatch-head,
.dispatch-row { display:grid; grid-template-columns: 1.15fr 1.15fr .95fr 1.35fr minmax(120px,.55fr); gap:18px; align-items:center; }
.dispatch-head { padding:18px 22px; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0; }
.dispatch-row { min-height:92px; padding:18px 22px; border-bottom:1px solid var(--line); background:linear-gradient(145deg,rgba(142,200,255,.055),rgba(255,255,255,.018)); }
.dispatch-row:last-child { border-bottom:0; }
.dispatch-row:hover { background:linear-gradient(145deg,rgba(142,200,255,.10),rgba(255,255,255,.03)); }
.dispatch-row.clickable { cursor:pointer; }
.dispatch-row.clickable:focus { outline:2px solid var(--blue); outline-offset:-2px; }
.dispatch-person { display:grid; grid-template-columns:54px minmax(0,1fr); gap:13px; align-items:center; min-width:0; }
.dispatch-person strong,
.dispatch-appointment strong,
.dispatch-title strong { display:block; color:var(--text); font-size:15px; font-weight:700; letter-spacing:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dispatch-person small,
.dispatch-appointment small,
.dispatch-title small { display:block; margin-top:5px; color:var(--muted); font-size:13px; line-height:1.3; overflow:hidden; text-overflow:ellipsis; }
.dispatch-title small { white-space:normal; }
.dispatch-meta { display:grid; justify-items:end; gap:10px; align-items:center; }
.dispatch-meta .btn { min-height:40px; padding:0 16px; }
.team-status-tabs { display:flex; gap:22px; align-items:center; padding:0 28px; min-height:78px; border-bottom:1px solid var(--line); overflow:auto; }
.team-status-tabs button { min-height:58px; border:0; border-bottom:3px solid transparent; background:transparent; color:var(--muted); font-weight:650; font-size:16px; white-space:nowrap; padding:0 8px; display:inline-flex; align-items:center; gap:10px; }
.team-status-tabs button.active { color:var(--blue); border-color:var(--blue); }
.team-status-tabs button span { min-width:26px; height:26px; border-radius:999px; display:grid; place-items:center; background:rgba(241,154,174,.16); color:var(--danger); font-size:13px; }
.team-status-tabs button.attention-hot { color:#c74265; border-color:rgba(199,66,101,.65); border-radius:12px 12px 0 0; padding:0 14px; background:linear-gradient(180deg,rgba(241,154,174,.20),rgba(241,154,174,.07)); animation:attentionPulse 1.6s ease-in-out infinite; }
.team-status-tabs button.attention-hot span { background:#c74265; color:#fff; box-shadow:0 0 0 5px rgba(199,66,101,.16); }
.team-status-tabs button.attention-hot.active { color:#b72f56; border-color:#c74265; }
@keyframes attentionPulse {
  0%, 100% { box-shadow:0 0 0 0 rgba(199,66,101,.22); }
  50% { box-shadow:0 0 0 7px rgba(199,66,101,0); }
}
.team-status-toolbar { display:grid; grid-template-columns:minmax(220px,280px) minmax(190px,230px) auto; gap:22px; align-items:center; padding:26px 28px; border-bottom:1px solid var(--line); }
.date-picker,
.mini-control,
.view-toggle { min-height:60px; border:1px solid var(--line); border-radius:10px; background:rgba(142,200,255,.05); display:flex; align-items:center; color:var(--text); }
.date-picker { gap:14px; padding:0 12px 0 18px; font-weight:650; }
.date-picker span { color:var(--blue); font-weight:700; }
.date-picker b { flex:1; white-space:nowrap; }
.date-picker button,
.view-toggle button { align-self:stretch; min-width:46px; border:0; border-left:1px solid var(--line); background:transparent; color:var(--muted); font-weight:650; }
.mini-control { padding:0 14px; gap:10px; }
.mini-control span { color:var(--muted); font-weight:650; white-space:nowrap; }
.mini-control select { flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font-weight:650; }
.view-toggle { justify-self:end; overflow:hidden; }
.view-toggle button { min-width:64px; padding:0 12px; font-size:12px; }
.view-toggle button.active { color:var(--blue); background:var(--blue-soft); }
.team-status-head,
.team-status-job { grid-template-columns:.9fr 1.45fr 1.25fr 1.25fr 1.05fr 34px; }
.team-status-tabs,
.team-status-toolbar,
.team-status-head,
.team-status-job { min-width:1040px; }
.team-status-head { background:rgba(142,200,255,.035); }
.team-status-job { min-height:116px; }
.team-status-job.needs-attention-row {
  position:relative;
  background:linear-gradient(90deg,rgba(199,66,101,.13),rgba(199,66,101,.055) 34%,rgba(142,200,255,.035));
  box-shadow:inset 4px 0 0 rgba(199,66,101,.55);
}
.team-status-job.needs-attention-row:hover {
  background:linear-gradient(90deg,rgba(199,66,101,.18),rgba(199,66,101,.075) 36%,rgba(142,200,255,.06));
}
.status-board .empty-note { min-width:1040px; min-height:150px; display:grid; place-items:center; padding:48px 28px; color:var(--muted); text-align:center; font-weight:650; border-top:1px solid var(--line); background:linear-gradient(145deg,rgba(142,200,255,.045),rgba(255,255,255,.018)); }
.job-cell { display:grid; gap:5px; min-width:0; }
.job-cell strong { color:var(--blue); font-size:16px; }
.job-cell b { color:var(--text); font-size:16px; font-weight:700; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dispatch-menu { color:var(--muted); font-size:24px; font-weight:700; letter-spacing:0; justify-self:end; }
.team-status-job .dispatch-meta { justify-items:start; }
.team-status-job .dispatch-meta small { color:var(--muted); font-size:13px; font-weight:500; }
.status-pill { display:inline-flex; align-items:center; gap:8px; min-height:30px; border-radius:9px; padding:0 12px; background:rgba(47,127,189,.15); color:var(--blue); border:1px solid rgba(47,127,189,.18); font-size:12px; font-weight:650; letter-spacing:0; width:max-content; }
.status-pill i { width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px color-mix(in srgb, currentColor 16%, transparent); }
.status-pill.good { background: rgba(51,154,93,.15); color: #267947; border-color:rgba(51,154,93,.20); }
.status-pill.warn { background: rgba(173,119,24,.15); color: #9a650f; border-color:rgba(173,119,24,.22); }
.status-pill.danger { background: rgba(199,66,101,.15); color: #b73559; border-color:rgba(199,66,101,.20); }
body:not(.light) .status-pill.good { color: var(--good); }
body:not(.light) .status-pill.warn { color: var(--warn); }
body:not(.light) .status-pill.danger { color: var(--danger); }
.mini-select, .mini-input { min-height:40px; border-radius:12px; border:1px solid var(--line); background:var(--panel-2); color:var(--text); padding:0 12px; font-weight:500; }
.role-picker { min-width: 150px; }
.mini-input { width:190px; }
.agenda { display:grid; gap:10px; padding:18px; }
.agenda h2 { margin-bottom:8px; font-size:18px; }
.date-head { display:flex; justify-content:space-between; align-items:center; min-height:38px; padding:8px 10px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:#dfe8f3; font-size:12px; font-weight:650; letter-spacing:0; }
.task-card { display:grid; grid-template-columns: 54px 1fr auto auto; gap:14px; align-items:center; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); border:1px solid var(--line); border-radius:16px; padding:12px 14px; min-height:72px; }
.task-card .row-title { font-size:13px; line-height:1.18; }
.task-card .row-sub { margin-top:3px; font-size:11px; line-height:1.2; }
.task-card .badge { margin-top:5px; min-height:20px; font-size:10px; padding:0 7px; }
.task-card .price { font-size:15px; }
.task-card .btn { min-height:34px; border-radius:10px; padding:0 12px; font-size:12px; }
.timebox { width:48px; height:48px; border-radius:13px; display:grid; place-items:center; text-align:center; font-size:12px; font-weight:700; background:#0f9c8b; color:#fff; line-height:1.1; }
.search { width: min(420px,100%); min-height: 48px; border-radius: 14px; border:1px solid var(--line); background:var(--panel); color:var(--text); padding:0 16px; margin-bottom:18px; }
.customer-search { margin-bottom:24px; }
.client-controls { margin-bottom:24px; }
.client-controls .customer-search { width:min(100%,420px); margin:0 0 0 auto; }
.client-type-tabs { flex-wrap:nowrap; }
.client-type-tabs .filter { min-width:104px; justify-content:center; }
.client-list { gap:8px; padding:14px; }
.client-group { display:grid; gap:8px; }
.client-group + .client-group { margin-top:10px; padding-top:12px; border-top:1px solid var(--line); }
.client-group-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 4px 2px; color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.client-group-title b { min-width:24px; min-height:22px; border-radius:999px; display:grid; place-items:center; background:rgba(142,200,255,.2); color:var(--blue); font-size:11px; letter-spacing:0; }
.client-row { min-height:64px; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; padding:12px 14px; border-radius:16px; }
.client-row-action { cursor:pointer; transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .08s ease; }
.client-row-action:hover { background:rgba(74,164,246,.08); }
.client-row-action:focus-visible { position:relative; z-index:1; outline:2px solid var(--accent); outline-offset:-2px; }
.client-row-action:active { transform:scale(.998); }
.client-row-action.client-row-selected { background:linear-gradient(145deg,rgba(74,164,246,.22),rgba(142,200,255,.10)); border-color:rgba(92,169,238,.48); box-shadow:inset 0 0 0 1px rgba(118,188,255,.24); }
.client-row .headshot { width:38px; height:38px; border-radius:13px; box-shadow:none; }
.client-row .row-title { font-size:14px; line-height:1.2; }
.client-row .row-sub { margin-top:2px; font-size:12px; line-height:1.25; }
.client-title-line { display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.client-type-badge { min-height:20px; padding:0 8px; font-size:10px; color:#0f6ea8; background:rgba(142,200,255,.24); border-color:rgba(47,127,189,.16); }
.client-address { max-width:760px; }
.client-empty { min-height:120px; display:grid; place-items:center; text-align:center; padding:28px; }
.client-row .actions { gap:8px; flex-wrap:nowrap; }
.client-row .btn { min-height:34px; border-radius:10px; padding:0 12px; font-size:12px; }
.client-row .btn.primary { box-shadow:none; }
.member-list { gap:8px; padding:14px; }
.member-list-row { min-height:68px; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; padding:12px 14px; border-radius:16px; }
.member-list-row .headshot { width:38px; height:38px; border-radius:13px; box-shadow:none; }
.member-list-row .row-title { font-size:14px; line-height:1.2; }
.member-list-row .row-sub { margin-top:2px; font-size:12px; line-height:1.25; }
.member-list-row .member-actions { gap:8px; flex-wrap:nowrap; }
.member-list-row .role-picker { min-width:132px; min-height:34px; border-radius:10px; font-size:12px; padding:0 10px; }
.member-list-row .badge { min-height:22px; font-size:11px; padding:0 8px; }
.member-list-row .btn { min-height:34px; border-radius:10px; padding:0 12px; font-size:12px; }
.member-row-action { cursor:pointer; transition:background-color .16s ease,border-color .16s ease,transform .12s ease; }
.member-row-action:hover { border-color:rgba(92,169,238,.42); background:linear-gradient(145deg,rgba(74,164,246,.12),rgba(142,200,255,.05)); }
.member-row-action:focus-visible { position:relative; z-index:1; outline:2px solid var(--accent); outline-offset:-2px; }
.member-row-action:active { transform:scale(.998); background:linear-gradient(145deg,rgba(74,164,246,.2),rgba(142,200,255,.09)); }
.member-detail { min-height:0; overflow:auto; padding-right:2px; display:grid; gap:14px; }
.member-detail-hero { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:16px; align-items:center; border:1px solid var(--line); border-radius:20px; padding:18px; background:linear-gradient(145deg,rgba(142,200,255,.13),rgba(255,255,255,.025)); }
.member-detail-hero .headshot { width:64px; height:64px; border-radius:18px; }
.member-detail-name { font-size:22px; line-height:1.15; font-weight:700; }
.member-role-grid .detail-card { align-content:start; }
.member-role-grid .detail-card > strong { font-size:18px; }
.member-role-grid .detail-card p { margin:0; color:var(--muted); line-height:1.45; }
.member-role-grid .detail-card small { color:var(--muted); }
.member-payout-summary { font-size:17px; line-height:1.4; }
.member-schedule-section { display:grid; gap:12px; border:1px solid var(--line); border-radius:20px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.07),rgba(255,255,255,.02)); }
.member-schedule-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.member-schedule-heading h3 { margin:0; font-size:18px; }
.member-schedule-heading p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.member-schedule-counts { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.member-schedule-counts span { display:flex; gap:5px; align-items:center; min-height:30px; padding:0 10px; border-radius:9px; background:var(--blue-soft); color:var(--muted); font-size:11px; }
.member-schedule-counts b { color:var(--blue); font-size:13px; }
.member-schedule-group { display:grid; gap:6px; }
.member-schedule-group-title { display:flex; align-items:center; justify-content:space-between; min-height:28px; color:var(--muted); font-size:12px; text-transform:uppercase; }
.member-schedule-group-title span { min-width:24px; height:22px; display:grid; place-items:center; border-radius:999px; background:var(--blue-soft); color:var(--blue); font-weight:700; }
.member-schedule-row { width:100%; display:grid; grid-template-columns:112px minmax(0,1fr) auto; gap:12px; align-items:center; text-align:left; color:var(--text); font:inherit; border:1px solid var(--line); border-radius:14px; padding:11px 12px; background:rgba(142,200,255,.045); cursor:pointer; }
.member-schedule-row:hover { border-color:rgba(92,169,238,.48); background:rgba(74,164,246,.1); }
.member-schedule-row:active { transform:scale(.998); }
.member-schedule-time { display:grid; gap:2px; }
.member-schedule-time b { font-size:13px; }
.member-schedule-time small { color:var(--muted); font-size:10px; }
.member-schedule-empty { min-height:54px; display:grid; place-items:center; padding:12px; border:1px dashed var(--line); border-radius:14px; color:var(--muted); font-size:12px; text-align:center; }
.member-detail-actions { position:sticky; bottom:0; padding-top:12px; border-top:1px solid var(--line); background:linear-gradient(180deg,rgba(255,255,255,0),var(--panel) 34%); }
.team-member-overview { display:block; }
.team-member-groups { display:grid; gap:22px; }
.team-member-section { display:grid; gap:10px; }
.team-member-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:0 4px; }
.team-member-section-title h2 { margin:0; font-size:17px; line-height:1.25; }
.team-member-section-title p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.35; }
.team-member-section-title b { min-width:30px; height:26px; padding:0 8px; border-radius:999px; display:grid; place-items:center; background:var(--blue-soft); color:var(--blue); font-size:12px; }
.team-member-section.pending-members .team-member-section-title b { background:rgba(242,209,122,.16); color:var(--warn); }
.team-pending-row { min-height:68px; grid-template-columns:42px minmax(0,1fr) auto; gap:12px; padding:12px 14px; border-radius:16px; align-items:center; }
.team-pending-row .headshot { width:38px; height:38px; border-radius:13px; box-shadow:none; }
.team-pending-row .row-title { font-size:14px; line-height:1.2; }
.team-pending-row .row-sub { margin-top:2px; font-size:12px; line-height:1.25; }
.team-pending-row .applicant-actions { max-width:none; gap:8px; flex-wrap:nowrap; }
.team-pending-row .btn { min-height:34px; border-radius:10px; padding:0 12px; font-size:12px; }
.applicant-row-action { cursor:pointer; transition:background-color .16s ease,border-color .16s ease,transform .12s ease; }
.applicant-row-action:hover { border-color:rgba(92,169,238,.42); background:linear-gradient(145deg,rgba(74,164,246,.12),rgba(142,200,255,.05)); }
.applicant-row-action:focus-visible { position:relative; z-index:1; outline:2px solid var(--accent); outline-offset:-2px; }
.applicant-row-action:active { transform:scale(.998); background:linear-gradient(145deg,rgba(74,164,246,.2),rgba(142,200,255,.09)); }
.applicant-detail { min-height:0; overflow:auto; padding-right:2px; display:grid; gap:14px; }
.applicant-detail-hero { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:16px; align-items:center; border:1px solid var(--line); border-radius:20px; padding:18px; background:linear-gradient(145deg,rgba(142,200,255,.13),rgba(255,255,255,.025)); }
.applicant-detail-hero .headshot { width:64px; height:64px; border-radius:18px; }
.applicant-detail-name { font-size:22px; line-height:1.15; font-weight:700; }
.applicant-detail-grid .detail-card { align-content:start; }
.applicant-detail-grid .detail-card > strong { font-size:16px; line-height:1.35; }
.applicant-detail-grid .detail-card p { margin:0; color:var(--muted); line-height:1.45; }
.applicant-detail-grid .detail-card small { color:var(--muted); }
.applicant-notes { border:1px solid var(--line); border-radius:18px; padding:16px; background:rgba(142,200,255,.045); }
.applicant-notes b { display:block; margin-bottom:6px; font-size:12px; color:var(--muted); text-transform:uppercase; }
.applicant-notes p { margin:0; line-height:1.5; }
.applicant-decline { border-color:rgba(241,154,174,.24); background:rgba(241,154,174,.08); }
.applicant-call-section { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(220px,1fr) auto; gap:12px; align-items:end; border:1px solid var(--line); border-radius:18px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.07),rgba(255,255,255,.02)); }
.applicant-call-section > span { display:grid; gap:5px; align-self:center; }
.applicant-call-section > span small { color:var(--muted); }
.applicant-call-section .field { gap:5px; }
.applicant-call-section .field input { min-height:42px; }
.applicant-call-section .btn { min-height:42px; }
.applicant-detail-actions { position:sticky; bottom:0; padding-top:12px; border-top:1px solid var(--line); background:linear-gradient(180deg,rgba(255,255,255,0),var(--panel) 34%); }
.team-section-empty { min-height:70px; display:grid; place-items:center; padding:20px; color:var(--muted); text-align:center; font-size:13px; }
.form-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:14px; }
.field { display:grid; gap:7px; }
.field label { color: var(--muted); font-size: 12px; font-weight:650; text-transform:uppercase; letter-spacing:0; }
.field input, .field select, .field textarea { width:100%; border:1px solid var(--line); background:var(--panel-2); color:var(--text); border-radius:14px; min-height:48px; padding:12px 14px; }
.field textarea { min-height:92px; resize:vertical; }
.form-error { grid-column:1 / -1; border:1px solid rgba(241,154,174,.45); background:rgba(241,154,174,.12); color:var(--danger); border-radius:12px; padding:12px 14px; font-weight:650; }
button:disabled { opacity:.65; cursor:not-allowed; }
.login { min-height:100vh; display:grid; place-items:center; padding:24px; }
.login-card { width:min(520px,100%); }
.setup-flow { align-items:start; padding-top:48px; }
.setup-pricing-card { width:min(980px,100%); display:grid; gap:18px; }
.setup-pricing-choice { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.setup-choice { min-height:104px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); color:var(--text); padding:18px; text-align:left; display:grid; gap:8px; align-content:start; cursor:pointer; }
.setup-choice b { font-size:16px; }
.setup-choice small { color:var(--muted); line-height:1.35; }
.setup-choice.active,
.setup-choice:hover:not(:disabled) { border-color:rgba(47,127,189,.55); background:var(--blue-soft); }
.setup-choice:disabled { opacity:.55; cursor:not-allowed; }
.setup-service-list { padding:16px; gap:10px; box-shadow:none; }
.setup-empty { min-height:120px; display:grid; place-items:center; padding:28px; color:var(--muted); text-align:center; font-weight:650; }
.setup-footer-actions { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.sheet-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.58); display:grid; align-items:end; z-index:20; }
.sheet-panel { width:min(760px,calc(100vw - 24px)); max-height:86vh; overflow:hidden; margin:0 auto 12px; background:var(--panel); border:1px solid var(--line); border-radius:28px 28px 18px 18px; padding:24px; box-shadow:var(--shadow); animation:up .18s ease-out; position:relative; display:flex; flex-direction:column; }
.sheet-panel form { min-height:0; display:flex; flex-direction:column; overflow:hidden; }
.sheet-form-body { min-height:0; overflow:auto; padding-right:2px; }
.sheet-form-actions { flex:0 0 auto; display:grid; gap:10px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); background:linear-gradient(180deg,rgba(255,255,255,.03),var(--panel)); }
.sheet-form-actions .btn { width:100%; }
.sheet-close { position:absolute; right:14px; top:14px; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--panel-2); color:var(--text); box-shadow:var(--shadow); font-size:24px; font-weight:650; display:grid; place-items:center; z-index:2; }
@keyframes up { from { transform:translateY(28px); opacity:.65; } to { transform:none; opacity:1; } }
.sheet-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; padding-right:50px; }
.assign-summary { display:grid; gap:6px; border:1px solid var(--line); border-radius:18px; padding:16px; margin-bottom:14px; background:linear-gradient(145deg,rgba(142,200,255,.09),rgba(255,255,255,.025)); }
.assign-summary .price { margin-top:4px; }
.assign-member-list { max-height: min(56vh, 560px); overflow:auto; }
.assign-member-row { grid-template-columns: 68px minmax(0,1fr) auto; }
.job-detail { display:grid; gap:16px; }
.sheet-panel > .job-detail { min-height:0; overflow:auto; padding-right:2px; }
.job-hero { display:grid; grid-template-columns:82px minmax(0,1fr) auto; gap:18px; align-items:center; border:1px solid var(--line); border-radius:22px; padding:18px; background:linear-gradient(145deg,rgba(142,200,255,.12),rgba(255,255,255,.025)); }
.job-price { align-items:end; text-align:right; }
.job-workup-section { border:1px solid var(--line); border-radius:22px; padding:18px; background:linear-gradient(145deg,rgba(142,200,255,.07),rgba(255,255,255,.02)); display:grid; gap:12px; }
.job-workup-section h3 { margin:0; color:var(--text); font-size:18px; line-height:1.2; letter-spacing:0; }
.job-workup-section p { margin:0; color:var(--muted); line-height:1.5; }
.job-detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.job-detail-list span { min-width:0; border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:rgba(142,200,255,.05); display:grid; gap:4px; }
.job-detail-list button { min-width:0; border:1px solid var(--line); border-radius:16px; padding:12px 14px; background:rgba(142,200,255,.05); display:grid; gap:4px; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.job-detail-list button:hover { border-color:rgba(142,200,255,.6); background:linear-gradient(145deg,rgba(142,200,255,.14),rgba(255,255,255,.04)); }
.job-detail-list button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.job-detail-list .wide { grid-column:1/-1; }
.job-detail-list b { color:var(--muted); font-size:11px; font-weight:650; letter-spacing:0; text-transform:uppercase; }
.job-detail-list small { color:var(--text); font-size:14px; font-weight:650; line-height:1.35; overflow:hidden; text-overflow:ellipsis; }
.job-detail-list em { color:var(--muted); font-size:12px; font-style:normal; font-weight:600; }
.job-photo-grid .photo-tile img { aspect-ratio:16/10; }
.task-progress-list { display:grid; gap:12px; }
.task-progress-item { border:1px solid var(--line); border-radius:16px; padding:12px; background:rgba(142,200,255,.05); display:grid; gap:10px; }
.task-progress-item .photo-grid { margin-top:2px; }
.job-status-card { background:linear-gradient(145deg,rgba(142,200,255,.06),rgba(255,255,255,.02)); }
.job-actions-bar { position:sticky; bottom:0; z-index:1; padding-top:14px; border-top:1px solid var(--line); background:linear-gradient(180deg,rgba(255,255,255,0),var(--panel) 34%); }
.job-hero-details { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; padding-top:14px; border-top:1px solid var(--line); }
.job-hero-details span { display:grid; gap:3px; min-width:0; }
.job-hero-details b { color:var(--muted); font-size:12px; font-weight:650; text-transform:uppercase; }
.job-hero-details small { color:var(--text); font-size:13px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; }
.job-hero-details .job-detail-note { grid-column:1/-1; }
.job-hero-details .job-detail-note small { white-space:normal; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.detail-card { border:1px solid var(--line); border-radius:20px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); display:grid; gap:12px; }
.detail-card-action { width:100%; color:var(--text); text-align:left; cursor:pointer; font:inherit; }
.detail-card-action:hover { border-color:rgba(142,200,255,.55); background:linear-gradient(145deg,rgba(142,200,255,.13),rgba(255,255,255,.035)); }
.detail-card-action:active { transform:translateY(1px); background:linear-gradient(145deg,rgba(142,200,255,.2),rgba(255,255,255,.04)); }
.detail-card-action:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.detail-card > b { font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:0; font-weight:650; }
.detail-person { display:grid; grid-template-columns:54px minmax(0,1fr); gap:13px; align-items:center; }
.detail-person strong { display:block; font-size:16px; }
.detail-person small { display:block; margin-top:4px; color:var(--muted); line-height:1.35; }
.detail-card-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.detail-card-actions .btn { min-height:36px; border-radius:12px; padding:0 12px; font-size:13px; }
.status-line { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-weight:650; }
.detail-actions { justify-content:flex-end; }
.work-action-summary { border:1px solid rgba(142,200,255,.28); border-radius:22px; padding:14px; margin-bottom:18px; background:linear-gradient(145deg,rgba(142,200,255,.14),rgba(142,200,255,.04)); box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
.work-action-options { border-top:1px solid var(--line); padding-top:14px; display:grid; gap:12px; }
.section-kicker { display:block; margin:0 0 10px; color:var(--muted); font-size:11px; font-weight:650; letter-spacing:0; text-transform:uppercase; }
.action-customer { display:grid; grid-template-columns:58px minmax(0,1fr); gap:14px; align-items:center; border:1px solid var(--line); border-radius:18px; padding:16px; margin-bottom:14px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.02)); }
.action-customer-summary { margin-bottom:0; border-color:rgba(142,200,255,.35); background:rgba(0,0,0,.08); }
.action-sheet-list { display:grid; gap:12px; }
.action-sheet-item { width:100%; display:grid; grid-template-columns:46px minmax(0,1fr); gap:14px; align-items:center; text-align:left; border:1px solid var(--line); border-radius:18px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.07),rgba(255,255,255,.02)); color:var(--text); }
.action-sheet-item:hover { border-color:rgba(142,200,255,.55); background:linear-gradient(145deg,rgba(142,200,255,.12),rgba(255,255,255,.03)); }
.action-sheet-item b { display:block; font-size:16px; }
.action-sheet-item small { display:block; margin-top:4px; color:var(--muted); font-weight:500; line-height:1.35; }
.payment-request-form { display:grid; }
.profile-preview { display:grid; gap:16px; }
.profile-hero { min-height:210px; border:1px solid var(--line); border-radius:24px; padding:24px; display:flex; align-items:end; gap:16px; background:
  radial-gradient(circle at 76% 18%, rgba(142,200,255,.32), transparent 28%),
  linear-gradient(145deg,rgba(142,200,255,.16),rgba(255,255,255,.03)); }
.profile-hero .avatar { width:76px; height:76px; box-shadow:0 0 0 6px rgba(142,200,255,.14); }
.profile-name { font-size:34px; font-weight:700; line-height:1.12; letter-spacing:0; color:var(--text); }
.profile-handle { color:var(--muted); font-size:16px; font-weight:500; }
.profile-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.profile-tabs { display:flex; gap:10px; flex-wrap:wrap; border:1px solid var(--line); border-radius:20px; padding:8px; }
.profile-tabs span { min-height:42px; padding:0 18px; border-radius:15px; display:grid; place-items:center; font-weight:650; color:var(--muted); }
.profile-tabs .active { background:var(--blue-soft); color:var(--blue); }
.profile-service-list { display:grid; gap:12px; }
.profile-service-list article { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:14px; border:1px solid var(--line); border-radius:18px; padding:14px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); }
.profile-service-list b { display:block; font-size:16px; }
.profile-service-list small { display:block; color:var(--muted); margin-top:4px; line-height:1.35; }
.profile-service-list strong { color:var(--blue); font-size:20px; }
.profile-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); border-top:1px solid var(--line); padding-top:14px; }
.option-box { border:1px solid var(--line); border-radius:18px; padding:14px; display:grid; gap:10px; margin-top:10px; }
.option-box b { color: var(--blue); }
.option-box p { line-height: 1.45; }
.builder-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; }
.builder-head p { margin-top:4px; }
.service-options-builder { gap:14px; }
#serviceOptionGroups { display:grid; gap:14px; }
.service-option-group { display:grid; gap:12px; border:1px solid var(--line); border-radius:18px; padding:14px; background:linear-gradient(145deg,rgba(142,200,255,.07),rgba(255,255,255,.02)); }
.service-option-top { display:grid; grid-template-columns: 1fr 150px auto auto; gap:10px; align-items:center; }
.service-choice-list { display:grid; gap:10px; }
.service-choice-row { display:grid; grid-template-columns: 1fr 140px auto; gap:10px; align-items:center; }
.service-option-group input,
.service-option-group select { min-height:44px; border-radius:12px; border:1px solid var(--line); background:var(--panel-2); color:var(--text); padding:0 12px; font-weight:700; min-width:0; }
.service-image-box { margin:14px 0; }
.service-image-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.service-image-preview { display:flex; align-items:center; gap:12px; border:1px dashed var(--line); border-radius:16px; padding:12px; background:rgba(142,200,255,.05); }
.service-image-preview img { width:86px; height:64px; object-fit:cover; border-radius:12px; border:1px solid var(--line); background:var(--panel-2); }
.service-image-preview p { margin:0; font-size:13px; }
.option-required { min-height:44px; display:flex; align-items:center; gap:8px; color:var(--muted); font-weight:650; white-space:nowrap; }
.option-required input { min-height:auto; width:16px; height:16px; padding:0; }
.quote-builder { margin-top:16px; border:1px solid var(--line); border-radius:20px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); }
.quote-section { margin-top:14px; border:1px solid var(--line); border-radius:20px; padding:16px; background:linear-gradient(145deg,rgba(142,200,255,.08),rgba(255,255,255,.025)); }
.quote-section:first-of-type { margin-top:0; }
.quote-section h3 { margin:0 0 12px; font-size:18px; letter-spacing:0; font-weight:700; }
.quote-section p { margin:0 0 14px; line-height:1.4; }
.quick-client-form { grid-column:1/-1; border:1px solid var(--line); border-radius:18px; padding:14px; background:rgba(142,200,255,.08); display:grid; gap:12px; }
.quick-client-form[hidden] { display:none; }
.quick-client-head { display:flex; justify-content:space-between; gap:12px; align-items:end; }
.quick-client-head b { font-size:16px; }
.quick-client-head span, .quick-client-status { color:var(--muted); font-size:13px; margin:0; }
.quick-client-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.quick-client-actions { display:flex; gap:10px; justify-content:flex-end; }
.send-section { background:linear-gradient(145deg,rgba(142,200,255,.13),rgba(255,255,255,.03)); }
.quote-mode { display:flex; gap:10px; margin-bottom:16px; }
.quote-service-fields { display:grid; }
.recurrence-section { display:grid; gap:14px; }
.recurrence-section > p { margin-bottom:0; }
.recurrence-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:12px; align-items:end; }
.recurring-preview { margin:0; border:1px solid rgba(142,200,255,.22); border-radius:14px; padding:12px 14px; background:rgba(142,200,255,.08); color:var(--muted); font-weight:500; line-height:1.35; }
.quote-send-btn { width:100%; }
.quote-options { margin-top:14px; border:1px solid var(--line); border-radius:18px; padding:14px; background:linear-gradient(145deg,rgba(142,200,255,.06),rgba(255,255,255,.02)); display:grid; gap:12px; }
.quote-options-head { display:flex; justify-content:space-between; gap:12px; align-items:end; }
.quote-options-head b { font-size:16px; }
.quote-options-head span, .quote-options-empty { color:var(--muted); font-size:13px; line-height:1.35; }
.quote-option-field { margin:0; }
.quote-builder-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:12px; }
.quote-builder-head b { display:block; font-size:18px; }
.quote-builder-head small { color:var(--muted); display:block; margin-top:3px; }
#quoteItems { display:grid; gap:10px; }
.quote-item-row { display:grid; grid-template-columns: 1fr 86px 128px auto; gap:10px; align-items:center; }
.quote-item-row input { min-height:46px; border-radius:13px; border:1px solid var(--line); background:var(--panel-2); color:var(--text); padding:0 12px; font-weight:700; min-width:0; }
.quote-total { margin-top:14px; display:grid; grid-template-columns:1fr auto; gap:10px 16px; align-items:center; border-top:1px solid var(--line); padding-top:14px; }
.quote-total span { color:var(--muted); font-weight:500; }
.quote-total b, .quote-total strong { justify-self:end; font-size:20px; color:var(--blue); }
.quote-total .mini-input { justify-self:end; text-align:right; }
.photo-upload-box { display:grid; gap:12px; }
.photo-upload-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.photo-upload-actions .btn { min-width:148px; justify-content:center; }
.upload-status { margin:0; color:var(--muted); font-size:13px; line-height:1.4; font-weight:500; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.photo-tile { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--panel-2); }
.photo-tile img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; background:rgba(142,200,255,.10); }
.photo-file-preview { display:grid; place-items:center; gap:4px; width:100%; aspect-ratio:4/3; padding:16px; text-align:center; background:rgba(142,200,255,.10); color:var(--muted); font-weight:800; }
.photo-file-preview small { font-size:11px; font-weight:650; opacity:.82; }
.photo-tile a { color:var(--blue); text-decoration:none; font-weight:800; }
.photo-tile figcaption { display:grid; grid-template-columns:minmax(0,1fr) 34px; gap:8px; align-items:center; padding:10px; color:var(--muted); font-size:12px; font-weight:650; }
.photo-tile figcaption span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.photo-remove { width:32px; height:32px; min-height:32px; font-size:18px; }
.empty-photos { border:1px dashed var(--line); border-radius:16px; padding:18px; text-align:center; color:var(--muted); background:rgba(142,200,255,.05); font-weight:650; }
body.light .main { background: linear-gradient(180deg,#f7f9fc 0,#eef3f8 48%,#f7f9fc 100%); }
body.light .global-bar { background: rgba(248,251,255,.88); box-shadow: 0 1px 0 rgba(184,200,216,.55); }
body.light .page { color: #111923; }
body.light .stat { background: linear-gradient(180deg,#ffffff,#eef5fc); border-color: #c7d7e7; box-shadow: 0 14px 30px rgba(53,73,97,.08); }
body.light .card { background: linear-gradient(145deg,#ffffff,#edf3f8); border-color: #c3d0dd; box-shadow: 0 24px 54px rgba(53,73,97,.16); }
body.light .card.list,
body.light .agenda { background: linear-gradient(145deg,#f8fbff,#e4ecf4); }
body.light .row,
body.light .task-card { background: linear-gradient(135deg,#ffffff,#eef4fa); border-color: #c8d6e4; box-shadow: inset 0 1px 0 rgba(255,255,255,.88); }
body.light .row:hover,
body.light .task-card:hover { border-color: rgba(31,111,168,.44); }
body.light .product-card { background: linear-gradient(145deg,#ffffff,#e9f2fb); border-color:#c3d0dd; box-shadow:0 24px 54px rgba(53,73,97,.14); }
body.light .professional-plan.featured { border-color:rgba(173,119,24,.28); box-shadow:0 24px 54px rgba(53,73,97,.14), 0 0 0 1px rgba(173,119,24,.08) inset; }
body.light .product-art { background:
  radial-gradient(circle at 72% 18%, rgba(31,111,168,.20), transparent 30%),
  linear-gradient(145deg,#eff6fc,#d9e5f1); }
body.light .row-sub,
body.light p { color: #526172; }
body.light .price,
body.light .balance { color: #1f6fa8; }
body.light .date-head { color: #1d2834; background: rgba(255,255,255,.62); border-color: #c6d4e2; padding-left: 12px; padding-right: 12px; }
body.light .user-pill,
body.light .btn,
body.light .filter,
body.light .search,
body.light .work-search,
body.light .icon-btn,
body.light .mini-select,
body.light .mini-input { background: #ffffff; border-color: #c9d6e4; }
body.light .work-table { background: linear-gradient(145deg,#ffffff,#edf4fb); border-color:#c3d0dd; }
body.light .work-table-head { background:rgba(255,255,255,.72); border-color:#cbd8e6; color:#506173; }
body.light .work-table-row { background:linear-gradient(145deg,#ffffff,#f1f6fb); border-color:#d6e1ec; }
body.light .work-table-row:hover { background:linear-gradient(145deg,#eef7ff,#ffffff); }
body.light .work-table-row-action:active { background:linear-gradient(145deg,#dceeff,#edf7ff); box-shadow:inset 0 0 0 1px #a9cfee; }
body.light .client-row-action:hover { background:#f3f9ff; }
body.light .client-row-action.client-row-selected { background:linear-gradient(145deg,#dceeff,#edf7ff); border-color:#a9cfee; box-shadow:inset 0 0 0 1px #a9cfee; }
body.light .work-toolbar { background: linear-gradient(145deg,#ffffff,#f4f8fc); border-color:#c3d0dd; }
body.light .account-menu { background:rgba(255,255,255,.96); border-color:#c9d6e4; box-shadow:0 24px 54px rgba(53,73,97,.18); }
body.light .account-menu button:hover { background:#edf6ff; }
body.light .filter.active { background: #83bff5; border-color: #83bff5; color: #07121d; box-shadow: 0 10px 24px rgba(31,111,168,.18); }
body.light .filter:not(.active) { color: #172233; }
body.light .btn.primary,
body.light .title-row .actions .btn.primary { background:#2f7fbd; border-color:#2f7fbd; color:#fff; box-shadow:0 12px 26px rgba(47,127,189,.24); }
body.light .concierge-btn,
body.light .title-row .actions .concierge-btn,
body.light .concierge-btn.primary,
body.light .title-row .actions .concierge-btn.primary {
  background:linear-gradient(135deg,#050505,#171009 45%,#2c1b07) !important;
  color:#ffe7a3 !important;
  border-color:rgba(183,128,34,.62) !important;
  box-shadow:0 0 0 1px rgba(255,235,170,.16) inset, 0 8px 18px rgba(122,79,12,.16), 0 0 10px rgba(214,158,46,.16) !important;
}
body.light .concierge-btn:hover,
body.light .title-row .actions .concierge-btn:hover,
body.light .concierge-btn.primary:hover,
body.light .title-row .actions .concierge-btn.primary:hover {
  border-color:rgba(204,148,45,.72) !important;
  box-shadow:0 0 0 1px rgba(255,235,170,.18) inset, 0 10px 22px rgba(122,79,12,.18), 0 0 12px rgba(214,158,46,.18) !important;
}
body.light .toggle .on,
body.light .view-toggle button.active { background:#2f7fbd; color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.32); }
body.light .team-status-tabs button.active { color:#156aa9; border-color:#156aa9; background:rgba(47,127,189,.10); border-radius:12px 12px 0 0; }
body.light .team-status-tabs button.attention-hot.active { color:#b72f56; border-color:#c74265; background:linear-gradient(180deg,rgba(241,154,174,.26),rgba(241,154,174,.10)); }
body.light .quote-builder { background: linear-gradient(145deg,#f9fcff,#edf4fb); border-color:#c7d6e5; }
body.light .quote-section { background: linear-gradient(145deg,#f9fcff,#edf4fb); border-color:#c7d6e5; }
body.light .recurring-preview { background:#eef7ff; border-color:#c7d6e5; color:#526172; }
body.light .quote-options { background: linear-gradient(145deg,#ffffff,#eef5fc); border-color:#c7d6e5; }
body.light .quote-item-row input { background:#f2f6fb; border-color:#cfdae7; }
body.light .photo-tile { background:#f2f6fb; border-color:#cfdae7; }
body.light .empty-photos { background:#f8fbff; border-color:#cfdae7; }
body.light .service-option-group { background: linear-gradient(145deg,#ffffff,#eef5fc); border-color:#c7d6e5; }
body.light .service-option-group input,
body.light .service-option-group select { background:#f2f6fb; border-color:#cfdae7; }
@media (min-width: 1160px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1500px) {
  .app-shell { grid-template-columns: 236px 1fr; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .nav-btn { grid-template-columns: 24px 1fr; }
  .nav-btn .count { display:none; }
}
@media (min-width: 821px) and (max-width: 1180px) {
  body { font-size:13px; }
  .app-shell { grid-template-columns: 186px 1fr; }
  .sidebar { padding:18px 8px; }
  .brand { gap:10px; margin-bottom:34px; }
  .brand .mark { width:38px; height:38px; border-radius:10px; }
  .brand b { font-size:17px; line-height:1.1; }
  .brand span { font-size:12px; }
  .nav { gap:7px; }
  .nav-btn { min-height:42px; grid-template-columns:20px 1fr; gap:10px; border-radius:11px; padding:0 10px; font-size:13px; }
  .nav-btn svg { width:15px; height:15px; }
  .global-bar { min-height:86px; padding:14px 22px; gap:14px; }
  .business-title b { font-size:21px; }
  .business-title span { font-size:12px; }
  .user-pill { gap:10px; padding:6px 9px; box-shadow:0 12px 32px rgba(53,73,97,.13); }
  .avatar { width:40px; height:40px; }
  .profile-avatar { box-shadow:0 0 0 3px rgba(142,200,255,.08); }
  .user-meta b { font-size:13px; }
  .user-meta span { font-size:11px; }
  .balance { padding-left:12px; font-size:13px; }
  .toggle button { min-height:32px; padding:0 10px; }
  .account-trigger { min-width:40px; min-height:40px; border-radius:14px; }
  .page { padding:24px 26px 64px; max-width:none; }
  .title-row { gap:14px; margin-bottom:20px; align-items:center; }
  h1 { font-size:30px; margin-bottom:6px; }
  .actions, .filters { gap:9px; }
  .btn, .filter { min-height:42px; border-radius:12px; padding:0 14px; }
  .icon-btn img { width:18px; height:18px; }
  .stats { grid-template-columns: repeat(4,minmax(120px,1fr)); gap:12px; margin-bottom:18px; }
  .stat { min-height:96px; padding:16px; gap:12px; border-radius:16px; }
  .dot { width:30px; height:30px; }
  .stat b { font-size:24px; }
  .card { border-radius:20px; padding:18px; }
  .team-status-tabs { min-height:58px; gap:10px; padding:0 18px; }
  .team-status-tabs button { min-height:48px; font-size:14px; padding:0 8px; gap:7px; }
  .team-status-tabs button.attention-hot { padding:0 10px; }
  .team-status-tabs button span { min-width:22px; height:22px; font-size:12px; }
  .team-status-toolbar { grid-template-columns:minmax(170px,220px) minmax(160px,195px) auto; gap:12px; padding:16px 18px; }
  .date-picker,
  .mini-control,
  .view-toggle { min-height:48px; }
  .date-picker { gap:10px; padding:0 8px 0 12px; }
  .date-picker button,
  .view-toggle button { min-width:40px; }
  .mini-control { padding:0 10px; gap:8px; }
  .view-toggle button { min-width:54px; padding:0 8px; }
  .team-status-head,
  .team-status-job { min-width:900px; grid-template-columns:.82fr 1.3fr 1.15fr 1.1fr .9fr 28px; }
  .dispatch-head { padding:14px 18px; font-size:11px; }
  .dispatch-row { min-height:88px; padding:14px 18px; gap:14px; }
  .dispatch-person { grid-template-columns:44px minmax(0,1fr); gap:10px; }
  .headshot { width:44px; height:44px; }
  .dispatch-person strong,
  .dispatch-appointment strong,
  .dispatch-title strong { font-size:13px; }
  .dispatch-person small,
  .dispatch-appointment small,
  .dispatch-title small { font-size:11px; margin-top:3px; }
  .job-cell strong,
  .job-cell b { font-size:13px; }
  .status-pill { min-height:26px; padding:0 9px; font-size:11px; }
  .status-board .empty-note { min-width:900px; min-height:120px; padding:34px 20px; }
  .work-toolbar { grid-template-columns:minmax(240px,1fr) auto; padding:14px; }
  .work-search { min-height:44px; }
  .work-tabs .filter { min-height:40px; padding:0 12px; }
  .work-table-head,
  .work-table-row { gap:10px; grid-template-columns:minmax(190px,1.5fr) .65fr .85fr .7fr .9fr .9fr .75fr; }
  .work-table-head { padding:12px 16px; font-size:11px; }
  .work-table-row { min-height:78px; padding:12px 16px; }
  .icon-btn { min-height:40px; min-width:48px; border-radius:12px; padding:0 10px; }
}
@media (max-width: 820px) {
  .app-shell { display:block; }
  .sidebar { position:relative; height:auto; padding:16px; border-right:0; border-bottom:1px solid var(--line-strong); overflow:auto; }
  .brand { margin-bottom:14px; }
  .nav { display:flex; overflow:auto; padding-bottom:8px; }
  .nav-btn { min-width:98px; grid-template-columns:1fr; justify-items:center; gap:6px; }
  .global-bar { min-height:88px; justify-content:center; padding:14px; display:grid; }
  .business-title { text-align:center; }
  .business-title b { font-size:20px; }
  .user-pill { transform:none; width:100%; justify-content:center; border-radius:24px; flex-wrap:wrap; }
  .account-menu { right:12px; left:12px; top:calc(100% + 8px); }
  .page { padding:28px 18px 80px; }
  .title-row, .control-row { display:grid; }
  .stats { grid-template-columns:repeat(2,1fr); }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .professional-grid { grid-template-columns:1fr; gap:12px; }
  .professional-intro h2 { font-size:22px; }
  .product-card { min-height:400px; grid-template-rows:230px 1fr auto; padding:14px; border-radius:20px; }
  .product-copy h3 { font-size:16px; }
  .product-buy { display:grid; }
  .product-buy strong { font-size:20px; }
  .product-buy .btn { width:100%; min-width:0; }
  .row, .task-card, .applicant-row, .member-row, .dispatch-row, .work-row { grid-template-columns:1fr; }
  .client-row { grid-template-columns:38px minmax(0,1fr); }
  .client-row .actions { grid-column:1 / -1; justify-content:flex-start; }
  .member-list-row { grid-template-columns:38px minmax(0,1fr); }
  .member-list-row .member-actions { grid-column:1 / -1; justify-content:flex-start; }
  .member-detail-hero { grid-template-columns:58px minmax(0,1fr); }
  .member-detail-hero .headshot { width:52px; height:52px; }
  .member-detail-hero > .badge { grid-column:1 / -1; }
  .applicant-detail-hero { grid-template-columns:58px minmax(0,1fr); }
  .applicant-detail-hero .headshot { width:52px; height:52px; }
  .applicant-detail-hero > .badge { grid-column:1 / -1; }
  .applicant-call-section { grid-template-columns:1fr; }
  .member-schedule-heading { display:grid; }
  .member-schedule-counts { justify-content:flex-start; }
  .member-schedule-row { grid-template-columns:1fr; }
  .work-actions { justify-content:flex-start; }
  .work-toolbar { grid-template-columns:1fr; }
  .work-tabs { justify-content:flex-start; overflow-x:auto; padding-bottom:4px; }
  .work-table-head { display:none; }
  .work-table-row { grid-template-columns:1fr; gap:14px; }
  .work-main { grid-template-columns:minmax(0,1fr); }
  .work-table-actions { justify-content:flex-start; }
  .work-table-foot { display:grid; }
  .dispatch-head { display:none; }
  .dispatch-row { gap:16px; min-height:auto; }
  .dispatch-meta { justify-items:start; }
  .quote-item-row { grid-template-columns:1fr; }
  .setup-pricing-choice { grid-template-columns:1fr; }
  .setup-footer-actions { display:grid; }
  .setup-footer-actions .btn { width:100%; }
  .service-option-top, .service-choice-row { grid-template-columns:1fr; }
  .builder-head { display:grid; }
  .sheet-close { right:12px; top:12px; }
  .job-hero,
  .detail-grid,
  .job-detail-list { grid-template-columns:1fr; }
  .job-price { align-items:start; text-align:left; }
  .job-actions-bar { grid-template-columns:1fr; }
  .dispatch-meta { justify-items:start; }
  .applicant-actions { max-width:none; justify-content:flex-start; }
  .form-grid { grid-template-columns:1fr; }
  .recurrence-grid { grid-template-columns:1fr; }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns:1fr; }
  .professional-grid { grid-template-columns:1fr; }
}
