/* StovePilot premium business surfaces
   The deep tools keep their power, but visually stay as quiet as the everyday installer flow. */

:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway){
  background:var(--sp-shell-warm,color-mix(in srgb,var(--card) 76%,var(--bg)));
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .main{
  max-width:none;
  margin:0;
  min-height:100vh;
  background:var(--sp-shell-warm,color-mix(in srgb,var(--card) 76%,var(--bg)));
  padding:42px clamp(28px,4vw,62px) 58px;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .sidebar{
  background:#151616;
  border-right:1px solid rgba(255,255,255,.035);
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .sidebar .brand{
  padding:2px 6px 26px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .sidebar .brand-symbol{width:31px;height:31px}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .sidebar .brand-copy>strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
  letter-spacing:.005em;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .nav-btn{
  border-radius:6px;
  padding-inline:12px;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .nav-btn.active{
  background:rgba(255,255,255,.075);
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .nav-btn.active::before{
  content:"";
  position:absolute;
  left:-18px;
  top:9px;
  bottom:9px;
  width:2px;
  border-radius:999px;
  background:var(--brand-gold);
}

:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-customer-doorway) .page-title{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:clamp(2rem,3.15vw,2.75rem);
  line-height:1.08;
  font-weight:500;
  letter-spacing:-.035em;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-customer-doorway) .eyebrow{
  color:#8a7047;
  font-size:.68rem;
  font-weight:720;
  letter-spacing:.09em;
  text-transform:uppercase;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-customer-doorway) .sub{
  margin-top:8px;
  color:color-mix(in srgb,var(--muted) 88%,var(--ink));
  font-size:.88rem;
}
:is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-customer-doorway) .panel{
  border-color:color-mix(in srgb,var(--line) 86%,transparent);
  border-radius:9px;
  box-shadow:0 12px 36px rgba(18,22,20,.035);
}

/* Invoices — monetary information gets space, not dashboard chrome. */
.route-invoices [data-invoice-workspace]{
  width:min(100%,1080px);
  margin:0 auto 90px;
}
.route-invoices .invoice-panel{
  padding:26px 28px;
  background:color-mix(in srgb,var(--card) 95%,var(--bg));
}
.route-invoices .invoice-panel .section-head h2{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-invoices .invoice-ready-card,
.route-invoices .invoice-card{
  border-top-color:color-mix(in srgb,var(--line) 86%,transparent);
  padding-block:22px;
}
.route-invoices .invoice-ready-copy strong,
.route-invoices .invoice-card-head>div:first-child>strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1.05rem;
  font-weight:500;
}
.route-invoices .invoice-ready-value>strong,
.route-invoices .invoice-amount>strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  color:#3e3528;
  font-weight:500;
}
.route-invoices .invoice-state{
  border-radius:999px;
  padding:4px 8px;
  font-size:.64rem;
  letter-spacing:.04em;
}
.route-invoices .invoice-facts{
  border-color:color-mix(in srgb,var(--line) 86%,transparent);
}
.route-invoices .invoice-draft-fields input,
.route-invoices .invoice-draft-fields textarea,
.route-invoices .direct-invoice-total input{
  background:color-mix(in srgb,var(--card) 78%,var(--bg));
}
.route-invoices .invoice-paid-panel>summary{border-radius:0}

/* Aftercare — a due-date ledger, not a KPI dashboard. */
.route-aftercare .main> :is(.aftercare-topbar,.aftercare-notice,.aftercare-summary,.aftercare-quiet,.aftercare-section,.aftercare-empty){
  width:min(100%,1040px);
  margin-left:auto;
  margin-right:auto;
}
.route-aftercare .aftercare-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-bottom:28px;
  border-top:1px solid var(--sp-shell-line,var(--line));
  border-bottom:1px solid var(--sp-shell-line,var(--line));
}
.route-aftercare .aftercare-stat{
  min-height:88px;
  padding:16px 22px;
  border:0;
  border-right:1px solid var(--sp-shell-line,var(--line));
  border-radius:0;
  background:transparent;
}
.route-aftercare .aftercare-stat:last-child{border-right:0}
.route-aftercare .aftercare-stat strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1.8rem;
  font-weight:500;
}
.route-aftercare .aftercare-section{margin-top:30px}
.route-aftercare .aftercare-section-head{
  border-bottom:1px solid var(--sp-shell-line,var(--line));
  margin-bottom:0;
  padding-bottom:10px;
}
.route-aftercare .aftercare-section-head h2,
.route-aftercare .aftercare-section-head>.aftercare-group-title{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1rem;
  font-weight:500;
}
.route-aftercare .aftercare-list{gap:0}
.route-aftercare .aftercare-card{
  grid-template-columns:minmax(0,1.4fr) minmax(140px,.8fr) auto;
  margin:0;
  padding:19px 4px 19px 13px;
  border:0;
  border-bottom:1px solid var(--sp-shell-line,var(--line));
  border-left:2px solid transparent;
  border-radius:0;
  background:transparent;
}
.route-aftercare .aftercare-card.overdue{border-left-color:#a65f55}
.route-aftercare .aftercare-card.today,
.route-aftercare .aftercare-card.soon{border-left-color:var(--brand-gold)}
.route-aftercare .aftercare-customer>strong,
.route-aftercare .aftercare-date strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-aftercare .aftercare-service-facts>div{
  border-radius:7px;
  background:color-mix(in srgb,var(--card) 70%,var(--bg));
}

/* Pricing — flatten configuration groups and keep the numbers legible. */
.route-pricing .pricing-layout{
  width:min(100%,1080px);
  margin:0 auto;
}
.route-pricing .pricing-panel{
  padding:28px;
  background:color-mix(in srgb,var(--card) 95%,var(--bg));
}
.route-pricing .pricing-panel .section-head h2{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-pricing .pricing-group{
  padding:18px 0 22px;
  border:0;
  border-top:1px solid var(--sp-shell-line,var(--line));
  border-radius:0;
  background:transparent;
}
.route-pricing .pricing-group:first-child{border-top:0;padding-top:4px}
.route-pricing .pricing-group-head strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1rem;
  font-weight:500;
}
.route-pricing .pricing-field input,
.route-pricing .pricing-field textarea,
.route-pricing .pricing-parts-tools input{
  border-radius:7px;
  background:color-mix(in srgb,var(--card) 80%,var(--bg));
}
.route-pricing .pricing-part-editor{
  border-radius:8px;
  background:color-mix(in srgb,var(--card) 78%,var(--bg));
}
.route-pricing .pricing-parts-list{gap:0}
.route-pricing .pricing-part{
  padding:15px 2px;
  border:0;
  border-bottom:1px solid var(--sp-shell-line,var(--line));
  border-radius:0;
  background:transparent;
}
.route-pricing .pricing-part-main strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}

/* Setup — still configurable, just less form-builder looking. */
.route-setup .main{
  max-width:none;
}
.route-setup .topbar,
.route-setup .setup-panel,
.route-setup .business-banner{
  width:min(100%,1060px);
  margin-left:auto;
  margin-right:auto;
}
.route-setup .setup-panel{
  padding:30px;
  border-radius:9px;
  background:color-mix(in srgb,var(--card) 95%,var(--bg));
}
.route-setup .setup-panel .section-head h2,
.route-setup .setup-heading{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-setup .setup-choice-grid{gap:12px}
.route-setup .setup-choice,
.route-setup .theme-choice,
.route-setup .term-field,
.route-setup .job-type-picker label,
.route-setup .landing-choice{
  border-radius:7px;
  background:color-mix(in srgb,var(--card) 78%,var(--bg));
}
.route-setup .setup-choice:has(input:checked),
.route-setup .theme-choice:has(input:checked),
.route-setup .job-type-picker label:has(input:checked),
.route-setup .landing-choice:has(input:checked){
  border-color:var(--brand-gold);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--brand-gold) 58%,transparent);
  background:color-mix(in srgb,var(--brand-gold) 7%,var(--card));
  color:var(--ink);
}
.route-setup .setup-choice input,
.route-setup .module-picker input,
.route-setup .home-button-choice input,
.route-setup .job-type-picker input,
.route-setup .landing-choice input{accent-color:var(--brand-gold)}
.route-setup .setup-actions{
  border-radius:8px;
  border-color:color-mix(in srgb,var(--brand-gold) 28%,var(--line));
  box-shadow:0 12px 34px rgba(20,21,21,.08);
}

