
:root{--bg:#080d18;--panel:#121c2e;--panel2:#17243a;--line:#2b3b55;--text:#eef3f9;--muted:#94a3b8;--orange:#ff9818;--green:#22c55e;--red:#ef4444;--blue:#60a5fa}
*{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{padding-bottom:86px}.hidden{display:none!important}
.header{position:sticky;top:0;z-index:50;background:rgba(8,13,24,.97);border-bottom:2px solid var(--orange);padding:10px 14px}.brand{display:flex;align-items:center;gap:10px}.brand img{width:42px;height:42px;border-radius:11px;background:#fff}.brand h1{font-size:20px;margin:0;color:var(--orange);line-height:1}.brand small{color:var(--muted);font-size:11px}.top-actions{margin-left:auto;display:flex;gap:8px}
main{max-width:850px;margin:auto;padding:8px}.page-title{display:flex;align-items:center;justify-content:space-between;padding:8px 3px}.page-title h2{margin:0;font-size:20px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;margin:10px 0;box-shadow:0 8px 30px rgba(0,0,0,.12)}.subcard{background:#0d1627;border:1px solid var(--line);border-radius:13px;padding:11px;margin:8px 0}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kpi{background:#0d1627;border:1px solid var(--line);border-radius:15px;padding:14px;text-align:center}.kpi b{display:block;color:var(--orange);font-size:23px}.kpi small{color:var(--muted)}
.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.quick button{min-height:68px}.label{font-size:12px;color:#cbd5e1;font-weight:800;margin-top:8px}.muted{color:var(--muted);font-size:12px}.tiny{font-size:10px;color:var(--muted)}
input,select,textarea{width:100%;background:#091120;color:#fff;border:1px solid var(--line);border-radius:11px;padding:12px;font-size:15px;outline:none}textarea{min-height:95px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--orange)}.field{margin:8px 0}.voice-row{display:grid;grid-template-columns:1fr 48px;gap:6px}.mic{border-radius:11px;border:1px solid var(--line);background:#22324b;color:#fff;font-size:20px}.mic.listening{background:var(--red);animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.65}}
button,.btn{border:0;border-radius:11px;padding:12px 13px;font-weight:850;font-size:14px;cursor:pointer;text-align:center;text-decoration:none}.primary{background:linear-gradient(135deg,#ffad24,#f18700);color:#111}.secondary{background:#2b3b55;color:#fff}.success{background:#166534;color:#fff}.danger{background:#7f1d1d;color:#fff}.ghost{background:#0d1627;color:#fff;border:1px solid var(--line)}.small{padding:8px 9px;font-size:12px}.full{width:100%}.row{display:flex;gap:8px;align-items:center}.row>*{flex:1}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.actions4{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.actions4 button,.actions4 a{font-size:11px;padding:10px 3px}
.bottom-nav{position:fixed;left:0;right:0;bottom:0;z-index:60;background:#0e1728;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:6px 5px calc(6px + env(safe-area-inset-bottom));gap:3px}.navbtn{background:transparent;color:var(--muted);padding:7px 2px;font-size:10px;border-radius:12px}.navbtn span{display:block;font-size:21px;line-height:22px}.navbtn.on{color:#111;background:var(--orange)}
.list-item{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;margin:8px 0}.list-item h3{margin:0 0 4px;font-size:16px}.pill{display:inline-block;padding:3px 8px;border-radius:99px;font-size:10px;font-weight:850;background:#243653;color:#dbeafe}.pill.green{background:#14532d}.pill.red{background:#7f1d1d}.pill.orange{background:#7c4a03}
.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:8px}.photo{position:relative;aspect-ratio:1;border-radius:11px;overflow:hidden;border:2px solid var(--line);background:#07101c}.photo img{width:100%;height:100%;object-fit:cover}.photo.selected{border-color:var(--orange);box-shadow:0 0 0 2px var(--orange)}.photo .tag{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.74);padding:4px;font-size:9px;text-align:center}.photo .check{position:absolute;right:4px;top:4px;background:var(--orange);color:#111;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-weight:900}.photo .x{position:absolute;right:4px;top:4px;background:rgba(127,29,29,.95);color:#fff;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-weight:900}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.82);z-index:200;display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(900px,100%);max-height:94vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:20px 20px 0 0;padding:14px 14px 28px}.sheet-head{position:sticky;top:-14px;background:var(--panel);z-index:2;display:flex;justify-content:space-between;align-items:center;padding:7px 0 10px}.sheet-head h3{margin:0}.close{background:#334155;color:#fff;border-radius:50%;width:38px;height:38px;padding:0;font-size:20px}.viewer{position:fixed;inset:0;background:#000;z-index:500;display:flex;align-items:center;justify-content:center;touch-action:pinch-zoom}.viewer img{max-width:100%;max-height:92vh;object-fit:contain;touch-action:pinch-zoom}.viewer .close{position:absolute;right:14px;top:14px;z-index:2}.viewer .caption{position:absolute;bottom:15px;left:15px;right:15px;text-align:center;background:rgba(0,0,0,.55);padding:7px;border-radius:8px;font-size:12px}.viewer .prev,.viewer .next{position:absolute;top:45%;background:rgba(30,41,59,.8);color:#fff;width:42px;height:52px;font-size:26px;padding:0}.viewer .prev{left:8px}.viewer .next{right:8px}
.status-line{display:flex;justify-content:space-between;gap:8px;align-items:center}.total{font-size:25px;color:var(--orange);font-weight:900;text-align:right}.invoice-thumb{cursor:zoom-in}.empty{text-align:center;color:var(--muted);padding:28px 10px}.search{position:sticky;top:64px;z-index:10;background:var(--bg);padding:4px 0}.notice{background:#3b2a08;border:1px solid #8a5d05;color:#fde7b0;border-radius:11px;padding:10px;font-size:12px;margin:8px 0}details summary{cursor:pointer;font-weight:800;padding:5px}
@media(min-width:700px){.photos{grid-template-columns:repeat(5,1fr)}.actions{grid-template-columns:repeat(4,1fr)}.bottom-nav{left:50%;transform:translateX(-50%);max-width:850px;border-radius:15px 15px 0 0}.quick{grid-template-columns:repeat(4,1fr)}}
@media print{.no-print{display:none!important}body{background:white;color:black}.card{box-shadow:none;border:0}}

.schedule-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px}
.calendar-btn{background:#1d4ed8;color:#fff}
@media(max-width:560px){.schedule-grid{grid-template-columns:1fr}.schedule-grid .field{margin:4px 0}}

.ai-polish-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:-4px 0 12px}.ai-polish-row .tiny{flex:1;min-width:180px}


.sync-chip{border:1px solid var(--line);background:#0d1627;color:#fff;border-radius:999px;padding:7px 9px;font-size:11px;font-weight:850;white-space:nowrap}
.sync-chip.saved{border-color:#166534;color:#bbf7d0}
.sync-chip.syncing{border-color:#d97706;color:#fde68a}
.sync-chip.offline{border-color:#475569;color:#cbd5e1}
.sync-chip.error{border-color:#991b1b;color:#fecaca}
.sync-chip.local{border-color:#475569;color:#cbd5e1}
.actions5{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}
.actions5 a{font-size:10px;padding:9px 2px}
.disabled{opacity:.45;pointer-events:none}
.photo-tools{position:absolute;left:4px;right:4px;top:4px;display:flex;gap:3px;justify-content:space-between}
.photo-tools button{background:rgba(17,24,39,.88);color:#fff;border:0;border-radius:7px;width:26px;height:26px;padding:0;font-size:14px}
.photo-tools .trash{background:rgba(127,29,29,.95)}
.draft-status{min-height:18px;text-align:right;color:#94a3b8;margin:3px 0 8px}
.search-result{cursor:pointer}
.archive-row{display:flex;gap:8px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:8px 0}
.archive-row:first-of-type{border-top:0}
@media(max-width:440px){.actions5{grid-template-columns:repeat(3,1fr)}.brand h1{font-size:18px}.sync-chip{padding:6px 8px;font-size:10px}}

/* V19.2 usability */
.customer-picker .customer-filter{margin-bottom:7px}.customer-picker select{margin-bottom:7px}.contact-pick{margin-top:2px}.activity-item{cursor:pointer;position:relative;padding-right:68px}.activity-item:active{border-color:var(--orange)}.activity-open{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:var(--orange);font-size:12px;font-weight:800}.empty.mini{grid-column:1/-1;padding:12px 4px;font-size:11px}.photo-edit-title{display:flex;flex-direction:column;gap:4px;margin-top:12px}.mic.listening{min-width:48px;font-size:17px}

/* V19.3 photo sources + customer gallery */
.photo-source-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.file-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer;flex:1 1 145px}
.file-btn input{display:none}
.gallery-filters{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 12px}
.gallery-filters .active{outline:2px solid var(--orange,#f59e0b);outline-offset:1px}
.customer-gallery .photo{position:relative}
.gallery-source{font-size:10px;line-height:1.25;color:#cbd5e1;background:rgba(7,12,23,.92);padding:5px 6px;white-space:normal;min-height:30px}
.gallery-hidden{display:none!important}
@media(max-width:480px){.photo-source-actions .file-btn{flex:1 1 100%}.gallery-filters button{flex:1 1 auto}}

/* ============================================================
   PROFESSIONAL VISUAL POLISH — STYLE ONLY
   No workflow, data, feature, or business-logic changes.
   ============================================================ */
:root{
  --bg:#0a0f18;
  --panel:#111823;
  --panel2:#151f2d;
  --panel3:#0e1520;
  --line:#243044;
  --line-soft:#1b2636;
  --text:#f7f9fc;
  --muted:#9ba9ba;
  --orange:#f59a23;
  --orange-2:#ffb34d;
  --green:#2ec56f;
  --red:#ef5b5b;
  --blue:#6aa8ff;
  --shadow:0 12px 32px rgba(0,0,0,.22);
  --shadow-soft:0 6px 18px rgba(0,0,0,.16);
}
html{background:var(--bg)}
body{
  background:
    radial-gradient(circle at 50% -180px,rgba(245,154,35,.10),transparent 420px),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,.btn,input,select,textarea{font-family:inherit}
button,.btn{transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease,opacity .14s ease}
button:active,.btn:active{transform:scale(.985)}

.header{
  background:rgba(10,15,24,.94);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(245,154,35,.32);
  box-shadow:0 8px 28px rgba(0,0,0,.18);
  padding:11px 14px;
}
.brand{gap:11px;min-width:0}
.brand img{
  width:44px;height:44px;border-radius:13px;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
}
.brand>div:not(.top-actions){min-width:0}
.brand h1{
  color:var(--text);
  font-size:18px;
  line-height:1.05;
  letter-spacing:.055em;
  font-weight:900;
}
.brand small{display:block;margin-top:4px;color:#b0bccb;font-size:10.5px;letter-spacing:.01em}
.top-actions{align-items:center;gap:7px}
.sync-chip{
  background:#111b29;
  border-color:#2b3a50;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  padding:7px 10px;
}

main{max-width:900px;padding:10px 10px 18px}
.page{animation:lfFade .16s ease-out}
@keyframes lfFade{from{opacity:.65;transform:translateY(2px)}to{opacity:1;transform:none}}
.page-title{padding:12px 2px 7px;gap:10px}
.page-title h2{font-size:21px;letter-spacing:-.015em;font-weight:850}

.card,.list-item,.subcard{
  box-shadow:var(--shadow-soft);
}
.card{
  background:linear-gradient(180deg,#121a26 0%,#101722 100%);
  border:1px solid #253247;
  border-radius:18px;
  padding:15px;
  margin:11px 0;
}
.card>b:first-child,.subcard>b:first-child{font-size:14px;letter-spacing:.005em}
.subcard{
  background:linear-gradient(180deg,#0e1621,#0c131d);
  border:1px solid #223047;
  border-radius:15px;
  padding:13px;
  margin:10px 0;
}
.list-item{
  background:linear-gradient(180deg,#121a26,#101721);
  border:1px solid #253247;
  border-radius:16px;
  padding:14px;
  margin:9px 0;
}
.list-item h3{font-size:16px;letter-spacing:-.01em}

.kpis{gap:9px}
.kpi{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#121b29,#0f1723);
  border:1px solid #27364d;
  border-radius:16px;
  padding:15px 10px 14px;
  box-shadow:var(--shadow-soft);
}
.kpi:before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:3px;
  background:linear-gradient(var(--orange-2),var(--orange));
  opacity:.9;
}
.kpi b{color:#fff;font-size:22px;letter-spacing:-.02em}
.kpi small{display:block;margin-top:5px;color:#9eabbb;font-weight:650;font-size:11px}

.quick{gap:9px}
.quick button{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:4px;
  line-height:1.15;
}

.label{color:#c8d1dd;font-size:11.5px;letter-spacing:.012em;margin:10px 0 5px;font-weight:800}
.muted{color:#98a6b8}
.tiny{color:#8797aa;font-size:10.5px;line-height:1.35}
.field{margin:9px 0}
input,select,textarea{
  background:#0a111b;
  color:#f8fafc;
  border:1px solid #2b3a50;
  border-radius:12px;
  padding:12px 13px;
  font-size:15px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  transition:border-color .14s ease,box-shadow .14s ease,background .14s ease;
}
input::placeholder,textarea::placeholder{color:#718096}
input:focus,select:focus,textarea:focus{
  border-color:#e9952d;
  background:#0c1420;
  box-shadow:0 0 0 3px rgba(245,154,35,.11);
}
textarea{line-height:1.45}
.voice-row{grid-template-columns:minmax(0,1fr) 50px;gap:7px}
.mic{
  border:1px solid #34445c;
  background:linear-gradient(180deg,#223148,#1b283b);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.mic.listening{background:linear-gradient(180deg,#ef5b5b,#b4232d);box-shadow:0 0 0 3px rgba(239,91,91,.15)}

button,.btn{
  border-radius:12px;
  padding:12px 14px;
  font-weight:800;
  letter-spacing:.005em;
}
.primary{
  background:linear-gradient(180deg,#ffad47,#f29421);
  color:#18110a;
  box-shadow:0 5px 14px rgba(245,154,35,.18),inset 0 1px 0 rgba(255,255,255,.22);
}
.secondary{
  background:linear-gradient(180deg,#27364d,#202d41);
  color:#f7f9fc;
  border:1px solid #34445c;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.ghost{
  background:#101824;
  color:#e9eef5;
  border:1px solid #2a384d;
}
.success{background:linear-gradient(180deg,#1f8b4f,#17663b);border:1px solid #2aa961}
.danger{background:linear-gradient(180deg,#9c2e36,#742027);border:1px solid #b6434b}
.calendar-btn{background:linear-gradient(180deg,#2f6fe4,#2457bb)}
.small{padding:8px 10px}

.actions,.actions4,.actions5{gap:7px}
.actions4 button,.actions4 a,.actions5 a{border-radius:10px}
.total{font-size:27px;color:#ffad47;letter-spacing:-.025em}

.pill{
  background:#1a2739;
  border:1px solid #30415a;
  color:#dce6f3;
  padding:4px 9px;
  font-size:10px;
  letter-spacing:.01em;
}
.pill.green{background:#123b27;border-color:#205f3d;color:#c7f5d8}
.pill.red{background:#4b1f25;border-color:#71303a;color:#ffd2d6}
.pill.orange{background:#4c3216;border-color:#725020;color:#ffdca9}

.status-line{gap:10px}
.notice{
  background:linear-gradient(180deg,#36260d,#2d210d);
  border:1px solid #6c4c1d;
  color:#f7ddb0;
  border-radius:13px;
  padding:11px 12px;
  line-height:1.4;
}
.search{
  top:68px;
  background:linear-gradient(180deg,rgba(10,15,24,.98) 70%,rgba(10,15,24,.88));
  padding:7px 0 8px;
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}
.search input{box-shadow:0 5px 16px rgba(0,0,0,.12)}
.search-result{transition:border-color .14s ease,background .14s ease,transform .14s ease}
.search-result:active{transform:scale(.992)}

.activity-item{
  transition:border-color .14s ease,background .14s ease,transform .14s ease;
}
.activity-item:active{transform:scale(.992);background:#151f2c}
.activity-open{color:#ffae45}

.photos{gap:8px}
.photo{
  border:1px solid #33435b;
  border-radius:13px;
  background:#080d14;
  box-shadow:0 4px 12px rgba(0,0,0,.18);
}
.photo.selected{border-color:var(--orange);box-shadow:0 0 0 2px rgba(245,154,35,.55),0 6px 16px rgba(0,0,0,.18)}
.photo .tag{background:linear-gradient(transparent,rgba(0,0,0,.90));padding:12px 5px 5px}
.gallery-source{background:linear-gradient(transparent,rgba(5,10,17,.96));padding:14px 7px 6px;color:#dbe4ee}
.gallery-filters{gap:6px}
.gallery-filters button{background:#182436;border:1px solid #2d3d54}
.gallery-filters .active{background:#3b2b17;border-color:#d98a25;outline:none;color:#ffd6a0}
.file-btn{min-height:46px}

.modal{background:rgba(3,7,12,.78);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
.sheet{
  background:#101722;
  border:1px solid #2a384d;
  border-radius:22px 22px 0 0;
  box-shadow:0 -18px 60px rgba(0,0,0,.42);
  padding:15px 15px 30px;
}
.sheet-head{background:#101722;border-bottom:1px solid #1f2b3b;padding:10px 0 12px}
.sheet-head h3{font-size:19px;letter-spacing:-.01em}
.close{background:#1d293a;border:1px solid #34445b;color:#eef3f9}
.viewer{background:rgba(0,0,0,.96)}
.viewer .caption{background:rgba(9,14,22,.80);border:1px solid rgba(255,255,255,.10)}
.viewer .prev,.viewer .next{background:rgba(22,31,45,.84);border:1px solid rgba(255,255,255,.10)}

.bottom-nav{
  background:rgba(13,20,31,.97);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-top:1px solid #26354a;
  box-shadow:0 -10px 32px rgba(0,0,0,.25);
  padding-top:7px;
}
.navbtn{
  color:#8190a4;
  border:1px solid transparent;
  padding:7px 2px 6px;
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
.navbtn span{font-size:20px;margin-bottom:2px}
.navbtn.on{
  color:#ffd09a;
  background:#2c241b;
  border-color:#4a3824;
}

.archive-row{border-top-color:#243044}
.draft-status{color:#8190a4}
.empty{padding:30px 12px;color:#7f8da0}

@media(hover:hover) and (pointer:fine){
  .primary:hover{filter:brightness(1.035);box-shadow:0 7px 18px rgba(245,154,35,.23)}
  .secondary:hover,.ghost:hover{border-color:#465a75;background:#2a3a51}
  .card:hover,.list-item:hover{border-color:#31415a}
  .activity-item:hover,.search-result:hover{border-color:#41536e;background:#151f2d}
}

@media(max-width:520px){
  main{padding:8px 8px 16px}
  .header{padding:10px 10px}
  .brand img{width:41px;height:41px;border-radius:12px}
  .brand h1{font-size:16.5px;letter-spacing:.045em}
  .brand small{font-size:9.8px}
  .card{padding:13px;border-radius:16px}
  .subcard{padding:11px;border-radius:14px}
  .kpi{padding:13px 8px}
  .kpi b{font-size:20px}
  .page-title h2{font-size:20px}
  .quick button{min-height:68px;padding:10px 7px}
}

@media print{
  body{background:#fff!important;color:#111!important}
  .card,.list-item,.subcard{box-shadow:none!important}
}

/* ============================================================
   V19.5 — INTERIOR PROFESSIONAL POLISH
   Visual refinement only. No workflow or feature changes.
   ============================================================ */

/* Stronger visual hierarchy on internal pages */
#customersPage,#customerPage,#jobsPage,#estimatesPage,#invoicesPage{
  --section-border:#2b394d;
  --section-surface:#111a26;
  --section-surface-2:#0d151f;
}
#customersPage .page-title,
#customerPage .page-title,
#jobsPage .page-title,
#estimatesPage .page-title,
#invoicesPage .page-title{
  margin-top:2px;
  padding:14px 3px 9px;
  border-bottom:1px solid rgba(148,163,184,.12);
}
#customersPage .page-title h2,
#jobsPage .page-title h2,
#estimatesPage .page-title h2,
#invoicesPage .page-title h2{
  font-size:22px;
  letter-spacing:-.025em;
}

/* Customer list = polished file cards */
#customerList .list-item{
  position:relative;
  overflow:hidden;
  min-height:72px;
  padding:15px 44px 15px 16px;
  border-color:#29384d;
  background:linear-gradient(180deg,#131c29 0%,#0f1722 100%);
  transition:border-color .14s ease,transform .08s ease,background .14s ease;
}
#customerList .list-item:before{
  content:"";
  position:absolute;left:0;top:0;bottom:0;width:4px;
  background:linear-gradient(180deg,#ffb246,#f28f1f);
}
#customerList .list-item:active{transform:scale(.994);border-color:#d38a2a}
#customerList .list-item h3{font-size:16px;margin-bottom:6px;color:#f8fafc}
#customerList .list-item .muted{font-size:12px;line-height:1.45}
#customerList .list-item .status-line>span:last-child{
  position:absolute;right:15px;top:50%;transform:translateY(-50%);
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:#1b2738;border:1px solid #33445c;color:#ffad47;font-size:20px;
}

/* Search field looks like product search, not a form field */
#customersPage .search{
  top:63px;
  padding:9px 0 7px;
  background:linear-gradient(180deg,var(--bg) 78%,rgba(10,15,24,0));
}
#customersPage .search .label{display:none}
#customersPage .search input{
  min-height:48px;border-radius:14px;padding-left:15px;
  background:#0e1621;border-color:#2b3b52;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* Customer folder header = premium record cover */
#customerFolder> .card:first-child{
  position:relative;overflow:hidden;
  padding:18px 16px 16px;
  background:linear-gradient(145deg,#162131 0%,#101823 72%);
  border-color:#34445b;
}
#customerFolder> .card:first-child:after{
  content:"";position:absolute;right:-42px;top:-56px;width:150px;height:150px;border-radius:50%;
  background:radial-gradient(circle,rgba(245,154,35,.14),rgba(245,154,35,0) 70%);
  pointer-events:none;
}
#customerFolder> .card:first-child h2{
  font-size:24px!important;letter-spacing:-.025em;color:#fff;margin-bottom:8px!important;
}
#customerFolder> .card:first-child .muted{
  line-height:1.65;color:#b1bdca;font-size:12px;
}
#customerFolder> .card:first-child .actions5{
  margin-top:14px!important;padding-top:13px;border-top:1px solid rgba(148,163,184,.13);
}
#customerFolder> .card:first-child .actions5 .btn{
  min-height:54px;background:linear-gradient(180deg,#243247,#1d293b);
  border:1px solid #34445c;display:flex;flex-direction:column;justify-content:center;gap:2px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

/* Every section inside a customer file feels like a structured folder section */
#customerFolder> .card:not(:first-child){
  padding:0 14px 14px;
  overflow:hidden;
  background:linear-gradient(180deg,#111a26,#0f1721);
  border-color:#29384c;
}
#customerFolder> .card:not(:first-child)>b:first-child,
#customerFolder> .card.customer-gallery-card .status-line:first-child{
  display:flex;align-items:center;min-height:52px;
  margin:0 -14px 12px;padding:0 14px;
  background:linear-gradient(180deg,#182335,#141e2c);
  border-bottom:1px solid #2b3a4f;
  font-size:14px;font-weight:900;letter-spacing:.005em;
}
#customerFolder .customer-gallery-card .status-line:first-child{justify-content:space-between}
#customerFolder .customer-gallery-card .status-line:first-child b{font-size:15px}
#customerFolder .customer-gallery-card .status-line:first-child .tiny{margin-top:2px}
#customerFolder .subcard{
  position:relative;
  padding:13px 12px;
  margin:9px 0;
  background:linear-gradient(180deg,#0d151f,#0b121b);
  border:1px solid #26354a;
  border-radius:13px;
}
#customerFolder .subcard:before{
  content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:0 3px 3px 0;
  background:#d88927;opacity:.72;
}
#customerFolder .subcard>b:first-child{color:#f3f6fa;font-size:14px}
#customerFolder .subcard .muted{line-height:1.45}
#customerFolder .subcard .actions{margin-top:10px!important}

/* Gallery feels like a real asset browser */
.customer-gallery-card .photo-source-actions{
  margin:10px 0 12px;padding:10px;border-radius:13px;
  background:#0c141e;border:1px dashed #34455d;
}
.customer-gallery-card .gallery-filters{
  gap:6px;margin:8px 0 13px;padding-bottom:11px;border-bottom:1px solid rgba(148,163,184,.12);
}
.customer-gallery-card .gallery-filters button{
  border-radius:999px;padding:8px 11px;background:#162235;border-color:#2f4057;
}
.customer-gallery-card .gallery-filters .active{
  color:#1a1208;background:linear-gradient(180deg,#ffb34e,#f29828);
  border-color:#f4a137;outline:none;box-shadow:0 4px 11px rgba(242,152,40,.17);
}
.customer-gallery{
  gap:9px;
}
.customer-gallery .photo{
  border-radius:13px;border:1px solid #2f4056;
  box-shadow:0 5px 16px rgba(0,0,0,.18);
}
.customer-gallery .photo .tag{
  font-size:10px;font-weight:800;background:linear-gradient(180deg,transparent,rgba(3,7,12,.9));
  padding:14px 5px 5px;
}
.customer-gallery .gallery-source{
  min-height:34px;background:#0b121b;color:#9eabba;border-top:1px solid #26354a;
}

/* Jobs, estimates and invoices read as polished records */
#jobList .list-item,
#estimateList .list-item,
#invoiceList .list-item{
  position:relative;overflow:hidden;
  padding:15px 14px 14px 17px;
  border-color:#2b394e;
  background:linear-gradient(180deg,#131c29,#0f1722);
}
#jobList .list-item:before,
#estimateList .list-item:before,
#invoiceList .list-item:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:0 4px 4px 0;
}
#jobList .list-item:before{background:#f59a23}
#estimateList .list-item:before{background:#60a5fa}
#invoiceList .list-item:before{background:#34d399}
#jobList .list-item h3,
#estimateList .list-item h3,
#invoiceList .list-item h3{
  color:#f8fafc;font-size:16px;line-height:1.3;margin-bottom:6px;
}
#jobList .list-item .muted,
#estimateList .list-item .muted,
#invoiceList .list-item .muted{font-size:11.5px;line-height:1.5;color:#a4b0bf}
#invoiceList .list-item .total{
  margin:11px 0 3px;text-align:left;font-size:24px;color:#fff;
}
#invoiceList .list-item .total:before{
  content:"Total  ";font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#77879a;font-weight:800;
}

/* Action buttons inside records are cleaner and less visually noisy */
#jobList .actions,
#estimateList .actions,
#invoiceList .actions,
#customerFolder .actions{
  padding-top:10px;margin-top:10px!important;border-top:1px solid rgba(148,163,184,.11);
}
#jobList .actions button,
#estimateList .actions button,
#invoiceList .actions button,
#customerFolder .actions button{
  min-height:40px;
}

/* Clearer status chips */
#estimateList .pill,#invoiceList .pill,#customerFolder .pill{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  white-space:nowrap;
}

/* Forms/editors look like a commercial mobile product */
.sheet{
  background:linear-gradient(180deg,#121b28,#0e1621);
  border-color:#34455d;
  box-shadow:0 -18px 50px rgba(0,0,0,.38);
}
.sheet-head{
  background:rgba(18,27,40,.97);
  backdrop-filter:blur(10px);
  margin:0 -14px 8px;padding:12px 14px 11px;
  border-bottom:1px solid #2a394d;
}
.sheet-head h3{font-size:18px;letter-spacing:-.015em}
.modal .field{margin:11px 0}
.modal .label{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#9dacbf}
.modal input,.modal select,.modal textarea{background:#0a121c;border-color:#2d3d53}

/* Empty states feel intentional */
#customerFolder .empty,#customerList .empty,#jobList .empty,#estimateList .empty,#invoiceList .empty{
  margin:8px 0;border:1px dashed #2b3a4f;border-radius:13px;background:#0c141e;
  color:#7f8fa3;padding:22px 12px;
}

/* Tablet/desktop polish */
@media(min-width:700px){
  #customerFolder> .card:first-child{padding:20px}
  #customerFolder> .card:not(:first-child){padding:0 16px 16px}
  #customerFolder> .card:not(:first-child)>b:first-child,
  #customerFolder> .card.customer-gallery-card .status-line:first-child{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  #customerList .list-item,#jobList .list-item,#estimateList .list-item,#invoiceList .list-item{padding:16px 18px 16px 20px}
}


/* V19.6 — organized Jobs folder; visual/structure only */
#jobsPage .jobs-page-title{align-items:flex-end}
#jobsPage .jobs-page-title>div{min-width:0}
#jobsPage .jobs-page-title h2{margin-bottom:3px}
#jobsPage .jobs-search{
  margin:2px 0 14px;padding:12px 13px;border:1px solid #2b3b52;border-radius:15px;
  background:linear-gradient(180deg,#121c29,#0e1722);
}
#jobsPage .jobs-search input{
  min-height:48px;border-radius:13px;background:#0a121c;border-color:#2d3d53;
}
#jobsPage #jobList{display:grid;gap:10px}
#jobsPage .job-record{margin:0}
#jobsPage .job-record .status-line{align-items:flex-start}
#jobsPage .job-record .status-line>div{min-width:0;flex:1}
#jobsPage .job-record .status-line>button{flex:0 0 auto}

/* New Job is now a focused creation screen, not a mixed create/list page */
#jobPage>.card{margin-top:4px}
#jobPage .back-inline{padding-left:0;background:transparent;border-color:transparent;color:#aab7c7}
#jobPage .back-inline:hover{background:transparent}

/* Dashboard stays an overview; the Jobs folder owns the full job list */
.home-activity-card .section-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px
}
.home-activity-card .section-head>div{min-width:0}
.home-activity-card #recentActivity .activity-item{margin:8px 0}

@media(max-width:520px){
  #jobsPage .jobs-page-title{align-items:center}
  .home-activity-card .section-head{align-items:flex-start}
}

/* V19.7 — tracked invoice sending + job customer quick actions */
.customer-quick-actions{
  margin:10px 0 12px;
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.customer-quick-actions .btn{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  font-size:11px;
}
.customer-name-link{
  appearance:none;border:0;background:transparent;color:#f5f7fb;padding:0;
  font:inherit;font-size:17px;font-weight:800;text-align:left;cursor:pointer;
}
.customer-name-link:hover{color:#ff9b2f}
.job-customer-head{margin-bottom:6px}
.invoice-delivery{
  margin:10px 0;padding:10px 12px;border-radius:12px;border:1px solid #2d3d53;
  font-size:12px;line-height:1.4;
}
.invoice-delivery.viewed{background:#0d241a;border-color:#245f40;color:#b9f4d0}
.invoice-delivery.sent{background:#172238;border-color:#344d78;color:#cbdcff}
.invoice-delivery.ready{background:#2b2412;border-color:#665122;color:#ffe0a0}
.invoice-delivery.unsent{background:#0d151f;color:#93a4b8}
.send-invoice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.send-choice{
  min-height:92px;border:1px solid #33445b;border-radius:15px;background:#101a27;color:#f6f8fb;
  padding:12px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  cursor:pointer;text-align:center;
}
.send-choice b{font-size:14px}
.send-choice span{font-size:10px;color:#9aacbf;overflow-wrap:anywhere}
.send-choice.whatsapp{border-color:#255e42;background:#10231a}
.send-choice.email{border-color:#3b4f74;background:#121d31}
.send-choice.text{border-color:#5f4b25;background:#251f12}
.send-choice.disabled{opacity:.45;cursor:not-allowed}
.invoice-photo-first{margin:12px 0 16px}

@media(max-width:420px){
  .send-invoice-grid{grid-template-columns:1fr}
  .send-choice{min-height:68px;flex-direction:row;justify-content:flex-start;text-align:left;padding:12px 14px}
  .send-choice b{min-width:78px}
}

/* ============================================================
   V19.7.2 — PREMIUM SAAS POLISH
   Visual-only refinement. No workflow, data, or business logic changes.
   Goal: high-end commercial field-service app feel without complexity.
   ============================================================ */
:root{
  --lf-bg:#070b12;
  --lf-surface:#0d141f;
  --lf-surface-2:#111a27;
  --lf-surface-3:#162131;
  --lf-line:#253247;
  --lf-line-strong:#32445e;
  --lf-text:#f8fafc;
  --lf-muted:#93a3b6;
  --lf-orange:#f6a23a;
  --lf-orange-deep:#df8416;
  --lf-orange-soft:#2a2016;
  --lf-shadow:0 18px 50px rgba(0,0,0,.26);
  --lf-shadow-soft:0 8px 24px rgba(0,0,0,.18);
  --lf-radius:20px;
}

body{
  background:
    radial-gradient(900px 420px at 50% -230px,rgba(246,162,58,.12),transparent 60%),
    radial-gradient(700px 380px at 100% 0,rgba(61,95,150,.08),transparent 62%),
    var(--lf-bg);
}

/* premium app shell */
.header{
  border-bottom:1px solid rgba(246,162,58,.24);
  background:linear-gradient(180deg,rgba(10,15,24,.97),rgba(8,13,21,.94));
  box-shadow:0 10px 34px rgba(0,0,0,.28);
}
.brand img{
  border-radius:14px;
  box-shadow:0 8px 22px rgba(0,0,0,.32),0 0 0 1px rgba(255,255,255,.05);
}
.brand h1{
  font-size:17px;
  letter-spacing:.095em;
  font-weight:900;
}
.brand small{
  color:#95a5b8;
  letter-spacing:.025em;
}

main{max-width:960px;padding:10px 11px 22px}
.page-title{padding:15px 3px 9px}
.page-title h2{font-size:22px;font-weight:900;letter-spacing:-.03em}
#todayLabel{font-size:11px;letter-spacing:.02em;color:#8090a4}

/* dashboard feels like an executive overview */
#homePage .kpis{gap:10px;margin-top:2px}
#homePage .kpi{
  min-height:102px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  text-align:left;
  padding:16px 15px 15px 18px;
  border:1px solid #2c3b51;
  border-radius:18px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),transparent 42%),
    linear-gradient(145deg,#121c2a,#0d151f);
  box-shadow:0 10px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025);
}
#homePage .kpi:before{
  left:0;top:18px;bottom:18px;width:3px;border-radius:0 4px 4px 0;
  background:linear-gradient(180deg,#ffbd62,#ef9227);
}
#homePage .kpi b{
  font-size:25px;
  letter-spacing:-.04em;
  color:#fff;
  line-height:1;
}
#homePage .kpi small{
  margin-top:8px;
  color:#8fa0b4;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.025em;
  text-transform:uppercase;
}

.card{
  border-radius:20px;
  border-color:#26354a;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 25%),
    linear-gradient(180deg,#111a27,#0d151f);
  box-shadow:var(--lf-shadow-soft),inset 0 1px 0 rgba(255,255,255,.018);
}
#homePage>.card{padding:16px}
#homePage>.card>b:first-child{font-size:14px;color:#f6f8fb}

/* Quick actions: premium launcher tiles */
#homePage .quick{gap:10px;margin-top:12px!important}
#homePage .quick button{
  min-height:82px;
  border-radius:16px;
  border:1px solid #2e3e55;
  background:linear-gradient(180deg,#182437,#121b29);
  color:#f8fafc;
  box-shadow:0 7px 18px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.035);
  font-size:12px;
  line-height:1.3;
}
#homePage .quick button.primary{
  background:linear-gradient(145deg,#ffb653,#ed9329);
  border-color:#f5a23b;
  color:#17100a;
  box-shadow:0 10px 22px rgba(230,139,29,.20),inset 0 1px 0 rgba(255,255,255,.24);
}
#homePage .quick button:first-line{font-size:18px}

/* cleaner search and activity areas */
#homePage #homeSearch{
  min-height:49px;
  margin-top:10px;
  border-radius:14px;
  background:#09111b;
  border-color:#2b3b52;
  padding-left:14px;
}
.home-activity-card .section-head{
  padding-bottom:11px;
  margin-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.10);
}
.home-activity-card .section-head b{font-size:14px}
.home-activity-card .section-head .tiny{margin-top:4px;line-height:1.45}

/* consistent high-end controls */
input,select,textarea{
  border-radius:13px;
  border-color:#2d3d54;
  background:linear-gradient(180deg,#0b131e,#09111a);
  min-height:46px;
}
textarea{min-height:104px}
input:focus,select:focus,textarea:focus{
  border-color:#d98c2a;
  box-shadow:0 0 0 3px rgba(246,162,58,.10),0 8px 22px rgba(0,0,0,.12);
}
.label{
  text-transform:uppercase;
  letter-spacing:.065em;
  font-size:10px;
  color:#8999ad;
}

button,.btn{border-radius:13px}
.primary{
  background:linear-gradient(180deg,#ffb654,#f0982e);
  box-shadow:0 7px 18px rgba(237,145,35,.16),inset 0 1px 0 rgba(255,255,255,.22);
}
.secondary{
  background:linear-gradient(180deg,#26364c,#1e2a3c);
  border-color:#34465f;
}
.ghost{background:#101824;border-color:#2b3b51}

/* premium record cards across the app */
#customerList .list-item,
#jobList .list-item,
#estimateList .list-item,
#invoiceList .list-item{
  border-radius:18px;
  border-color:#2a394e;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 28%),
    linear-gradient(180deg,#121c29,#0e1621);
  box-shadow:0 8px 22px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.018);
}
#customerList .list-item:before,
#jobList .list-item:before,
#estimateList .list-item:before,
#invoiceList .list-item:before{width:3px}

/* more elegant chips */
.pill{
  border-radius:999px;
  padding:5px 9px;
  font-size:9.5px;
  letter-spacing:.045em;
  text-transform:uppercase;
  font-weight:900;
}
.pill.orange{background:#332617;border-color:#62451e;color:#ffd7a1}
.pill.green{background:#102c20;border-color:#24583f;color:#bff4d2}
.pill.red{background:#3c1d22;border-color:#6d3039;color:#ffd0d4}

/* photo areas */
.photo{
  border-radius:14px;
  box-shadow:0 7px 20px rgba(0,0,0,.22);
}
.photo-source-actions{
  gap:9px;
}
.file-btn{
  border-radius:13px;
  min-height:48px;
}

/* premium modal sheet */
.sheet{
  border-radius:26px 26px 0 0;
  border-color:#33445c;
  background:
    linear-gradient(180deg,rgba(255,255,255,.02),transparent 20%),
    linear-gradient(180deg,#111a27,#0d151f);
}
.sheet-head{
  min-height:56px;
  background:rgba(15,23,35,.96);
}
.sheet-head h3{font-size:19px;font-weight:900}

/* bottom nav = modern premium dock */
.bottom-nav{
  background:rgba(10,16,25,.965);
  border-top:1px solid #27364b;
  box-shadow:0 -12px 34px rgba(0,0,0,.30);
  padding:8px 6px calc(7px + env(safe-area-inset-bottom));
}
.navbtn{
  min-height:54px;
  color:#78899e;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.01em;
}
.navbtn span{font-size:19px;opacity:.82}
.navbtn.on{
  color:#ffd2a0;
  background:linear-gradient(180deg,#2b2117,#211b15);
  border-color:#4a3824;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.navbtn.on span{opacity:1;filter:saturate(1.06)}

/* better customer/job action tiles */
.customer-quick-actions .btn,
.send-choice{
  border-radius:16px;
  box-shadow:0 7px 18px rgba(0,0,0,.16),inset 0 1px 0 rgba(255,255,255,.025);
}
.invoice-delivery{border-radius:14px}

/* desktop looks like a real SaaS workspace */
@media(min-width:760px){
  body{padding-bottom:108px}
  main{padding:16px 18px 34px}
  .header .brand{max-width:960px;margin:0 auto}
  #homePage .kpis{grid-template-columns:repeat(4,1fr)}
  #homePage .quick{grid-template-columns:repeat(4,1fr)}
  .bottom-nav{
    left:50%;right:auto;bottom:16px;transform:translateX(-50%);
    width:min(720px,calc(100% - 32px));
    border:1px solid #2b3a50;
    border-radius:20px;
    padding:7px;
    box-shadow:0 18px 48px rgba(0,0,0,.35);
  }
  .navbtn{min-height:58px}
}

@media(max-width:520px){
  body{padding-bottom:88px}
  .header{padding:10px 11px}
  .brand h1{font-size:15.8px;letter-spacing:.08em}
  .brand small{font-size:9.5px}
  #homePage .kpi{min-height:94px;padding:14px 11px 13px 15px}
  #homePage .kpi b{font-size:22px}
  #homePage .kpi small{font-size:9.5px}
  #homePage .quick button{min-height:74px}
  .page-title h2{font-size:21px}
}

/* respect reduced-motion preferences */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* V20 Business Pro — command-center polish */
.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 0}.command-card{padding:16px}.command-icon{font-size:24px}.command-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid rgba(148,163,184,.17);cursor:pointer}.command-item:last-child{border-bottom:0}.command-item>div{min-width:0}.command-item b{display:block;font-size:14px}.command-item span{font-size:12px;color:var(--muted)}.command-item>span:last-child{white-space:nowrap;color:#f59e0b;font-weight:800}.command-item.attention:hover,.command-item:hover{transform:translateX(2px)}.empty.compact{padding:12px 0}.pill.blue{background:#dbeafe!important;color:#1d4ed8!important}.tiny-pill{font-size:9px!important;padding:2px 6px!important}.job-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.pro-action-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.checklist-card{border-left:3px solid #f59e0b}.checklist-list{margin-top:8px}.check-row{display:grid;grid-template-columns:34px 1fr 32px;align-items:center;gap:7px;padding:7px 0;border-bottom:1px solid rgba(148,163,184,.15)}.check-row.done span{text-decoration:line-through;opacity:.6}.check-toggle{width:30px;height:30px;border-radius:50%;border:1px solid rgba(148,163,184,.3);background:var(--panel2);color:#f59e0b;font-weight:900}.icon-danger{border:0;background:transparent;color:#ef4444;font-size:20px}.check-add{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px}.document-list{display:grid;gap:6px;margin-top:8px}.document-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto 28px;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:rgba(148,163,184,.08)}.document-name{border:0;background:transparent;color:inherit;text-align:left;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.comm-row{display:grid;grid-template-columns:14px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid rgba(148,163,184,.14)}.comm-row:last-child{border-bottom:0}.comm-dot{width:9px;height:9px;border-radius:50%;background:#f59e0b;margin-top:6px;box-shadow:0 0 0 4px rgba(245,158,11,.12)}.comm-row b{font-size:13px}.comm-row>div:last-child>div{font-size:12px;color:var(--muted);margin-top:2px}.finish-steps{display:flex;gap:8px;margin-bottom:12px}.step{flex:1;text-align:center;border-radius:999px;padding:7px 8px;background:rgba(148,163,184,.1);font-size:11px;font-weight:800}.step.on{background:rgba(245,158,11,.16);color:#f59e0b}.approval-card{border:1px solid rgba(34,197,94,.35);background:rgba(34,197,94,.08);border-radius:14px;padding:13px;margin:12px 0;display:grid;gap:5px}.approval-card b{color:#22c55e}.approval-card span{font-size:12px;color:var(--muted)}.approval-card img{max-width:260px;max-height:90px;object-fit:contain;background:white;border-radius:8px;padding:6px}.revision-row{width:100%;border:0;border-bottom:1px solid rgba(148,163,184,.15);background:transparent;color:inherit;display:flex;justify-content:space-between;padding:10px 0;font-weight:700}.signature-wrap{background:#fff;border:1px solid #cbd5e1;border-radius:14px;padding:8px;margin:10px 0}.signature-wrap canvas{width:100%;height:150px;display:block;touch-action:none;background:white;border-radius:8px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.customer-hero{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start}.customer-hero .actions5{grid-column:1/-1}.kpi{position:relative;overflow:hidden}.kpi:after{content:'';position:absolute;inset:auto -30px -45px auto;width:90px;height:90px;border-radius:50%;background:rgba(245,158,11,.07)}
@media(max-width:720px){.command-grid{grid-template-columns:1fr}.pro-action-strip{grid-template-columns:1fr}.tool-grid{grid-template-columns:1fr}.customer-hero{grid-template-columns:1fr}.customer-hero .actions5{grid-column:auto}.job-card-actions .small{flex:1 1 calc(50% - 8px)}}


/* V20.1 — professional voice capture + contact picker polish */
.voice-panel{position:fixed;inset:0;z-index:1200;background:rgba(3,7,14,.72);backdrop-filter:blur(12px);display:flex;align-items:flex-end;justify-content:center;padding:18px}.voice-panel.hidden{display:none}.voice-sheet{width:min(620px,100%);border:1px solid rgba(148,163,184,.24);border-radius:26px;background:linear-gradient(180deg,#152131,#0d1621);box-shadow:0 28px 80px rgba(0,0,0,.5);padding:20px}.voice-head{display:flex;align-items:center;gap:13px}.voice-head b{font-size:18px}.voice-badge{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;font-size:22px;background:linear-gradient(145deg,#ffac3b,#e87800);box-shadow:0 10px 24px rgba(245,158,11,.28)}.voice-status{font-size:12px;color:#fbbf24;font-weight:800;margin-top:3px}.voice-wave{height:56px;display:flex;align-items:center;justify-content:center;gap:5px;margin:14px 0 8px}.voice-wave i{display:block;width:5px;height:15px;border-radius:999px;background:#f59e0b;animation:voicePulse .9s ease-in-out infinite}.voice-wave i:nth-child(2){animation-delay:.08s}.voice-wave i:nth-child(3){animation-delay:.16s}.voice-wave i:nth-child(4){animation-delay:.24s}.voice-wave i:nth-child(5){animation-delay:.32s}.voice-wave i:nth-child(6){animation-delay:.4s}.voice-wave i:nth-child(7){animation-delay:.48s}@keyframes voicePulse{0%,100%{height:12px;opacity:.55}50%{height:44px;opacity:1}}.voice-live-text{min-height:88px;max-height:210px;overflow:auto;background:rgba(2,6,12,.48);border:1px solid rgba(148,163,184,.18);border-radius:16px;padding:14px;font-size:15px;line-height:1.55;color:#eef4fb}.voice-help{color:#8293a9;font-size:11px;line-height:1.5;margin:9px 2px 14px}.voice-actions{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px}.voice-actions button{min-height:48px}.mic.listening{background:linear-gradient(145deg,#ffac3b,#e87800)!important;color:#111!important;box-shadow:0 0 0 4px rgba(245,158,11,.14),0 10px 20px rgba(0,0,0,.2)}
.contact-preview-card{display:grid;grid-template-columns:48px 1fr;gap:11px;align-items:center;border:1px solid rgba(148,163,184,.2);background:linear-gradient(180deg,rgba(148,163,184,.09),rgba(148,163,184,.045));border-radius:15px;padding:11px;margin-top:9px}.contact-avatar{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#28394e,#172436);color:#fbbf24;font-weight:900;font-size:20px}.contact-preview-main{min-width:0;display:grid;gap:2px}.contact-preview-main b{font-size:14px}.contact-preview-main span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.contact-preview-badge{width:max-content;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#f59e0b}.contact-confirm-wrap{text-align:center}.contact-confirm-wrap h3{margin:8px 0 4px}.contact-confirm-icon{width:58px;height:58px;border-radius:18px;margin:0 auto 8px;display:grid;place-items:center;font-size:26px;background:linear-gradient(145deg,#26384d,#172437);color:#fbbf24}.contact-confirm-wrap .contact-preview-card{text-align:left;margin:14px 0}.contact-confirm-wrap>.full{margin-top:8px}.contact-form-card{text-align:left;border:1px solid rgba(148,163,184,.18);border-radius:18px;padding:13px;margin:14px 0;background:rgba(148,163,184,.05)}.contact-import-hero{display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center;border:1px solid rgba(245,158,11,.25);background:linear-gradient(145deg,rgba(245,158,11,.1),rgba(148,163,184,.04));border-radius:17px;padding:12px;margin-bottom:12px}.contact-import-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(245,158,11,.12);font-size:22px}.contact-import-hero b{display:block}.contact-import-hero span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.divider-label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin:13px 0}.divider-label:before,.divider-label:after{content:'';height:1px;flex:1;background:rgba(148,163,184,.17)}
@media(max-width:520px){.voice-panel{padding:0;align-items:flex-end}.voice-sheet{border-radius:25px 25px 0 0;padding:18px 15px calc(18px + env(safe-area-inset-bottom))}.voice-actions{grid-template-columns:1fr 1fr}.voice-actions .primary{grid-column:1/-1;grid-row:1}.contact-import-hero{grid-template-columns:44px 1fr}.contact-import-hero button{grid-column:1/-1}.contact-import-icon,.contact-avatar{width:44px;height:44px}.contact-preview-card{grid-template-columns:44px 1fr}}

/* ============================================================
   V20.2 — FINAL PREMIUM POLISH
   Visual-only pass. No workflow, data, invoice logic, or sync changes.
   Goal: cohesive high-end field-service SaaS appearance.
   ============================================================ */
:root{
  --pro-bg:#060a11;
  --pro-surface:#0d141f;
  --pro-surface-hi:#121c2a;
  --pro-surface-low:#09111a;
  --pro-line:#26364c;
  --pro-line-hi:#344a66;
  --pro-text:#f7f9fc;
  --pro-muted:#8fa0b5;
  --pro-muted-2:#718297;
  --pro-accent:#f6a13a;
  --pro-accent-hi:#ffbb66;
  --pro-accent-deep:#d97d14;
  --pro-green:#35c97a;
  --pro-blue:#72aefc;
  --pro-red:#f06b72;
  --pro-radius-lg:22px;
  --pro-radius-md:16px;
  --pro-shadow-lg:0 24px 70px rgba(0,0,0,.34);
  --pro-shadow-md:0 12px 34px rgba(0,0,0,.22);
  --pro-shadow-sm:0 6px 18px rgba(0,0,0,.16);
}
html{background:var(--pro-bg);scroll-behavior:smooth}
body{
  min-height:100vh;
  background:
    radial-gradient(900px 440px at 50% -260px,rgba(246,161,58,.13),transparent 63%),
    radial-gradient(640px 360px at 105% 10%,rgba(72,113,179,.08),transparent 64%),
    linear-gradient(180deg,#080d16 0%,#060a11 55%,#05090f 100%);
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;
  background-image:linear-gradient(rgba(255,255,255,.008) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.008) 1px,transparent 1px);
  background-size:28px 28px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.3),transparent 46%);
}
::selection{background:rgba(246,161,58,.28);color:#fff}
*{scrollbar-width:thin;scrollbar-color:#304157 #0a111b}
*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-thumb{background:#304157;border-radius:999px}*::-webkit-scrollbar-track{background:#0a111b}

/* App shell */
.header{
  padding:11px 13px;
  background:linear-gradient(180deg,rgba(8,13,22,.985),rgba(8,13,22,.94));
  border-bottom:1px solid rgba(246,161,58,.22);
  box-shadow:0 10px 30px rgba(0,0,0,.28);
}
.header::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;
  background:linear-gradient(90deg,transparent,rgba(246,161,58,.46),transparent);
}
.brand{max-width:960px;margin:0 auto;gap:11px}
.brand img{width:43px;height:43px;border-radius:14px;box-shadow:0 7px 20px rgba(0,0,0,.30),0 0 0 1px rgba(255,255,255,.06)}
.brand h1{font-size:16.5px;letter-spacing:.105em;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.35)}
.brand small{font-size:9.7px;color:#9ba9ba;letter-spacing:.035em;margin-top:4px}
.top-actions{gap:7px}
.sync-chip{min-height:34px;padding:7px 10px;background:linear-gradient(180deg,#121d2a,#0d1621);border-color:#2e4058;color:#cbd5e1;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.top-actions .ghost{width:36px;height:36px;display:grid;place-items:center;padding:0;border-radius:12px}

main{max-width:960px;padding:12px 11px 24px}
.page{animation:proPageIn .20s cubic-bezier(.2,.75,.3,1)}
@keyframes proPageIn{from{opacity:.55;transform:translateY(4px)}to{opacity:1;transform:none}}
.page-title{padding:16px 3px 10px;margin-bottom:2px;align-items:flex-end}
.page-title h2{font-size:23px;line-height:1.08;font-weight:900;letter-spacing:-.035em;color:#fbfcfe}
.page-title .muted{margin-top:4px;color:#7f91a6}

/* Cards + section hierarchy */
.card{
  border-radius:var(--pro-radius-lg);
  border:1px solid #26364b;
  background:
    linear-gradient(180deg,rgba(255,255,255,.025),rgba(255,255,255,0) 24%),
    linear-gradient(180deg,#111a27 0%,#0c141e 100%);
  box-shadow:var(--pro-shadow-md),inset 0 1px 0 rgba(255,255,255,.022);
  padding:16px;margin:12px 0;
}
.subcard{
  border-radius:var(--pro-radius-md);
  border-color:#25364c;
  background:linear-gradient(180deg,#0d1621,#09111a);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018),0 6px 16px rgba(0,0,0,.12);
  padding:13px;margin:10px 0;
}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.section-head b{font-size:14px;letter-spacing:-.005em;color:#f7f9fc}
.section-head .tiny{margin-top:4px;line-height:1.45;color:#7e8fa4}
.command-icon{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(180deg,#1d2a3d,#152132);border:1px solid #30435c;box-shadow:inset 0 1px 0 rgba(255,255,255,.04);font-size:18px}

/* Dashboard */
#homePage .page-title{padding-bottom:11px}
#homePage .kpis{gap:10px}
#homePage .kpi{
  min-height:104px;border-radius:19px;padding:17px 14px 15px 18px;
  background:
    radial-gradient(120px 90px at 100% 0,rgba(246,161,58,.09),transparent 70%),
    linear-gradient(155deg,#141f2e,#0d151f 72%);
  border:1px solid #2b3b52;
  box-shadow:0 11px 28px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.025);
}
#homePage .kpi:before{top:17px;bottom:17px;width:3px;background:linear-gradient(#ffc06d,#ed9125)}
#homePage .kpi:after{right:11px;bottom:8px;width:auto;height:auto;border-radius:0;background:none;font-size:28px;opacity:.09;filter:grayscale(1)}
#homePage .kpi:nth-child(1):after{content:"🧾"}
#homePage .kpi:nth-child(2):after{content:"📝"}
#homePage .kpi:nth-child(3):after{content:"🔧"}
#homePage .kpi:nth-child(4):after{content:"✓";font-size:38px;font-weight:900}
#homePage .kpi b{font-size:26px;color:#fff;letter-spacing:-.045em}
#homePage .kpi small{font-size:9.7px;letter-spacing:.075em;color:#8697ab;margin-top:8px}
.command-grid{gap:12px;margin:14px 0}
.command-card{padding:16px;border-color:#293a50}
.command-card .section-head{padding-bottom:11px;border-bottom:1px solid rgba(148,163,184,.10);margin-bottom:2px}
.command-item{padding:12px 2px;transition:background .14s ease,transform .14s ease,padding .14s ease;border-bottom-color:rgba(148,163,184,.10)}
.command-item:hover{background:rgba(148,163,184,.035);padding-left:5px;padding-right:5px;border-radius:10px}
.command-item b{font-size:13.5px}.command-item span{font-size:11px;color:#7f90a4}.command-item>span:last-child{color:#f7aa4d;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}
#homePage>.card>b:first-child{font-size:13px;text-transform:uppercase;letter-spacing:.055em;color:#9aa9bb}
#homePage .quick{gap:9px;margin-top:12px!important}
#homePage .quick button{
  min-height:78px;border-radius:17px;font-size:11.5px;
  background:linear-gradient(180deg,#19263a,#121c2b);border:1px solid #31445e;
  box-shadow:0 8px 20px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.04);
}
#homePage .quick button.primary{background:linear-gradient(160deg,#ffbd64,#ee952d 75%);border-color:#f3a13c;color:#17100a;box-shadow:0 10px 24px rgba(238,149,45,.20),inset 0 1px 0 rgba(255,255,255,.28)}
#homePage #homeSearch{margin-top:11px}
.home-activity-card .section-head{padding-bottom:12px;margin-bottom:9px}

/* Controls */
.label{font-size:9.7px;text-transform:uppercase;letter-spacing:.075em;color:#8798ad;margin:11px 0 5px}
.muted{color:#8a9bb0}.tiny{font-size:10.5px;color:#77899e;line-height:1.45}
input,select,textarea{
  min-height:47px;border-radius:13px;padding:12px 13px;
  border:1px solid #2b3c53;background:linear-gradient(180deg,#0b141f,#08111a);color:#f8fafc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.018),0 2px 0 rgba(0,0,0,.08);
}
textarea{min-height:108px;line-height:1.48}
input:hover,select:hover,textarea:hover{border-color:#344a65}
input:focus,select:focus,textarea:focus{border-color:#df922d;background:#0b1521;box-shadow:0 0 0 3px rgba(246,161,58,.105),0 8px 24px rgba(0,0,0,.14)}
input::placeholder,textarea::placeholder{color:#64758a}
button,.btn{min-height:42px;border-radius:13px;font-weight:820;letter-spacing:.005em;transition:transform .12s ease,filter .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease}
button:focus-visible,.btn:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #ffb14f;outline-offset:2px}
.primary{background:linear-gradient(180deg,#ffba5d,#ee942b);color:#181008;border:1px solid #f5a746;box-shadow:0 7px 18px rgba(231,138,25,.19),inset 0 1px 0 rgba(255,255,255,.26)}
.secondary{background:linear-gradient(180deg,#26384f,#1d2b3e);border:1px solid #354a64;color:#f4f7fb;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.ghost{background:linear-gradient(180deg,#101a27,#0c141e);border:1px solid #2b3b51;color:#e8edf4}
.success{background:linear-gradient(180deg,#238a53,#176b3f);border:1px solid #2ba866}
.danger{background:linear-gradient(180deg,#9e3941,#79272e);border:1px solid #b94b53}
button:active,.btn:active{transform:scale(.982)}
@media(hover:hover) and (pointer:fine){button:hover,.btn:hover{filter:brightness(1.045)}.primary:hover{box-shadow:0 10px 24px rgba(231,138,25,.24),inset 0 1px 0 rgba(255,255,255,.28)}}

/* Lists / records */
.list-item{border-radius:18px;border-color:#29394f;background:linear-gradient(180deg,#121c2a,#0d151f);box-shadow:0 8px 22px rgba(0,0,0,.17);padding:15px;margin:9px 0}
.list-item h3{font-size:16px;line-height:1.28;color:#f8fafc;letter-spacing:-.015em}
#customerList .list-item,#jobList .list-item,#estimateList .list-item,#invoiceList .list-item{border-radius:19px;padding-top:16px;padding-bottom:15px}
#customerList .list-item:before,#jobList .list-item:before,#estimateList .list-item:before,#invoiceList .list-item:before{width:3px;opacity:.95}
#jobList .list-item:before{background:linear-gradient(#ffbd63,#ed9328)}
#estimateList .list-item:before{background:linear-gradient(#8cc3ff,#4d8fe6)}
#invoiceList .list-item:before{background:linear-gradient(#69e39f,#28ae67)}
#customerList .list-item:before{background:linear-gradient(#ffbd63,#ed9328)}
#jobList .list-item:hover,#estimateList .list-item:hover,#invoiceList .list-item:hover,#customerList .list-item:hover{border-color:#3a4e69}
.job-card-actions{padding-top:10px;margin-top:10px;border-top:1px solid rgba(148,163,184,.10)}
.job-card-actions .small{min-height:38px}
.pill{padding:5px 9px;font-size:9px;letter-spacing:.055em;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
.pill.orange{background:#342617;border-color:#66491f;color:#ffd8a3}.pill.green{background:#102e21;border-color:#255d41;color:#c1f5d3}.pill.red{background:#421f25;border-color:#77333c;color:#ffd4d8}.pill.blue{background:#172a42!important;border:1px solid #31527a!important;color:#b8d7ff!important}
.total{font-size:27px;color:#ffb251;letter-spacing:-.035em}

/* Search */
.search{top:67px;padding:8px 0 9px;background:linear-gradient(180deg,rgba(6,10,17,.985) 72%,rgba(6,10,17,.88));backdrop-filter:blur(15px)}
.search input{min-height:48px;border-radius:14px;box-shadow:0 7px 20px rgba(0,0,0,.15)}
#jobsPage .jobs-search{border-radius:17px;border-color:#2b3d55;background:linear-gradient(180deg,#101a27,#0b141e);box-shadow:0 8px 22px rgba(0,0,0,.15)}

/* Customer workspace */
#customerFolder>.card:first-child{border-radius:22px;padding:19px 17px 17px;background:radial-gradient(280px 180px at 100% 0,rgba(246,161,58,.12),transparent 65%),linear-gradient(145deg,#162235,#0e1723 76%);border-color:#344961;box-shadow:var(--pro-shadow-md)}
#customerFolder>.card:first-child h2{font-size:25px!important;letter-spacing:-.035em}
#customerFolder>.card:first-child .actions5{gap:7px}
#customerFolder>.card:first-child .actions5 .btn{border-radius:14px;background:linear-gradient(180deg,#26384f,#1d2b3e);border-color:#374c67;min-height:56px}
#customerFolder>.card:not(:first-child){border-radius:19px}
#customerFolder>.card:not(:first-child)>b:first-child,#customerFolder>.card.customer-gallery-card .status-line:first-child{min-height:54px;background:linear-gradient(180deg,#172335,#111b29);border-bottom-color:#293b52}
.customer-quick-actions{gap:8px}.customer-quick-actions .btn{min-height:55px;border-radius:14px}
.customer-name-link{font-size:17px;letter-spacing:-.01em}

/* Forms and working screens */
#jobPage>.card,#estimateForm{padding:16px 15px 17px}
#jobPage .subcard,#estimateForm .subcard{position:relative;overflow:hidden}
#jobPage .subcard:before,#estimateForm .subcard:before{content:"";position:absolute;left:0;top:13px;bottom:13px;width:2px;background:rgba(246,161,58,.65);border-radius:0 3px 3px 0}
#jobPage .actions{margin-top:14px;padding-top:12px;border-top:1px solid rgba(148,163,184,.10)}
.ai-polish-row{padding:0 1px}.ai-polish-row .secondary{min-height:36px;border-radius:11px}
.photo-source-actions{gap:8px}.file-btn{min-height:47px;border-radius:13px}
.photos{gap:8px}.photo{border-radius:14px;border-color:#344760;box-shadow:0 7px 18px rgba(0,0,0,.21)}
.photo.selected{box-shadow:0 0 0 2px rgba(246,161,58,.72),0 8px 22px rgba(0,0,0,.24)}
.photo .tag{font-weight:750}
.checklist-card{border-left:0;box-shadow:inset 3px 0 0 #f5a13a,0 6px 16px rgba(0,0,0,.12)}
.check-row{border-bottom-color:rgba(148,163,184,.11)}
.check-toggle{background:#111c2a;border-color:#34475f;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.document-row{border:1px solid rgba(148,163,184,.11);background:linear-gradient(180deg,#111b29,#0d1621);border-radius:12px}
.comm-row{border-bottom-color:rgba(148,163,184,.10)}
.comm-dot{background:#f6a13a;box-shadow:0 0 0 4px rgba(246,161,58,.10)}

/* Invoice / send experience */
.invoice-delivery{border-radius:14px;padding:11px 12px;font-weight:650}
.send-invoice-grid{gap:10px}
.send-choice{border-radius:17px;box-shadow:0 8px 22px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025)}
.send-choice.whatsapp{background:linear-gradient(180deg,#12261d,#0d1d16);border-color:#2c6348}.send-choice.email{background:linear-gradient(180deg,#15223a,#101b2e);border-color:#3c567e}.send-choice.text{background:linear-gradient(180deg,#2a2315,#211b11);border-color:#68532c}
.approval-card{border-radius:16px;background:linear-gradient(180deg,rgba(34,197,94,.09),rgba(34,197,94,.055));box-shadow:inset 0 1px 0 rgba(255,255,255,.02)}
.revision-row{border-bottom-color:rgba(148,163,184,.10)}
.signature-wrap{border-radius:16px;box-shadow:0 8px 22px rgba(0,0,0,.18)}

/* Modal / sheets */
.modal{background:rgba(2,5,10,.78);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.sheet{border-radius:27px 27px 0 0;border-color:#354a64;background:radial-gradient(480px 180px at 50% 0,rgba(246,161,58,.055),transparent 72%),linear-gradient(180deg,#121c29,#0c151f);box-shadow:0 -26px 80px rgba(0,0,0,.50);padding:15px 15px 32px}
.sheet-head{margin:0 -15px 10px;padding:12px 15px;background:rgba(16,25,38,.965);border-bottom-color:#2b3d54;min-height:58px}
.sheet-head h3{font-size:19px;letter-spacing:-.02em}.close{width:39px;height:39px;background:#1a2738;border-color:#354a64}
.modal .field{margin:12px 0}.modal .label{font-size:9.8px}.modal input,.modal select,.modal textarea{background:linear-gradient(180deg,#0a131d,#081019)}

/* Voice = flagship interaction */
.voice-panel{background:rgba(2,5,10,.76);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)}
.voice-sheet{border-radius:28px;border-color:#3b506a;background:radial-gradient(360px 180px at 16% 0,rgba(246,161,58,.12),transparent 70%),linear-gradient(180deg,#152234,#0c151f);box-shadow:0 34px 100px rgba(0,0,0,.56);padding:21px}
.voice-badge{width:52px;height:52px;border-radius:17px;font-size:23px;background:linear-gradient(145deg,#ffbc63,#e98b1d);box-shadow:0 12px 28px rgba(229,133,25,.28),inset 0 1px 0 rgba(255,255,255,.25)}
.voice-head b{font-size:18px;letter-spacing:-.01em}.voice-status{color:#ffba5b;letter-spacing:.025em}.voice-wave{margin:16px 0 10px}.voice-wave i{background:linear-gradient(#ffc36d,#ec9229);box-shadow:0 0 8px rgba(246,161,58,.18)}
.voice-live-text{border-radius:17px;border-color:#2f435b;background:rgba(3,8,14,.48);box-shadow:inset 0 1px 0 rgba(255,255,255,.018);font-size:15.5px;line-height:1.58}
.voice-help{color:#7f91a6}.voice-actions{gap:9px}.voice-actions button{min-height:49px}

/* Contact import */
.contact-import-hero{border-radius:18px;border-color:rgba(246,161,58,.30);background:radial-gradient(200px 120px at 0 0,rgba(246,161,58,.12),transparent 75%),linear-gradient(145deg,#162131,#101925)}
.contact-import-icon,.contact-avatar{border-radius:15px;background:linear-gradient(145deg,#2a3c53,#182638);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.contact-preview-card{border-radius:16px;border-color:#2d4058;background:linear-gradient(180deg,#152131,#101925);box-shadow:0 7px 20px rgba(0,0,0,.15)}
.contact-form-card{border-radius:18px;border-color:#2b3d54;background:linear-gradient(180deg,#101a27,#0b141f)}
.divider-label:before,.divider-label:after{background:#29394f}

/* Gallery */
.gallery-filters{gap:7px}.gallery-filters button{border-radius:999px;min-height:36px;background:#152235;border-color:#30445d}.gallery-filters .active{background:linear-gradient(180deg,#ffba5c,#ee952c);color:#171008;border-color:#f2a340;box-shadow:0 6px 14px rgba(238,149,44,.18)}
.customer-gallery .photo{border-radius:14px}

/* Bottom dock */
.bottom-nav{background:rgba(8,13,21,.972);border-top:1px solid #26374d;box-shadow:0 -14px 38px rgba(0,0,0,.32);padding:7px 6px calc(7px + env(safe-area-inset-bottom));gap:4px}
.navbtn{min-height:55px;border-radius:14px;color:#76879b;font-size:9.5px;font-weight:820;letter-spacing:.02em}
.navbtn span{font-size:18px;line-height:20px;margin-bottom:3px;filter:saturate(.75);opacity:.86}
.navbtn.on{color:#ffd29f;background:linear-gradient(180deg,#302416,#221b13);border-color:#4b3824;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 4px 14px rgba(0,0,0,.12)}
.navbtn.on span{filter:none;opacity:1}

/* Empty states */
.empty{border:1px dashed rgba(148,163,184,.17);border-radius:14px;background:rgba(148,163,184,.025);padding:26px 12px;color:#728399}
.empty.compact{border:0;background:transparent;padding:14px 2px}

/* Viewer */
.viewer{background:rgba(0,0,0,.97)}
.viewer .close,.viewer .prev,.viewer .next{backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.12);box-shadow:0 8px 24px rgba(0,0,0,.28)}
.viewer .caption{border-radius:12px;background:rgba(8,13,20,.74);border-color:rgba(255,255,255,.11);backdrop-filter:blur(10px)}

/* Responsive refinements */
@media(min-width:760px){
  body{padding-bottom:108px}
  main{padding:17px 18px 36px}
  #homePage .kpis{grid-template-columns:repeat(4,1fr)}
  .command-grid{grid-template-columns:1fr 1fr}
  .bottom-nav{left:50%;right:auto;bottom:16px;transform:translateX(-50%);width:min(730px,calc(100% - 32px));border:1px solid #2b3d54;border-radius:21px;padding:7px;box-shadow:0 20px 60px rgba(0,0,0,.40)}
  .navbtn{min-height:58px}
  .sheet{max-height:92vh}
}
@media(max-width:720px){.command-grid{grid-template-columns:1fr}.pro-action-strip{grid-template-columns:1fr}}
@media(max-width:520px){
  main{padding:9px 8px 18px}.header{padding:10px 10px}.brand img{width:40px;height:40px;border-radius:13px}.brand h1{font-size:15.2px;letter-spacing:.085em}.brand small{font-size:9px}
  .page-title{padding:14px 2px 8px}.page-title h2{font-size:21.5px}.card{padding:14px;border-radius:18px}.subcard{padding:11px;border-radius:14px}
  #homePage .kpi{min-height:92px;padding:14px 10px 13px 15px}#homePage .kpi b{font-size:22px}#homePage .kpi small{font-size:8.9px;letter-spacing:.055em}
  #homePage .quick button{min-height:72px;border-radius:15px}.voice-sheet{border-radius:26px 26px 0 0;padding:18px 15px calc(18px + env(safe-area-inset-bottom))}
  .bottom-nav{padding-left:4px;padding-right:4px}.navbtn{font-size:9px}.navbtn span{font-size:17px}
  .send-choice{border-radius:15px}.customer-quick-actions{gap:6px}.customer-quick-actions .btn{min-height:52px}
}
@media(max-width:380px){
  .brand small{display:none}.sync-chip{padding:6px 8px;font-size:9.5px}.top-actions{gap:5px}
  #homePage .kpis{gap:7px}#homePage .kpi{padding-left:13px}.quick{gap:7px}
}

/* Print remains clean and customer-friendly */
@media print{
  body{background:#fff!important;color:#111!important}
  body::before{display:none!important}
  .card,.list-item,.subcard{background:#fff!important;color:#111!important;border-color:#ddd!important;box-shadow:none!important}
}
