:root{
  --ink:#0f1720;
  --ink-2:#1b2632;
  --blue:#0b63ce;
  --blue-soft:#eaf3ff;
  --green:#14835d;
  --amber:#a96700;
  --red:#b33a32;
  --paper:#fff;
  --surface:#f4f7fa;
  --line:#dbe2e9;
  --muted:#697788;
  --shadow:0 18px 55px rgba(15,23,32,.12);
  --safe-bottom:max(14px,env(safe-area-inset-bottom));
}
*{box-sizing:border-box}
html{background:var(--surface);color-scheme:light;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--surface);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.45}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
svg{display:block}
.app-shell{min-height:100svh;background:var(--surface)}
.topbar{position:sticky;top:0;z-index:80;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 16px;border-bottom:1px solid rgba(15,23,32,.08);background:rgba(255,255,255,.95);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.brand{min-width:0;display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;text-align:left}
.brand-mark{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#fff;background:linear-gradient(135deg,#0f1720,#0b63ce);font-size:11px;font-weight:950;letter-spacing:-.02em}
.brand-copy{min-width:0}
.brand-copy strong,.brand-copy span{display:block}
.brand-copy strong{max-width:230px;overflow:hidden;font-size:12.5px;font-weight:900;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.brand-copy span{margin-top:2px;color:var(--muted);font-size:10px}
.topbar-action{flex:0 0 auto;width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid #bfd0e2;border-radius:10px;color:var(--blue);background:#fff}
.topbar-action svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.main{padding:0 0 calc(78px + var(--safe-bottom))}
.screen{display:none;max-width:760px;margin:0 auto;padding:24px 16px 34px}
.screen.is-active{display:block;animation:screenIn .18s ease both}
@keyframes screenIn{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:2px 0 22px}
.page-intro h1,.map-topline h1{margin:2px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:41px;line-height:.98;letter-spacing:-.045em}
.date-line{margin:0;color:var(--muted);font-size:12px;font-weight:700}
.text-action{padding:0;border:0;color:var(--blue);background:transparent;font-size:12px;font-weight:900}
.morning-brief{margin:0 0 18px;padding:16px 0;border-top:3px solid var(--ink);border-bottom:1px solid var(--line)}
.morning-brief strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.15}
.morning-brief p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.summary-rail{display:grid;grid-template-columns:repeat(3,1fr);margin:0 0 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.summary-rail>div{min-width:0;padding:15px 12px}
.summary-rail>div:not(:last-child){border-right:1px solid var(--line)}
.summary-rail span,.summary-rail strong{display:block}
.summary-rail span{color:var(--muted);font-size:10.5px;font-weight:800}
.summary-rail strong{margin-top:4px;font-size:26px;line-height:1}
.summary-rail>div:last-child strong{color:var(--blue)}
.attention-block,.today-section,.tomorrow-block,.jobs-group{margin-top:26px}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:10px}
.section-heading h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1.05;letter-spacing:-.03em}
.section-heading>span{color:var(--muted);font-size:11px}
.attention-list{border-top:1px solid var(--line)}
.attention-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid var(--line)}
.attention-row strong{display:block;font-size:13px}
.attention-row span{display:block;margin-top:3px;color:var(--muted);font-size:10.5px}
.attention-row button{flex:0 0 auto;padding:0;border:0;color:var(--blue);background:transparent;font-size:10.5px;font-weight:900}
.job-list{border-top:1px solid var(--line)}
.job-row{position:relative;display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:13px;align-items:start;min-height:94px;padding:15px 0;border-bottom:1px solid var(--line)}
.job-row__time{font-size:12px;font-weight:900;line-height:1.3}
.job-row__time small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:700}
.job-row__main{min-width:0}
.job-row__main strong{display:block;overflow:hidden;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.job-row__main p{margin:3px 0 0;color:#445365;font-size:12px;font-weight:700}
.job-row__main small{display:block;margin-top:4px;overflow:hidden;color:var(--muted);font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
.job-row__side{display:flex;align-items:flex-end;flex-direction:column;gap:8px}
.status-text{display:inline-flex;align-items:center;gap:6px;min-height:23px;color:var(--muted);font-size:9px;font-weight:900;white-space:nowrap}
.status-text::before{content:"";width:7px;height:7px;border-radius:50%;background:#98a5b3}
.status-text[data-status="En Route"]{color:var(--blue)}.status-text[data-status="En Route"]::before{background:var(--blue)}
.status-text[data-status="On Site"]{color:var(--amber)}.status-text[data-status="On Site"]::before{background:#cf8500}
.status-text[data-status="Completed"]{color:var(--green)}.status-text[data-status="Completed"]::before{background:var(--green)}
.row-open{padding:0;border:0;color:var(--blue);background:transparent;font-size:10.5px;font-weight:900}
.job-list--compact .job-row{min-height:78px;padding:11px 0}
.empty-state{padding:28px 0;border-bottom:1px solid var(--line)}
.empty-state strong,.empty-state span{display:block}
.empty-state strong{font-size:14px}
.empty-state span{margin-top:4px;color:var(--muted);font-size:11.5px}
.empty-state--small{padding:16px 0}
.leads-summary{margin:-5px 0 17px;padding:0 0 14px;border-bottom:1px solid var(--line)}
.leads-summary strong{display:block;color:var(--blue);font-size:13px}
.leads-summary span{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.lead-list{border-top:1px solid var(--line)}
.lead-row{padding:16px 0;border-bottom:1px solid var(--line)}
.lead-row__top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.lead-row__identity{min-width:0}
.lead-row__identity strong{display:block;font-size:16px;line-height:1.25}
.lead-row__identity p{margin:3px 0 0;color:#445365;font-size:12px;font-weight:700}
.lead-row__identity small{display:block;margin-top:5px;color:var(--muted);font-size:10.5px}
.lead-row__age{flex:0 0 auto;color:var(--muted);font-size:9.5px;font-weight:800}
.lead-location{display:flex;align-items:center;gap:7px;margin-top:10px;color:var(--muted);font-size:10.5px}
.lead-location.is-inside{color:var(--green);font-weight:800}
.lead-location.is-outside{color:var(--amber);font-weight:800}
.photo-strip{display:flex;gap:7px;overflow-x:auto;margin-top:11px;padding-bottom:2px;scrollbar-width:none}
.photo-strip::-webkit-scrollbar{display:none}
.photo-thumb{flex:0 0 74px;width:74px;height:58px;overflow:hidden;padding:0;border:0;border-radius:9px;background:#e7edf3}
.photo-thumb img{width:100%;height:100%;object-fit:cover}
.photo-strip--sheet .photo-thumb{flex-basis:92px;width:92px;height:72px}
.lead-row__actions{display:grid;grid-template-columns:1fr 1fr 1.25fr;gap:8px;margin-top:13px}
.lead-row__actions a,.lead-row__actions button{min-height:39px;display:flex;align-items:center;justify-content:center;border:1px solid #b8cae2;border-radius:9px;color:var(--ink);background:#fff;font-size:10.5px;font-weight:900}
.lead-row__actions button{color:#fff;border-color:var(--blue);background:var(--blue)}
.map-screen{max-width:none;padding:0}
.map-topline{max-width:760px;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 auto;padding:22px 16px 15px}
.map-topline h1{font-size:34px}
.map-topline p{margin:5px 0 0;color:var(--muted);font-size:11px}
.map-wrap{position:relative;min-height:calc(100svh - 66px - 78px - var(--safe-bottom) - 86px);background:#dce7ef}
.service-map{width:100%;height:calc(100svh - 66px - 78px - var(--safe-bottom) - 86px);min-height:470px}
.maplibregl-ctrl-group{box-shadow:0 10px 26px rgba(15,23,32,.15)!important}
.job-map-marker{width:30px;height:30px;display:grid;place-items:center;border:3px solid #fff;border-radius:50% 50% 50% 0;color:#fff;background:#7f8a97;box-shadow:0 5px 14px rgba(15,23,32,.25);transform:rotate(-45deg)}
.job-map-marker span{transform:rotate(45deg);font-size:9px;font-weight:950}
.job-map-marker[data-status="En Route"],.job-map-marker[data-status="On Site"]{background:var(--blue)}
.job-map-marker[data-status="Completed"]{background:var(--green)}
.map-key{position:absolute;top:14px;right:12px;z-index:5;display:grid;gap:5px;padding:9px 10px;border:1px solid rgba(15,23,32,.08);border-radius:10px;background:rgba(255,255,255,.94);box-shadow:0 10px 28px rgba(15,23,32,.11);font-size:9px;font-weight:800}
.map-key>div{display:flex;align-items:center;gap:7px}
.key-dot{width:7px;height:7px;border-radius:50%;background:#98a5b3}.key-dot--active{background:var(--blue)}.key-dot--done{background:var(--green)}
.map-sheet{position:absolute;right:12px;bottom:12px;left:12px;z-index:8;padding:17px;border:1px solid rgba(15,23,32,.09);border-radius:16px;background:#fff;box-shadow:0 20px 60px rgba(15,23,32,.2)}
.map-sheet-close{position:absolute;top:9px;right:10px;width:31px;height:31px;border:0;border-radius:8px;color:var(--muted);background:#f1f4f7;font-size:22px}
.map-sheet-head{padding-right:38px}.map-sheet-head>span{color:var(--blue);font-size:10px;font-weight:900}.map-sheet-head strong{display:block;margin-top:3px;font-size:17px}.map-sheet-head p{margin:3px 0 0;color:#445365;font-size:12px;font-weight:700}
.map-sheet-address{margin-top:11px;padding-top:11px;border-top:1px solid var(--line);color:var(--muted);font-size:11px}
.map-sheet-actions,.sheet-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.map-sheet-actions a,.sheet-actions a,.sheet-actions button{min-height:39px;display:flex;align-items:center;justify-content:center;border:1px solid #b8cae2;border-radius:9px;color:var(--ink);background:#fff;font-size:10.5px;font-weight:900}
.map-sheet-actions a:last-child,.sheet-actions a:last-child,.sheet-actions button:last-child{color:#fff;border-color:var(--blue);background:var(--blue)}
.map-sheet-job{width:100%;margin-top:8px;padding:9px 0 0;border:0;color:var(--blue);background:transparent;font-size:10.5px;font-weight:900}
.jobs-toolbar{margin-bottom:24px}
.search-box{min-height:46px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #cbd6e2;border-radius:11px;background:#fff}
.search-box svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:#7d8998;stroke-width:2;stroke-linecap:round}
.search-box input{width:100%;min-width:0;border:0;outline:0;color:var(--ink);background:transparent;font-size:13px}
.filter-tabs{display:flex;gap:20px;margin-top:14px;border-bottom:1px solid var(--line)}
.filter-tabs button{position:relative;padding:0 0 10px;border:0;color:var(--muted);background:transparent;font-size:11px;font-weight:900}
.filter-tabs button.is-active{color:var(--ink)}
.filter-tabs button.is-active::after{content:"";position:absolute;right:0;bottom:-1px;left:0;height:2px;background:var(--blue)}
.bottom-nav{position:fixed;right:0;bottom:0;left:0;z-index:90;min-height:68px;display:grid;grid-template-columns:repeat(5,1fr);padding:7px 7px var(--safe-bottom);border-top:1px solid rgba(15,23,32,.09);background:rgba(255,255,255,.96);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.bottom-nav button{position:relative;min-height:54px;display:grid;place-items:center;align-content:center;gap:4px;padding:0;border:0;color:#7a8795;background:transparent;font-size:9.5px;font-weight:850}
.bottom-nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-nav button.is-active{color:var(--blue)}
.nav-badge{position:absolute;top:4px;left:55%;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px;border-radius:999px;color:#fff;background:var(--red);font-size:8px}
.nav-add span{width:34px;height:34px;display:grid;place-items:center;margin-top:-12px;border-radius:50%;color:#fff;background:var(--blue);box-shadow:0 9px 20px rgba(11,99,206,.22);font-size:25px;font-weight:400;line-height:1}
.nav-add small{color:#7a8795;font-size:9px;font-weight:850}
.sheet{position:fixed;inset:0;z-index:1500;display:flex;align-items:flex-end;justify-content:center}
.sheet-backdrop{position:absolute;inset:0;border:0;background:rgba(6,14,22,.56);backdrop-filter:blur(3px)}
.sheet-panel{position:relative;z-index:1;width:min(100%,620px);max-height:88svh;overflow:auto;padding:10px 18px calc(18px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -18px 70px rgba(15,23,32,.24);animation:sheetIn .2s ease both}
@keyframes sheetIn{from{transform:translateY(18px);opacity:.4}to{transform:none;opacity:1}}
.sheet-handle{width:42px;height:4px;margin:0 auto 14px;border-radius:999px;background:#d4dbe2}
.sheet-head{position:relative;padding:0 42px 15px 0;border-bottom:1px solid var(--line)}
.sheet-head>div>span{color:var(--blue);font-size:10px;font-weight:900}
.sheet-head h2{margin:4px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:29px;line-height:1.05;letter-spacing:-.03em}
.sheet-head p{margin:5px 0 0;color:var(--muted);font-size:11px}
.sheet-close{position:absolute;top:0;right:0;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;color:var(--muted);background:#f1f4f7;font-size:23px}
.sheet-info{display:grid}.sheet-info>div{padding:14px 0;border-bottom:1px solid var(--line)}.sheet-info span,.sheet-info strong{display:block}.sheet-info span{color:var(--muted);font-size:9.5px;font-weight:800}.sheet-info strong{margin-top:4px;font-size:12.5px;line-height:1.45}
.sheet-info select{width:100%;min-height:42px;margin-top:6px;padding:8px 10px;border:1px solid #c4d0dd;border-radius:9px;color:var(--ink);background:#fff;font-size:12px;font-weight:800}
.lead-distance{margin:14px 0 0;color:var(--muted);font-size:11px;font-weight:800}.lead-distance.is-inside{color:var(--green)}.lead-distance.is-outside{color:var(--amber)}
.review-action,.customer-history-action{width:100%;min-height:43px;margin-top:11px;border-radius:9px;font-size:11px;font-weight:900}
.review-action{border:0;color:#fff;background:var(--green)}
.customer-history-action{border:1px solid #b8cae2;color:var(--ink);background:#fff}
.customer-address{padding:14px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:11px}
.history-list{border-top:0}
.history-row{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.history-row time{font-size:10.5px;font-weight:900}.history-row strong{display:block;font-size:12.5px}.history-row span{display:block;margin-top:3px;color:var(--muted);font-size:10px}.history-row b{align-self:start;color:var(--green);font-size:9px}
.job-form{display:grid;gap:13px;padding-top:16px}.job-form label{display:grid;gap:6px}.job-form label>span{font-size:10px;font-weight:850}
.job-form input,.job-form select,.job-form textarea{width:100%;border:1px solid #c7d2df;border-radius:9px;outline:0;color:var(--ink);background:#fff}
.job-form input,.job-form select{min-height:44px;padding:9px 10px}.job-form textarea{min-height:80px;padding:10px;resize:vertical}
.job-form input:focus,.job-form select:focus,.job-form textarea:focus{border-color:#7ca9df;box-shadow:0 0 0 4px rgba(11,99,206,.08)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.primary-button{min-height:47px;margin-top:2px;border:0;border-radius:10px;color:#fff;background:var(--blue);font-size:12px;font-weight:900;box-shadow:0 10px 24px rgba(11,99,206,.18)}
.business-menu-list{display:grid}.business-menu-list>button,.business-menu-list>div{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.business-menu-list strong,.business-menu-list small{display:block}.business-menu-list strong{font-size:13px}.business-menu-list small{margin-top:3px;color:var(--muted);font-size:10.5px}.business-menu-list b{color:var(--blue);font-size:10px}
.toast{position:fixed;right:16px;bottom:calc(82px + var(--safe-bottom));left:16px;z-index:2200;max-width:420px;margin:0 auto;padding:11px 13px;border-radius:10px;color:#fff;background:var(--ink);box-shadow:0 16px 40px rgba(15,23,32,.25);font-size:11px;font-weight:800;opacity:0;pointer-events:none;transform:translateY(8px);transition:.18s ease}.toast.is-visible{opacity:1;transform:none}


@media(min-width:820px){
  body{background:#eaf0f5}
  .app-shell{width:min(100%,1120px);min-height:100vh;margin:0 auto;background:#f7f9fb;box-shadow:0 0 80px rgba(15,23,32,.08)}
  .topbar{padding-right:24px;padding-left:24px}
  .screen{max-width:900px;padding:34px 28px 54px}
  .page-intro h1{font-size:52px}
  .job-row{grid-template-columns:86px minmax(0,1fr) auto}
  .map-topline{max-width:900px;padding-right:28px;padding-left:28px}
  .map-wrap,.service-map{min-height:620px;height:calc(100vh - 66px - 86px)}
  .bottom-nav{right:50%;left:50%;width:min(100%,1120px);transform:translateX(-50%)}
  .map-sheet{right:22px;bottom:22px;left:auto;width:350px}
}
@media(max-width:390px){
  .brand-copy strong{max-width:190px;font-size:11.5px}
  .summary-rail>div{padding-right:9px;padding-left:9px}
  .summary-rail strong{font-size:24px}
  .job-row{grid-template-columns:61px minmax(0,1fr) auto;gap:10px}
  .job-row__main strong{font-size:14px}
  .lead-row__actions{grid-template-columns:1fr 1fr}.lead-row__actions button{grid-column:1/-1}
}

/* V3 authentication */
.auth-page {
  min-height: 100vh;
  background: #eef4f8;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 430px);
  background: #ffffff;
  border: 1px solid #d8e1e8;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 32, 0.08);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dbe4ea;
}

.auth-brand .brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #0b63ce;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.auth-brand div:last-child {
  display: grid;
  gap: 3px;
}

.auth-brand strong {
  font-size: 16px;
}

.auth-brand span,
.auth-copy p,
.auth-help {
  color: #617286;
}

.auth-copy {
  padding: 28px 0 20px;
}

.auth-copy h1 {
  margin: 5px 0 8px;
  font-size: clamp(38px, 8vw, 52px);
  line-height: 0.98;
}

.auth-copy p:last-child {
  margin: 0;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c8d5df;
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  color: #0f1720;
  background: #fff;
}

.auth-form input:focus {
  outline: 3px solid rgba(11, 99, 206, 0.13);
  border-color: #0b63ce;
}

.auth-error {
  margin: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff1f1;
  color: #a51d1d;
  font-size: 13px;
  font-weight: 700;
}

.auth-help {
  margin: 18px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.business-logout {
  color: #a51d1d;
}

/* V4 — SCG Admin + onboarding */
.auth-secondary{width:100%;margin-top:10px;padding:11px 14px;border:0;background:transparent;color:var(--muted);font-weight:800;cursor:pointer}

.admin-page{min-height:100vh;background:#f4f7fb;color:var(--ink)}
.admin-topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px clamp(18px,4vw,46px);background:#fff;border-bottom:1px solid var(--line)}
.admin-topbar>div{display:grid;gap:2px}.admin-topbar strong{font-family:var(--display);font-size:20px}.admin-kicker{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:800}.admin-topbar a{color:var(--blue);font-size:12px;font-weight:800;text-decoration:none}
.admin-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:38px 0 70px}
.admin-hero{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:28px;align-items:end;margin-bottom:28px}.admin-hero h1{margin:4px 0 10px;font-family:var(--display);font-size:clamp(34px,5vw,58px);line-height:.98;letter-spacing:-.035em}.admin-hero>div>p:last-child{max-width:720px;color:var(--muted);line-height:1.6}.admin-stat-card{padding:22px;background:#0f1720;color:#fff;border-radius:18px;box-shadow:0 14px 40px rgba(15,23,32,.14)}.admin-stat-card span{display:block;font-size:11px;color:#c8d2df;font-weight:800}.admin-stat-card strong{display:block;margin-top:8px;font-size:36px;font-family:var(--display)}
.admin-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:22px;align-items:start}.admin-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(15,23,32,.05)}.admin-panel-head{margin-bottom:20px}.admin-panel-head h2,.admin-result-panel h2{margin:2px 0 0;font-family:var(--display);font-size:30px}.admin-panel-head--row{display:flex;align-items:center;justify-content:space-between;gap:18px}
.admin-form{display:grid;gap:14px}.admin-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-form label{display:grid;gap:6px}.admin-form label>span{font-size:11px;font-weight:800;color:#334155}.admin-form label small{font-weight:600;color:var(--muted)}.admin-form input{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;color:var(--ink);font:inherit}.admin-form input:focus{outline:3px solid rgba(11,99,206,.12);border-color:var(--blue)}
.admin-result-panel[hidden]{display:none}.admin-result-panel{position:sticky;top:90px}.admin-success-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#e8f7f1;color:#08775a;font-size:25px;font-weight:900;margin-bottom:16px}.admin-result-panel>p:not(.date-line){color:var(--muted);line-height:1.5}.credential-box{display:grid;gap:0;margin:18px 0;border:1px solid var(--line);border-radius:12px;overflow:hidden}.credential-box>div{padding:11px 12px;border-bottom:1px solid var(--line)}.credential-box>div:last-child{border-bottom:0}.credential-box span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:800}.credential-box strong{display:block;margin-top:3px;font-size:12px;word-break:break-all}.credential-password{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#0b63ce}.admin-result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.admin-result-actions button{min-height:42px;border:1px solid #bfd1e5;border-radius:10px;background:#fff;color:#0b63ce;font-weight:800;cursor:pointer}.admin-result-actions button:last-child{grid-column:1/-1;color:var(--ink)}
.admin-contractors-panel{margin-top:22px}.admin-refresh{border:0;background:transparent;color:var(--blue);font-weight:800;cursor:pointer}.admin-contractor-list{display:grid;gap:12px}.admin-contractor-card{padding:17px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}.admin-contractor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.admin-contractor-head>div{display:grid;gap:3px}.admin-contractor-head strong{font-size:15px}.admin-contractor-head span{font-size:10.5px;color:var(--muted)}.admin-status{padding:5px 8px;border-radius:999px;font-size:9px;text-transform:uppercase;letter-spacing:.05em}.admin-status.is-active{background:#e8f7f1;color:#08775a}.admin-status.is-inactive{background:#eef1f5;color:#64748b}.admin-contractor-details{display:grid;grid-template-columns:1.4fr 1fr .7fr .7fr;gap:12px;margin:15px 0;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.admin-contractor-details span,.admin-contractor-details small{display:block;font-size:9px;color:var(--muted)}.admin-contractor-details strong{display:block;margin:2px 0;font-size:11px}.admin-contractor-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-contractor-actions button{min-height:36px;padding:7px 11px;border:1px solid #bfd1e5;border-radius:9px;background:#fff;color:#0b63ce;font-size:10px;font-weight:800;cursor:pointer}.admin-contractor-actions button.is-danger{border-color:#f1c4c4;color:#a51d1d}.admin-contractor-actions button:disabled{opacity:.45;cursor:not-allowed}

@media (max-width:820px){.admin-hero{grid-template-columns:1fr}.admin-stat-card{max-width:220px}.admin-grid{grid-template-columns:1fr}.admin-result-panel{position:static}.admin-contractor-details{grid-template-columns:1fr 1fr}.admin-shell{width:min(100% - 20px,1180px);padding-top:24px}}
@media (max-width:540px){.admin-topbar{padding:13px 14px}.admin-topbar strong{font-size:17px}.admin-form-grid{grid-template-columns:1fr}.admin-panel{padding:18px}.admin-result-actions{grid-template-columns:1fr}.admin-result-actions button:last-child{grid-column:auto}.admin-contractor-details{grid-template-columns:1fr 1fr}.admin-contractor-actions button{flex:1 1 120px}.admin-hero h1{font-size:39px}}


/* =========================================================
   SCG FIELD HUB — DASHBOARD V2 / PASS 1
   Visual hierarchy + daylight readability only.
   No JavaScript, API, database, auth, automation, or backend
   behavior is changed by this stylesheet pass.
========================================================= */

.app-shell{
  --ink:#101820;
  --ink-2:#1b2733;
  --blue:#0867d7;
  --blue-soft:#e9f3ff;
  --green:#087a54;
  --amber:#9a5b00;
  --red:#b62e2e;
  --surface:#edf2f6;
  --line:#ccd7e1;
  --muted:#58697b;
  background:#edf2f6;
}

/* BUSINESS HEADER */
.app-shell .topbar{
  min-height:70px;
  padding:11px 16px;
  border-bottom:1px solid #d4dee7;
  background:#fff;
  box-shadow:0 3px 16px rgba(15,23,32,.06);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.app-shell .brand{gap:11px}
.app-shell .brand-mark{
  width:40px;height:40px;border-radius:10px;font-size:11px;
  box-shadow:0 5px 14px rgba(11,99,206,.16);
}
.app-shell .brand-copy strong{
  max-width:240px;color:#0b1118;font-size:13px;font-weight:950;line-height:1.22;
}
.app-shell .brand-copy span{
  margin-top:3px;color:#607184;font-size:10px;font-weight:650;
}
.app-shell .topbar-action{
  width:42px;height:42px;border:1px solid #9dbbe0;border-radius:11px;
  color:var(--blue);background:#fafdff;box-shadow:0 4px 12px rgba(15,23,32,.05);
}
.app-shell .topbar-action:active{transform:scale(.97)}

/* PAGE / TODAY HERO */
.app-shell .screen{padding:22px 14px 38px}
.app-shell .page-intro{align-items:center;padding:2px 0 16px}
.app-shell .page-intro h1,
.app-shell .map-topline h1{color:#0c141d}
.app-shell .date-line{color:#5e6f82;font-size:12.5px;font-weight:800}
.app-shell .screen[data-screen="today"] .page-intro .text-action{
  min-height:42px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 13px;border:1px solid #a9c5e7;border-radius:10px;
  color:#075dbf;background:#fff;box-shadow:0 4px 12px rgba(15,23,32,.04);
  font-size:11.5px;font-weight:900;
}
.app-shell .screen[data-screen="today"] .page-intro .text-action:active{background:#eef5ff}

/* MORNING BRIEF */
.app-shell .morning-brief{
  margin:0 0 12px;padding:16px 16px 16px 17px;
  border:1px solid #d3dee8;border-left:4px solid var(--blue);border-radius:15px;
  background:#fff;box-shadow:0 7px 22px rgba(15,23,32,.055);
}
.app-shell .morning-brief strong{
  color:#111923;font-size:20px;line-height:1.14;
}
.app-shell .morning-brief p{
  margin-top:6px;color:#536477;font-size:12px;line-height:1.5;
}

/* SUMMARY METRICS */
.app-shell .summary-rail{
  gap:8px;margin:0 0 24px;border:0;background:transparent;
}
.app-shell .summary-rail>div{
  min-height:78px;display:flex;flex-direction:column;justify-content:center;
  padding:13px 12px;border:1px solid #d3dee8;border-radius:13px;
  background:#fff;box-shadow:0 5px 16px rgba(15,23,32,.045);
}
.app-shell .summary-rail>div:not(:last-child){border-right:1px solid #d3dee8}
.app-shell .summary-rail>div:last-child{
  border-color:#b8d2f1;background:#f1f7ff;
}
.app-shell .summary-rail span{
  color:#5c6c7e;font-size:10px;font-weight:900;letter-spacing:.01em;
}
.app-shell .summary-rail strong{
  margin-top:7px;color:#101820;font-size:27px;font-weight:900;line-height:.95;
}
.app-shell .summary-rail>div:last-child strong{color:#0867d7}

/* SECTION HEADINGS */
.app-shell .attention-block,
.app-shell .today-section,
.app-shell .tomorrow-block,
.app-shell .jobs-group{margin-top:22px}
.app-shell .section-heading{align-items:center;margin-bottom:12px}
.app-shell .section-heading h2{
  color:#101820;font-size:26px;line-height:1.06;
}
.app-shell .section-heading>span{
  color:#68798b;font-size:10.5px;font-weight:700;
}

/* NEEDS ATTENTION */
.app-shell .attention-block{
  padding:16px;border:1px solid #e4c98e;border-left:4px solid #c37a00;
  border-radius:16px;background:#fff9ed;box-shadow:0 7px 20px rgba(99,61,0,.06);
}
.app-shell .attention-block .section-heading{margin-bottom:5px}
.app-shell .attention-block .section-heading h2{font-size:24px}
.app-shell .attention-block .section-heading>span{color:#7a571b;font-weight:850}
.app-shell .attention-list{border-top:0}
.app-shell .attention-row{
  min-height:64px;padding:12px 0 0;border-bottom:0;
}
.app-shell .attention-row + .attention-row{
  margin-top:12px;padding-top:14px;border-top:1px solid #ecd8ad;
}
.app-shell .attention-row>div{min-width:0}
.app-shell .attention-row strong{
  color:#171d24;font-size:13.5px;line-height:1.3;
}
.app-shell .attention-row span{
  margin-top:4px;color:#695e4e;font-size:11px;line-height:1.4;
}
.app-shell .attention-row button{
  min-width:66px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;
  padding:0 13px;border:1px solid #075dbc;border-radius:10px;color:#fff;
  background:#0867d7;box-shadow:0 5px 13px rgba(8,103,215,.17);
  font-size:11px;font-weight:900;
}
.app-shell .attention-row button:active{transform:scale(.97)}

/* TODAY ROUTE */
.app-shell .today-section{
  padding:16px;border:1px solid #d3dee8;border-radius:16px;
  background:#fff;box-shadow:0 7px 22px rgba(15,23,32,.05);
}
.app-shell .job-list{border-top:0}
.app-shell .today-section .job-row{
  margin-bottom:9px;padding:14px 12px;border:1px solid #d6e0e8;border-radius:12px;
  background:#fff;box-shadow:0 3px 10px rgba(15,23,32,.035);
}
.app-shell .today-section .job-row:last-child{margin-bottom:0}
.app-shell .job-row{cursor:pointer}
.app-shell .job-row__time{color:#111923;font-size:12.5px}
.app-shell .job-row__time small{color:#66778a;font-size:9.5px}
.app-shell .job-row__main strong{color:#101820;font-size:15px}
.app-shell .job-row__main p{color:#364759;font-size:12px}
.app-shell .job-row__main small{color:#617286;font-size:10.5px}
.app-shell .status-text{min-height:26px;color:#596a7d;font-size:9.5px}
.app-shell .status-text::before{width:8px;height:8px}
.app-shell .row-open{
  min-height:34px;display:inline-flex;align-items:center;padding:0 4px;
  color:#075dbf;font-size:10.5px;
}
.app-shell .today-section .empty-state{
  padding:18px 14px;border:1px dashed #c8d5df;border-radius:12px;background:#f7fafc;
}
.app-shell .today-section .empty-state strong{color:#16202a;font-size:13.5px}
.app-shell .today-section .empty-state span{color:#66778a;font-size:11px}

/* TOMORROW = QUIETER */
.app-shell .tomorrow-block{
  padding:15px 16px;border:1px solid #d8e1e9;border-radius:15px;background:#f7f9fb;
}
.app-shell .tomorrow-block .section-heading{margin-bottom:8px}
.app-shell .tomorrow-block .section-heading h2{color:#263340;font-size:23px}
.app-shell .tomorrow-block .job-list--compact .job-row{
  margin-top:8px;padding:12px 0;background:transparent;
}
.app-shell .tomorrow-block .empty-state{
  padding:13px 0 4px;border-bottom:0;
}
.app-shell .tomorrow-block .empty-state span{color:#69798a}

/* BOTTOM NAVIGATION */
.app-shell .bottom-nav{
  min-height:72px;padding:7px 7px var(--safe-bottom);border-top:1px solid #c9d4de;
  background:#fff;box-shadow:0 -8px 24px rgba(15,23,32,.08);
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.app-shell .bottom-nav button{
  min-height:56px;gap:4px;color:#596a7c;font-size:10px;font-weight:850;
}
.app-shell .bottom-nav svg{width:21px;height:21px;stroke-width:2}
.app-shell .bottom-nav button.is-active{color:#0867d7}
.app-shell .bottom-nav button[data-nav-screen]::before{
  content:"";position:absolute;top:-7px;left:50%;width:0;height:3px;
  border-radius:0 0 3px 3px;background:#0867d7;transform:translateX(-50%);
  transition:width .16s ease;
}
.app-shell .bottom-nav button[data-nav-screen].is-active::before{width:30px}
.app-shell .nav-add span{
  width:42px;height:42px;margin-top:-15px;border-radius:50%;background:#0867d7;
  box-shadow:0 8px 20px rgba(8,103,215,.27);font-size:28px;
}
.app-shell .nav-add small{color:#596a7c;font-size:9.5px;font-weight:900}
.app-shell .nav-badge{top:2px}

/* SMALL PHONE TUNING */
@media(max-width:390px){
  .app-shell .screen{padding-right:12px;padding-left:12px}
  .app-shell .brand-copy strong{max-width:186px;font-size:12px}
  .app-shell .summary-rail{gap:6px}
  .app-shell .summary-rail>div{
    min-height:74px;padding-right:9px;padding-left:9px;
  }
  .app-shell .summary-rail strong{font-size:25px}
  .app-shell .attention-block,
  .app-shell .today-section,
  .app-shell .tomorrow-block{padding-right:13px;padding-left:13px}
}

/* DESKTOP / TABLET */
@media(min-width:820px){
  .app-shell{background:#edf2f6}
  .app-shell .topbar{padding-right:28px;padding-left:28px}
  .app-shell .screen{padding:34px 28px 58px}
  .app-shell .summary-rail{gap:12px}
  .app-shell .summary-rail>div{min-height:88px;padding:16px}
  .app-shell .attention-block,
  .app-shell .today-section,
  .app-shell .tomorrow-block{padding:20px}
}


/* =========================================================
   SCG FIELD HUB — DASHBOARD V2 / PASS 1.5 POLISH
   Small visual refinements only.
========================================================= */

/* The Today screen already has a clear + Add job action and the
   bottom navigation has the global Add button, so remove the
   redundant header + button without touching its JS wiring. */
.app-shell .topbar-action{
  display:none;
}

/* Close the visual gap between the summary metrics and attention. */
.app-shell .summary-rail{
  margin-bottom:14px;
}

.app-shell .attention-block{
  margin-top:14px;
}

/* Make job counts easier to read outdoors. */
.app-shell .section-heading>span{
  color:#46586b;
  font-weight:800;
}

/* Keep the attention count warm/darker inside its amber section. */
.app-shell .attention-block .section-heading>span{
  color:#6f4c0d;
  font-weight:900;
}

/* Slightly tighten the empty Today route state. */
.app-shell .today-section .empty-state{
  padding:14px 12px;
}

/* Tomorrow stays secondary, but the count should still be legible. */
.app-shell .tomorrow-block .section-heading>span{
  color:#536578;
  font-weight:800;
}


/* =========================================================
   SCG FIELD HUB — DASHBOARD V2 / PASS 2
   Leads + Jobs + Map + detail sheets visual unification.
   The Today screen styles from Pass 1 / 1.5 are intentionally
   left untouched.
========================================================= */

/* =========================================================
   LEADS
========================================================= */

.app-shell .screen[data-screen="leads"]{
  padding-bottom:42px;
}

.app-shell .screen[data-screen="leads"] .page-intro{
  padding-bottom:14px;
}

.app-shell .screen[data-screen="leads"] .page-intro .text-action{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid #a9c5e7;
  border-radius:10px;
  color:#075dbf;
  background:#fff;
  box-shadow:0 4px 12px rgba(15,23,32,.04);
  font-size:11.5px;
  font-weight:900;
}

.app-shell .screen[data-screen="leads"] .page-intro .text-action:active{
  background:#eef5ff;
  transform:scale(.98);
}

.app-shell .leads-summary{
  margin:0 0 14px;
  padding:15px 16px;
  border:1px solid #cbdceb;
  border-left:4px solid #0867d7;
  border-radius:14px;
  background:#f7fbff;
  box-shadow:0 5px 16px rgba(15,23,32,.04);
}

.app-shell .leads-summary strong{
  color:#0867d7;
  font-size:14px;
  font-weight:950;
}

.app-shell .leads-summary span{
  margin-top:5px;
  color:#526477;
  font-size:11.5px;
  line-height:1.45;
}

.app-shell .lead-list{
  display:grid;
  gap:10px;
  border-top:0;
}

.app-shell .lead-row{
  padding:15px;
  border:1px solid #d3dee8;
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,32,.045);
}

.app-shell .lead-row__top{
  gap:12px;
}

.app-shell .lead-row__identity strong{
  color:#101820;
  font-size:16px;
  font-weight:950;
}

.app-shell .lead-row__identity p{
  color:#344658;
  font-size:12px;
}

.app-shell .lead-row__identity small{
  color:#607184;
  font-size:10.5px;
  line-height:1.4;
}

.app-shell .lead-row__age{
  color:#58697b;
  font-size:10px;
  font-weight:850;
}

.app-shell .lead-row__actions{
  gap:8px;
  margin-top:14px;
}

.app-shell .lead-row__actions a,
.app-shell .lead-row__actions button{
  min-height:44px;
  border-color:#a9c3e3;
  border-radius:10px;
  font-size:11px;
}

.app-shell .lead-row__actions button{
  border-color:#0867d7;
  background:#0867d7;
  box-shadow:0 5px 13px rgba(8,103,215,.16);
}

.app-shell .screen[data-screen="leads"] > .empty-state{
  margin-top:2px;
  padding:20px 16px;
  border:1px dashed #c4d3df;
  border-radius:14px;
  background:#f7fafc;
}

.app-shell .screen[data-screen="leads"] > .empty-state strong{
  color:#16202a;
  font-size:14px;
}

.app-shell .screen[data-screen="leads"] > .empty-state span{
  margin-top:5px;
  color:#637487;
  font-size:11.5px;
}

/* =========================================================
   SERVICE MAP
========================================================= */

.app-shell .map-screen{
  padding:20px 14px 36px;
  background:#edf2f6;
}

.app-shell .map-topline{
  max-width:none;
  align-items:center;
  margin:0;
  padding:2px 0 15px;
}

.app-shell .map-topline h1{
  color:#101820;
  font-size:38px;
}

.app-shell .map-topline p{
  margin-top:5px;
  color:#556779;
  font-size:11.5px;
  font-weight:650;
}

.app-shell .map-topline .text-action{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid #a9c5e7;
  border-radius:10px;
  color:#075dbf;
  background:#fff;
  box-shadow:0 4px 12px rgba(15,23,32,.04);
  font-size:11.5px;
  font-weight:900;
}

.app-shell .map-wrap{
  min-height:calc(100svh - 66px - 78px - var(--safe-bottom) - 118px);
  overflow:hidden;
  border:1px solid #c8d6e2;
  border-radius:16px;
  background:#dce7ef;
  box-shadow:0 8px 24px rgba(15,23,32,.08);
}

.app-shell .service-map{
  height:calc(100svh - 66px - 78px - var(--safe-bottom) - 118px);
  min-height:455px;
}

.app-shell .map-key{
  top:12px;
  right:12px;
  gap:7px;
  padding:11px 12px;
  border:1px solid #cbd6df;
  border-radius:11px;
  background:rgba(255,255,255,.97);
  box-shadow:0 8px 24px rgba(15,23,32,.13);
  color:#17212b;
  font-size:9.5px;
  font-weight:900;
}

.app-shell .map-key>div{
  gap:8px;
}

.app-shell .key-dot{
  width:8px;
  height:8px;
  box-shadow:0 0 0 2px #fff;
}

.app-shell .maplibregl-ctrl-group{
  overflow:hidden;
  border:1px solid #c7d3de;
  border-radius:10px;
  box-shadow:0 7px 20px rgba(15,23,32,.12);
}

.app-shell .maplibregl-ctrl-group button{
  width:38px;
  height:38px;
  background-color:#fff;
}

.app-shell .map-sheet{
  right:10px;
  bottom:10px;
  left:10px;
  padding:17px;
  border:1px solid #cbd7e1;
  border-radius:15px;
  box-shadow:0 20px 60px rgba(15,23,32,.22);
}

.app-shell .map-sheet-close{
  width:34px;
  height:34px;
  border:1px solid #dce4eb;
  border-radius:10px;
  color:#526477;
  background:#f3f6f9;
}

.app-shell .map-sheet-head>span{
  color:#0867d7;
  font-size:10.5px;
}

.app-shell .map-sheet-head strong{
  color:#101820;
  font-size:18px;
}

.app-shell .map-sheet-head p{
  color:#344658;
}

.app-shell .map-sheet-address{
  color:#536477;
}

.app-shell .map-sheet-actions a{
  min-height:44px;
  border-color:#a9c3e3;
  border-radius:10px;
  font-size:11px;
}

.app-shell .map-sheet-actions a:last-child{
  border-color:#0867d7;
  background:#0867d7;
}

.app-shell .map-sheet-job{
  min-height:40px;
  margin-top:9px;
  padding:0;
  border:1px solid #a9c3e3;
  border-radius:10px;
  color:#075dbf;
  background:#fff;
}

/* =========================================================
   JOBS
========================================================= */

.app-shell .screen[data-screen="jobs"]{
  padding-bottom:42px;
}

.app-shell .screen[data-screen="jobs"] .page-intro{
  padding-bottom:16px;
}

.app-shell .screen[data-screen="jobs"] .page-intro .text-action{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 13px;
  border:1px solid #a9c5e7;
  border-radius:10px;
  color:#075dbf;
  background:#fff;
  box-shadow:0 4px 12px rgba(15,23,32,.04);
  font-size:11.5px;
  font-weight:900;
}

.app-shell .jobs-toolbar{
  margin-bottom:20px;
}

.app-shell .search-box{
  min-height:50px;
  gap:11px;
  padding:0 14px;
  border:1px solid #c5d4e0;
  border-radius:13px;
  background:#fff;
  box-shadow:0 5px 16px rgba(15,23,32,.045);
}

.app-shell .search-box svg{
  width:19px;
  height:19px;
  stroke:#68798b;
}

.app-shell .search-box input{
  color:#101820;
  font-size:13px;
}

.app-shell .filter-tabs{
  gap:24px;
  margin-top:14px;
  border-bottom:1px solid #cbd6df;
}

.app-shell .filter-tabs button{
  min-height:38px;
  padding:0 0 9px;
  color:#5d6e80;
  font-size:11px;
}

.app-shell .filter-tabs button.is-active{
  color:#101820;
}

.app-shell .filter-tabs button.is-active::after{
  height:3px;
  border-radius:3px 3px 0 0;
  background:#0867d7;
}

.app-shell .screen[data-screen="jobs"] .jobs-group{
  margin-top:18px;
}

.app-shell .screen[data-screen="jobs"] .section-heading{
  margin-bottom:11px;
}

.app-shell .screen[data-screen="jobs"] .section-heading h2{
  font-size:27px;
}

.app-shell .screen[data-screen="jobs"] .job-list{
  display:grid;
  gap:9px;
}

.app-shell .screen[data-screen="jobs"] .job-row{
  min-height:92px;
  padding:14px 13px;
  border:1px solid #d3dee8;
  border-radius:13px;
  background:#fff;
  box-shadow:0 4px 14px rgba(15,23,32,.04);
}

.app-shell .screen[data-screen="jobs"] .job-row__time{
  font-size:12.5px;
}

.app-shell .screen[data-screen="jobs"] .job-row__main strong{
  font-size:15.5px;
}

.app-shell .screen[data-screen="jobs"] .job-row__main p{
  color:#344658;
}

.app-shell .screen[data-screen="jobs"] .job-row__main small{
  color:#607184;
}

.app-shell .screen[data-screen="jobs"] .job-row__side{
  justify-content:space-between;
  min-height:58px;
}

.app-shell .screen[data-screen="jobs"] .row-open{
  min-height:34px;
  color:#075dbf;
  font-size:10.5px;
  font-weight:900;
}

.app-shell .screen[data-screen="jobs"] > .jobs-group > .empty-state{
  padding:18px 14px;
  border:1px dashed #c4d3df;
  border-radius:13px;
  background:#f7fafc;
}

/* =========================================================
   JOB / LEAD DETAIL SHEETS
========================================================= */

[data-job-sheet] .sheet-backdrop,
[data-lead-sheet] .sheet-backdrop{
  background:rgba(6,14,22,.62);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

[data-job-sheet] .sheet-panel,
[data-lead-sheet] .sheet-panel{
  padding:10px 18px calc(20px + env(safe-area-inset-bottom));
  border:1px solid #d0dae3;
  border-bottom:0;
  border-radius:22px 22px 0 0;
  background:#fff;
  box-shadow:0 -22px 70px rgba(15,23,32,.28);
}

[data-job-sheet] .sheet-handle,
[data-lead-sheet] .sheet-handle{
  width:42px;
  height:4px;
  margin-bottom:15px;
  background:#cfd8e1;
}

[data-job-sheet] .sheet-head,
[data-lead-sheet] .sheet-head{
  padding:0 44px 16px 0;
  border-bottom:1px solid #d7e0e8;
}

[data-job-sheet] .sheet-head>div>span,
[data-lead-sheet] .sheet-head>div>span{
  color:#0867d7;
  font-size:10.5px;
  font-weight:950;
}

[data-job-sheet] .sheet-head h2,
[data-lead-sheet] .sheet-head h2{
  margin-top:5px;
  color:#0f1720;
  font-size:30px;
}

[data-job-sheet] .sheet-head p,
[data-lead-sheet] .sheet-head p{
  margin-top:5px;
  color:#506274;
  font-size:11.5px;
  font-weight:650;
}

[data-job-sheet] .sheet-close,
[data-lead-sheet] .sheet-close{
  width:36px;
  height:36px;
  border:1px solid #dce4eb;
  border-radius:10px;
  color:#526477;
  background:#f3f6f9;
}

[data-job-sheet] .photo-strip--sheet,
[data-lead-sheet] .photo-strip--sheet{
  gap:8px;
  margin-top:14px;
  padding-bottom:3px;
}

[data-job-sheet] .photo-strip--sheet .photo-thumb,
[data-lead-sheet] .photo-strip--sheet .photo-thumb{
  flex-basis:94px;
  width:94px;
  height:73px;
  border:1px solid #d5dfe8;
  border-radius:10px;
}

[data-job-sheet] .sheet-info,
[data-lead-sheet] .sheet-info{
  gap:0;
}

[data-job-sheet] .sheet-info>div,
[data-lead-sheet] .sheet-info>div{
  padding:14px 0;
  border-bottom:1px solid #d7e0e8;
}

[data-job-sheet] .sheet-info span,
[data-lead-sheet] .sheet-info span{
  color:#536477;
  font-size:10px;
  font-weight:900;
}

[data-job-sheet] .sheet-info strong,
[data-lead-sheet] .sheet-info strong{
  margin-top:5px;
  color:#101820;
  font-size:13px;
  line-height:1.5;
}

[data-job-sheet] .sheet-info select{
  min-height:46px;
  margin-top:7px;
  padding:9px 12px;
  border:1px solid #b8cade;
  border-radius:10px;
  color:#101820;
  background:#fff;
  font-size:12.5px;
}

[data-job-sheet] .sheet-actions,
[data-lead-sheet] .sheet-actions{
  gap:8px;
  margin-top:14px;
}

[data-job-sheet] .sheet-actions a,
[data-lead-sheet] .sheet-actions a,
[data-lead-sheet] .sheet-actions button{
  min-height:44px;
  border-color:#a9c3e3;
  border-radius:10px;
  background:#fff;
  font-size:11px;
}

[data-job-sheet] .sheet-actions a:last-child,
[data-lead-sheet] .sheet-actions button:last-child{
  border-color:#0867d7;
  background:#0867d7;
  box-shadow:0 5px 13px rgba(8,103,215,.16);
}

[data-job-sheet] .customer-history-action{
  min-height:44px;
  margin-top:11px;
  border:1px solid #a9c3e3;
  border-radius:10px;
  color:#101820;
  background:#fff;
  font-size:11px;
}

[data-job-sheet] .review-action{
  min-height:44px;
  border-radius:10px;
  background:#087a54;
  box-shadow:0 5px 13px rgba(8,122,84,.14);
}

/* =========================================================
   RESPONSIVE POLISH
========================================================= */

@media(max-width:390px){
  .app-shell .map-screen{
    padding-right:12px;
    padding-left:12px;
  }

  .app-shell .screen[data-screen="jobs"] .job-row{
    grid-template-columns:62px minmax(0,1fr) auto;
    gap:10px;
  }

  .app-shell .lead-row{
    padding:14px 13px;
  }
}

@media(min-width:820px){
  .app-shell .map-screen{
    padding:28px 28px 52px;
  }

  .app-shell .map-wrap{
    min-height:620px;
  }

  .app-shell .service-map{
    height:620px;
  }

  .app-shell .screen[data-screen="leads"] .lead-list,
  .app-shell .screen[data-screen="jobs"] .job-list{
    gap:12px;
  }
}


/* =========================================================
   SCG FIELD HUB — PASS 3
   Business menu affordance + auth screen visual unification.
   No API/auth logic is changed.
========================================================= */

/* ---------- BUSINESS HEADER MENU CUE ---------- */

.app-shell .topbar .brand{
  flex:1 1 auto;
  width:100%;
}

.app-shell .business-menu-cue{
  flex:0 0 58px;
  min-height:48px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin-left:auto;
  padding:0 6px;
  border-left:0;
  color:#3f5266;
  font-size:10px;
  font-weight:900;
  line-height:1;
}

.app-shell .business-menu-icon{
  width:21px;
  display:grid;
  gap:4px;
}

.app-shell .business-menu-icon i{
  display:block;
  width:21px;
  height:2px;
  border-radius:2px;
  background:#3f5266;
}

.app-shell .brand:active .business-menu-cue{
  color:#0867d7;
}

.app-shell .brand:active .business-menu-icon i{
  background:#0867d7;
}

@media(max-width:390px){
  .app-shell .business-menu-cue{
    flex-basis:54px;
    min-height:46px;
    gap:4px;
    padding:0 4px;
    font-size:9.5px;
  }

  .app-shell .business-menu-icon,
  .app-shell .business-menu-icon i{
    width:19px;
  }
}

/* ---------- LOGIN + CHANGE PASSWORD ---------- */

.auth-page{
  min-height:100svh;
  color:#101820;
  background:
    radial-gradient(circle at 90% 0%,rgba(8,103,215,.10),transparent 30%),
    radial-gradient(circle at 0% 100%,rgba(8,103,215,.05),transparent 26%),
    #edf2f6;
}

.auth-shell{
  min-height:100svh;
  display:grid;
  place-items:center;
  padding:28px 16px;
}

.auth-card{
  position:relative;
  overflow:hidden;
  width:min(100%,440px);
  padding:0;
  border:1px solid #ced9e3;
  border-radius:20px;
  background:#fff;
  box-shadow:
    0 22px 60px rgba(15,23,32,.13),
    0 2px 8px rgba(15,23,32,.04);
}

.auth-card::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:4px;
  background:#0867d7;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:22px 22px 18px;
  border-bottom:1px solid #d8e1e9;
  background:#fff;
}

.auth-brand .brand-mark{
  width:44px;
  height:44px;
  flex:0 0 44px;
  border-radius:11px;
  color:#fff;
  background:linear-gradient(135deg,#0f1720,#0867d7);
  box-shadow:0 7px 18px rgba(8,103,215,.18);
  font-size:11px;
  font-weight:950;
}

.auth-brand div:last-child{
  display:grid;
  gap:3px;
}

.auth-brand strong{
  color:#101820;
  font-size:15px;
  font-weight:950;
  line-height:1.2;
}

.auth-brand span{
  color:#5d6f82;
  font-size:10.5px;
  font-weight:650;
}

.auth-copy{
  padding:25px 22px 18px;
}

.auth-copy .date-line{
  margin:0 0 7px;
  color:#0867d7;
  font-size:10.5px;
  font-weight:900;
}

.auth-copy h1{
  margin:0;
  color:#101820;
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(38px,9vw,48px);
  line-height:.98;
  letter-spacing:-.045em;
}

.auth-copy p:last-child{
  margin:12px 0 0;
  color:#56687a;
  font-size:13px;
  line-height:1.55;
}

.auth-form{
  display:grid;
  gap:14px;
  padding:0 22px 22px;
}

.auth-form label{
  display:grid;
  gap:7px;
  color:#243342;
  font-size:11px;
  font-weight:900;
}

.auth-form input{
  width:100%;
  min-height:50px;
  padding:0 13px;
  border:1px solid #bdccda;
  border-radius:11px;
  outline:0;
  color:#101820;
  background:#fff;
  font:inherit;
  font-size:14px;
  box-shadow:inset 0 1px 2px rgba(15,23,32,.02);
}

.auth-form input:focus{
  border-color:#6b9fdd;
  box-shadow:0 0 0 4px rgba(8,103,215,.10);
}

.auth-form .primary-button{
  min-height:50px;
  margin-top:4px;
  border-radius:11px;
  background:#0867d7;
  box-shadow:0 8px 20px rgba(8,103,215,.22);
  font-size:12.5px;
}

.auth-error{
  margin:0;
  padding:11px 12px;
  border:1px solid #efc1c1;
  border-radius:10px;
  color:#9c2525;
  background:#fff4f4;
  font-size:11.5px;
  font-weight:750;
}

.auth-help{
  margin:0;
  padding:15px 22px 20px;
  border-top:1px solid #e0e7ed;
  color:#667789;
  background:#f8fafc;
  text-align:center;
  font-size:10.5px;
  line-height:1.5;
}

.auth-secondary{
  width:calc(100% - 44px);
  min-height:44px;
  margin:0 22px 22px;
  padding:0 12px;
  border:1px solid #bdccda;
  border-radius:10px;
  color:#4e6073;
  background:#fff;
  font-size:11px;
  font-weight:850;
}

.auth-secondary:active{
  background:#f4f7fa;
}

@media(max-width:480px){
  .auth-shell{
    align-items:center;
    padding:18px 12px;
  }

  .auth-card{
    border-radius:17px;
  }

  .auth-brand{
    padding:19px 18px 16px;
  }

  .auth-copy{
    padding:22px 18px 16px;
  }

  .auth-form{
    padding:0 18px 18px;
  }

  .auth-help{
    padding:14px 18px 18px;
  }

  .auth-secondary{
    width:calc(100% - 36px);
    margin:0 18px 18px;
  }
}


/* =========================================================
   SCG FIELD HUB — ADD / SCHEDULE FORM POLISH
   Visual-only. Existing form names and JS hooks are unchanged.
========================================================= */

[data-add-sheet] .sheet-panel--form,
[data-schedule-sheet] .sheet-panel--form{
  max-height:92svh;
}

[data-add-sheet] .job-form,
[data-schedule-sheet] .job-form{
  gap:12px;
  padding-top:14px;
}

[data-add-sheet] .job-form label>span,
[data-schedule-sheet] .job-form label>span{
  color:#243342;
  font-size:10.5px;
  font-weight:900;
}

[data-add-sheet] .job-form input,
[data-add-sheet] .job-form select,
[data-add-sheet] .job-form textarea,
[data-schedule-sheet] .job-form input,
[data-schedule-sheet] .job-form select,
[data-schedule-sheet] .job-form textarea{
  border-color:#b9cadb;
  border-radius:10px;
}

[data-add-sheet] .job-form input,
[data-add-sheet] .job-form select,
[data-schedule-sheet] .job-form input,
[data-schedule-sheet] .job-form select{
  min-height:46px;
  padding:9px 11px;
}

[data-add-sheet] .job-form textarea{
  min-height:88px;
}

[data-add-sheet] .primary-button,
[data-schedule-sheet] .primary-button{
  min-height:48px;
  border-radius:10px;
  background:#0867d7;
  box-shadow:0 7px 18px rgba(8,103,215,.20);
  font-size:12px;
}

@media(max-width:390px){
  [data-add-sheet] .sheet-panel--form,
  [data-schedule-sheet] .sheet-panel--form{
    padding-right:16px;
    padding-left:16px;
  }
}


/* =========================================================
   SCG FIELD HUB — CONTRACTOR LOGO + HEADER THEME
========================================================= */

.app-shell .topbar.has-business-logo{
  min-height:82px;
  padding-top:9px;
  padding-bottom:9px;
  transition:
    background .16s ease,
    border-color .16s ease,
    color .16s ease;
}

.app-shell .brand.has-business-logo{
  align-items:center;
}

.app-shell .brand.has-business-logo .brand-copy{
  display:none;
}

.app-shell .brand-mark.has-logo{
  flex:0 0 190px;
  width:190px;
  height:58px;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  color:transparent;
  background:transparent;
  box-shadow:none;
}

.app-shell .brand-mark.has-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:left center;
  border-radius:0;
  transform:none;
  filter:drop-shadow(0 1px 1px rgba(15,23,32,.10));
}

/* Light header: best for dark/navy/black logos. */
.app-shell .topbar.logo-theme-light{
  border-bottom-color:#d4dee7;
  background:#fff;
}

/* Dark header: best for white/light logo artwork. */
.app-shell .topbar.logo-theme-dark{
  border-bottom-color:#29445d;
  background:#10283f;
  box-shadow:0 4px 18px rgba(6,18,29,.16);
}

.app-shell .topbar.logo-theme-dark .business-menu-cue{
  color:#f1f6fb;
}

.app-shell .topbar.logo-theme-dark .business-menu-icon i{
  background:#f1f6fb;
}

.app-shell .topbar.logo-theme-dark .brand:active .business-menu-cue{
  color:#fff;
}

.app-shell .topbar.logo-theme-dark .brand:active .business-menu-icon i{
  background:#fff;
}

/* Admin: logo upload + theme selector. */
.admin-logo-controls{
  flex:1 1 260px;
  display:grid;
  grid-template-columns:minmax(132px,1fr) minmax(108px,auto);
  gap:8px;
}

.admin-logo-theme{
  min-height:36px;
  padding:6px 30px 6px 10px;
  border:1px solid #bfd1e5;
  border-radius:9px;
  outline:0;
  color:#334155;
  background:#fff;
  font:inherit;
  font-size:10px;
  font-weight:800;
}

.admin-logo-theme:focus{
  border-color:#6c9fd9;
  box-shadow:0 0 0 3px rgba(11,99,206,.10);
}

.admin-logo-theme:disabled{
  opacity:.55;
}

.admin-logo-controls button{
  min-height:36px;
  padding:7px 11px;
  border:1px solid #bfd1e5;
  border-radius:9px;
  color:#0b63ce;
  background:#fff;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:390px){
  .app-shell .topbar.has-business-logo{
    min-height:78px;
  }

  .app-shell .brand-mark.has-logo{
    flex-basis:170px;
    width:170px;
    height:54px;
  }
}

@media(max-width:540px){
  .admin-logo-controls{
    flex:1 1 100%;
    grid-template-columns:1fr 1fr;
  }
}



/* =========================================================
   SCG FIELD HUB — CUSTOMERS + LOW-FRICTION FOLLOW-UPS
   Additive UI only. Existing Today / Leads / Jobs / Map styles stay intact.
========================================================= */

/* Repeat-customer context stays quiet: useful information, not another badge wall. */
.app-shell .lead-row__context{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 12px;
  margin-top:9px;
}

.app-shell .repeat-customer-link{
  padding:0;
  border:0;
  color:#075dbf;
  background:transparent;
  font-size:10.5px;
  font-weight:900;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
}

.app-shell .repeat-customer-link::before{
  content:"↻";
  margin-right:5px;
  font-size:12px;
}

.app-shell .followup-chip{
  padding-left:10px;
  border-left:2px solid #d6a02d;
  color:#6d5730;
  font-size:10.5px;
  font-weight:800;
  line-height:1.35;
}

.repeat-customer-cue{
  width:100%;
  margin:12px 0 0;
  padding:10px 12px;
  border:1px solid #c4d8ef;
  border-radius:10px;
  color:#075dbf;
  background:#f6faff;
  font-size:10.5px;
  font-weight:900;
  text-align:left;
  cursor:pointer;
}

.repeat-customer-cue::before{
  content:"↻";
  margin-right:6px;
}

.lead-followup-state{
  margin-top:9px;
  padding:9px 11px;
  border-left:3px solid #d6a02d;
  color:#67522d;
  background:#fffaf0;
  font-size:10.5px;
  font-weight:850;
  line-height:1.4;
}

.followup-action{
  width:100%;
  min-height:44px;
  margin-top:10px;
  border:1px solid #b8cbe0;
  border-radius:10px;
  color:#17212b;
  background:#fff;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.followup-action:active{
  background:#f1f6fb;
  transform:scale(.99);
}

[data-followup-sheet] .sheet-panel--form{
  max-height:92svh;
}

[data-followup-sheet] .job-form{
  gap:12px;
  padding-top:14px;
}

[data-followup-sheet] .job-form label>span{
  color:#243342;
  font-size:10.5px;
  font-weight:900;
}

[data-followup-sheet] .job-form input,
[data-followup-sheet] .job-form select{
  min-height:46px;
  padding:9px 11px;
  border:1px solid #b9cadb;
  border-radius:10px;
}

[data-followup-sheet] .primary-button{
  min-height:48px;
  border-radius:10px;
  background:#0867d7;
  box-shadow:0 7px 18px rgba(8,103,215,.20);
  font-size:12px;
}

.app-shell .attention-row.is-clickable{
  cursor:pointer;
}

/* ---------- CUSTOMERS ---------- */
.app-shell .screen[data-screen="customers"]{
  padding-bottom:42px;
}

.app-shell .customers-summary{
  margin:0 0 14px;
  padding:15px 16px;
  border:1px solid #cbdceb;
  border-left:4px solid #0867d7;
  border-radius:14px;
  background:#f7fbff;
  box-shadow:0 5px 16px rgba(15,23,32,.04);
}

.app-shell .customers-summary strong,
.app-shell .customers-summary span{
  display:block;
}

.app-shell .customers-summary strong{
  color:#0867d7;
  font-size:14px;
  font-weight:950;
}

.app-shell .customers-summary span{
  margin-top:5px;
  color:#526477;
  font-size:11.5px;
  line-height:1.45;
}

.app-shell .customer-search{
  margin-bottom:14px;
}

.app-shell .customer-list{
  display:grid;
  gap:9px;
}

.app-shell .customer-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  min-height:88px;
  padding:14px 15px;
  border:1px solid #d3dee8;
  border-radius:13px;
  outline:0;
  background:#fff;
  box-shadow:0 4px 14px rgba(15,23,32,.04);
  cursor:pointer;
}

.app-shell .customer-row:hover,
.app-shell .customer-row:focus-visible{
  border-color:#aac7e7;
  box-shadow:0 6px 18px rgba(15,23,32,.065);
}

.app-shell .customer-row__main{
  min-width:0;
}

.app-shell .customer-row__main strong,
.app-shell .customer-row__main span,
.app-shell .customer-row__main small,
.app-shell .customer-row__meta strong,
.app-shell .customer-row__meta span{
  display:block;
}

.app-shell .customer-row__main strong{
  overflow:hidden;
  color:#101820;
  font-size:15.5px;
  font-weight:950;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.app-shell .customer-row__main span{
  margin-top:4px;
  overflow:hidden;
  color:#425466;
  font-size:11px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.app-shell .customer-row__main small{
  margin-top:5px;
  overflow:hidden;
  color:#67788a;
  font-size:10.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.app-shell .customer-row__meta{
  min-width:84px;
  text-align:right;
}

.app-shell .customer-row__meta strong{
  color:#075dbf;
  font-size:11px;
  font-weight:950;
}

.app-shell .customer-row__meta span{
  margin-top:5px;
  color:#718194;
  font-size:9.5px;
  font-weight:750;
}

.app-shell .screen[data-screen="customers"] > .empty-state{
  margin-top:2px;
  padding:20px 16px;
  border:1px dashed #c4d3df;
  border-radius:14px;
  background:#f7fafc;
}

/* ---------- DESKTOP / OFFICE VIEW ----------
   Same Field Hub, just more breathing room for higher lead/customer volume.
*/
@media(min-width:980px){
  .app-shell .screen[data-screen="leads"],
  .app-shell .screen[data-screen="customers"]{
    max-width:1080px;
    padding-right:28px;
    padding-left:28px;
  }

  .app-shell .screen[data-screen="jobs"]{
    max-width:980px;
  }

  .app-shell .screen[data-screen="leads"] .lead-list,
  .app-shell .customer-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }

  .app-shell .lead-row,
  .app-shell .customer-row{
    min-height:100%;
  }
}

@media(max-width:430px){
  .app-shell .customer-row{
    gap:10px;
    padding:14px 13px;
  }

  .app-shell .customer-row__meta{
    min-width:72px;
  }
}


/* ---------- CONTACT ACTIONS ---------- */
.sheet-actions--4,
.map-sheet-actions--4{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.customer-contact-actions{
  margin:14px 0 4px;
}

.customer-contact-actions a:last-child{
  color:#fff;
  border-color:#0867d7;
  background:#0867d7;
  box-shadow:0 5px 13px rgba(8,103,215,.16);
}

@media(max-width:380px){
  .sheet-actions--4,
  .map-sheet-actions--4{
    gap:6px;
  }

  .sheet-actions--4 a,
  .sheet-actions--4 button,
  .map-sheet-actions--4 a{
    font-size:10px;
  }
}

/* ---------- ADMIN: EDIT CONTRACTOR ---------- */
.admin-edit-panel{
  flex:1 1 100%;
  width:100%;
  margin-top:8px;
  padding:18px;
  border:1px solid #c8d8e8;
  border-radius:12px;
  background:#f7fbff;
}

.admin-edit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}

.admin-edit-head>div{
  display:grid;
  gap:2px;
}

.admin-edit-head span{
  color:#64748b;
  font-size:9px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.admin-edit-head strong{
  color:#101820;
  font-size:17px;
}

.admin-edit-head small{
  max-width:430px;
  color:#617387;
  font-size:10px;
  line-height:1.5;
  text-align:right;
}

.admin-edit-head small b{
  color:#0b63ce;
}

.admin-edit-actions{
  display:flex;
  gap:9px;
  align-items:center;
}

.admin-edit-actions .primary-button{
  width:auto;
  min-width:150px;
  margin:0;
}

.admin-edit-actions [data-cancel-edit]{
  min-height:44px;
  padding:9px 16px;
  border:1px solid #bfd1e5;
  border-radius:10px;
  background:#fff;
  color:#334155;
  font-weight:850;
  cursor:pointer;
}

@media(max-width:640px){
  .admin-edit-panel{
    padding:15px;
  }

  .admin-edit-head{
    display:grid;
    gap:8px;
  }

  .admin-edit-head small{
    text-align:left;
  }

  .admin-edit-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .admin-edit-actions .primary-button,
  .admin-edit-actions [data-cancel-edit]{
    width:100%;
  }
}