/* Team — read like people and assignments, not mini dashboards. */
.route-team .team-grid{
  width:min(100%,1080px);
  margin:0 auto;
  gap:24px;
}
.route-team .team-lane{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.route-team .team-lane>header{
  min-height:58px;
  padding:0 0 13px;
  border-bottom-color:var(--sp-shell-line,var(--line));
}
.route-team .team-lane>header strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1rem;
  font-weight:500;
}
.route-team .avatar{
  border-radius:50%;
  background:color-mix(in srgb,var(--brand-gold) 13%,var(--card));
  color:#816735;
}
.route-team .team-lane-jobs{gap:0}
.route-team .team-job{
  padding:13px 0;
  border-bottom:1px solid var(--sp-shell-line,var(--line));
  border-radius:0;
  background:transparent;
}
.route-team .team-job-link:hover{background:transparent}

/* Notifications — a clean inbox ledger. */
.route-notifications .notification-topbar,
.route-notifications .notification-panel,
.route-notifications .notification-status{
  width:min(100%,980px);
  margin-left:auto;
  margin-right:auto;
}
.route-notifications .notification-panel{
  border-radius:9px;
  background:color-mix(in srgb,var(--card) 95%,var(--bg));
}
.route-notifications .notification-card{
  border-top-color:var(--sp-shell-line,var(--line));
  background:transparent;
  padding:20px 22px;
}
.route-notifications .notification-card:hover{
  background:color-mix(in srgb,var(--brand-gold) 4%,transparent);
}
.route-notifications .notification-title-row strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1rem;
  font-weight:500;
}
.route-notifications .notification-kind{color:#8a7047}
.route-notifications .notification-arrow{color:#9b9e99}

/* Find Work — tone down the product-marketing card language. */
.route-find-work .main> :is(.find-work-top,.find-work-value,.find-work-settings,.find-work-boundary){
  width:min(100%,1080px);
  margin-left:auto;
  margin-right:auto;
}
.route-find-work .find-work-value h2{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-find-work .find-work-flow{
  border-radius:8px;
  background:transparent;
}
.route-find-work .find-work-toggle,
.route-find-work .find-work-capability-block,
.route-find-work .find-work-warning,
.route-find-work .find-work-link,
.route-find-work .find-work-boundary>div{
  border-radius:8px;
  background:color-mix(in srgb,var(--card) 82%,var(--bg));
}
.route-find-work .find-work-toggle:has(input:checked){
  border-color:color-mix(in srgb,var(--brand-gold) 60%,var(--line));
}
.route-find-work .find-work-toggle input:checked~i{background:var(--brand-gold)}
.route-find-work .find-work-field input,
.route-find-work .find-work-field textarea{border-radius:7px}

/* Customer enquiry page — QR and sharing feel like stationery, not widgets. */
.route-customer-doorway .topbar,
.route-customer-doorway .doorway-panel{
  width:min(100%,1040px);
  margin-left:auto;
  margin-right:auto;
}
.route-customer-doorway .doorway-panel{
  padding:28px 30px;
  background:color-mix(in srgb,var(--card) 95%,var(--bg));
}
.route-customer-doorway .doorway-link-card,
.route-customer-doorway .doorway-qr-card{
  border-radius:8px;
  background:color-mix(in srgb,var(--card) 76%,var(--bg));
}
.route-customer-doorway .doorway-link-card>strong,
.route-customer-doorway .doorway-qr-card strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-customer-doorway .doorway-qr-frame{border-radius:7px}

/* Handover — lean into the document feel. */
.route-handover .main{
  background:#f1efe9;
}
.route-handover .handover-toolbar,
.route-handover .handover-screen{
  width:min(100%,1100px);
  margin-left:auto;
  margin-right:auto;
}
.route-handover .handover-sheet{
  width:min(920px,100%);
  border-radius:10px;
  border-color:#ddd8cf;
  box-shadow:0 20px 54px rgba(23,33,38,.08);
}
.route-handover .handover-brand{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:27px;
  font-weight:500;
  letter-spacing:-.035em;
}
.route-handover .handover-intro h2,
.route-handover .handover-section-head h3{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-weight:500;
}
.route-handover .handover-fact,
.route-handover .handover-check,
.route-handover .handover-evidence-summary>div,
.route-handover .handover-aftercare-item{
  border-radius:7px;
  background:#fbfaf7;
}
.route-handover .handover-manifest{border-radius:8px}

/* Auth — even the front door carries the real StovePilot language. */
.auth-wrap{max-width:420px;margin:10vh auto;padding:18px}
.auth-card{
  overflow:hidden;
  border-radius:10px;
  border-color:color-mix(in srgb,var(--brand-gold) 20%,var(--line));
  box-shadow:0 24px 68px rgba(20,21,21,.11);
}
.auth-card .brand{
  min-height:116px;
  margin:-24px -24px 26px;
  padding:28px 26px;
  background:#151616;
  border-radius:0;
}
.auth-card .brand-symbol{width:36px;height:36px}
.auth-card .brand-copy>strong{
  font-family:var(--sp-serif,Georgia,"Times New Roman",serif);
  font-size:1.3rem;
  font-weight:500;
}
.auth-card .field label{
  color:#5f655f;
  font-size:.78rem;
  font-weight:600;
}
.auth-card .field input{
  border-radius:7px;
  background:#fbfaf7;
}
.auth-card #signIn{
  min-height:48px;
  margin-top:18px!important;
  border-radius:7px;
}

/* Supporting routes use the same quiet mobile chrome. */
@media(max-width:720px){
  :is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .main{
    padding:24px max(18px,env(safe-area-inset-right)) var(--sp-phone-main-clear) max(18px,env(safe-area-inset-left));
  }
  :is(.route-invoices,.route-aftercare,.route-pricing,.route-setup,.route-team,.route-notifications,.route-find-work,.route-handover,.route-customer-doorway) .mobile-masthead{
    padding:calc(14px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) 13px max(18px,env(safe-area-inset-left));
    border-bottom:1px solid rgba(199,167,106,.16);
  }

  .route-invoices .invoice-panel{padding:20px 18px}
  .route-aftercare .aftercare-stat{padding-inline:12px}
  .route-aftercare .aftercare-card{
    grid-template-columns:minmax(0,1fr) auto;
    padding-inline:10px 2px;
  }
  .route-pricing .pricing-panel{padding:20px 18px}
  .route-setup .setup-panel{padding:22px 18px}
  .route-customer-doorway .doorway-panel{padding:20px 18px}
  .route-handover .handover-sheet{border-radius:8px}
}
