:root{
  --bg:#f7f4f1;
  --bg-2:#f3efeb;
  --panel:#ffffff;
  --panel-soft:#fcfaf8;
  --text:#171413;
  --muted:#756b64;
  --muted-2:#9a8e87;
  --line:#e8dfd9;
  --line-2:#f1e9e4;
  --sidebar:#0f0f10;
  --sidebar-2:#1c1513;
  --accent:#d84d25;
  --accent-2:#b43617;
  --accent-3:#ffefe8;
  --accent-4:#fff6f2;
  --success:#247248;
  --success-bg:#e9f7ee;
  --warning:#9f6410;
  --warning-bg:#fff5df;
  --danger:#a73b35;
  --danger-bg:#fff0ef;
  --shadow:0 16px 40px rgba(36,20,15,.07);
  --shadow-md:0 18px 52px rgba(30,16,12,.10);
  --shadow-lg:0 32px 90px rgba(24,14,11,.18);
  --radius-xs:10px;
  --radius-sm:14px;
  --radius-md:18px;
  --radius-lg:22px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(circle at 100% 0%,#f3ddd2 0,transparent 22%),radial-gradient(circle at 0% 100%,#f9ede6 0,transparent 20%),linear-gradient(180deg,var(--bg),var(--bg-2));color:var(--text)}
button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
.app-shell{display:grid;grid-template-columns:290px minmax(0,1fr);min-height:100vh}

/* Sidebar */
.sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:linear-gradient(180deg,#0e0f11 0%,#151212 38%,#251613 100%);color:#fff;padding:24px 18px 20px;display:flex;flex-direction:column;gap:22px;border-right:1px solid rgba(255,255,255,.05);box-shadow:12px 0 42px rgba(0,0,0,.10)}
.brand{display:flex;gap:12px;align-items:center;padding:0 6px}.brand-mark{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.03));box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 12px 28px rgba(0,0,0,.25);overflow:hidden}.brand-mark img{width:35px;height:35px;object-fit:contain;display:block;filter:drop-shadow(0 2px 6px rgba(0,0,0,.22))}.brand-name{font-family:Manrope,Inter,sans-serif;font-weight:800;font-size:19px;letter-spacing:-.03em}.brand-subtitle{font-size:10px;color:#bcaea7;margin-top:3px}
.nav-label{padding:0 10px;color:#8f7d75;font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800}.nav{display:grid;gap:6px}.nav-item{border:0;background:transparent;color:#d8cec9;padding:12px 13px;text-align:left;border-radius:14px;font-weight:650;display:flex;align-items:center;gap:11px;transition:.18s ease}.nav-item span{width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:rgba(255,255,255,.055);font-size:12px;color:#efc4b5;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}.nav-item:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(2px)}.nav-item.active{background:linear-gradient(90deg,#331915,#221313);color:#fff;box-shadow:inset 3px 0 0 #f05a28,0 14px 28px rgba(0,0,0,.22)}.nav-item.active span{background:#ffe9df;color:#a93418;box-shadow:0 10px 18px rgba(216,77,37,.18)}
.sidebar-footer{margin-top:auto}.mini-card{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:17px;padding:14px;display:grid;grid-template-columns:auto 1fr;gap:5px 10px;align-items:start}.workspace-dot{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#f05a28;box-shadow:0 0 0 4px rgba(240,90,40,.14)}.mini-label{display:block;color:#aa938b;font-size:9px;text-transform:uppercase;letter-spacing:.10em;margin-bottom:3px}.mini-card strong{font-size:12px;display:block}.mini-muted{color:#9f8c85;font-size:10px}.mini-link{grid-column:2;border:0;background:transparent;color:#f5ddd6;padding:6px 0 0;text-align:left;font-weight:700;font-size:10px}

/* Main */
.main{min-width:0}.topbar{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:28px 36px 18px}.eyebrow{color:#9d8074;font-size:10px;letter-spacing:.15em;font-weight:800}.topbar h1{font-family:Manrope,Inter,sans-serif;margin:4px 0 4px;font-size:34px;letter-spacing:-.045em}.top-date{font-size:12px;color:var(--muted)}.topbar-actions{display:flex;gap:10px;flex-wrap:wrap}
.primary-btn,.ghost-btn{border-radius:13px;padding:10px 14px;border:1px solid transparent;font-weight:760;font-size:12px;transition:.16s ease}.primary-btn{background:linear-gradient(180deg,#e0562d,#b53719);color:#fff;box-shadow:0 14px 28px rgba(216,77,37,.20)}.primary-btn:hover{transform:translateY(-1px);box-shadow:0 18px 34px rgba(216,77,37,.24)}.ghost-btn{background:rgba(255,255,255,.80);border-color:var(--line);color:var(--text);backdrop-filter:blur(8px);box-shadow:0 1px 0 rgba(255,255,255,.65) inset}.ghost-btn:hover{background:#fff;border-color:#ddc8be;transform:translateY(-1px)}
.view{padding:0 36px 40px;max-width:1600px}
.grid{display:grid;gap:16px}.grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Surface cards */
.card{position:relative;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,252,249,.96));border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:20px;backdrop-filter:blur(8px)}.card h3{margin:0 0 12px;font-size:15px}.card.clickable{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.card.clickable:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:#e4bbac}.card.soft{background:linear-gradient(180deg,#fffdfa,#fff8f5)}
.metric-card{overflow:hidden}.metric-card::before{content:"";position:absolute;left:0;top:0;width:100%;height:4px;background:linear-gradient(90deg,#f0d4ca 0%,#f8e7df 40%,transparent 100%)}.metric-card.accent::before{background:linear-gradient(90deg,#e0562d 0%,#f1b29d 55%,transparent 100%)}.metric-card.success::before{background:linear-gradient(90deg,#3aa466 0%,#b8ebcb 55%,transparent 100%)}.metric-label{color:#8e8179;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}.metric-value{font-family:Manrope,Inter,sans-serif;font-size:28px;font-weight:800;letter-spacing:-.045em;margin-top:9px}.metric-note{color:var(--muted);font-size:11px;margin-top:7px;line-height:1.45}.metric-note.good{color:#2b8a56}.metric-note.bad{color:var(--danger)}
.section-title{display:flex;align-items:end;justify-content:space-between;margin:30px 0 12px;gap:12px}.section-title h2{font-family:Manrope,Inter,sans-serif;margin:0 0 3px;font-size:20px;letter-spacing:-.025em}.section-title p{margin:0;color:var(--muted);font-size:12px}.section-actions{display:flex;gap:8px;flex-wrap:wrap}

/* Hero */
.nature-hero{position:relative;overflow:hidden;background:linear-gradient(132deg,#141111 0%,#311915 52%,#d84d25 100%);color:#fff;border:0;min-height:170px;padding:24px 24px 22px;box-shadow:0 22px 48px rgba(54,24,16,.18)}.nature-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.05),transparent 38%)}.nature-hero:after{content:"";position:absolute;right:-48px;bottom:-76px;width:272px;height:272px;border-radius:50%;border:48px solid rgba(255,227,215,.08)}.nature-hero .eyebrow-light{position:relative;z-index:1;font-size:9px;letter-spacing:.14em;font-weight:800;color:#f2cabc}.nature-hero h2{position:relative;z-index:1;margin:8px 0 7px;color:#fff;font-size:26px;letter-spacing:-.03em}.nature-hero p{position:relative;z-index:1;margin:0;color:#f2ddd6;font-size:12px;max-width:640px;line-height:1.55}.nature-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px;position:relative;z-index:1}.nature-chip{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 10px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.12);font-size:11px;font-weight:700}.nature-chip.light{background:#fff4ef;border-color:#f2ddd4;color:#64382b}.nature-chip.muted{color:#726760}.nature-icon{font-size:15px}.sync-note{font-size:10px;color:#f1cab7;margin-top:9px;position:relative;z-index:1}

/* Calendar */
.week-strip{display:grid;grid-template-columns:repeat(7,minmax(125px,1fr));gap:10px;overflow:auto;padding:2px 1px 6px}.day-card{min-width:125px;background:linear-gradient(180deg,#fffdfa,#fff9f6);border:1px solid var(--line);border-radius:18px;padding:14px;min-height:186px;box-shadow:0 10px 24px rgba(33,18,14,.04)}.day-card.today{border-color:#e2a489;box-shadow:0 0 0 2px rgba(216,77,37,.08),0 14px 30px rgba(28,17,12,.08)}.day-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.day-name{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#8c8178;font-weight:800}.day-num{font-family:Manrope,Inter,sans-serif;font-size:21px;font-weight:800;margin-top:2px}.day-weather{text-align:right}.weather-temp{font-weight:800;font-size:12px}.weather-desc{color:var(--muted);font-size:9px;margin-top:2px}.day-nature{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.micro-chip{font-size:8px;font-weight:700;color:#6f554b;background:#fbf2ee;border-radius:999px;padding:4px 6px;white-space:nowrap}.day-jobs{display:grid;gap:5px;margin-top:12px}.calendar-job{border-left:3px solid var(--accent);background:#fff4ee;border-radius:8px;padding:6px 7px;font-size:9px;line-height:1.35}.calendar-job strong{display:block;font-size:10px;color:#41231c}.calendar-more{font-size:9px;color:var(--muted);font-weight:700}

/* Tables */
.table-wrap{overflow:auto;background:linear-gradient(180deg,#fffdfa,#fffaf7);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;min-width:860px}th,td{padding:14px 14px;text-align:left;border-bottom:1px solid #f2ebe7;font-size:12px;vertical-align:middle}th{position:sticky;top:0;z-index:1;color:#8d8078;font-size:9px;text-transform:uppercase;letter-spacing:.09em;background:#fdf8f5;font-weight:800}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fff9f6}.row-title{font-weight:750;color:#2d241f}.subtext{color:var(--muted);font-size:10px;margin-top:3px}.status{display:inline-flex;padding:5px 8px;border-radius:999px;font-weight:760;font-size:9px;background:#f3efee;white-space:nowrap}.status.paid,.status.approved,.status.completed,.status.active{background:#e8f4ea;color:#1b6a3d}.status.pending,.status.scheduled{background:#fff0da;color:#8e600f}.status.overdue,.status.declined{background:#fdeaea;color:#9c2f2f}.status.draft{background:#eceff2;color:#5d6570}.status.cancelled{background:#f2f2f2;color:#777}

/* Forms */
.form-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:10px;font-weight:800;color:#7b6f69;text-transform:uppercase;letter-spacing:.06em}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:13px;padding:11px 12px;background:#fffdfb;color:var(--text);outline:none;transition:.15s ease;box-shadow:0 1px 0 rgba(255,255,255,.75) inset}.field input:focus,.field select:focus,.field textarea:focus{border-color:#e3a58f;background:#fff;box-shadow:0 0 0 3px rgba(216,77,37,.08)}.field textarea{min-height:96px;resize:vertical}.field small{color:var(--muted);line-height:1.35}
.actions{display:flex;gap:6px;flex-wrap:wrap}.small-btn{border:1px solid var(--line);background:#fffdfa;border-radius:11px;padding:7px 10px;font-weight:740;font-size:10px;white-space:nowrap;box-shadow:0 1px 0 rgba(255,255,255,.55) inset;transition:.14s ease}.small-btn:hover{background:#fff6f2;border-color:#e2c7bc;transform:translateY(-1px)}.small-btn.primary{background:var(--accent-4);color:var(--accent-2);border-color:#f1d3c8}.small-btn.danger{color:var(--danger)}.empty{text-align:center;color:var(--muted);padding:36px}

.notice{border:1px solid #eed6cd;background:#fff8f5;border-radius:15px;padding:13px;color:var(--muted);font-size:12px;line-height:1.5}.action-card{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.action-card .count{min-width:44px;height:44px;border-radius:14px;background:#fff0ea;display:grid;place-items:center;font-weight:800;font-size:16px;color:#a43b1d}

/* Chart */
.chart-card{min-height:286px}.bar-chart{height:200px;display:flex;align-items:end;gap:14px;padding-top:18px}.bar-item{flex:1;min-width:0;display:grid;gap:7px;justify-items:center}.bar-pair{height:150px;width:100%;display:flex;align-items:end;justify-content:center;gap:4px}.bar{width:min(28px,43%);border-radius:7px 7px 2px 2px;min-height:2px}.bar.revenue{background:linear-gradient(#e15f39,#ba3d1e)}.bar.expense{background:#dccfca}.bar-label{font-size:9px;color:var(--muted);font-weight:700}.chart-legend{display:flex;gap:18px;color:var(--muted);font-size:10px;margin-top:10px}.legend-dot{width:8px;height:8px;display:inline-block;border-radius:2px;margin-right:5px}.legend-dot.revenue{background:#d84d25}.legend-dot.expense{background:#dccfca}

/* Pricing */
.pricing-result{background:linear-gradient(135deg,#141111 0%,#2d1814 52%,#c84421 100%);color:#fff;border-radius:22px;padding:24px;box-shadow:var(--shadow-lg)}.pricing-result .big{font-family:Manrope,Inter,sans-serif;font-size:42px;font-weight:800;margin-top:8px;letter-spacing:-.045em}.pricing-result .muted{color:#ead0c5}.breakdown{display:grid;gap:8px;margin-top:18px}.breakdown-row{display:flex;justify-content:space-between;color:#f2e0d8;font-size:12px}.pricing-actions{margin-top:18px;display:flex;gap:10px}

/* Message center */
.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.template-card{background:linear-gradient(180deg,#fffdfa,#fff9f6);border:1px solid var(--line);border-radius:18px;padding:17px;box-shadow:var(--shadow)}.template-card h3{margin:0 0 6px;font-size:13px}.template-card p{margin:0 0 14px;color:var(--muted);font-size:11px;line-height:1.5}.message-preview{margin-top:16px;background:#fcf8f6;border:1px solid var(--line);border-radius:15px;padding:14px;white-space:pre-wrap;font-size:12px;line-height:1.5}

/* Detail */
.detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.detail-head h3{margin:0 0 5px;font-size:20px}.detail-meta{color:var(--muted);font-size:11px;line-height:1.55}.detail-stats{margin:18px 0}.detail-block{margin-top:18px}.detail-block h4{margin:0 0 10px;font-size:12px}.nature-history{display:flex;gap:6px;flex-wrap:wrap}.nature-history .micro-chip{font-size:9px}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(12,9,8,.62);display:grid;place-items:center;padding:20px;z-index:1000;backdrop-filter:blur(5px)}.modal-backdrop.hidden{display:none}.modal{width:min(780px,100%);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#fffdfa,#fff8f5);border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.32);padding:22px;border:1px solid rgba(255,255,255,.55)}.modal.wide{width:min(1080px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:12px}.modal-head h3{font-family:Manrope,Inter,sans-serif;margin:0;letter-spacing:-.02em}.close-btn{border:0;background:#f6efeb;width:36px;height:36px;border-radius:12px;font-size:18px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px;flex-wrap:wrap}.divider{height:1px;background:var(--line);margin:18px 0}.toast{position:fixed;right:20px;bottom:20px;background:#1d1412;color:#fff;padding:12px 16px;border-radius:14px;box-shadow:0 16px 44px rgba(0,0,0,.2);z-index:2000;font-size:11px}

/* Weather intelligence */
.weather-intel{margin-top:16px;border:1px solid var(--line);border-radius:22px;padding:18px 20px;background:linear-gradient(180deg,#fffdfa,#fff9f6);box-shadow:var(--shadow);display:grid;gap:14px}.weather-intel.high-intel{background:linear-gradient(135deg,#fff6ef,#fffdfa);border-color:#f1c2a9}.weather-intel.moderate-intel{background:linear-gradient(135deg,#fdf6f1,#fff);border-color:#ecd8bb}.weather-intel.clear-intel{grid-template-columns:auto 1fr auto;align-items:center;background:linear-gradient(135deg,#fdf8f5,#fff);border-color:#eed6cc}.weather-intel.empty-intel{grid-template-columns:1fr auto;align-items:center;background:linear-gradient(135deg,#fcf7f4,#fff)}.intel-kicker{font-size:9px;letter-spacing:.12em;font-weight:800;color:#8b7970}.weather-intel h3{font-family:Manrope,Inter,sans-serif;margin:4px 0 4px;font-size:18px;letter-spacing:-.02em}.weather-intel p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}.intel-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.intel-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#fff0ea;color:#b03b1e;font-size:20px;font-weight:900}.intel-side{display:grid;text-align:right}.intel-side strong{font-size:20px}.intel-side span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.intel-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.intel-stats>div{border:1px solid rgba(95,59,48,.08);background:rgba(255,255,255,.72);border-radius:14px;padding:11px}.intel-stats span{display:block;color:#8b7b73;font-size:8px;text-transform:uppercase;letter-spacing:.08em;font-weight:800}.intel-stats strong{display:block;margin-top:4px;font-size:15px}.next-risk{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;border-top:1px solid rgba(95,59,48,.10);padding-top:12px}.next-risk strong{display:block;font-size:11px}.next-risk span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.risk-badge{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:4px 7px;font-size:8px;font-weight:800;white-space:nowrap}.risk-badge.high{background:#fee8df;color:#a44223}.risk-badge.moderate{background:#fff2d8;color:#8a5c0b}.risk-badge.low{background:#fff2ec;color:#94462f}.risk-badge.unknown{background:#f1eeec;color:#6d635e}.day-card.risk-high{border-color:#e4a678;box-shadow:0 0 0 2px rgba(225,122,61,.06),0 10px 28px rgba(23,44,31,.07)}.day-card.risk-moderate{border-color:#d9c17c}.risk-action-list{display:grid;gap:10px}.risk-action-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:16px;padding:13px;background:#fffdfa}.risk-action-main{display:flex;gap:10px;align-items:flex-start}.risk-action-main strong{display:block;font-size:11px}.risk-action-main span,.risk-action-main small{display:block;color:var(--muted);font-size:9px;margin-top:3px;line-height:1.4}.risk-action-buttons{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}

/* Cloud account chrome */
.cloud-pill{display:inline-flex;align-items:center;gap:7px;padding:8px 10px;border-radius:999px;background:#f5efeb;color:#756861;font-size:11px;font-weight:800;white-space:nowrap;border:1px solid #eadfd8}.cloud-pill::before{content:"";width:7px;height:7px;border-radius:50%;background:#9f8f87}.cloud-pill.success{background:#edf8f0;color:#236840;border-color:#c8e6d0}.cloud-pill.success::before{background:#2f8a55}.cloud-pill.progress{background:#fff8df;color:#79620c;border-color:#eee0aa}.cloud-pill.progress::before{background:#c69b13}.cloud-pill.danger{background:#fff0ef;color:#92362d;border-color:#efd0cb}.cloud-pill.danger::before{background:#c35248}.account-btn{max-width:190px}.account-btn span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:145px}

/* Responsive */
@media(max-width:1240px){.grid-5{grid-template-columns:repeat(3,minmax(0,1fr))}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px){.app-shell{grid-template-columns:1fr}.sidebar{position:sticky;height:auto;z-index:20;padding:11px 14px;gap:10px}.brand-subtitle,.sidebar-footer,.nav-label{display:none}.brand{padding:0}.brand-mark{width:38px;height:38px;border-radius:12px}.brand-mark img{width:28px;height:28px}.nav{display:flex;overflow-x:auto}.nav-item{white-space:nowrap;padding:9px 10px}.topbar{padding:20px 18px 14px}.view{padding:0 18px 26px}.grid-5,.grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.week-strip{grid-template-columns:repeat(7,150px)}.cloud-pill,.account-btn,#signOutBtn{display:none!important}}
@media(max-width:800px){.intel-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.intel-top,.risk-action-row{flex-direction:column;align-items:flex-start}.risk-action-buttons{justify-content:flex-start}.next-risk{grid-template-columns:auto 1fr}.next-risk button{grid-column:1/-1}.weather-intel.clear-intel,.weather-intel.empty-intel{grid-template-columns:1fr}.intel-side{text-align:left}}
@media(max-width:650px){.grid-5,.grid-4,.grid-3,.grid-2,.form-grid,.template-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.topbar{align-items:flex-start;flex-direction:column}.topbar-actions{width:100%}.topbar-actions button{flex:1}.section-title{align-items:flex-start;flex-direction:column}.view{padding:0 13px 24px}.topbar{padding:18px 13px 13px}.nature-hero{padding:20px}.metric-value{font-size:24px}.week-strip{grid-template-columns:repeat(7,142px)}}


/* v0.4.7 · Verified Weather Location */
.location-lock-block{margin-top:2px;padding:15px;border:1px solid var(--line);border-radius:17px;background:linear-gradient(180deg,#fffdfb,#fcf7f4);box-shadow:inset 0 1px 0 rgba(255,255,255,.7)}
.location-lock-block>label{margin-bottom:2px}.location-lock-block>small{display:block;margin-top:10px;color:var(--muted);font-size:10px;line-height:1.5}
.location-status{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-radius:14px;padding:12px 13px;margin:6px 0 12px;border:1px solid var(--line);background:#fff}
.location-status strong{display:block;font-size:11px;margin-bottom:4px}.location-status span:not(.location-badge){display:block;color:var(--muted);font-size:10px;line-height:1.5}
.location-status.verified{background:linear-gradient(135deg,#f0f9f3,#fff);border-color:#cce6d4}.location-status.verified strong{color:#256a43}
.location-status.unverified{background:linear-gradient(135deg,#fff7ed,#fff);border-color:#efd2ad}.location-status.unverified strong{color:#8c5a13}
.location-badge{flex:0 0 auto;display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:850;letter-spacing:.06em;white-space:nowrap}
.location-status.verified .location-badge{background:#def2e5;color:#236940}.location-status.unverified .location-badge{background:#fff0d6;color:#8c5a13}
.location-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}.location-search-row input{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--text);outline:none}.location-search-row input:focus{border-color:#e3a58f;box-shadow:0 0 0 3px rgba(216,77,37,.08)}
.location-results{display:grid;gap:8px;margin-top:10px}.location-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff;transition:.15s ease}.location-result:hover{border-color:#e3b9aa;box-shadow:0 8px 22px rgba(36,20,15,.06)}.location-result strong{display:block;font-size:11px;color:var(--text)}.location-result span{display:block;margin-top:3px;color:var(--muted);font-size:9px;line-height:1.45}
@media(max-width:760px){.location-search-row{grid-template-columns:1fr}.location-search-row .small-btn{width:100%}.location-result{align-items:flex-start;flex-direction:column}.location-result .small-btn{width:100%}.location-status{flex-direction:column}.location-badge{align-self:flex-start}}


/* v0.6.0 · Billing, photo consent & portfolio */
.billing-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #eadfd8;background:#fff9f5;color:#735e55;padding:8px 10px;border-radius:999px;font:800 10px Inter,sans-serif;cursor:pointer;white-space:nowrap}.billing-pill.trial{background:#fff4e8;border-color:#f2c7a9;color:#9a481f}.billing-pill.active{background:#edf8f0;border-color:#c8e6d0;color:#236840}.billing-pill.danger{background:#fff0ef;border-color:#efd0cb;color:#92362d}.billing-pill.preview{background:#f7f2ef;color:#786b65}.billing-pill.warning{background:#fff8df;border-color:#eee0aa;color:#79620c}
.consent-chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:850;white-space:nowrap}.consent-chip.yes{background:#e4f4e9;color:#246840}.consent-chip.no{background:#f4efec;color:#705f58}.consent-chip.neutral{background:#f5f2f0;color:#8a7d76}
.media-permission{display:flex;justify-content:space-between;gap:14px;border-radius:16px;padding:14px 15px;margin:12px 0 16px;border:1px solid var(--line);background:#fff}.media-permission strong,.media-permission small{display:block}.media-permission strong{font-size:12px;margin-top:5px}.media-permission small{font-size:9px;line-height:1.5;margin-top:5px;color:var(--muted)}.media-permission.authorized{background:linear-gradient(135deg,#f0f9f3,#fff);border-color:#cce6d4}.media-permission.authorized strong{color:#256a43}.media-permission.private{background:linear-gradient(135deg,#faf7f5,#fff);border-color:#e4dbd6}
.portfolio-hero{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:26px 28px;border-radius:22px;background:linear-gradient(135deg,#181313,#2d1b17 55%,#7d2e1c);color:#fff;box-shadow:var(--shadow);margin-bottom:18px;overflow:hidden}.portfolio-hero h2{font:800 28px Manrope,Inter,sans-serif;margin:6px 0 8px}.portfolio-hero p{margin:0;color:#e6d7d0;font-size:11px;line-height:1.65;max-width:670px}.portfolio-hero-mark{font-size:58px;color:#e65b34;opacity:.9}.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.portfolio-card{background:#fffdfb;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow)}.portfolio-images{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:#e9e2dd}.portfolio-images figure{margin:0;position:relative;aspect-ratio:4/3;background:#f4efeb;overflow:hidden}.portfolio-images img{width:100%;height:100%;object-fit:cover;display:block}.portfolio-images figure>span{position:absolute;z-index:2;top:9px;left:9px;background:rgba(19,15,14,.78);color:#fff;border-radius:999px;padding:5px 7px;font-size:7px;font-weight:850;letter-spacing:.1em}.portfolio-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.portfolio-copy strong,.portfolio-copy small{display:block}.portfolio-copy strong{font-size:12px}.portfolio-copy small{margin-top:4px;color:var(--muted);font-size:9px}.photo-placeholder{width:100%;height:100%;min-height:120px;display:grid;place-items:center;background:#f5f1ee;color:#94867f;font-size:9px}.photo-upload{padding:15px;border:1px dashed #d9cdc7;border-radius:16px;background:#fffdfb}.job-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.job-photo-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 10px 26px rgba(36,20,15,.05)}.job-photo-card>img{width:100%;height:240px;object-fit:cover;display:block;background:#f2eeeb}.job-photo-meta{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:12px}.job-photo-meta small{display:block;color:var(--muted);font-size:9px;margin-top:5px;line-height:1.4}.photo-type{display:inline-flex;background:#f6efeb;border-radius:999px;padding:4px 7px;font-size:7px;font-weight:850;letter-spacing:.08em}.small-btn:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:1000px){.billing-pill{display:none}.portfolio-grid{grid-template-columns:1fr}}
@media(max-width:650px){.portfolio-hero{grid-template-columns:1fr}.portfolio-hero-mark{display:none}.portfolio-images,.job-photo-grid{grid-template-columns:1fr}.job-photo-meta{flex-direction:column}.job-photo-card>img{height:220px}}


/* QUINTAL v0.7 — Brand Kit + Social Studio */
.brand-kit-grid{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:start;margin-bottom:16px}.brand-logo-panel{border:1px solid var(--line);background:#fff;border-radius:18px;padding:16px}.brand-logo-preview{height:130px;border-radius:14px;background:linear-gradient(135deg,#f7f1ed,#fff);border:1px dashed #d9cbc3;display:grid;place-items:center;overflow:hidden}.brand-logo-preview img{max-width:86%;max-height:86%;object-fit:contain}.brand-logo-placeholder{text-align:center;color:var(--muted);font-size:9px;line-height:1.5;padding:12px}.brand-logo-actions{display:grid;gap:8px;margin-top:10px}.brand-colors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-field{display:grid;grid-template-columns:48px 1fr;gap:10px;align-items:center}.color-field input[type=color]{width:48px;height:43px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff}.brand-note{font-size:9px;color:var(--muted);line-height:1.6}.external-brand-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:15px;background:#191313;color:#fff;margin-top:12px}.external-brand-preview .customer-brand{display:flex;align-items:center;gap:10px}.external-brand-preview img{width:38px;height:38px;object-fit:contain;border-radius:9px;background:#fff}.external-brand-preview .quintal-signature{display:flex;align-items:center;gap:5px;font-size:7px;letter-spacing:.08em;color:#c9bbb4}.external-brand-preview .quintal-signature img{width:17px;height:17px;background:transparent;border-radius:5px}
.social-launch{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.social-studio-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;background:#fff1eb;color:#b84120;font-size:7px;font-weight:850;letter-spacing:.08em}.social-studio-layout{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:20px;align-items:start}.social-controls{display:grid;gap:13px}.social-control-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.social-preview-shell{border-radius:20px;background:#181313;padding:18px;display:grid;place-items:center;min-height:580px;box-shadow:var(--shadow)}.social-preview-shell canvas{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;background:#fff;border-radius:11px;box-shadow:0 18px 50px rgba(0,0,0,.3)}.social-caption-box{white-space:pre-wrap;background:#fff;border:1px solid var(--line);padding:13px;border-radius:12px;font-size:10px;line-height:1.65;min-height:120px}.social-actions{display:flex;gap:8px;flex-wrap:wrap}.social-ai-note{font-size:8px;line-height:1.55;color:var(--muted)}.portfolio-card .social-card-action{margin-top:10px;width:100%}.portfolio-copy{align-items:flex-start}.portfolio-card-actions{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.brand-missing-warning{border:1px solid #f0d4c9;background:#fff6f1;color:#8d442c;border-radius:13px;padding:12px;font-size:9px;line-height:1.55;margin-bottom:14px}
@media(max-width:900px){.brand-kit-grid,.social-studio-layout{grid-template-columns:1fr}.social-preview-shell{min-height:420px}.brand-colors,.social-control-row{grid-template-columns:1fr}}

/* QUINTAL v0.8 — AI Art Director */
.ai-art-director-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border-radius:14px;background:linear-gradient(135deg,#1a1514,#32201b);color:#fff;border:1px solid rgba(255,255,255,.08);box-shadow:0 14px 34px rgba(31,19,14,.10)}
.ai-art-director-card>div{display:grid;gap:4px}.ai-art-director-card strong{font-size:11px}.ai-art-director-card span{font-size:8px;line-height:1.55;color:#d9cbc5;max-width:265px}.ai-art-director-card .small-btn{white-space:nowrap}
.art-director-status{display:flex;align-items:center;gap:7px;padding:8px 10px;border-radius:10px;background:#f8f3ef;border:1px solid #e8ddd7;color:#756a65;font-size:8px;line-height:1.45}.status-dot{width:7px;height:7px;border-radius:50%;flex:0 0 auto;background:#a79c96}.status-dot.ai{background:#e8522c;box-shadow:0 0 0 4px rgba(232,82,44,.10)}.status-dot.local{background:#8d9a91}.smart-count{align-self:center;font-size:7px;color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-weight:700}
.social-preview-shell{background:radial-gradient(circle at 50% 10%,#2a201d,#161212 68%)}
@media(max-width:680px){.ai-art-director-card{align-items:flex-start;flex-direction:column}.ai-art-director-card .small-btn{width:100%}}


/* Balance · v0.9 */
.balance-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:27px 30px;border-radius:24px;background:linear-gradient(132deg,#151111 0%,#2d1a16 55%,#a63a1e 100%);color:#fff;box-shadow:var(--shadow-lg);overflow:hidden;position:relative}.balance-hero:after{content:"";position:absolute;right:-80px;top:-120px;width:300px;height:300px;border-radius:50%;border:54px solid rgba(255,255,255,.045)}.balance-hero>div{position:relative;z-index:1}.balance-hero h2{font:800 29px Manrope,Inter,sans-serif;margin:7px 0 8px;letter-spacing:-.035em}.balance-hero p{margin:0;color:#eadbd5;font-size:11px;line-height:1.6;max-width:700px}.balance-hero-number{text-align:right;min-width:260px}.balance-hero-number span,.balance-hero-number small{display:block;color:#dcc9c1;font-size:9px}.balance-hero-number strong{display:block;font:800 34px Manrope,Inter,sans-serif;margin:7px 0 5px;letter-spacing:-.04em}.balance-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:17px 0}.balance-toolbar>div:first-child{display:flex;align-items:center;gap:9px}.balance-toolbar strong{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.balance-toolbar select,.balance-filters select,.balance-filters input{border:1px solid var(--line);background:#fffdfa;border-radius:11px;padding:8px 10px;color:var(--text);font-size:10px}.balance-toolbar-actions{display:flex;gap:7px;flex-wrap:wrap}.balance-chart-grid{margin-top:16px}.compact-title{margin:0 0 12px!important;align-items:start}.balance-bars{height:220px;display:flex;align-items:end;gap:11px;padding:16px 4px 2px}.balance-bar-item{flex:1;min-width:0;text-align:center}.balance-bar-pair{height:178px;display:flex;justify-content:center;align-items:end;gap:4px}.balance-bar{width:min(29px,42%);border-radius:7px 7px 2px 2px;min-height:2px}.balance-bar.income{background:linear-gradient(#e65d35,#b83c1e)}.balance-bar.out{background:linear-gradient(#d9cec8,#bdb0aa)}.balance-bar-item>span{display:block;margin-top:7px;color:var(--muted);font-size:8px;font-weight:700}.balance-trend{display:block;width:100%;height:232px;overflow:visible}.balance-zero{stroke:#e8ddd7;stroke-width:1;stroke-dasharray:5 5}.balance-line{fill:none;stroke:#d84d25;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.balance-point{fill:#fff;stroke:#d84d25;stroke-width:4}.balance-axis-label{font:700 10px Inter;fill:#8b7d76}.category-bars{display:grid;gap:13px;padding-top:5px}.category-row{display:grid;gap:5px}.category-label{display:flex;justify-content:space-between;gap:12px;font-size:10px}.category-label strong{font-weight:750}.category-label span{color:var(--muted)}.category-track{height:8px;border-radius:999px;background:#f1e9e5;overflow:hidden}.category-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#d94c26,#f08c6d)}.receivable-stack{display:grid;gap:10px}.receivable-stack>div{display:flex;align-items:center;justify-content:space-between;padding:12px 13px;border:1px solid #efe6e1;border-radius:13px;background:#fffdfa}.receivable-stack span{color:var(--muted);font-size:10px}.receivable-stack strong{font:800 16px Manrope,Inter,sans-serif}.balance-filters{display:flex;gap:8px;flex-wrap:wrap}.balance-filters input{min-width:260px}.movement-type{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:800}.movement-type.income{background:#eaf7ee;color:#276c43}.movement-type.expense{background:#fff0eb;color:#a33d22}.movement-amount.income,.good-text{color:#28784b}.movement-amount.expense,.danger-text{color:#a53b2e}.balance-disclaimer{margin-top:17px}.empty.compact{padding:18px}.ai-usage-status{font-size:8px;color:var(--muted);padding:7px 9px;border-radius:10px;background:#f8f3f0;border:1px solid #eee3de}.balance-metrics .card{min-height:132px}
@media(max-width:1100px){.balance-hero{grid-template-columns:1fr}.balance-hero-number{text-align:left}.balance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.balance-chart-grid{grid-template-columns:1fr}}
@media(max-width:700px){.balance-toolbar,.balance-toolbar>div:first-child{align-items:stretch;flex-direction:column}.balance-toolbar-actions{display:grid;grid-template-columns:1fr}.balance-filters{width:100%;display:grid;grid-template-columns:1fr}.balance-filters input{min-width:0;width:100%}.balance-metrics{grid-template-columns:1fr 1fr}.balance-bars{overflow-x:auto}.balance-bar-item{min-width:58px}}


/* QUINTAL v1.0 — Customer Journey */
.journey-kicker{display:inline-flex;border-radius:999px;padding:5px 8px;background:#fff0e9;color:#bd421f;font-size:7px;font-weight:850;letter-spacing:.10em;margin-bottom:7px}.journey-chip{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:800}.journey-chip.off{background:#f1ece9;color:#83756e}.journey-table-cell{min-width:145px;display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center}.journey-table-cell strong{font-size:9px}.journey-table-cell small{grid-column:1/3;color:var(--muted);font-size:8px}.journey-mini-track{height:5px;background:#eee5e0;border-radius:999px;overflow:hidden}.journey-mini-track span,.journey-progress span,.journey-hero-track span,.journey-queue-progress div span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#dd4f27,#f29172)}
.journey-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:16px 17px;border:1px solid #eadbd4;border-radius:17px;background:linear-gradient(135deg,#fff9f6,#fff)}.journey-summary.inactive{background:#fbf8f6}.journey-summary-copy{min-width:0;flex:1}.journey-summary strong,.journey-summary small{display:block}.journey-summary strong{font:800 14px Manrope,Inter,sans-serif;margin:5px 0 3px}.journey-summary small{color:var(--muted);font-size:9px;line-height:1.45}.journey-progress{height:6px;background:#eee4df;border-radius:999px;overflow:hidden;margin-top:10px;max-width:480px}
.journey-hero{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center;border-radius:18px;padding:17px 18px;background:linear-gradient(135deg,#171313,#452118);color:#fff;margin-bottom:14px}.journey-hero>div:first-child span,.journey-hero>div:first-child small{display:block;color:#d7c3bb;font-size:8px}.journey-hero strong{display:block;font:800 26px Manrope,Inter,sans-serif;margin:3px 0}.journey-hero-track{height:8px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden}.journey-list{display:grid;gap:8px}.journey-phase{display:flex;align-items:center;gap:7px;color:#8c776e;font-size:8px;font-weight:850;letter-spacing:.10em;text-transform:uppercase;margin:13px 0 3px}.journey-phase span{width:21px;height:21px;border-radius:7px;display:grid;place-items:center;background:#f6ece7;color:#bc4424}.journey-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #eee4df;border-radius:15px;padding:12px 13px;background:#fff}.journey-step.current{border-color:#e7a48d;background:#fff8f4;box-shadow:0 8px 24px rgba(80,35,20,.06)}.journey-step.done{background:#fbfdfb;border-color:#dfeade}.journey-step.skipped{opacity:.65}.journey-step-marker{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#f3ece8;color:#7a6860;font:800 10px Manrope,Inter,sans-serif}.journey-step.done .journey-step-marker{background:#e7f5eb;color:#28734a}.journey-step.current .journey-step-marker{background:#e0522c;color:#fff;box-shadow:0 8px 18px rgba(224,82,44,.18)}.journey-step-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.journey-step-title strong{font-size:11px}.journey-step-title span{font-size:6px;padding:3px 5px;border-radius:999px;background:#f3eeeb;color:#81736c;text-transform:uppercase;font-weight:850;letter-spacing:.07em}.journey-step-title em{font-size:7px;color:#a76810;font-style:normal;background:#fff4dc;border-radius:999px;padding:3px 6px}.journey-step-copy p{margin:3px 0 0;color:var(--muted);font-size:8px;line-height:1.45}.journey-step-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end}.journey-skip{border:0;background:transparent;color:#9c8e87;font-size:8px;font-weight:750;padding:5px}.journey-locked{color:#a39791;font-size:7px;max-width:120px;text-align:right}.journey-footer{display:flex;justify-content:space-between;gap:10px;margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}
.journey-intro{text-align:center;padding:8px 6px 3px}.journey-intro-icon{width:58px;height:58px;margin:4px auto 13px;border-radius:20px;display:grid;place-items:center;color:#fff;font-size:27px;background:linear-gradient(145deg,#e65c33,#b9391c);box-shadow:0 16px 32px rgba(205,71,35,.20)}.journey-intro h3{font:800 23px Manrope,Inter,sans-serif;letter-spacing:-.035em;margin:0 0 8px}.journey-intro>p{max-width:520px;margin:0 auto;color:var(--muted);font-size:10px;line-height:1.6}.journey-intro-preview{display:flex;justify-content:center;align-items:center;gap:7px;flex-wrap:wrap;margin:18px 0}.journey-intro-preview span{padding:7px 9px;border-radius:10px;background:#f8f1ed;color:#51362d;font-size:8px;font-weight:800}.journey-intro-preview i{font-style:normal;color:#c9b5ac}.journey-intro .modal-actions{justify-content:center}
.journey-queue{display:grid;gap:8px}.journey-queue-row{display:grid;grid-template-columns:38px minmax(0,1fr) 130px auto;gap:12px;align-items:center;padding:12px 14px;background:#fffdfa;border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 22px rgba(38,19,13,.035)}.journey-avatar{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:#f5e8e2;color:#ac3d1e;font:800 13px Manrope,Inter,sans-serif}.journey-queue-copy strong,.journey-queue-copy span,.journey-queue-copy small{display:block}.journey-queue-copy strong{font-size:10px}.journey-queue-copy span{font-size:9px;font-weight:800;color:#bb4525;margin-top:2px}.journey-queue-copy small{font-size:8px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.journey-queue-progress strong{display:block;text-align:right;font-size:8px;margin-bottom:4px}.journey-queue-progress div{height:5px;border-radius:999px;background:#eee5e0;overflow:hidden}.journey-queue-empty{display:flex;align-items:center;justify-content:space-between;gap:18px}.journey-queue-empty strong,.journey-queue-empty small{display:block}.journey-queue-empty strong{font-size:11px;margin:4px 0}.journey-queue-empty small{font-size:8px;color:var(--muted)}
@media(max-width:760px){.journey-step{grid-template-columns:32px 1fr}.journey-step-actions{grid-column:2;justify-content:flex-start}.journey-hero{grid-template-columns:1fr}.journey-queue-row{grid-template-columns:36px 1fr}.journey-queue-progress,.journey-queue-row>.small-btn{grid-column:2}.journey-summary{align-items:flex-start;flex-direction:column}.journey-summary>.small-btn{width:100%}}


/* QUINTAL v1.0.1 — Message Center customer isolation */
.message-customer-context{margin-top:16px;padding:17px 18px;border:1px solid #e8d9d2;border-radius:18px;background:linear-gradient(135deg,#fff9f5,#fff);box-shadow:0 10px 28px rgba(43,22,15,.045)}
.message-customer-context.inactive{background:#fbf8f6}
.message-context-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.message-context-main{display:flex;gap:12px;align-items:center;min-width:0}
.message-context-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(145deg,#f4e3dc,#fff0e9);color:#b63e1e;font:800 14px Manrope,Inter,sans-serif}
.message-context-main strong,.message-context-main small{display:block}
.message-context-main strong{font:800 13px Manrope,Inter,sans-serif;margin:4px 0 3px}
.message-context-main small{color:var(--muted);font-size:9px;line-height:1.45;max-width:670px}
.message-context-score{text-align:right;white-space:nowrap}.message-context-score strong{display:block;font:800 20px Manrope,Inter,sans-serif}.message-context-score span{font-size:8px;color:var(--muted)}
.message-context-progress{height:6px;margin:13px 0 11px;background:#eee4df;border-radius:999px;overflow:hidden}.message-context-progress span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#dd4f27,#f29172)}
.message-phase-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.message-phase-chip{display:flex;justify-content:space-between;gap:7px;padding:8px 9px;border:1px solid #eee4df;border-radius:11px;background:#fffdfa}.message-phase-chip span{font-size:7px;color:#7e7069;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-phase-chip strong{font-size:8px}.message-phase-chip.active{border-color:#e3aa96;background:#fff4ee;color:#a83c1e}
.message-context-actions{display:flex;gap:7px;justify-content:flex-end;margin-top:12px;flex-wrap:wrap}
.message-customer-context.inactive{display:flex;justify-content:space-between;gap:15px;align-items:center}
.message-empty-state{margin-top:18px;padding:16px 18px;border:1px dashed #e4d7d0;border-radius:16px;background:rgba(255,255,255,.58);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.message-empty-state strong{font-size:10px}.message-empty-state span{font-size:9px;color:var(--muted);flex:1;min-width:260px}.message-empty-state.success{border-color:#d8e7dc;background:#f7fcf8}
.message-customer-tag{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff0e9;color:#b54121;font-size:7px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;margin-bottom:5px}
.message-preview-card{border-color:#ead9d1}
@media(max-width:760px){.message-context-head,.message-customer-context.inactive{flex-direction:column}.message-context-score{text-align:left}.message-phase-row{grid-template-columns:1fr 1fr}.message-context-actions{justify-content:flex-start}.message-customer-context.inactive>.small-btn{width:100%}}


/* QUINTAL v1.0.2 — centered message preview + reliable email compose */
.message-output-anchor{display:none}
.message-preview-modal-head{align-items:flex-start}
.message-preview-modal-head p{margin:5px 0 0;color:var(--muted);font-size:9px}
.message-modal-recipient{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:11px 13px;margin-bottom:12px;border:1px solid #ebddd6;border-radius:13px;background:#fffaf7}
.message-modal-recipient span{font-size:8px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:800}
.message-modal-recipient strong{font-size:10px;text-align:right}
.message-preview-modal-body{max-height:48vh;overflow:auto;white-space:pre-wrap;padding:18px 19px;border-radius:16px;background:#fff;border:1px solid #eadbd4;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);font-size:11px;line-height:1.7;color:#302622}
.message-preview-modal-actions{position:sticky;bottom:-22px;margin:16px -22px -22px;padding:14px 22px 18px;background:linear-gradient(180deg,rgba(255,248,245,.65),#fff8f5 35%);border-top:1px solid #eee1db}
.message-preview-modal-actions .primary-btn{min-width:170px}
.message-preview-loading{padding:30px 12px;text-align:center;display:grid;justify-items:center;gap:9px}
.message-preview-loading strong{font:800 17px Manrope,Inter,sans-serif}
.message-preview-loading span{color:var(--muted);font-size:9px;max-width:360px;line-height:1.55}
.message-loading-orb{width:40px;height:40px;border-radius:50%;border:3px solid #f2d9cf;border-top-color:#d84b25;animation:messageSpin .8s linear infinite;margin-bottom:5px}
@keyframes messageSpin{to{transform:rotate(360deg)}}

.email-compose-intro{display:flex;gap:13px;align-items:center;padding:14px 15px;border-radius:16px;background:linear-gradient(135deg,#fff3ed,#fffaf7);border:1px solid #efdcd3}
.email-compose-icon{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:#e6532b;color:#fff;font-size:18px;box-shadow:0 10px 24px rgba(220,75,36,.18)}
.email-compose-intro strong{display:block;font:800 13px Manrope,Inter,sans-serif;margin-bottom:3px}
.email-compose-intro p{margin:0;color:var(--muted);font-size:9px;line-height:1.55}
.email-draft-summary{display:grid;gap:8px;margin:13px 0}.email-draft-summary>div{display:grid;grid-template-columns:70px 1fr;gap:10px;padding:10px 12px;border:1px solid #eee1db;border-radius:12px;background:#fff}.email-draft-summary span{font-size:8px;color:var(--muted);font-weight:800;text-transform:uppercase}.email-draft-summary strong{font-size:9px;overflow-wrap:anywhere}
.email-provider-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}
.email-provider-btn{border:1px solid #e8d9d2;background:#fff;border-radius:15px;padding:15px 12px;text-align:left;cursor:pointer;transition:.15s}.email-provider-btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(42,25,18,.07);border-color:#deb8a8}.email-provider-btn.primary{background:#1d1715;color:#fff;border-color:#1d1715}.email-provider-btn>span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#f5ece8;color:#c34422;font-weight:900;margin-bottom:10px}.email-provider-btn.primary>span{background:rgba(255,255,255,.1);color:#fff}.email-provider-btn strong,.email-provider-btn small{display:block}.email-provider-btn strong{font-size:10px;margin-bottom:3px}.email-provider-btn small{font-size:8px;color:var(--muted);line-height:1.4}.email-provider-btn.primary small{color:#cdbfba}
.email-compose-note{margin:12px 2px 0;color:#92847e;font-size:7.5px;line-height:1.5}
@media(max-width:680px){.email-provider-grid{grid-template-columns:1fr}.message-modal-recipient{align-items:flex-start;flex-direction:column}.message-modal-recipient strong{text-align:left}.message-preview-modal-actions{position:static;margin:16px 0 0;padding:14px 0 0}.message-preview-modal-actions .primary-btn{width:100%}}


/* ==========================================================================
   QUINTAL v1.1.0 — Custom Dashboard + Mobile Workspace
   ========================================================================== */
html,body{max-width:100%;overflow-x:hidden}
.main,.view,.grid,.card,.section-title,.table-wrap{min-width:0;max-width:100%}

/* Mobile application bar / drawer */
.mobile-appbar,.mobile-sidebar-backdrop,.mobile-sidebar-close,.mobile-sidebar-account{display:none}

.dashboard-layout-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 14px;padding:13px 15px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.64);backdrop-filter:blur(10px)}
.dashboard-layout-toolbar>div{min-width:0}.dashboard-layout-toolbar strong,.dashboard-layout-toolbar small{display:block}.dashboard-layout-toolbar strong{font:800 13px Manrope,Inter,sans-serif;margin-top:4px}.dashboard-layout-toolbar small{font-size:9px;color:var(--muted);margin-top:3px;line-height:1.45}
.dashboard-sections{display:grid;gap:0}.dashboard-section{min-width:0}.dashboard-section+.dashboard-section{margin-top:16px}.dashboard-section .section-title:first-child{margin-top:0}
.dashboard-section.customizing{position:relative;border:1px dashed #dcb7a8;border-radius:22px;background:rgba(255,251,248,.64);padding:11px;transition:.15s ease}
.dashboard-section.customizing+.dashboard-section.customizing{margin-top:12px}
.dashboard-section.customizing.dragging{opacity:.5;transform:scale(.995)}
.dashboard-section.customizing.drag-target-before{box-shadow:0 -4px 0 #e0522b}.dashboard-section.customizing.drag-target-after{box-shadow:0 4px 0 #e0522b}
.dashboard-section-control{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:-2px 0 10px;padding:7px 8px;border-radius:12px;background:#fff3ed;border:1px solid #f0d9cf}
.dashboard-drag-handle{display:flex;align-items:center;gap:8px;min-width:0;cursor:grab;color:#4c332b}.dashboard-drag-handle:active{cursor:grabbing}.dashboard-drag-handle>span{font-weight:900;color:#b74826;letter-spacing:-2px}.dashboard-drag-handle i{font-style:normal;width:24px;height:24px;border-radius:8px;display:grid;place-items:center;background:#fff;color:#c34925}.dashboard-drag-handle strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-section-buttons{display:flex;gap:5px}.dashboard-control-btn{border:1px solid #e7cec3;background:#fff;color:#51372e;border-radius:9px;padding:6px 8px;font-size:8px;font-weight:850}.dashboard-control-btn:hover{border-color:#dca28c}.dashboard-control-btn.hide{color:#a84025}
.dashboard-customize-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px;padding:15px 16px;border-radius:19px;background:linear-gradient(135deg,#1b1514,#33201b);color:#fff;box-shadow:0 14px 36px rgba(37,21,16,.12)}
.dashboard-customize-panel>div:first-child strong,.dashboard-customize-panel>div:first-child small{display:block}.dashboard-customize-panel>div:first-child strong{font:800 13px Manrope,Inter,sans-serif;margin:4px 0}.dashboard-customize-panel>div:first-child small{color:#d1c1bb;font-size:8.5px;line-height:1.5}.dashboard-customize-panel .metric-label{color:#e9a48c}
.dashboard-customize-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.dashboard-hidden-list{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.dashboard-hidden-list>span{font-size:7px;color:#bca8a0;text-transform:uppercase;font-weight:800;letter-spacing:.08em}.dashboard-hidden-list button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;border-radius:999px;padding:6px 8px;font-size:7px;font-weight:800;cursor:pointer}
.dashboard-customize-panel .small-btn:not(.primary){background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:#fff}

/* Mobile tables become readable cards instead of forcing page-width overflow. */
@media(max-width:720px){
  .table-wrap{overflow:visible;background:transparent;border:0;box-shadow:none}
  .table-wrap table{min-width:0;width:100%;display:block}
  .table-wrap thead{display:none}
  .table-wrap tbody{display:grid;gap:10px}
  .table-wrap tr{display:grid;width:100%;border:1px solid var(--line);border-radius:16px;background:#fffdfb;box-shadow:0 8px 22px rgba(31,18,13,.045);overflow:hidden}
  .table-wrap td{display:grid;grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:10px;align-items:start;width:100%;padding:10px 12px;border-bottom:1px solid #f1e8e3;font-size:10px;overflow-wrap:anywhere}
  .table-wrap td:last-child{border-bottom:0}
  .table-wrap td::before{content:attr(data-label);font-size:7px;letter-spacing:.07em;text-transform:uppercase;font-weight:850;color:#94847c}
}

/* True off-canvas mobile navigation */
@media(max-width:1000px){
  .mobile-appbar{position:sticky;top:0;z-index:70;height:58px;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;background:rgba(16,14,14,.96);color:#fff;border-bottom:1px solid rgba(255,255,255,.07);backdrop-filter:blur(14px)}
  .mobile-menu-btn{width:40px;height:40px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.05);display:grid;place-content:center;gap:4px;padding:0}.mobile-menu-btn span{display:block;width:17px;height:2px;border-radius:2px;background:#fff}
  .mobile-appbar-brand{display:flex;align-items:center;gap:8px;min-width:0}.mobile-appbar-brand img{width:30px;height:30px;object-fit:contain}.mobile-appbar-brand>div{text-align:right;min-width:0}.mobile-appbar-brand strong,.mobile-appbar-brand small{display:block}.mobile-appbar-brand strong{font:800 12px Manrope,Inter,sans-serif;letter-spacing:.03em}.mobile-appbar-brand small{font-size:8px;color:#c7b8b1;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-sidebar-backdrop{display:block;position:fixed;inset:0;z-index:75;background:rgba(7,6,6,.55);opacity:0;visibility:hidden;transition:.2s ease;backdrop-filter:blur(2px)}.mobile-sidebar-backdrop.show{opacity:1;visibility:visible}
  body.mobile-nav-open{overflow:hidden}
  .app-shell{display:block;min-height:calc(100vh - 58px)}
  .sidebar{position:fixed!important;top:0!important;left:0;bottom:0;width:min(88vw,330px);height:100dvh!important;z-index:80!important;padding:19px 16px 15px!important;display:flex!important;flex-direction:column;gap:15px!important;overflow:hidden!important;transform:translateX(-105%);transition:transform .22s cubic-bezier(.2,.8,.2,1);box-shadow:24px 0 70px rgba(0,0,0,.38)}
  .sidebar.mobile-open{transform:translateX(0)}
  .sidebar .brand{padding:0 2px 10px!important}.sidebar .brand-subtitle{display:block!important;font-size:8px}.sidebar .brand-name{font-size:17px}.sidebar .brand-mark{width:42px;height:42px}.sidebar .brand-mark img{width:31px;height:31px}
  .mobile-sidebar-close{margin-left:auto;display:grid!important;width:35px;height:35px;border:1px solid rgba(255,255,255,.08);border-radius:11px;background:rgba(255,255,255,.05);place-items:center;color:#fff;font-size:20px}
  .sidebar .nav-label{display:block!important;padding:0 5px;color:#9c847c}
  .sidebar .nav{display:grid!important;gap:4px!important;overflow-y:auto!important;overflow-x:hidden!important;padding-right:3px;min-height:0;flex:1}.sidebar .nav-item{white-space:normal!important;width:100%;padding:10px 11px!important}.sidebar .nav-item:hover{transform:none}
  .sidebar-footer{display:grid!important;gap:9px;margin-top:0!important;flex:0 0 auto}.sidebar-footer .mini-card{padding:11px;border-radius:14px}.sidebar-footer .mini-card strong{font-size:10px}.sidebar-footer .mini-muted{font-size:8px}
  .mobile-sidebar-account{display:grid!important;gap:7px;padding-top:2px}
  .mobile-profile-btn{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.055);color:#fff;border-radius:15px;padding:10px;text-align:left}.mobile-account-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#ef5c32,#a83219);font:800 13px Manrope,Inter,sans-serif;box-shadow:0 9px 20px rgba(0,0,0,.18)}.mobile-account-copy{min-width:0}.mobile-account-copy small,.mobile-account-copy strong,.mobile-account-copy em{display:block}.mobile-account-copy small{font-size:6px;letter-spacing:.12em;color:#b99f96;font-style:normal;font-weight:850}.mobile-account-copy strong{font-size:9px;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-account-copy em{font-size:7.5px;color:#a8938b;font-style:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-account-chevron{font-size:20px;color:#9c8279}
  .mobile-logout-btn{width:100%;border:1px solid rgba(255,108,76,.17);background:rgba(216,77,37,.08);color:#ffd9cc;border-radius:13px;padding:10px 12px;text-align:left;font-size:9px;font-weight:800}.mobile-logout-btn span{margin-right:7px}
  .main{width:100%;max-width:100%;overflow:hidden}
  .topbar{padding:18px 16px 12px!important;gap:12px}.topbar h1{font-size:29px}.eyebrow{font-size:8px}.top-date{font-size:10px}
  .topbar-actions{width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topbar-actions .ghost-btn,.topbar-actions .primary-btn{width:100%;min-width:0;padding:9px 8px;font-size:9px;white-space:normal}.topbar-actions #accountBtn,.topbar-actions #signOutBtn,.topbar-actions #backupBtn,.topbar-actions #billingStatus,.topbar-actions .cloud-pill{display:none!important}
  .view{width:100%;max-width:100%;padding:0 16px 28px!important;overflow:visible}
  .grid-5,.grid-4,.grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .week-strip{grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.day-card{min-width:0}
  .dashboard-customize-panel{align-items:flex-start;flex-direction:column}.dashboard-customize-actions{justify-content:flex-start;width:100%}
}

@media(max-width:650px){
  .topbar{align-items:flex-start;flex-direction:column!important}
  .view{padding-left:12px!important;padding-right:12px!important}
  .grid-5,.grid-4,.grid-3,.grid-2,.form-grid,.template-grid{grid-template-columns:1fr!important}
  .week-strip{grid-template-columns:1fr!important}.day-card{min-height:auto}
  .dashboard-layout-toolbar{align-items:flex-start;flex-direction:column}.dashboard-layout-toolbar>button{width:100%}
  .dashboard-section-control{align-items:flex-start;flex-direction:column}.dashboard-section-buttons{width:100%}.dashboard-section-buttons .dashboard-control-btn{flex:1}
  .dashboard-customize-panel .dashboard-customize-actions>.small-btn{flex:1}
  .nature-summary{display:grid;grid-template-columns:1fr}.nature-chip{justify-content:center}
  .modal-backdrop{padding:8px}.modal{width:100%;max-height:94dvh;border-radius:19px;padding:16px}.modal.wide{width:100%}.modal-head{align-items:flex-start}
  .toast{left:12px;right:12px;bottom:12px;text-align:center}
  .balance-bars{overflow:visible!important}.balance-bar-item{min-width:0!important}
  .social-preview-shell{padding:10px;min-height:300px}.social-preview-shell canvas{max-width:100%;height:auto}
  input,select,textarea{min-width:0;max-width:100%}
}

/* Extremely narrow phones */
@media(max-width:390px){
  .topbar-actions{grid-template-columns:1fr}.topbar h1{font-size:26px}
  .mobile-appbar-brand small{max-width:130px}
  .metric-value{font-size:22px}
  .card{padding:16px}
}


/* ==========================================================================
   QUINTAL v1.1.1 — Mobile overflow containment + single Profile entry
   ========================================================================== */

/* Every content layer must be allowed to shrink. */
.app-shell,.main,.view,.dashboard-sections,.dashboard-section,
.dashboard-section-content,.journey-queue,.journey-queue-row,
.journey-queue-main,.journey-queue-copy,.journey-queue-progress,
.section-title,.section-title>div,.card,.grid,.topbar,.topbar-copy{
  min-width:0;
  max-width:100%;
}

img,svg,canvas,video{max-width:100%}

/* Relationship Queue desktop structure remains compact but shrink-safe. */
.journey-queue-row{
  width:100%;
  grid-template-columns:minmax(0,1fr) minmax(100px,130px) auto;
}
.journey-queue-main{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  align-items:center;
  min-width:0;
}
.journey-queue-copy{min-width:0}
.journey-queue-copy strong,
.journey-queue-copy span,
.journey-queue-copy small{
  max-width:100%;
  overflow-wrap:anywhere;
}
.journey-continue-btn{max-width:100%}

/* Sidebar now has one settings/account entry: Profile. */
.sidebar-footer{margin-top:auto}
.sidebar-footer:empty{display:none}

/* Mobile hard containment: nothing may establish a page wider than viewport. */
@media(max-width:1000px){
  html,body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
  }
  .app-shell,.main,.view{
    width:100%;
    max-width:100vw;
  }
  .view{
    overflow-x:clip!important;
  }
  .view>*,
  .dashboard-sections>*,
  .dashboard-section-content>*{
    width:auto;
    max-width:100%;
  }
  .sidebar-footer{
    margin-top:auto!important;
  }
}

/* Phones: queue becomes a genuinely vertical card, not a compressed desktop grid. */
@media(max-width:760px){
  .journey-queue{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
  .journey-queue-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    gap:13px!important;
    padding:14px!important;
    overflow:hidden;
  }
  .journey-queue-main{
    width:100%;
    grid-template-columns:42px minmax(0,1fr);
    gap:11px;
    align-items:start;
  }
  .journey-avatar{
    width:42px;
    height:42px;
  }
  .journey-queue-copy small{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
    line-height:1.45;
  }
  .journey-queue-progress,
  .journey-queue-row>.journey-continue-btn{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  .journey-queue-progress strong{text-align:left}
  .journey-continue-btn{
    display:block;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  /* Section titles cannot use long intrinsic widths. */
  .section-title{
    align-items:flex-start;
    flex-direction:column;
  }
  .section-title>.small-btn,
  .section-title>.primary-btn{
    max-width:100%;
  }

  /* Prevent long generated/customer strings from widening cards. */
  .row-title,.subtext,.metric-note,.message-preview,
  .customer-summary strong,.customer-summary span,
  td,strong,small,p{
    overflow-wrap:anywhere;
    word-break:normal;
  }
}

@media(max-width:420px){
  .view{padding-left:10px!important;padding-right:10px!important}
  .journey-queue-row{padding:13px!important;border-radius:15px}
  .dashboard-layout-toolbar{padding:13px}
  .mobile-profile-btn,.mobile-logout-btn{max-width:100%}
}


/* ==========================================================================
   QUINTAL v1.1.2 — Profile branding + customer-facing terminology
   ========================================================================== */
.mobile-account-avatar.has-logo{
  padding:0;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.mobile-account-avatar.has-logo img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#fff;
}

.profile-modal-head h3{margin-bottom:3px}
.profile-identity-card{
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  gap:14px;
  align-items:center;
  padding:15px;
  margin-bottom:13px;
  border:1px solid #e9ddd7;
  border-radius:18px;
  background:linear-gradient(135deg,#fffaf7,#fff);
}
.profile-modal-avatar{
  width:58px;
  height:58px;
  border-radius:17px;
  overflow:hidden;
  display:grid;
  place-items:center;
  background:#f3e8e3;
  border:1px solid #eadbd4;
}
.profile-company-logo{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  background:#fff;
}
.profile-company-initial{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg,#ee5a31,#b53c20);
  color:#fff;
  font:800 19px Manrope,Inter,sans-serif;
}
.profile-identity-copy{min-width:0}
.profile-identity-copy strong,.profile-identity-copy small{display:block}
.profile-identity-copy strong{
  margin:4px 0 3px;
  font:800 15px Manrope,Inter,sans-serif;
  overflow-wrap:anywhere;
}
.profile-identity-copy small{
  color:var(--muted);
  font-size:9px;
  overflow-wrap:anywhere;
}
.profile-status-grid{margin-bottom:13px}
.profile-status-card{
  display:grid;
  grid-template-columns:35px minmax(0,1fr);
  gap:11px;
  align-items:start;
  padding:14px;
}
.profile-status-icon{
  width:35px;
  height:35px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#fff1eb;
  color:#c64a27;
  font-weight:900;
}
.profile-status-card .row-title{margin:4px 0 3px}
.profile-settings-list{
  display:grid;
  gap:8px;
  margin-top:4px;
}
.profile-settings-list>button{
  width:100%;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  border:1px solid #eaded8;
  border-radius:14px;
  background:#fff;
  padding:11px 12px;
  text-align:left;
  cursor:pointer;
  color:var(--text);
}
.profile-settings-list>button:hover{
  border-color:#ddb7a8;
  background:#fffaf7;
}
.profile-settings-symbol{
  width:36px;
  height:36px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#f7eeea;
  color:#bc4827;
  font-weight:900;
}
.profile-settings-list strong,.profile-settings-list small{display:block}
.profile-settings-list strong{font-size:10px;margin-bottom:2px}
.profile-settings-list small{font-size:8px;color:var(--muted);line-height:1.4}
.profile-settings-list b{font-size:19px;color:#a38e85}
.profile-modal-actions{margin-top:15px}

@media(max-width:600px){
  .profile-identity-card{
    grid-template-columns:52px minmax(0,1fr);
  }
  .profile-identity-card>.small-btn{
    grid-column:1/-1;
    width:100%;
  }
  .profile-modal-avatar{width:52px;height:52px;border-radius:15px}
  .profile-status-grid{grid-template-columns:1fr!important}
}


/* ==========================================================================
   QUINTAL v1.1.3 — Desktop Profile in Sidebar
   ========================================================================== */
@media(min-width:1001px){
  /* Same account hierarchy as mobile: modules -> Profile -> Sign out */
  .mobile-sidebar-account{
    display:grid!important;
    gap:8px;
    padding-top:2px;
  }

  .mobile-profile-btn{
    width:100%;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:11px;
    align-items:center;
    border:1px solid rgba(255,255,255,.09);
    background:linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.045));
    color:#fff;
    border-radius:16px;
    padding:11px;
    text-align:left;
    transition:.16s ease;
  }
  .mobile-profile-btn:hover{
    background:rgba(255,255,255,.085);
    border-color:rgba(255,255,255,.14);
    transform:translateY(-1px);
  }

  .mobile-account-avatar{
    width:42px;
    height:42px;
    border-radius:13px;
    display:grid;
    place-items:center;
    background:linear-gradient(145deg,#ef5c32,#a83219);
    color:#fff;
    font:800 14px Manrope,Inter,sans-serif;
    box-shadow:0 9px 20px rgba(0,0,0,.18);
    overflow:hidden;
  }
  .mobile-account-avatar.has-logo{
    padding:0;
    background:#fff;
  }
  .mobile-account-avatar.has-logo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    background:#fff;
  }

  .mobile-account-copy{min-width:0}
  .mobile-account-copy small,
  .mobile-account-copy strong,
  .mobile-account-copy em{display:block}
  .mobile-account-copy small{
    font-size:7px;
    letter-spacing:.12em;
    color:#b99f96;
    font-style:normal;
    font-weight:850;
  }
  .mobile-account-copy strong{
    font-size:10px;
    margin:2px 0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mobile-account-copy em{
    font-size:8px;
    color:#a8938b;
    font-style:normal;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .mobile-account-chevron{
    font-size:20px;
    color:#9c8279;
  }

  .mobile-logout-btn{
    width:100%;
    border:1px solid rgba(255,108,76,.17);
    background:rgba(216,77,37,.08);
    color:#ffd9cc;
    border-radius:14px;
    padding:10px 12px;
    text-align:left;
    font-size:9px;
    font-weight:800;
    transition:.16s ease;
  }
  .mobile-logout-btn:hover{
    background:rgba(216,77,37,.14);
    border-color:rgba(255,108,76,.25);
  }
  .mobile-logout-btn span{margin-right:7px}

  /* Avoid duplicate account controls now that Profile lives in the sidebar. */
  .topbar-actions #accountBtn,
  .topbar-actions #signOutBtn{
    display:none!important;
  }
}

/* QUINTAL v1.2 — Smart Scheduling */
.scheduling-profile-block{border:1px solid #eadbd4;background:linear-gradient(135deg,#fff9f5,#fff);border-radius:17px;padding:15px!important}.profile-block-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px}.profile-block-head label{font-size:10px;font-weight:850}.profile-block-head small{display:block;margin-top:3px;color:var(--muted)}.scheduling-hours-grid{margin-top:12px}.quote-scheduling-box{padding:14px;border:1px solid #eadbd4;border-radius:15px;background:#fffaf7}.quote-scheduling-box>.form-grid{margin-top:9px}.scheduling-mode-help{margin-top:10px;padding:10px 12px;border-radius:11px;background:#fff3ed}.scheduling-mode-help strong,.scheduling-mode-help small{display:block}.scheduling-mode-help strong{font-size:9px}.scheduling-mode-help small{font-size:8px;color:var(--muted);margin-top:3px;line-height:1.45}.schedule-badge{display:inline-grid;gap:2px;padding:6px 8px;border:1px solid #eadbd4;border-radius:10px;background:#fffaf7}.schedule-badge strong{font-size:8px;color:#b64524}.schedule-badge span{font-size:7px;color:var(--muted)}.schedule-badge.confirmed{background:#edf8f0;border-color:#c8e2cf}.schedule-badge.confirmed strong{color:#267144}[data-scheduling-extra].hidden{display:none!important}
@media(max-width:650px){.scheduling-profile-block .form-grid{grid-template-columns:1fr!important}}

/* QUINTAL v1.2.1 — Smart Scheduling guardrails */
.scheduling-guard-card{margin-top:12px;padding:16px;border:1px solid #ebd5cc;border-radius:16px;background:linear-gradient(135deg,#fff4ef,#fffaf7)}
.scheduling-guard-card>strong{display:block;font:800 12px Manrope,Inter,sans-serif;margin-bottom:8px}
.scheduling-guard-card ul{margin:0;padding-left:19px;color:#65534c}
.scheduling-guard-card li{margin:7px 0;font-size:9px;line-height:1.45}


/* QUINTAL v1.2.2 — searchable base + property-level weather */
.property-location-block,.scheduling-profile-block{
  border:1px solid #eadbd4;
  border-radius:17px;
  padding:15px!important;
  background:linear-gradient(135deg,#fffaf7,#fff);
}
.property-location-block>small,.scheduling-profile-block>small{
  display:block;margin-top:9px;color:var(--muted);font-size:8px;line-height:1.5
}
.location-results{display:grid;gap:7px;margin-top:9px}
.location-result-card{
  width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 12px;
  align-items:center;border:1px solid #e7d9d2;background:#fff;border-radius:12px;padding:10px 12px;
  text-align:left;cursor:pointer;color:var(--text)
}
.location-result-card:hover{border-color:#dfa994;background:#fff7f3}
.location-result-card strong{font-size:9px;overflow-wrap:anywhere}
.location-result-card span{font-size:7px;color:var(--muted)}
.location-result-card em{grid-column:2;grid-row:1/3;font-size:7px;font-style:normal;font-weight:850;color:#c44826}
@media(max-width:650px){
  .location-result-card{grid-template-columns:1fr}
  .location-result-card em{grid-column:auto;grid-row:auto}
}

/* QUINTAL v1.2.3 — live scheduling availability diagnostics */
.availability-cell{display:grid;gap:3px;min-width:155px;max-width:270px}
.availability-cell strong{font-size:8px}
.availability-cell span{font-size:7px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.availability-cell button{justify-self:start;margin-top:3px;border:0;background:transparent;color:#b84425;padding:0;font-size:7px;font-weight:850;cursor:pointer}
.availability-cell.good strong{color:#247043}
.availability-cell.blocked strong{color:#a44028}
@media(max-width:720px){.availability-cell{min-width:0;max-width:100%}}

/* QUINTAL v1.2.4 — contextual scheduling repair */
.scheduling-blocking-jobs{display:grid;gap:7px;margin-top:12px}
.scheduling-blocking-jobs>.metric-label{margin:0 2px 2px}
.blocking-job-card{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  border:1px solid #eadbd4;background:#fff;border-radius:13px;padding:11px 12px;
  text-align:left;color:var(--text);cursor:pointer
}
.blocking-job-card:hover{border-color:#dca28d;background:#fff8f4}
.blocking-job-card span{min-width:0}
.blocking-job-card strong,.blocking-job-card small{display:block}
.blocking-job-card strong{font-size:9px}
.blocking-job-card small{margin-top:3px;color:var(--muted);font-size:8px;overflow-wrap:anywhere}
.blocking-job-card em{font-size:8px;font-style:normal;font-weight:850;color:#bf4725;white-space:nowrap}
@media(max-width:600px){.blocking-job-card{align-items:flex-start;flex-direction:column}.blocking-job-card em{white-space:normal}}


/* ==========================================================================
   QUINTAL v1.2.5 — Customer Property Weather
   ========================================================================== */
.property-weather-preview{
  margin-top:10px;padding:12px 13px;border:1px solid #eadfd9;border-radius:13px;
  background:#fff;display:grid;gap:6px
}
.property-weather-preview>strong{font-size:9px}
.property-weather-preview>span{font-size:8px;color:var(--muted)}
.property-weather-preview.ready{background:linear-gradient(135deg,#f5faf6,#fff);border-color:#d7e7da}
.property-weather-preview.loading{background:#fff9f5}
.property-weather-preview.error{background:#fff4f1;border-color:#efcbc1}
.property-weather-preview-top{display:flex;align-items:center;gap:10px}
.property-weather-preview-top>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eef7f0;font-size:19px}
.property-weather-preview-top strong,.property-weather-preview-top small{display:block}
.property-weather-preview-top strong{font-size:10px}
.property-weather-preview-top small{margin-top:3px;color:var(--muted);font-size:8px}
.property-weather-preview-location{padding-top:7px;border-top:1px solid #eef0ec;color:#718074;font-size:7.5px;overflow-wrap:anywhere}

.customer-property-cell{display:grid;gap:4px;min-width:170px}
.customer-property-cell strong{font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.property-verified,.property-unverified{justify-self:start;font-size:7px;font-weight:800;border-radius:999px;padding:4px 6px}
.property-verified{background:#edf8f0;color:#297448}
.property-unverified{background:#f5efec;color:#8c756b}

.customer-weather-card,.customer-weather-state{
  min-width:175px;max-width:240px;border:1px solid #e9ddd7;border-radius:13px;padding:10px;background:#fff
}
.customer-weather-main{display:flex;align-items:center;gap:9px}
.customer-weather-icon{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:#f4f1ee;font-size:17px}
.customer-weather-main strong,.customer-weather-main span{display:block}
.customer-weather-main strong{font-size:9px}
.customer-weather-main span{font-size:7.5px;color:var(--muted);margin-top:2px}
.customer-weather-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;padding-top:7px;border-top:1px solid #f0e9e5}
.customer-weather-foot button{border:0;background:transparent;color:#b94827;font-size:12px;font-weight:900;cursor:pointer}
.customer-weather-card.low{background:linear-gradient(135deg,#f6fbf7,#fff);border-color:#d8e8dc}
.customer-weather-card.moderate{background:linear-gradient(135deg,#fffaf0,#fff);border-color:#ebddba}
.customer-weather-card.high{background:linear-gradient(135deg,#fff3ef,#fff);border-color:#efcbbf}
.customer-weather-state{display:grid;gap:4px}
.customer-weather-state strong{font-size:8.5px}
.customer-weather-state span{font-size:7.5px;color:var(--muted);line-height:1.4}
.customer-weather-state button{justify-self:start;margin-top:4px;border:0;background:transparent;padding:0;color:#b94727;font-size:7px;font-weight:850;cursor:pointer}
.customer-weather-state.unverified{background:#faf7f5}
.customer-weather-state.unsynced{background:#fffaf5}

.customer-weather-detail{margin:0 0 16px;padding:15px;border:1px solid #e9ddd7;border-radius:18px;background:linear-gradient(135deg,#fffaf7,#fff)}
.customer-weather-detail .customer-weather-card,.customer-weather-detail .customer-weather-state{margin-top:12px;max-width:none;width:100%}

@media(max-width:720px){
  .customer-property-cell,.customer-weather-card,.customer-weather-state{min-width:0;max-width:100%;width:100%}
}


/* ==========================================================================
   QUINTAL v1.3.0 — UX Consolidation
   ========================================================================== */

/* Navigation hierarchy */
.nav-group-label{margin-top:8px!important}
.nav .nav-label{padding:8px 9px 4px!important;font-size:7px!important;letter-spacing:.12em!important}
@media(min-width:1001px){
  .topbar-actions #billingStatus,
  .topbar-actions .cloud-pill,
  .topbar-actions #syncWeatherBtn,
  .topbar-actions #backupBtn,
  .topbar-actions #accountBtn,
  .topbar-actions #signOutBtn{display:none!important}
}
.global-search-trigger{min-width:92px}

/* Setup */
.workspace-setup{margin-bottom:16px;padding:17px 18px;border:1px solid #ead8cf;border-radius:20px;background:linear-gradient(135deg,#fff7f1,#fff);box-shadow:0 12px 32px rgba(57,29,19,.055)}
.workspace-setup-head{display:flex;justify-content:space-between;gap:20px;align-items:center}
.workspace-setup-head strong,.workspace-setup-head small{display:block}.workspace-setup-head strong{font:800 15px Manrope,Inter,sans-serif;margin:4px 0}.workspace-setup-head small{font-size:9px;color:var(--muted)}
.setup-progress-ring{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#211917;color:#fff;font:800 11px Manrope,Inter,sans-serif}
.setup-progress{height:6px;background:#efe4de;border-radius:999px;overflow:hidden;margin:13px 0}.setup-progress span{display:block;height:100%;background:linear-gradient(90deg,#de4d27,#f28a66);border-radius:999px}
.setup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.setup-steps button{border:1px solid #eaded8;background:#fff;border-radius:11px;padding:9px 10px;text-align:left;display:flex;gap:7px;align-items:center;color:#594940;font-size:8px;font-weight:750}.setup-steps button.done{background:#f6faf7;border-color:#dce8df;color:#4f6b59}.setup-steps i{font-style:normal;font-weight:900;color:#cc4927}.setup-steps .done i{color:#3c8456}.setup-next-btn{margin-top:11px}

/* Command center */
.command-center{margin-bottom:16px;padding:16px;border:1px solid #e8dcd6;border-radius:20px;background:#fffdfa}
.command-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.command-item{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #e9dfda;background:#fff;border-radius:14px;padding:11px;text-align:left;color:var(--text)}.command-item:hover{border-color:#dca48f;transform:translateY(-1px)}.command-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#f6eeea}.command-copy{min-width:0}.command-copy strong,.command-copy small{display:block}.command-copy strong{font-size:9px}.command-copy small{font-size:7.5px;color:var(--muted);margin-top:2px;line-height:1.4;overflow-wrap:anywhere}.command-item em{font-style:normal;font-size:7px;font-weight:850;color:#bc4424;white-space:nowrap}.command-item.danger .command-icon{background:#fff0ec;color:#b53c22}.command-item.warn .command-icon{background:#fff8e9;color:#a56c18}.command-item.good .command-icon{background:#eef8f1;color:#34784a}.command-item.info .command-icon{background:#f1f2f8;color:#515d89}.command-clear{padding:13px;border-radius:12px;background:#f3faf5;color:#3d7450;font-size:9px;font-weight:750}

/* compact customize */
.compact-dashboard-toolbar{padding:10px 12px!important;margin-bottom:12px!important}.compact-dashboard-toolbar strong{font-size:10px!important}.compact-dashboard-toolbar small{font-size:8px!important}

/* safe/read-only states */
.readonly-state{padding:10px 11px;border-radius:11px;background:#f5f1ef;border:1px solid #e8ddd7;font-size:9px;font-weight:750}.readonly-state.success{background:#f0f8f2;border-color:#d4e7d9;color:#33714a}
.completion-review{display:grid;gap:9px}.completion-review>div{display:grid;grid-template-columns:31px minmax(0,1fr);gap:10px;padding:11px;border:1px solid #eaded8;border-radius:13px;background:#fff}.completion-review>div>span{grid-row:1/3;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:#eff8f2;color:#347c4d;font-weight:900}.completion-review strong,.completion-review small{display:block}.completion-review strong{font-size:9px}.completion-review small{font-size:8px;color:var(--muted);margin-top:2px}

/* quote helper */
.quote-pricing-helper{border:1px solid #e8ddd7;border-radius:15px;padding:13px!important;background:#fff}.pricing-helper-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.pricing-helper-head label,.pricing-helper-head small{display:block}.pricing-helper-head small{font-size:8px;color:var(--muted);margin-top:2px}.quote-pricing-body{margin-top:12px;padding-top:12px;border-top:1px solid #eee5e1}.quote-pricing-result{display:grid;gap:2px;margin:8px 0 10px;padding:10px;border-radius:11px;background:#1d1715;color:#fff}.quote-pricing-result strong{font-size:16px}.quote-pricing-result span{font-size:8px;color:#cdbfba}

/* Messages */
.recommended-message-card{margin:16px 0;padding:16px;border:1px solid #e8d8d1;border-radius:18px;background:linear-gradient(135deg,#fff3ed,#fff);display:flex;align-items:center;justify-content:space-between;gap:18px}.recommended-message-card h2{margin:4px 0;font-size:17px}.recommended-message-card p{margin:0;color:var(--muted);font-size:9px}.all-message-templates{margin-top:14px;border:1px solid #e7ddd8;border-radius:16px;background:#fff}.all-message-templates summary{cursor:pointer;padding:13px 15px;font-size:10px;font-weight:800;list-style:none}.all-message-templates summary::-webkit-details-marker{display:none}.all-message-templates summary span{float:right;padding:3px 6px;border-radius:999px;background:#f4ebe7;color:#9d5542;font-size:7px}.all-message-templates .template-grid{padding:0 12px 12px}.delivery-confirm-card{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #eaded8;border-radius:15px;background:#fffaf7}.delivery-confirm-card>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#fff0e9;color:#bb4524;font-weight:900}.delivery-confirm-card strong,.delivery-confirm-card small{display:block}.delivery-confirm-card strong{font-size:11px}.delivery-confirm-card small{font-size:8px;color:var(--muted);margin-top:3px}

/* Global search */
.global-search-box{display:flex;align-items:center;gap:9px;border:1px solid #e4d7d0;background:#fff;border-radius:14px;padding:0 12px;margin-bottom:12px}.global-search-box span{font-size:18px;color:#a4877b}.global-search-box input{border:0!important;box-shadow:none!important;background:transparent!important;padding:13px 0!important;width:100%}.global-search-results{display:grid;gap:7px;max-height:55vh;overflow:auto}.global-search-results button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;border:1px solid #eadfda;background:#fff;border-radius:13px;padding:10px;text-align:left;color:var(--text)}.global-search-results button:hover{background:#fff8f5;border-color:#dca894}.global-result-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#f5ece8}.global-search-results small,.global-search-results strong,.global-search-results em{display:block}.global-search-results small{font-size:6.5px;text-transform:uppercase;color:#a18e85;font-weight:850;letter-spacing:.07em}.global-search-results strong{font-size:9px;margin:2px 0}.global-search-results em{font-size:7.5px;color:var(--muted);font-style:normal}.global-search-results b{font-size:18px;color:#a69086}.global-search-empty{padding:28px 15px;text-align:center;color:var(--muted);font-size:9px}

/* Filters */
.inline-filter,.list-filter select{border:1px solid #e5d8d2;background:#fff;border-radius:10px;padding:8px 10px;font-size:8px;font-weight:750;color:var(--text)}
.status.moderate{background:#fff5df;color:#90611a}

/* Mobile */
@media(max-width:760px){
  .setup-steps{grid-template-columns:1fr 1fr}.command-list{grid-template-columns:1fr}.recommended-message-card{align-items:flex-start;flex-direction:column}.recommended-message-card .actions{width:100%}.recommended-message-card .actions button{flex:1}.pricing-helper-head{align-items:flex-start;flex-direction:column}.pricing-helper-head button{width:100%}
}
@media(max-width:480px){.setup-steps{grid-template-columns:1fr}.workspace-setup-head{align-items:flex-start}.setup-progress-ring{flex:0 0 48px}.command-item{grid-template-columns:34px minmax(0,1fr)}.command-item em{grid-column:2;white-space:normal}}

/* QUINTAL v1.3.1 — Quote date semantics */
#quoteForm .field small{display:block;margin-top:5px;font-size:7.5px;color:var(--muted);line-height:1.4}


/* ==========================================================================
   QUINTAL v1.3.2 — Dashboard Density & Readability
   Goal: less dead space, larger readable type, same premium structure.
   ========================================================================== */

/* More efficient vertical rhythm inside the dashboard only */
#view .command-center{
  margin-bottom:12px;
  padding:14px 15px;
  border-radius:18px;
}
#view .command-center .section-title{
  margin:0 0 10px;
}
#view .command-center .section-title h2{
  font-size:22px;
  line-height:1.08;
  margin-top:2px;
}
#view .command-center .section-title p{
  font-size:11px;
  line-height:1.4;
}
#view .command-center .metric-label{
  font-size:8.5px;
}

/* On large screens, use the width instead of stretching two sparse rows. */
#view .command-list{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
#view .command-item{
  grid-template-columns:40px minmax(0,1fr);
  grid-template-areas:
    "icon copy"
    "icon action";
  align-items:start;
  gap:5px 10px;
  min-height:78px;
  padding:11px 12px;
  border-radius:13px;
}
#view .command-icon{
  grid-area:icon;
  width:40px;
  height:40px;
  border-radius:12px;
  font-size:15px;
}
#view .command-copy{
  grid-area:copy;
  align-self:center;
}
#view .command-copy strong{
  font-size:11px;
  line-height:1.25;
}
#view .command-copy small{
  font-size:9px;
  line-height:1.38;
  margin-top:3px;
}
#view .command-item em{
  grid-area:action;
  justify-self:start;
  font-size:8px;
  line-height:1.2;
  white-space:normal;
  margin-top:1px;
}

/* Dashboard layout control becomes a slim utility row, not a large content card. */
#view .compact-dashboard-toolbar{
  min-height:48px;
  padding:8px 11px!important;
  margin:0 0 13px!important;
  border-radius:14px;
}
#view .compact-dashboard-toolbar .metric-label{
  font-size:7px;
}
#view .compact-dashboard-toolbar strong{
  font-size:10.5px!important;
  margin-top:2px!important;
}
#view .compact-dashboard-toolbar small{
  display:inline!important;
  font-size:8px!important;
  margin-top:0!important;
}
#view .compact-dashboard-toolbar button{
  padding:8px 11px;
}

/* Tighten dashboard section rhythm. */
#view .dashboard-section + .dashboard-section{
  margin-top:12px;
}
#view .dashboard-section > .section-title,
#view .dashboard-section-content > .section-title{
  margin:18px 0 10px;
}
#view .dashboard-section .section-title h2{
  font-size:21px;
  line-height:1.12;
}
#view .dashboard-section .section-title p{
  font-size:11px;
  line-height:1.4;
}

/* Relationship Queue: use the desktop width with 2 compact cards per row. */
#view .journey-queue{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
#view .journey-queue-row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  grid-template-areas:
    "avatar copy button"
    "avatar progress progress";
  gap:8px 11px;
  align-items:center;
  min-height:96px;
  padding:12px 13px;
  border-radius:15px;
}
#view .journey-queue-main{
  display:contents;
}
#view .journey-avatar{
  grid-area:avatar;
  width:44px;
  height:44px;
  border-radius:13px;
  font-size:14px;
}
#view .journey-queue-copy{
  grid-area:copy;
}
#view .journey-queue-copy strong{
  font-size:12px;
  line-height:1.2;
}
#view .journey-queue-copy span{
  font-size:10px;
  line-height:1.25;
  margin-top:3px;
}
#view .journey-queue-copy small{
  font-size:9px;
  line-height:1.35;
  margin-top:3px;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
#view .journey-queue-progress{
  grid-area:progress;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
}
#view .journey-queue-progress strong{
  text-align:left;
  font-size:9px;
  margin:0;
}
#view .journey-queue-progress div{
  height:6px;
}
#view .journey-continue-btn,
#view .journey-queue-row > .small-btn{
  grid-area:button;
  align-self:start;
  padding:8px 11px;
  font-size:8.5px;
  white-space:nowrap;
}

/* Buttons/labels in dashboard should not feel micro-sized. */
#view .section-title .small-btn,
#view .section-title .primary-btn{
  font-size:9px;
  padding:8px 11px;
}

/* Cards/metrics remain elegant but gain readable hierarchy. */
#view .metric-label{
  font-size:9px;
}
#view .metric-note{
  font-size:10px;
}
#view .card .row-title{
  font-size:11px;
}
#view .card .subtext{
  font-size:9px;
}

/* Medium screens: two command columns, relationship still two when possible. */
@media(max-width:1200px){
  #view .command-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #view .journey-queue{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Tablet/mobile returns to a clear vertical flow. */
@media(max-width:820px){
  #view .command-list,
  #view .journey-queue{
    grid-template-columns:1fr;
  }
  #view .journey-queue-row{
    min-height:0;
  }
}

/* Phone: keep bigger type without creating overflow. */
@media(max-width:600px){
  #view .command-center{
    padding:13px;
  }
  #view .command-item{
    min-height:0;
  }
  #view .command-copy strong{
    font-size:11px;
  }
  #view .command-copy small{
    font-size:9px;
  }
  #view .journey-queue-row{
    grid-template-columns:42px minmax(0,1fr);
    grid-template-areas:
      "avatar copy"
      "progress progress"
      "button button";
  }
  #view .journey-continue-btn,
  #view .journey-queue-row > .small-btn{
    width:100%;
  }
  #view .compact-dashboard-toolbar{
    gap:7px;
  }
}


/* ==========================================================================
   QUINTAL v1.3.3 — Workflow Continuity
   ========================================================================== */
.workflow-return-bar{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
  margin:0 0 14px;padding:10px 12px;border:1px solid #e6d8d1;border-radius:15px;
  background:linear-gradient(135deg,#fff8f4,#fff);box-shadow:0 8px 22px rgba(45,24,17,.04)
}
.workflow-back-btn{border:1px solid #e4d3cb;background:#fff;color:#a43d21;border-radius:10px;padding:8px 10px;font-size:9px;font-weight:850;cursor:pointer}
.workflow-return-copy{min-width:0}.workflow-return-copy span,.workflow-return-copy strong,.workflow-return-copy small{display:block}.workflow-return-copy span{font-size:6.5px;letter-spacing:.11em;color:#a58d83;font-weight:850}.workflow-return-copy strong{font-size:10px;margin:2px 0}.workflow-return-copy small{font-size:7.5px;color:var(--muted)}
.workflow-return-close{width:30px;height:30px;border:0;border-radius:9px;background:#f5eeeb;color:#8b766d;font-size:16px;cursor:pointer}

.quote-workflow-cell{display:grid;gap:3px;min-width:155px;max-width:240px;padding-left:9px;border-left:3px solid #ded4cf}.quote-workflow-cell strong{font-size:8.5px}.quote-workflow-cell span{font-size:7.5px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}.quote-workflow-cell.waiting{border-color:#d59d32}.quote-workflow-cell.waiting strong{color:#8e651e}.quote-workflow-cell.accepted{border-color:#4d9a69}.quote-workflow-cell.accepted strong{color:#34744c}.quote-workflow-cell.scheduled{border-color:#5f769f}.quote-workflow-cell.scheduled strong{color:#4e6385}.quote-workflow-cell.draft{border-color:#aaa09a}.quote-workflow-cell.closed{border-color:#c8bdb7;color:#7d716c}

.approval-status-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #e8ddd7;border-radius:16px}.approval-status-card>span{width:45px;height:45px;flex:0 0 45px;border-radius:14px;display:grid;place-items:center;font-size:18px;font-weight:900}.approval-status-card strong,.approval-status-card small{display:block}.approval-status-card strong{font-size:11px}.approval-status-card small{font-size:8.5px;line-height:1.5;color:var(--muted);margin-top:3px}.approval-status-card.waiting{background:#fffaf0;border-color:#eadcb8}.approval-status-card.waiting>span{background:#fff1cd;color:#996b18}.approval-status-card.accepted{background:#f3faf5;border-color:#d3e6d8}.approval-status-card.accepted>span{background:#e3f3e8;color:#34794b}
.approval-safety-note{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:10px;padding:10px 12px;border-radius:11px;background:#f7f3f1;color:#665852}.approval-safety-note strong{font-size:8px}.approval-safety-note span{font-size:8px;line-height:1.5}

.customer-detail-actions{flex-wrap:wrap}
@media(max-width:760px){
  .workflow-return-bar{grid-template-columns:1fr auto}.workflow-back-btn{grid-column:1/-1;width:100%;text-align:left}.workflow-return-copy{grid-column:1}.workflow-return-close{grid-column:2;grid-row:2}
  .quote-workflow-cell{min-width:0;max-width:100%}
}


/* ==========================================================================
   QUINTAL v1.3.4 — External Approval Audit
   ========================================================================== */
.exception-action-menu{margin-top:13px;border-top:1px solid #eee3de;padding-top:10px}
.exception-action-menu summary{cursor:pointer;color:#9a7163;font-size:8px;font-weight:800;list-style:none}
.exception-action-menu summary::-webkit-details-marker{display:none}
.exception-action-menu>div{margin-top:9px;padding:11px;border:1px solid #ecd9d1;border-radius:12px;background:#fff8f5}
.exception-action-menu p{margin:0 0 8px;color:var(--muted);font-size:8px;line-height:1.45}

.exception-badge{display:inline-flex;margin-bottom:6px;padding:4px 7px;border-radius:999px;background:#fff0ea;color:#a73d21;font-size:6.5px;font-weight:900;letter-spacing:.08em}
.external-approval-warning{padding:13px 14px;margin-bottom:13px;border:1px solid #ebc9bc;border-radius:14px;background:#fff4ef}
.external-approval-warning strong,.external-approval-warning span{display:block}
.external-approval-warning strong{font-size:10px;color:#8f341d}
.external-approval-warning span{font-size:8px;color:#735d55;line-height:1.5;margin-top:3px}

.approval-quote-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:14px}
.approval-quote-summary>span{padding:10px;border:1px solid #eadfd9;border-radius:12px;background:#fff}
.approval-quote-summary small,.approval-quote-summary strong{display:block}
.approval-quote-summary small{font-size:6.5px;letter-spacing:.08em;color:#9c8880;font-weight:850}
.approval-quote-summary strong{margin-top:3px;font-size:9px;overflow-wrap:anywhere}

.external-evidence-field{padding:13px!important;border:1px solid #e9ddd7;border-radius:14px;background:#fffaf7}
.external-evidence-upload{display:inline-flex!important;cursor:pointer;margin-top:5px}
.external-evidence-upload input{display:none}
.external-evidence-upload span{display:inline-flex;padding:9px 11px;border:1px solid #e3cfc6;border-radius:10px;background:#fff;color:#ad4021;font-size:8px;font-weight:850}
.external-evidence-label{display:grid;gap:2px;margin-top:8px}
.external-evidence-label strong{font-size:8px}
.external-evidence-label span{font-size:7.5px;color:var(--muted)}

.external-approval-confirm{display:flex;align-items:flex-start;gap:9px;padding:12px;border:1px solid #e6dad4;border-radius:13px;background:#fff}
.external-approval-confirm input{margin-top:2px}
.external-approval-confirm span{font-size:8.5px;line-height:1.5;color:#544740}

.approval-permission-lock{display:flex;gap:11px;align-items:flex-start;margin-top:13px;padding:12px;border:1px solid #e2dcd8;border-radius:13px;background:#f8f6f5}
.approval-permission-lock>span{font-size:18px}
.approval-permission-lock strong,.approval-permission-lock small{display:block}
.approval-permission-lock strong{font-size:9px}
.approval-permission-lock small{margin-top:3px;font-size:7.5px;line-height:1.45;color:var(--muted)}
.approval-permission-lock.compact{margin-top:10px}

.danger-emphasis{background:linear-gradient(180deg,#d94a28,#b9361b)!important}
.approval-status-card.external{background:#fff7ef;border-color:#ead0b9}
.approval-status-card.external>span{background:#ffe5cf;color:#a34a1c}

.external-audit-detail{display:grid;gap:7px;margin-top:11px;padding:13px;border:1px solid #e8ddd7;border-radius:14px;background:#fff}
.external-audit-detail p{margin:0;color:#544740;font-size:9px;line-height:1.55;white-space:pre-wrap}
.external-audit-detail .small-btn{justify-self:start}
.no-evidence-note{font-size:7.5px;color:var(--muted);font-style:italic}
.quote-workflow-cell.external{border-color:#d98146}
.quote-workflow-cell.external strong{color:#a24d21}

@media(max-width:650px){
  .approval-quote-summary{grid-template-columns:1fr}
}


/* ==========================================================================
   QUINTAL v1.3.5 — Quote Actions Menu
   ========================================================================== */
.quote-primary-actions{
  flex-wrap:wrap;
  align-items:center;
}
.quote-more-btn{
  font-weight:850!important;
  background:#f7f2ef!important;
}

.quote-more-status{
  display:grid;
  gap:3px;
  padding:12px 14px;
  margin-bottom:12px;
  border:1px solid #e8ddd7;
  border-left:4px solid #c8bbb4;
  border-radius:13px;
  background:#fff;
}
.quote-more-status strong{font-size:11px}
.quote-more-status small{font-size:8px;color:var(--muted);line-height:1.45}
.quote-more-status.waiting{border-left-color:#d59d32}
.quote-more-status.accepted{border-left-color:#4d9a69}
.quote-more-status.external{border-left-color:#d98146}
.quote-more-status.scheduled{border-left-color:#5f769f}

.quote-more-actions{
  display:grid;
  gap:7px;
}
.quote-more-actions>button{
  width:100%;
  display:grid;
  grid-template-columns:36px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  border:1px solid #e9ddd7;
  border-radius:13px;
  background:#fff;
  padding:10px 11px;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.quote-more-actions>button:hover{
  background:#fff8f5;
  border-color:#dca894;
}
.quote-more-actions>button>span{
  width:36px;height:36px;border-radius:11px;
  display:grid;place-items:center;
  background:#f6eeea;color:#b84625;font-weight:900;
}
.quote-more-actions strong,
.quote-more-actions small{display:block}
.quote-more-actions strong{font-size:9px}
.quote-more-actions small{font-size:7.5px;color:var(--muted);margin-top:2px;line-height:1.4}
.quote-more-actions b{font-size:18px;color:#a38c82}

.quote-exception-zone{
  margin-top:13px;
  padding:12px;
  border:1px solid #edcfc4;
  border-radius:13px;
  background:#fff7f3;
}
.quote-exception-zone p{
  margin:5px 0 9px;
  color:#705a51;
  font-size:8px;
  line-height:1.45;
}

.quote-danger-zone{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #eee3de;
}

@media(max-width:650px){
  .quote-primary-actions .small-btn{
    flex:1 1 auto;
  }
}

/* ==========================================================================
   QUINTAL v1.4.0 — Focus UX
   ========================================================================== */
.dashboard-section-expanded{position:relative}
.dashboard-section-collapse-btn{
  position:absolute;right:0;top:2px;z-index:3;border:0;background:transparent;
  color:#9d8175;font-size:7.5px;font-weight:850;cursor:pointer;padding:5px 7px;border-radius:8px
}
.dashboard-section-collapse-btn:hover{background:#f6efeb;color:#b54828}
.dashboard-section-collapsed{margin:8px 0!important}
.dashboard-collapsed-bar{
  min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:9px 11px;border:1px solid #eaded8;border-radius:14px;background:rgba(255,255,255,.72)
}
.dashboard-collapsed-bar>div{display:flex;align-items:center;gap:9px}
.dashboard-collapsed-bar i{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f4eae5;font-style:normal}
.dashboard-collapsed-bar strong,.dashboard-collapsed-bar small{display:block}
.dashboard-collapsed-bar strong{font-size:9px}.dashboard-collapsed-bar small{font-size:7.5px;color:var(--muted);margin-top:1px}
.dashboard-collapsed-bar button{border:1px solid #e4d6cf;background:#fff;border-radius:9px;padding:7px 10px;font-size:8px;font-weight:850;color:#b44424;cursor:pointer}
.dashboard-content-collapsed{display:none}
.dashboard-view-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.workflow-success-summary{display:grid;gap:8px}
.workflow-success-summary>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:11px;border:1px solid #e5ddd8;border-radius:13px;background:#fff}
.workflow-success-summary>div>span{grid-row:1/3;width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#edf8f1;color:#34774b;font-weight:900}
.workflow-success-summary strong,.workflow-success-summary small{display:block}.workflow-success-summary strong{font-size:9.5px}.workflow-success-summary small{font-size:8px;color:var(--muted);margin-top:2px}
.workflow-next-actions{flex-wrap:wrap}
@media(max-width:650px){
  .dashboard-view-actions{width:100%;justify-content:stretch}
  .dashboard-view-actions button{flex:1}
  .dashboard-section-collapse-btn{position:static;display:block;margin-left:auto;margin-bottom:4px}
  .workflow-next-actions button{flex:1 1 100%}
}


/* ==========================================================================
   QUINTAL v1.4.2 — Security Center / MFA
   ========================================================================== */
.security-center-badge{display:inline-flex;margin-bottom:5px;padding:4px 7px;border-radius:999px;background:#edf8f1;color:#317248;font-size:6.5px;font-weight:900;letter-spacing:.09em}
.security-loading{padding:34px;text-align:center;color:var(--muted);font-size:9px}
.security-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.security-control-card{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:12px;border:1px solid #e6ddd8;border-radius:14px;background:#fff}
.security-control-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#f3efed;font-size:15px}
.security-control-card small,.security-control-card strong,.security-control-card p{display:block}
.security-control-card small{font-size:6.5px;letter-spacing:.08em;color:#9c8980;font-weight:850}
.security-control-card strong{font-size:10px;margin-top:2px}
.security-control-card p{font-size:7.5px;line-height:1.45;color:var(--muted);margin:4px 28px 0 0}
.security-control-card>b{position:absolute;top:11px;right:10px;font-size:6px;letter-spacing:.07em;border-radius:999px;padding:4px 6px}
.security-control-card.on{background:linear-gradient(135deg,#f6fbf7,#fff);border-color:#d5e7da}
.security-control-card.on .security-control-icon{background:#e7f4eb;color:#33764b}
.security-control-card.on>b{background:#dff0e4;color:#34754a}
.security-control-card.recommended>b{background:#fff1dd;color:#96651b}
.security-detail-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:15px;border:1px solid #e6d9d3;border-radius:15px;background:#fff9f6}
.security-detail-panel h4{margin:4px 0 3px;font-size:13px}.security-detail-panel p{margin:0;font-size:8.5px;color:var(--muted);line-height:1.5}
.security-footnote{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:10px;padding:10px 12px;border-radius:11px;background:#f5f3f2}
.security-footnote strong{font-size:8px}.security-footnote span{font-size:8px;color:#70635d;line-height:1.45}
.mfa-enroll-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;align-items:center}
.mfa-qr-panel{display:grid;place-items:center;padding:14px;border:1px solid #e4d9d3;border-radius:18px;background:#fff}
.mfa-qr{display:block;width:200px;height:200px;max-width:100%}.mfa-qr-fallback{width:200px;height:200px;display:grid;place-items:center;background:#f5f1ef;color:var(--muted)}
.mfa-enroll-copy strong{display:block;font-size:9px;margin-top:10px}.mfa-enroll-copy strong:first-child{margin-top:0}.mfa-enroll-copy p{margin:3px 0;color:var(--muted);font-size:8px;line-height:1.4}
.mfa-secret-row{display:flex;align-items:center;gap:7px;margin:7px 0 12px}.mfa-secret-row code{flex:1;min-width:0;padding:9px;border-radius:9px;background:#201816;color:#fff;font-size:8px;overflow-wrap:anywhere}
.mfa-code-input{margin-top:7px!important;max-width:240px!important;font:800 21px/1 Manrope,Inter,sans-serif!important;letter-spacing:.28em!important;text-align:center!important;padding-left:18px!important;padding-right:12px!important}
.mfa-recovery-note{display:flex;gap:8px;margin-top:13px;padding:11px 12px;border:1px solid #ebd8c8;border-radius:12px;background:#fff8ef}.mfa-recovery-note strong,.mfa-recovery-note span{font-size:8px;line-height:1.45}.mfa-recovery-note span{color:#77655b}
@media(max-width:760px){.security-overview-grid{grid-template-columns:1fr}.security-detail-panel{align-items:flex-start;flex-direction:column}.security-detail-panel button{width:100%}.mfa-enroll-layout{grid-template-columns:1fr}.mfa-qr-panel{justify-self:center;width:min(270px,100%)}}


/* ==========================================================================
   QUINTAL v1.4.3 — Protected MFA disable
   ========================================================================== */
.security-danger-badge{display:inline-flex;margin-bottom:6px;padding:4px 7px;border-radius:999px;background:#fff0ec;color:#a63c22;font-size:6.5px;font-weight:900;letter-spacing:.09em}
.mfa-disable-warning{display:flex;gap:11px;align-items:flex-start;margin-bottom:12px;padding:13px 14px;border:1px solid #edc9bc;border-radius:14px;background:#fff5f1}
.mfa-disable-warning>span{width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:#ffe3da;color:#a9361d;font-weight:900;font-size:16px}
.mfa-disable-warning strong,.mfa-disable-warning small{display:block}.mfa-disable-warning strong{font-size:9.5px;color:#71301f}.mfa-disable-warning small{margin-top:3px;color:#7d655d;font-size:8px;line-height:1.5}
.mfa-disable-account{margin-bottom:12px;padding:10px 12px;border:1px solid #e8ddd7;border-radius:12px;background:#fff}.mfa-disable-account small,.mfa-disable-account strong{display:block}.mfa-disable-account small{font-size:6.5px;letter-spacing:.08em;color:#9c8880;font-weight:850}.mfa-disable-account strong{margin-top:3px;font-size:9px}
.mfa-disable-confirm{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid #e8ddd7;border-radius:12px;background:#faf7f5}.mfa-disable-confirm input{margin-top:2px}.mfa-disable-confirm span{font-size:8.5px;line-height:1.45;color:#5f5049}

/* QUINTAL v1.5.0 — Workflow Stabilization */
.compact-row-actions{display:flex;gap:5px;align-items:center;flex-wrap:nowrap}.compact-row-actions .small-btn{white-space:nowrap}
.customer-focus-kicker{display:block;margin-bottom:5px;color:#a17d70;font-size:6.5px;font-weight:900;letter-spacing:.11em}
.customer-focus-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #eee3de}
.customer-current-workflow{margin:0 0 12px;padding:13px;border:1px solid #e5d9d3;border-radius:16px;background:linear-gradient(135deg,#fff9f6,#fff)}
.customer-current-heading{display:grid;gap:2px;margin-bottom:9px}.customer-current-heading strong{font-size:11px}.customer-current-heading small{font-size:8px;line-height:1.45;color:var(--muted)}
.customer-current-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.customer-current-card{display:grid;grid-template-columns:35px minmax(0,1fr);gap:9px;align-items:start;padding:10px;border:1px solid #e8ddd8;border-radius:13px;background:#fff}
.customer-current-card.empty{background:#faf8f7}.customer-current-icon{width:35px;height:35px;border-radius:11px;display:grid;place-items:center;background:#f5ebe6;color:#b44627;font-size:14px;font-weight:900}
.customer-current-card small,.customer-current-card strong,.customer-current-card p{display:block}.customer-current-card small{font-size:6px;letter-spacing:.08em;color:#9d8880;font-weight:900}.customer-current-card strong{font-size:9px;margin-top:2px}.customer-current-card p{margin:3px 0 0;font-size:7.5px;line-height:1.4;color:var(--muted)}
.customer-current-actions{grid-column:1/-1;display:flex;gap:5px;flex-wrap:wrap;padding-top:3px}
.customer-property-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:11px 0}.customer-property-summary>div{padding:10px;border:1px solid #e9dfda;border-radius:12px;background:#fff}.customer-property-summary strong,.customer-property-summary small{display:block}.customer-property-summary strong{font-size:8.5px;margin-top:3px}.customer-property-summary small{font-size:7px;color:var(--muted);line-height:1.4;margin-top:3px}
.customer-history-stats{margin:10px 0!important}.customer-history-details{margin-top:7px;border:1px solid #e9dfda;border-radius:12px;background:#fff;overflow:hidden}.customer-history-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;font-size:9px;font-weight:850}.customer-history-details summary::-webkit-details-marker{display:none}.customer-history-details summary:after{content:'+';color:#b64a2b;font-size:13px}.customer-history-details[open] summary:after{content:'−'}.customer-history-details summary span{margin-left:auto;margin-right:8px;display:inline-flex;min-width:22px;justify-content:center;padding:3px 6px;border-radius:999px;background:#f4ece8;color:#8e756a;font-size:7px}.customer-history-body{padding:0 10px 10px;border-top:1px solid #f1e9e5}
.entity-action-menu{display:grid;gap:6px}.entity-action-menu>button{width:100%;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #e8ddd7;border-radius:12px;background:#fff;text-align:left;cursor:pointer;color:var(--text)}.entity-action-menu>button:hover{background:#fff8f4;border-color:#dfa994}.entity-action-menu>button>span{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:#f5ece8;color:#b24627;font-weight:900}.entity-action-menu strong,.entity-action-menu small{display:block}.entity-action-menu strong{font-size:9px}.entity-action-menu small{font-size:7.5px;color:var(--muted);line-height:1.4;margin-top:2px}.entity-action-menu b{font-size:17px;color:#a89187}.entity-danger-zone{margin-top:10px;padding-top:10px;border-top:1px solid #eee3de}
.flow-success-badge{display:inline-flex;margin-bottom:5px;padding:4px 7px;border-radius:999px;background:#e8f5ec;color:#34764b;font-size:6.5px;font-weight:900;letter-spacing:.09em}
.flow-next-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.flow-next-summary>div{padding:12px;border:1px solid #e8ddd7;border-radius:13px;background:#fff}.flow-next-summary small,.flow-next-summary strong,.flow-next-summary span{display:block}.flow-next-summary small{font-size:6px;letter-spacing:.08em;color:#9b8880;font-weight:900}.flow-next-summary strong{font-size:10px;margin-top:3px}.flow-next-summary span{font-size:7.5px;color:var(--muted);line-height:1.45;margin-top:3px}.flow-next-actions{flex-wrap:wrap}
@media(max-width:900px){.customer-current-grid,.customer-property-summary{grid-template-columns:1fr}}
@media(max-width:650px){.customer-focus-actions{display:grid;grid-template-columns:1fr 1fr}.customer-focus-actions button{width:100%}.flow-next-summary{grid-template-columns:1fr}.flow-next-actions button{flex:1 1 100%}.compact-row-actions{flex-wrap:wrap}}

/* QUINTAL v1.5.1 — Customer Service Cycle */
.service-cycle{margin:0 0 12px;padding:15px;border:1px solid #e4d7d0;border-radius:17px;background:linear-gradient(135deg,#fff9f5,#fff);box-shadow:0 10px 28px rgba(54,34,25,.045)}
.service-cycle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:13px}.service-cycle-kicker{display:block;font-size:6.5px;letter-spacing:.11em;font-weight:900;color:#aa7766}.service-cycle-head h4{margin:4px 0 3px;font-size:14px}.service-cycle-head p{margin:0;color:var(--muted);font-size:8px;line-height:1.45}.service-cycle-phase{flex:0 0 auto;padding:5px 8px;border-radius:999px;background:#f9e8e0;color:#b34323;font-size:7px;font-weight:900}
.service-cycle-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:7px 0 13px;border:1px solid #e9dfda;border-radius:13px;overflow:hidden;background:#fff}.service-cycle-step{position:relative;min-width:0;padding:11px 9px 10px 30px;border-right:1px solid #eee5e1}.service-cycle-step:last-child{border-right:0}.service-cycle-step>span{position:absolute;left:9px;top:12px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#f0ecea;color:#9e8e87;font-size:8px;font-weight:900}.service-cycle-step small,.service-cycle-step strong{display:block}.service-cycle-step small{font-size:6px;letter-spacing:.08em;color:#9a8880;font-weight:900}.service-cycle-step strong{margin-top:3px;font-size:7.6px;line-height:1.35;overflow-wrap:anywhere}.service-cycle-step.done>span{background:#def1e4;color:#34744a}.service-cycle-step.done strong{color:#3f684c}.service-cycle-step.current{background:#fff5f0}.service-cycle-step.current>span{background:#e84c27;color:#fff}.service-cycle-step.current strong{color:#a53c20}
.service-cycle-next{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:11px 12px;border-radius:13px;background:#1c1715;color:#fff}.service-cycle-next small,.service-cycle-next strong{display:block}.service-cycle-next small{font-size:6px;letter-spacing:.09em;color:#bfb1aa;font-weight:900}.service-cycle-next strong{font-size:10px;margin-top:2px}.service-cycle-next .primary-btn{flex:0 0 auto}.service-cycle-secondary{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.relationship-guide-details{margin-bottom:11px}.relationship-guide-details .journey-panel{margin:0!important;border:0!important;box-shadow:none!important}
.payment-recorded-panel{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid #d8eadc;border-radius:14px;background:#f3faf5}.payment-recorded-panel>span{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#dff0e4;color:#34764b;display:grid;place-items:center;font-size:17px;font-weight:900}.payment-recorded-panel strong,.payment-recorded-panel small{display:block}.payment-recorded-panel strong{font-size:10px}.payment-recorded-panel small{margin-top:3px;color:#66766b;font-size:8px;line-height:1.5}
@media(max-width:760px){.service-cycle-head{flex-direction:column;gap:8px}.service-cycle-steps{grid-template-columns:1fr 1fr}.service-cycle-step:nth-child(2){border-right:0}.service-cycle-step:nth-child(-n+2){border-bottom:1px solid #eee5e1}.service-cycle-next{align-items:stretch;flex-direction:column}.service-cycle-next .primary-btn{width:100%}}
@media(max-width:430px){.service-cycle-steps{grid-template-columns:1fr}.service-cycle-step{border-right:0!important;border-bottom:1px solid #eee5e1}.service-cycle-step:last-child{border-bottom:0}}


/* ==========================================================================
   QUINTAL v1.6.0 — Service Context Lock + simplified customer workflow
   ========================================================================== */
.service-case-picker{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,46%);gap:14px;align-items:center;
  margin:0 0 9px;padding:12px 14px;border:1px solid #ded4cf;border-radius:15px;background:#fff
}
.service-case-picker>div>span,.service-case-picker>div>strong,.service-case-picker>div>small{display:block}
.service-case-picker>div>strong{font-size:10px;margin-top:2px}
.service-case-picker>div>small{font-size:7.5px;color:var(--muted);line-height:1.4;margin-top:2px}
.service-case-picker select{
  width:100%;min-width:0;padding:10px 12px;border:1px solid #d9cec8;border-radius:11px;background:#fff;
  font-weight:750;color:var(--text)
}
.service-case-picker.empty{grid-template-columns:1fr;background:#faf8f7}
.primary-soft{background:#fff2ec!important;color:#ad4022!important;border-color:#e7b9aa!important}

.customer-secondary-details{
  margin-top:9px;border:1px solid #e8ded9;border-radius:14px;background:#fff;overflow:hidden
}
.customer-secondary-details>summary{
  list-style:none;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 14px;cursor:pointer
}
.customer-secondary-details>summary::-webkit-details-marker{display:none}
.customer-secondary-details>summary strong,.customer-secondary-details>summary small{display:block}
.customer-secondary-details>summary strong{font-size:9.5px}
.customer-secondary-details>summary small{font-size:7.5px;color:var(--muted);margin-top:2px}
.customer-secondary-details>summary>span{font-size:16px;color:#a84a2e}
.customer-secondary-details[open]>summary>span{font-size:0}
.customer-secondary-details[open]>summary>span:after{content:'−';font-size:16px}
.customer-secondary-body{padding:0 12px 12px;border-top:1px solid #f0e8e4}

.modal-form-head>div{display:grid;gap:4px}
.modal-form-back,.modal-context-simple-back{
  width:max-content;padding:0;border:0;background:transparent;color:#a23e24;font-size:8px;font-weight:850;cursor:pointer
}
.modal-form-back:hover,.modal-context-simple-back:hover{text-decoration:underline}

.service-message-context{
  display:flex;align-items:center;justify-content:space-between;gap:15px;margin:10px 0;padding:12px 14px;
  border:1px solid #dcd4cf;border-radius:14px;background:#fff
}
.service-message-context>div>span,.service-message-context>div>strong,.service-message-context>div>small{display:block}
.service-message-context strong{font-size:10px;margin-top:3px}
.service-message-context small{font-size:7.5px;color:var(--muted);margin-top:2px}
.service-lock-badge{
  flex:0 0 auto;padding:6px 8px;border-radius:999px;background:#f2f0ed;color:#655b56;font-size:7px;font-weight:850
}
.message-routing-card{margin-bottom:8px}
.message-service-lock{
  display:flex;align-items:center;gap:9px;margin-bottom:9px;padding:9px 11px;border:1px solid #e3d9d4;border-radius:11px;background:#faf7f5
}
.message-service-lock>span{font-size:14px}
.message-service-lock small,.message-service-lock strong{display:block}
.message-service-lock small{font-size:6px;letter-spacing:.08em;color:#95847c;font-weight:900}
.message-service-lock strong{font-size:8.5px;margin-top:2px}

@media(max-width:720px){
  .service-case-picker{grid-template-columns:1fr}
  .service-message-context{align-items:flex-start;flex-direction:column}
}
\n/* QUINTAL v1.6.1 — Paid service archive */
.closed-paid-history>summary{background:#f8faf8}.closed-paid-history>summary:before{content:'LOCK';margin-right:7px;font-size:6px;font-weight:900;color:#557060}.closed-service-record{display:grid;gap:10px}.closed-service-lock{display:flex;gap:11px;align-items:center;padding:13px 14px;border:1px solid #d7e5da;border-radius:14px;background:#f4faf5}.closed-service-lock>span{width:42px;height:32px;flex:0 0 42px;border-radius:10px;display:grid;place-items:center;background:#e0eee3;color:#42604a;font-size:6px;font-weight:900}.closed-service-lock small,.closed-service-lock strong,.closed-service-lock p{display:block}.closed-service-lock small{font-size:6px;letter-spacing:.09em;font-weight:900;color:#60806a}.closed-service-lock strong{font-size:11px;margin-top:2px}.closed-service-lock p{margin:3px 0 0;font-size:7.5px;color:#66756a;line-height:1.45}.closed-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.closed-service-grid>div{padding:10px 11px;border:1px solid #e7ddd8;border-radius:12px;background:#fff}.closed-service-grid small,.closed-service-grid strong{display:block}.closed-service-grid small{font-size:6px;letter-spacing:.08em;color:#99877f;font-weight:900}.closed-service-grid strong{margin-top:3px;font-size:8.5px}.closed-service-actions{display:flex;gap:6px;flex-wrap:wrap}.admin-correction-details{margin-top:6px;border:1px solid #eadfd9;border-radius:12px;overflow:hidden}.admin-correction-details>summary{padding:10px 12px;cursor:pointer;font-size:8px;font-weight:850;color:#806d65}.admin-correction-details>div{padding:11px 12px;border-top:1px solid #eee5e1;background:#faf8f7}.admin-correction-details p{margin:0 0 9px;font-size:7.5px;line-height:1.45;color:var(--muted)}.closed-admin-warning{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;padding:12px;border:1px solid #edc9bc;border-radius:13px;background:#fff5f1}.closed-admin-warning>span{width:33px;height:33px;flex:0 0 33px;border-radius:10px;display:grid;place-items:center;background:#ffe3da;color:#a9361d;font-weight:900}.closed-admin-warning strong,.closed-admin-warning small{display:block}.closed-admin-warning strong{font-size:9px;color:#71301f}.closed-admin-warning small{margin-top:3px;font-size:7.5px;color:#7d655d;line-height:1.45}.admin-edit-mode{padding:11px 12px;border:1px solid #e8bfaa;border-radius:12px;background:#fff5ef}.admin-edit-mode strong,.admin-edit-mode small{display:block}.admin-edit-mode strong{font-size:9px;color:#9d3f25}.admin-edit-mode small{margin-top:3px;font-size:7.5px;color:#7e655c;line-height:1.45}@media(max-width:720px){.closed-service-grid{grid-template-columns:1fr 1fr}}@media(max-width:430px){.closed-service-grid{grid-template-columns:1fr}}\n

/* ==========================================================================
   QUINTAL v2.0 — SIMPLE CORE
   Customer = relationship intelligence
   Job = operational source of truth
   ========================================================================== */
.simple-dashboard-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px;
  padding:18px 20px;border-radius:18px;background:#1b1715;color:#fff
}
.simple-dashboard-head h2{margin:4px 0;font-size:22px}.simple-dashboard-head p{margin:0;color:#bfb3ad;font-size:9px}
.simple-dashboard-grid{margin-top:12px}.simple-week-card,.simple-attention-card{min-height:290px}
.simple-job-list{display:grid;gap:6px}.simple-job-list>button{
  display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;
  padding:9px 10px;border:1px solid #eadfd9;border-radius:12px;background:#fff;text-align:left;cursor:pointer
}
.simple-job-list>button:hover{background:#fff8f4}.simple-date{display:grid}.simple-date strong{font-size:9px}.simple-date small{font-size:7px;color:var(--muted)}
.simple-job-copy strong,.simple-job-copy small{display:block}.simple-job-copy strong{font-size:9px}.simple-job-copy small{font-size:7.5px;color:var(--muted);margin-top:2px}
.simple-attention-list{display:grid;gap:6px}.simple-attention-list>button{
  display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:10px 11px;border:1px solid #eadfd9;border-radius:12px;background:#fff;text-align:left;cursor:pointer
}
.simple-attention-list strong,.simple-attention-list small{display:block}.simple-attention-list strong{font-size:8.5px}.simple-attention-list small{font-size:7.5px;color:var(--muted);margin-top:2px}
.simple-attention-list>button>span{font-size:7.5px;font-weight:850;color:#af4425}.simple-clear{padding:15px;border:1px solid #dce9df;border-radius:12px;background:#f4faf5;color:#477052;font-size:8.5px}
.simple-weather-strip{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:16px}.simple-weather-strip strong,.simple-weather-strip small{display:block}.simple-weather-strip strong{font-size:11px;margin-top:3px}.simple-weather-strip small{font-size:7.5px;color:var(--muted);margin-top:2px}

.simple-page-title{margin-top:0}.simple-page-title h2{font-size:20px}
.simple-status{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:6.5px;font-weight:900;white-space:nowrap}
.simple-status.good{background:#e4f3e8;color:#34734a}.simple-status.warn{background:#fff0e6;color:#a84a26}.simple-status.info{background:#edf3f8;color:#47667f}.simple-status.neutral{background:#f1efed;color:#756a65}

.simple-customer-head{margin-bottom:8px}.simple-customer-actions{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:11px}
.customer-context-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.customer-context-card{min-height:104px;padding:11px 12px;border:1px solid #e7ddd8;border-radius:13px;background:#fff}
.customer-context-card>span{display:block;font-size:6px;letter-spacing:.08em;font-weight:900;color:#9a887f}
.customer-context-card>strong{display:block;margin-top:5px;font-size:9px;line-height:1.4}.customer-context-card>small{display:block;margin-top:4px;font-size:7.2px;line-height:1.45;color:var(--muted)}
.customer-context-card.weather .customer-weather-card,.customer-context-card.weather .customer-weather-state{margin-top:4px;border:0!important;padding:0!important;background:transparent!important}
.customer-insight{margin:9px 0 12px;padding:13px 14px;border-radius:14px;background:#1d1917;color:#fff}.customer-insight p{margin:5px 0 4px;font-size:10px;line-height:1.55}.customer-insight small{display:block;color:#bfb1aa;font-size:7.5px;line-height:1.5}
.customer-jobs-title{margin-top:8px}.customer-active-jobs{display:grid;gap:6px}.customer-active-job{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 11px;border:1px solid #e8ded9;border-radius:12px;background:#fff}.customer-active-job>div:first-child>strong,.customer-active-job>div:first-child>small{display:block}.customer-active-job>div:first-child>strong{font-size:9.5px;margin-top:5px}.customer-active-job>div:first-child>small{font-size:7.5px;color:var(--muted);margin-top:2px}.customer-no-work{margin-bottom:8px}

.simple-job-form .field.full textarea{min-height:82px}.simple-job-more{border:1px solid #e7ddd8;border-radius:11px;padding:0!important}.simple-job-more summary{padding:10px 12px;cursor:pointer;font-size:8px;font-weight:850}.simple-job-more-body{padding:0 11px 11px}.simple-job-state-strip{display:flex;align-items:center;gap:8px;margin-top:10px;padding:9px 11px;border-radius:11px;background:#f8f5f3}.simple-job-state-strip small{font-size:7.5px;color:var(--muted)}.simple-job-form-actions{flex-wrap:wrap}

.simple-job-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 0 12px}.simple-job-tabs button{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:11px 13px;border:1px solid #e4dad5;border-radius:12px;background:#fff;color:var(--text);cursor:pointer;font-weight:800}.simple-job-tabs button span{font-size:8.5px}.simple-job-tabs button b{min-width:23px;padding:3px 6px;border-radius:999px;background:#f3ece8;font-size:7px}.simple-job-tabs button.active{background:#1d1917;color:#fff;border-color:#1d1917}.simple-job-tabs button.active b{background:#3a302c}.simple-empty-state{padding:32px;text-align:center;border:1px dashed #dfd4ce;border-radius:15px;background:#faf8f7}.simple-empty-state strong,.simple-empty-state small{display:block}.simple-empty-state strong{font-size:11px}.simple-empty-state small{margin-top:4px;font-size:8px;color:var(--muted)}

.simple-job-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.simple-job-overview>div{padding:10px;border:1px solid #e7ddd8;border-radius:11px}.simple-job-overview small,.simple-job-overview strong{display:block}.simple-job-overview small{font-size:6px;letter-spacing:.08em;color:#99877f;font-weight:900}.simple-job-overview strong{font-size:8.5px;margin-top:4px}.simple-job-notes{margin:9px 0;padding:10px 11px;border-radius:11px;background:#f8f5f3}.simple-job-notes small{font-size:6px;font-weight:900;letter-spacing:.08em;color:#958179}.simple-job-notes p{margin:4px 0 0;font-size:8.5px;line-height:1.5}.simple-primary-action{margin:10px 0}.simple-primary-action .small-btn{width:100%;padding:12px}

.simple-quote-summary{padding:15px;border:1px solid #e7d8d0;border-radius:14px;background:#fff8f4}.simple-quote-summary>span{font-size:6px;letter-spacing:.09em;font-weight:900;color:#a87866}.simple-quote-summary>strong{display:block;margin:5px 0 8px;font-size:13px}.simple-quote-summary>div{display:flex;justify-content:space-between;gap:12px}.simple-quote-summary b{font-size:9px}.simple-quote-summary small{display:block;margin-top:8px;font-size:7.5px;color:var(--muted);line-height:1.45}.simple-send-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.simple-send-grid button,.simple-contact-grid button,.simple-quick-add button{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e6dbd5;border-radius:12px;background:#fff;text-align:left;cursor:pointer}.simple-send-grid button:hover,.simple-contact-grid button:hover,.simple-quick-add button:hover{background:#fff7f2}.simple-send-grid span,.simple-contact-grid span,.simple-quick-add span{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#f5ebe6;color:#b54627;font-weight:900}.simple-send-grid strong,.simple-send-grid small,.simple-contact-grid strong,.simple-contact-grid small,.simple-quick-add strong,.simple-quick-add small{display:block}.simple-send-grid strong,.simple-contact-grid strong,.simple-quick-add strong{font-size:9px}.simple-send-grid small,.simple-contact-grid small,.simple-quick-add small{font-size:7.2px;color:var(--muted);margin-top:2px}.simple-send-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding-top:9px;border-top:1px solid #eee4df}.simple-send-footer small{font-size:7.5px;color:var(--muted)}.simple-contact-grid,.simple-quick-add{display:grid;grid-template-columns:1fr 1fr;gap:7px}

.finish-job-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.finish-photo-field{padding:12px;border:1px dashed #d9cac3;border-radius:12px;background:#faf8f6}.finish-photo-field label{display:block;margin-bottom:7px;font-size:8px;font-weight:850}.finish-photo-field label small{font-weight:500;color:var(--muted)}.finish-photo-field input{width:100%}.finish-paid-toggle{display:flex;align-items:flex-start;gap:10px;margin:10px 0;padding:12px;border:1px solid #d8e5db;border-radius:13px;background:#f5faf6;cursor:pointer}.finish-paid-toggle input{margin-top:3px}.finish-paid-toggle strong,.finish-paid-toggle small{display:block}.finish-paid-toggle strong{font-size:9px}.finish-paid-toggle small{font-size:7.5px;color:#6e7d72;margin-top:3px}.finish-consent-note{padding:9px 11px;border-radius:10px;font-size:7.5px;line-height:1.45}.finish-consent-note.ok{background:#eef8f1;color:#4e7259}.finish-consent-note.private{background:#f5f2f0;color:#756761}.simple-finish-result{display:flex;align-items:center;gap:11px;padding:14px;border-radius:13px}.simple-finish-result.paid{background:#edf8f0;border:1px solid #d3e8d8}.simple-finish-result.due{background:#fff5eb;border:1px solid #efd8bf}.simple-finish-result>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fff;font-size:16px;font-weight:900}.simple-finish-result strong,.simple-finish-result small{display:block}.simple-finish-result strong{font-size:10px}.simple-finish-result small{font-size:7.5px;color:var(--muted);margin-top:3px}

@media(max-width:900px){
  .customer-context-grid{grid-template-columns:1fr 1fr}
  .simple-job-overview{grid-template-columns:1fr 1fr}
}
@media(max-width:650px){
  .simple-dashboard-head{align-items:stretch;flex-direction:column}
  .customer-context-grid,.simple-job-overview,.simple-send-grid,.simple-contact-grid,.simple-quick-add,.finish-job-grid{grid-template-columns:1fr}
  .customer-active-job{align-items:flex-start;flex-direction:column}
  .simple-job-tabs{grid-template-columns:1fr}
  .simple-send-footer{align-items:flex-start;flex-direction:column}
}


/* QUINTAL v2.0.1 — quote send reliability */
.simple-quote-send-status{margin-top:9px;padding:9px 11px;border-radius:10px;font-size:7.8px;font-weight:750;line-height:1.4}
.simple-quote-send-status.hidden{display:none}
.simple-quote-send-status.progress{display:block;background:#f4f1ef;color:#675b56}
.simple-quote-send-status.success{display:block;background:#edf8f0;color:#41704e;border:1px solid #d5e9da}
.simple-quote-send-status.error{display:block;background:#fff1eb;color:#9d3d22;border:1px solid #efcabb}
.simple-send-grid button:disabled{opacity:.62;cursor:wait}
.simple-send-error{display:flex;gap:11px;align-items:center;padding:14px;border:1px solid #efc8b9;border-radius:13px;background:#fff3ee}
.simple-send-error>span{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;background:#ffe0d5;color:#a53a1e;font-size:16px;font-weight:900}
.simple-send-error strong,.simple-send-error small{display:block}
.simple-send-error strong{font-size:9.5px;color:#74301e}
.simple-send-error small{margin-top:3px;font-size:7.5px;color:#7d655d;line-height:1.45}
.simple-job-form input[name="amount"]:invalid{border-color:#df927b}


/* ==========================================================================
   QUINTAL v2.0.2 — Actions + Readability
   ========================================================================== */

/* Dashboard: one clean row, no detached New Job button. */
.simple-dashboard-head{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  margin:0 0 16px!important;
  padding:10px 0 15px!important;
  border-radius:0!important;
  border-bottom:1px solid #e7ddd8!important;
  background:transparent!important;
  color:var(--text)!important;
  box-shadow:none!important;
}
.simple-dashboard-head>div{min-width:0}
.simple-dashboard-head .eyebrow-light{
  display:block!important;
  margin-bottom:5px!important;
  color:#9f6654!important;
  font-size:10px!important;
  letter-spacing:.12em!important;
}
.simple-dashboard-head h2{
  margin:0!important;
  color:var(--text)!important;
  font-size:24px!important;
  line-height:1.1!important;
}
.simple-dashboard-head p{
  margin:5px 0 0!important;
  color:var(--muted)!important;
  font-size:11px!important;
  line-height:1.35!important;
}
.simple-dashboard-head>.primary-btn{
  flex:0 0 auto!important;
  min-width:112px!important;
  padding:11px 16px!important;
}

/* Scope all larger typography to the Customer modal. */
.simple-customer-modal{
  width:min(1080px,calc(100vw - 24px))!important;
  max-height:calc(100vh - 18px)!important;
}
.simple-customer-modal .simple-customer-head{margin-bottom:5px!important}
.simple-customer-modal .simple-customer-head h3{
  margin:2px 0 4px!important;
  font-size:23px!important;
  line-height:1.1!important;
}
.simple-customer-modal .customer-focus-kicker{
  font-size:8px!important;
  letter-spacing:.1em!important;
}
.simple-customer-modal .detail-meta{
  font-size:11.5px!important;
  line-height:1.3!important;
}
.simple-customer-modal .simple-customer-actions{
  gap:7px!important;
  margin-bottom:9px!important;
}
.simple-customer-modal .simple-customer-actions button{
  padding:9px 13px!important;
  font-size:12px!important;
}

.simple-customer-modal .customer-context-grid{gap:8px!important}
.simple-customer-modal .customer-context-card{
  min-height:92px!important;
  padding:10px 11px!important;
  overflow:hidden!important;
}
.simple-customer-modal .customer-context-card>span{
  font-size:8px!important;
  line-height:1.15!important;
}
.simple-customer-modal .customer-context-card>strong{
  margin-top:5px!important;
  font-size:11.5px!important;
  line-height:1.28!important;
  overflow-wrap:anywhere!important;
}
.simple-customer-modal .customer-context-card>small{
  margin-top:4px!important;
  font-size:9.5px!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.simple-customer-modal .customer-weather-state strong,
.simple-customer-modal .customer-weather-main strong{
  font-size:11px!important;
}
.simple-customer-modal .customer-weather-state span,
.simple-customer-modal .customer-weather-main span{
  font-size:9.5px!important;
}

.simple-customer-modal .customer-insight{
  margin:8px 0 10px!important;
  padding:11px 13px!important;
}
.simple-customer-modal .customer-insight .metric-label{
  font-size:8px!important;
}
.simple-customer-modal .customer-insight p{
  margin:5px 0 2px!important;
  font-size:11.5px!important;
  line-height:1.4!important;
}
.simple-customer-modal .customer-insight small{
  font-size:9.5px!important;
  line-height:1.35!important;
}

.simple-customer-modal .customer-jobs-title{
  margin:5px 0 7px!important;
}
.simple-customer-modal .customer-jobs-title h2{
  font-size:21px!important;
  line-height:1.1!important;
}
.simple-customer-modal .customer-jobs-title p{
  font-size:10.5px!important;
  line-height:1.3!important;
}
.simple-customer-modal .customer-active-jobs{gap:6px!important}
.simple-customer-modal .customer-active-job{
  min-height:60px!important;
  padding:9px 10px!important;
}
.simple-customer-modal .customer-active-job>div:first-child>strong{
  margin-top:4px!important;
  font-size:11.5px!important;
}
.simple-customer-modal .customer-active-job>div:first-child>small{
  font-size:9.5px!important;
  line-height:1.25!important;
}
.simple-customer-modal .simple-status{
  padding:4px 7px!important;
  font-size:8px!important;
}
.simple-customer-modal .customer-active-job .small-btn{
  padding:7px 10px!important;
  font-size:10.5px!important;
}

.simple-customer-modal .customer-secondary-details>summary{
  padding:9px 11px!important;
}
.simple-customer-modal .customer-secondary-details>summary strong{
  font-size:11px!important;
}
.simple-customer-modal .customer-secondary-details>summary small{
  font-size:9px!important;
}

/* Contact + Send Quote action tiles. */
.simple-contact-grid button>div,
.simple-send-grid button>div{min-width:0!important}
.simple-contact-grid strong,
.simple-send-grid strong{font-size:11px!important}
.simple-contact-grid small,
.simple-send-grid small{
  font-size:9px!important;
  line-height:1.3!important;
  overflow-wrap:anywhere!important;
}
.simple-contact-grid button,
.simple-send-grid button{min-height:62px!important}

@media(max-width:760px){
  .simple-dashboard-head{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .simple-dashboard-head>.primary-btn{width:100%!important}
  .simple-customer-modal .customer-context-grid{grid-template-columns:1fr 1fr!important}
}


/* ==========================================================================
   QUINTAL v2.0.3 — Jobs routing + search
   ========================================================================== */
.jobs-page-title{margin-bottom:10px!important}
.jobs-search-bar{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
  padding:5px 7px;
  border:1px solid #dfd5cf;
  border-radius:13px;
  background:#fff;
}
.jobs-search-icon{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  color:#8e7c74;
  font-size:16px;
}
.jobs-search-bar input{
  width:100%;
  min-width:0;
  height:38px;
  padding:0 4px;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  color:var(--text);
  font-size:12px!important;
}
.jobs-search-bar input::placeholder{color:#9f9089}
.jobs-search-bar button{
  padding:7px 10px;
  border:0;
  border-radius:9px;
  background:#f5efec;
  color:#8b5a4b;
  font-size:9px;
  font-weight:850;
  cursor:pointer;
}
.jobs-search-bar button.hidden{display:none}
.simple-jobs-table .row-title{font-size:11px!important}
.simple-jobs-table .subtext{
  max-width:320px;
  font-size:9px!important;
  line-height:1.3!important;
  overflow-wrap:anywhere;
}
.simple-jobs-table td{
  vertical-align:middle;
}
@media(max-width:720px){
  .jobs-search-bar{
    grid-template-columns:30px minmax(0,1fr) auto;
  }
}

/* QUINTAL v2.0.5 — restored Simple Core runtime functions */


/* QUINTAL v2.1.0 — Beta Flow Audit */
.simple-job-form input[readonly]{
  background:#f5f2f0!important;
  color:#6f625c!important;
  cursor:not-allowed;
}
.simple-job-form input[readonly]+small{color:#8c5c4e!important}
.notice.warn{
  margin-bottom:10px;
  border:1px solid #ead0ad;
  background:#fff7e9;
  color:#7a562e;
}
