/* Allotrope Business Dashboard: styles shared by the standalone /dashboard page and the Studio's
   dashboard window. Loaded after styles.css and studio.css in both places. */

/* ---- Plan & billing ---------------------------------------------------------------------- */
.plan-pill{display:inline-flex;align-items:center;border:1px solid #33415a;border-radius:999px;padding:5px 11px;font-size:10px;font-weight:750;letter-spacing:.04em;color:#b9c4d4;white-space:nowrap}
.plan-pill.good{color:#89e5af;border-color:rgba(137,229,175,.34);background:rgba(137,229,175,.07)}
.plan-pill.warn{color:#f2b56b;border-color:rgba(242,181,107,.38);background:rgba(242,181,107,.07)}
.plan-hero{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:center;margin-top:16px;padding:22px;border:1px solid #2c3a52;border-radius:16px;background:linear-gradient(135deg,#182235,#141b27)}
.plan-hero.preview{border-color:#4a44a0;background:linear-gradient(135deg,#201d47,#151b2b)}
.plan-hero.warning{border-color:rgba(242,181,107,.5);background:linear-gradient(135deg,#33260f,#19161a)}
.plan-hero-main small{display:block;font-size:9px;font-weight:800;letter-spacing:.16em;color:#9aa7ff}
.plan-hero.warning .plan-hero-main small{color:#f2b56b}
.plan-hero-main strong{display:block;margin:6px 0 6px;font-size:30px;line-height:1.1;color:#fff;letter-spacing:-.02em}
.plan-hero-main span{display:block;color:#b3bfd0;font-size:13px;line-height:1.5}
.plan-hero-side{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.plan-hero-side .btn{white-space:normal;text-align:center}
.plan-hero-side em{font-style:normal;color:#8e9bb0;font-size:11px;line-height:1.5}
.plan-features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px}
.plan-features li{display:flex;gap:9px;align-items:flex-start;color:#dfe6ef;font-size:12.5px;line-height:1.4}
.plan-features li span{color:#89e5af;font-weight:800;flex:0 0 auto}
.plan-later{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:13px 14px;border:1px dashed #36445c;border-radius:11px}
.plan-later b{display:block;color:#e9eef5;font-size:12.5px}
.plan-later span{display:block;color:#8e9bb0;font-size:11.5px;margin-top:3px}
.plan-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #232d3b}
.plan-row:first-child{padding-top:2px}
.plan-row>div:first-child{min-width:0}
.plan-row b{display:block;color:#fff;font-size:13.5px}
.plan-row>div:first-child span{display:block;color:#9ba6b5;font-size:12px;line-height:1.5;margin-top:3px}
.plan-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:0 0 auto}
.plan-note{margin:12px 0 0!important;color:#8e9bb0!important;font-size:11.5px!important}
.plan-note.warning{color:#f2c98f!important;padding:10px 12px;border:1px solid rgba(242,181,107,.35);border-radius:10px;background:rgba(242,181,107,.06)}
.plan-note.danger{color:#f5b5b5!important;padding:10px 12px;border:1px solid rgba(242,120,120,.4);border-radius:10px;background:rgba(242,120,120,.07)}
.plan-note b{color:#fff}
.plan-storage-bar{height:12px;border-radius:999px;background:#0e131b;border:1px solid #2a3547;overflow:hidden}
.plan-storage-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#6f7cff,#9c8cff);transition:width .3s ease}
.plan-storage.warning .plan-storage-bar i{background:linear-gradient(90deg,#e0983d,#f2b56b)}
.plan-storage.full .plan-storage-bar i{background:linear-gradient(90deg,#d95c5c,#f29b9b)}
.plan-storage-text{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:9px 0 2px;flex-wrap:wrap}
.plan-storage-text b{color:#fff;font-size:13px}
.plan-storage-text span{color:#8e9bb0;font-size:11.5px}
.plan-storage+.owner-actions,.plan-note+.owner-actions,.plan-confirm{margin-top:14px}
.plan-confirm{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border:1px solid #3b4a66;border-radius:11px;background:#141c29}
.plan-confirm span{flex:1 1 240px;color:#dfe6ef;font-size:12.5px;line-height:1.45}
.plan-dev{border-style:dashed!important;color:#9aa7ff!important}
#planScreen .btn[disabled]{opacity:.5;cursor:not-allowed}
#planScreen .btn[aria-busy="true"]{opacity:.75;cursor:progress}
@media(max-width:820px){
  .plan-hero{grid-template-columns:1fr;gap:16px;padding:18px}
  .plan-hero-main strong{font-size:25px}
  .plan-hero-side{align-items:stretch}
  .plan-features{grid-template-columns:1fr}
  .plan-row{flex-direction:column;align-items:stretch;gap:10px}
  .plan-row-side{align-items:stretch}
  .plan-row-side .btn,.plan-confirm .btn{width:100%}
  .plan-later{flex-direction:column;align-items:flex-start}
}

/* ---- Banner above the dashboard: a business in preview (example data) -------------------- */
.account-notice-banner.preview{background:#1d1a40;border-bottom-color:#4a44a0;color:#e4e2ff}
.account-notice-banner.preview span{color:#b9b6ee}
.account-notice-banner.preview .owner-mini-btn{background:#9c8cff;border-color:#9c8cff;color:#12102b}
.plan-hero-side .plan-pill{align-self:flex-start}

/* ==============================================================================================
   The dashboard look ("Orbital"). One theme for every section, in the standalone page and in the
   Studio's dashboard window. Each section carries its own colour in --orb (set by
   business-sections.js), the same colour and symbol it has on the homepage atom.
   ============================================================================================== */
.owner-dashboard-shell{
  --ink-0:#070B14;--ink-1:#0A101C;--ink-2:#0F1726;--ink-3:#152034;--line:#1D2940;--line-2:#2B3B59;
  --text:#EEF2FA;--muted:#93A1B8;--faint:#66758F;--brand:#8B7BFF;--brand-2:#5EA2FF;--good:#5EE6A8;--warn:#F7C566;--bad:#FF8A8A;--orb:#8B7BFF;
  background:var(--ink-0);color:var(--text);grid-template-columns:236px minmax(0,1fr);font-feature-settings:"tnum" 1,"cv11" 1;
}
/* ---- menu ---- */
.owner-dashboard-shell .owner-nav{padding:14px 12px 20px;gap:2px;background:linear-gradient(180deg,var(--ink-1),#080D17);border-right:1px solid var(--line);overflow:auto;scrollbar-width:thin}
.owner-dashboard-shell .owner-nav-btn{position:relative;min-height:42px;padding:7px 10px;border-radius:12px;gap:11px;color:var(--muted);border:1px solid transparent;transition:background .15s,color .15s,border-color .15s}
.owner-dashboard-shell .owner-nav-btn .nav-orb{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;font-size:0;color:var(--orb);background:color-mix(in srgb,var(--orb) 11%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orb) 32%,transparent);transition:background .15s,color .15s,box-shadow .15s}
.owner-dashboard-shell .owner-nav-btn b{font-size:13px;font-weight:620;letter-spacing:-.005em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dashboard-shell .owner-nav-btn:hover{background:rgba(255,255,255,.035);color:var(--text)}
.owner-dashboard-shell .owner-nav-btn.active{background:var(--ink-3);border-color:var(--line-2);color:#fff}
.owner-dashboard-shell .owner-nav-btn.active .nav-orb{background:var(--orb);color:#0A0F1C;box-shadow:0 0 0 4px color-mix(in srgb,var(--orb) 16%,transparent),0 6px 18px color-mix(in srgb,var(--orb) 30%,transparent)}
.owner-dashboard-shell .owner-nav-btn:focus-visible,.owner-dashboard-shell .owner-stat.link:focus-visible,.owner-dashboard-shell .section-switch:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.owner-nav-rule{display:block;flex:0 0 1px;height:1px;margin:10px 8px;background:var(--line)}
.owner-nav-btn .nav-short{display:none;font-style:normal}
/* ---- the page of a section ---- */
.owner-dashboard-shell .owner-content{position:relative;padding:28px 32px 64px;background:
  radial-gradient(900px 420px at 100% -8%,color-mix(in srgb,var(--orb) 9%,transparent),transparent 62%),var(--ink-0);color:var(--text);scrollbar-width:thin}
.owner-dashboard-shell .owner-content>*{max-width:1180px}
.owner-dashboard-shell .section-orb{float:left;display:grid;place-items:center;width:46px;height:46px;margin:2px 14px 0 0;border-radius:50%;color:#0A0F1C;background:radial-gradient(circle at 32% 28%,color-mix(in srgb,var(--orb) 55%,#fff),var(--orb) 62%);box-shadow:0 0 0 6px color-mix(in srgb,var(--orb) 13%,transparent),0 10px 30px color-mix(in srgb,var(--orb) 28%,transparent)}
.owner-dashboard-shell .owner-content h2{margin:9px 0 0;font-size:27px;line-height:1.15;font-weight:780;letter-spacing:-.025em;color:#fff;overflow-wrap:anywhere}
.owner-dashboard-shell .owner-content>h2+p,.owner-dashboard-shell .owner-content>.money-title+p,.owner-dashboard-shell .owner-content>.section-orb~p:first-of-type{clear:both;max-width:720px;padding-top:12px;margin:0;font-size:13.5px;line-height:1.6;color:var(--muted)}
.owner-dashboard-shell .owner-content h3{font-size:13.5px;font-weight:700;letter-spacing:-.005em;color:#fff}
.owner-dashboard-shell .owner-content p{font-size:13px;line-height:1.6;color:var(--muted)}
.owner-dashboard-shell .owner-content a:not(.btn):not(.owner-mini-btn){color:#B7BEFF}
/* ---- figures ---- */
.owner-dashboard-shell .owner-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:22px 0 6px}
.owner-dashboard-shell .owner-stat{position:relative;overflow:hidden;padding:17px 18px 16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.012)),var(--ink-2);text-align:left;color:inherit;font:inherit}
/* the orbit: a ring that leaves the card at its top corner, like the homepage atom */
.owner-dashboard-shell .owner-stat::before{content:"";position:absolute;right:-46px;top:-58px;width:150px;height:104px;border-radius:50%;border:1px solid color-mix(in srgb,var(--orb) 38%,transparent);transform:rotate(-24deg);pointer-events:none}
.owner-dashboard-shell .owner-stat::after{content:"";position:absolute;right:26px;top:19px;width:7px;height:7px;border-radius:50%;background:var(--orb);box-shadow:0 0 0 4px color-mix(in srgb,var(--orb) 18%,transparent),0 0 16px var(--orb);pointer-events:none}
.owner-dashboard-shell .owner-stat small{margin-bottom:10px;font-size:10.5px;font-weight:700;letter-spacing:.1em;color:var(--muted)}
.owner-dashboard-shell .owner-stat strong{font-size:30px;line-height:1.08;font-weight:780;letter-spacing:-.03em;color:#fff;overflow-wrap:anywhere}
.owner-dashboard-shell .owner-stat em{margin-top:7px;font-size:11.5px;line-height:1.45;color:var(--faint)}
.owner-dashboard-shell button.owner-stat.link{display:block;width:100%;cursor:pointer;transition:transform .15s,border-color .15s,background .15s}
.owner-dashboard-shell button.owner-stat.link:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--orb) 55%,var(--line))}
.owner-dashboard-shell .owner-stat strong.money-negative,.owner-dashboard-shell .money-figure.negative{color:var(--bad)}
.owner-dashboard-shell .owner-stat strong.money-positive,.owner-dashboard-shell .money-figure.positive{color:var(--good)}
.owner-dashboard-shell .owner-stat strong.payment-status-text,.owner-dashboard-shell .owner-stat strong.customer-since{font-size:19px;line-height:1.3}
/* ---- cards ---- */
.owner-dashboard-shell .owner-section{margin-top:16px;border:1px solid var(--line);border-radius:18px;background:var(--ink-2);overflow:hidden}
.owner-dashboard-shell .owner-section-head{padding:15px 18px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.015)}
.owner-dashboard-shell .owner-section-head small{font-size:11.5px;color:var(--faint)}
.owner-dashboard-shell .owner-section-body{padding:16px 18px}
.owner-dashboard-shell .owner-empty{padding:34px 20px;border:1px dashed var(--line-2);border-radius:14px;color:var(--muted);font-size:13px;line-height:1.6}
.owner-dashboard-shell .privacy-callout{border:1px solid var(--line-2);border-radius:14px;background:var(--ink-3);padding:15px 16px;margin:16px 0 0}
.owner-dashboard-shell .privacy-callout strong{font-size:13px;color:#fff}
.owner-dashboard-shell .privacy-callout.warning{border-color:rgba(247,197,102,.4);background:rgba(247,197,102,.06)}
.owner-dashboard-shell .privacy-callout.danger{border-color:rgba(255,138,138,.4);background:rgba(255,138,138,.06)}
.owner-dashboard-shell .setup-row{align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:var(--ink-1)}
.owner-dashboard-shell .setup-row b{font-size:13px;font-weight:620}
.owner-dashboard-shell .setup-row small{font-size:11.5px;color:var(--faint)}
.owner-dashboard-shell .setup-check{background:rgba(94,230,168,.14);color:var(--good)}
.owner-dashboard-shell .setup-check.pending{background:rgba(247,197,102,.16);color:var(--warn)}
/* ---- tables ---- */
.owner-dashboard-shell .owner-table{font-size:13px}
.owner-dashboard-shell .owner-table th{padding:10px 10px;font-size:10.5px;font-weight:700;letter-spacing:.09em;color:var(--faint);border-bottom:1px solid var(--line)}
.owner-dashboard-shell .owner-table td{padding:13px 10px;border-bottom:1px solid var(--line);color:#DCE3EF}
.owner-dashboard-shell .owner-table td small{color:var(--faint);font-size:11.5px}
.owner-dashboard-shell .owner-table tbody tr:hover td{background:rgba(255,255,255,.02)}
.owner-dashboard-shell .status-pill{padding:4px 10px;font-size:10.5px;font-weight:700;letter-spacing:.02em;text-transform:capitalize}
.owner-dashboard-shell .enquiry-message{max-width:46ch;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
/* ---- buttons and forms ---- */
.owner-dashboard-shell .owner-mini-btn{padding:8px 12px;border:1px solid var(--line-2);border-radius:10px;background:var(--ink-3);color:var(--text);font-size:12px;font-weight:620;text-decoration:none;white-space:nowrap;transition:background .15s,border-color .15s}
.owner-dashboard-shell .owner-mini-btn:hover{background:#1B2942;border-color:#3A4D72}
.owner-dashboard-shell .owner-mini-btn.danger{border-color:rgba(255,138,138,.38);color:#FFB3B3;background:rgba(255,138,138,.06)}
.owner-dashboard-shell .owner-mini-btn[disabled]{opacity:.5;cursor:not-allowed}
.owner-dashboard-shell .btn{border-radius:12px;font-size:12.5px}
.owner-dashboard-shell .btn.primary{display:inline-flex;align-items:center;gap:8px;border:0;background:linear-gradient(135deg,#9B8CFF,#5EA2FF);color:#0A0F1C;font-weight:750;box-shadow:0 10px 26px rgba(107,124,255,.28);text-decoration:none}
.owner-dashboard-shell .btn.primary:hover:not(:disabled){filter:brightness(1.07)}
.owner-dashboard-shell .owner-form{gap:14px}
.owner-dashboard-shell .owner-form label,.owner-dashboard-shell .booking-form label{gap:7px;font-size:12px;font-weight:600;color:var(--muted)}
.owner-dashboard-shell .owner-form input,.owner-dashboard-shell .owner-form select,.owner-dashboard-shell .owner-form textarea,.owner-dashboard-shell .customer-toolbar input,.owner-dashboard-shell .customer-toolbar select,.owner-dashboard-shell .money-year select{min-height:42px;padding:10px 12px;border:1px solid var(--line-2);border-radius:11px;background:var(--ink-1);color:var(--text);font-size:14px}
.owner-dashboard-shell .owner-form input[type=checkbox]{min-height:0;width:17px;height:17px;accent-color:var(--brand)}
.owner-dashboard-shell .owner-form input:focus,.owner-dashboard-shell .owner-form select:focus,.owner-dashboard-shell .owner-form textarea:focus,.owner-dashboard-shell .customer-toolbar input:focus,.owner-dashboard-shell .customer-toolbar select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(139,123,255,.2)}
.owner-dashboard-shell .owner-hint{font-size:11.5px;font-weight:400;line-height:1.5;color:var(--faint)}
/* ---- added by hand: the booking, enquiry and sale forms ---- */
.owner-dashboard-shell .hand-form{margin-top:12px;border-color:color-mix(in srgb,var(--orb) 45%,var(--line))}
.owner-dashboard-shell .hand-customer{display:grid;gap:6px;min-width:0}
.owner-dashboard-shell .hand-suggest{display:grid;gap:2px;padding:6px;border:1px solid var(--line-2);border-radius:12px;background:var(--ink-2)}
.owner-dashboard-shell .hand-suggest[hidden]{display:none}
.owner-dashboard-shell .hand-suggestion{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;width:100%;min-height:40px;padding:9px 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}
.owner-dashboard-shell .hand-suggestion span{color:var(--muted);font-size:12.5px}
.owner-dashboard-shell .hand-suggestion:hover,.owner-dashboard-shell .hand-suggestion:focus-visible{background:color-mix(in srgb,var(--brand) 20%,transparent);outline:none}
.owner-dashboard-shell .hand-hint{margin:12px 0 0!important;color:var(--muted)!important;font-size:12.5px!important;line-height:1.5}
.owner-dashboard-shell .owner-form .hand-hint{margin:-6px 0 0!important}
.owner-dashboard-shell .hand-hint:empty{display:none}
.owner-dashboard-shell .hand-hint.warn{color:var(--warn)!important}
.owner-dashboard-shell .hand-form .customer-add-error{margin:12px 0 0}
.owner-dashboard-shell .hand-form .owner-actions{margin-top:14px}
.owner-dashboard-shell .came-from{color:var(--faint)}
/* ---- links and other software ---- */
.owner-dashboard-shell .link-card .owner-section-head{align-items:center}
.owner-dashboard-shell .link-card.on{border-color:color-mix(in srgb,var(--orb) 45%,var(--line))}
.owner-dashboard-shell .link-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.owner-dashboard-shell .link-row input{flex:1 1 260px;min-width:0;min-height:42px;padding:10px 12px;border:1px solid var(--line-2);border-radius:11px;background:var(--ink-1);color:var(--text);font:inherit;font-size:14px}
.owner-dashboard-shell .link-row input:focus,.owner-dashboard-shell .link-embed textarea:focus{outline:2px solid var(--brand);outline-offset:1px}
.owner-dashboard-shell .link-off,.owner-dashboard-shell .key-status{margin:0 0 12px;color:var(--muted);font-size:13.5px;line-height:1.55}
.owner-dashboard-shell .key-status b{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:600}
.owner-dashboard-shell .link-embed{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}
.owner-dashboard-shell .link-embed summary{cursor:pointer;color:var(--text);font-size:13.5px;font-weight:650}
.owner-dashboard-shell .link-embed summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px;border-radius:6px}
.owner-dashboard-shell .link-embed p{margin:10px 0;color:var(--muted);font-size:13px;line-height:1.55}
.owner-dashboard-shell .link-embed textarea,.owner-dashboard-shell .code-block{display:block;width:100%;box-sizing:border-box;margin:0 0 10px;padding:12px;border:1px solid var(--line-2);border-radius:11px;background:var(--ink-0);color:#CFE3FF;font:12.5px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;resize:vertical}
.owner-dashboard-shell .code-block{white-space:pre;overflow-x:auto}
.owner-dashboard-shell .link-embed code{padding:1px 5px;border-radius:5px;background:var(--ink-0);color:#CFE3FF;font:12.5px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.owner-dashboard-shell .key-once{margin:0 0 14px}
.owner-dashboard-shell .events-sent{display:grid;gap:18px}
.owner-dashboard-shell .events-group-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:14px}
.owner-dashboard-shell .events-group-head span{color:var(--muted);font-variant-numeric:tabular-nums}
.owner-dashboard-shell .source-bars .analytics-row span small{display:block;margin-top:2px;color:var(--faint);font-size:11.5px;font-weight:400}
.owner-dashboard-shell .source-bars .analytics-row b small{margin-left:8px;color:var(--faint);font-size:11.5px;font-weight:500}
.owner-dashboard-shell .customer-source{margin:6px 0 0;color:var(--muted);font-size:13px}
.owner-dashboard-shell .customer-source b{color:var(--text);font-weight:650}
.owner-dashboard-shell .sale-table td:nth-child(5){white-space:nowrap}
.owner-dashboard-shell .owner-inline-check span{font-size:13px;font-weight:500;color:#D6DDEA}
.owner-dashboard-shell .analytics-row{font-size:12.5px;grid-template-columns:minmax(90px,170px) 1fr 54px}
.owner-dashboard-shell .analytics-track{height:9px;background:var(--ink-1)}
.owner-dashboard-shell .analytics-track i{background:linear-gradient(90deg,var(--orb),color-mix(in srgb,var(--orb) 55%,#fff))}
.owner-dashboard-shell .customer-tag{border-color:var(--line-2);background:var(--ink-3);font-size:11px}
.owner-dashboard-shell .customer-row:hover td{background:rgba(255,255,255,.03)}
.owner-dashboard-shell .customer-event b{font-size:13px}.owner-dashboard-shell .customer-event small{font-size:11.5px}
.owner-dashboard-shell .payment-connection{border-color:var(--line-2);background:var(--ink-1);border-radius:14px}
/* ---- Today ---- */
.website-prompt .owner-section-body{display:flex;align-items:center;gap:14px}
.website-prompt .owner-section-body>div{flex:1;min-width:0}.website-prompt b{font-size:13.5px;color:#fff}.website-prompt p{margin:3px 0 0}
.overview-more{margin:16px 2px 0!important;font-size:12.5px!important;color:var(--faint)!important}
.overview-more .customer-link b{color:#B7BEFF;font-weight:650}
/* ---- More sections ---- */
.section-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.section-grid.one{grid-template-columns:1fr}
.section-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 15px;border:1px solid var(--line);border-radius:15px;background:var(--ink-1);transition:border-color .15s,background .15s}
.section-card.on{border-color:color-mix(in srgb,var(--orb) 42%,var(--line));background:color-mix(in srgb,var(--orb) 5%,var(--ink-1))}
.section-card.soon{opacity:.72}
.section-card-orb,.setup-orb{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;color:var(--orb);background:color-mix(in srgb,var(--orb) 12%,transparent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--orb) 36%,transparent)}
.section-card.on .section-card-orb{background:var(--orb);color:#0A0F1C;box-shadow:0 0 0 5px color-mix(in srgb,var(--orb) 14%,transparent)}
.section-card-copy b{display:block;font-size:14px;font-weight:700;color:#fff}
.section-card-copy p{margin:3px 0 0!important;font-size:12.5px!important;line-height:1.45!important}
.section-card-side{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.section-card-hint{display:block;margin-top:5px;font-size:11.5px;line-height:1.4;color:var(--faint)}
.owner-dashboard-shell .service-card{padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--ink-1)}
.owner-dashboard-shell .staff-private-pane,.owner-dashboard-shell .staff-public-pane{border-color:var(--line);background:var(--ink-1);border-radius:14px}
.owner-dashboard-shell .day-hours b{font-size:12px}
@media(max-width:650px){.account-notice-banner.preview{flex-direction:row;align-items:center;gap:10px;padding:9px 12px}.account-notice-banner.preview span{display:none}.account-notice-banner.preview .owner-mini-btn{padding:8px 11px}}
.section-switch{display:inline-flex;align-items:center;gap:9px;padding:0;border:0;background:none;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer}
.section-switch i{position:relative;display:block;width:44px;height:26px;border-radius:999px;background:#243149;transition:background .18s}
.section-switch i::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#C9D2E3;transition:transform .18s,background .18s}
.section-switch[aria-checked="true"]{color:#fff}
.section-switch[aria-checked="true"] i{background:var(--orb)}
.section-switch[aria-checked="true"] i::after{transform:translateX(18px);background:#0A0F1C}
.section-switch[disabled]{opacity:.6;cursor:progress}
.section-switch span{min-width:22px;text-align:left}
#exportEverythingBtn svg{flex:0 0 auto}
@media(prefers-reduced-motion:reduce){.owner-dashboard-shell *{transition:none!important}}

/* ---- narrower screens ---- */
@media(max-width:900px){
  .owner-dashboard-shell{grid-template-columns:200px minmax(0,1fr)}
  .owner-dashboard-shell .owner-content{padding:22px 20px 56px}
  .owner-dashboard-shell .owner-nav-btn b{font-size:12.5px}
}
@media(max-width:650px){
  .owner-dashboard-shell{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}
  .owner-dashboard-shell .owner-nav{flex-direction:row;align-items:stretch;gap:2px;padding:6px 8px;border-right:0;border-bottom:1px solid var(--line);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none}
  .owner-dashboard-shell .owner-nav::-webkit-scrollbar{display:none}
  .owner-dashboard-shell .owner-nav-btn{flex:0 0 auto;flex-direction:column;justify-content:center;gap:4px;min-width:66px;min-height:56px;padding:6px 6px 5px;scroll-snap-align:center}
  .owner-dashboard-shell .owner-nav-btn span.nav-orb{display:grid;width:28px;height:28px;flex-basis:28px}
  .owner-dashboard-shell .owner-nav-btn b{display:none}
  .owner-dashboard-shell .owner-nav-btn .nav-short{display:block;font-size:10.5px;font-weight:650;white-space:nowrap}
  .owner-nav-rule{flex:0 0 1px;width:1px;height:auto;margin:8px 4px}
  .owner-dashboard-shell .owner-content{padding:18px 14px 44px}
  .owner-dashboard-shell .section-orb{width:40px;height:40px;margin-right:12px}
  .owner-dashboard-shell .owner-content h2{font-size:23px}
  .owner-dashboard-shell .owner-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
  .owner-dashboard-shell .owner-grid[data-count="1"],.owner-dashboard-shell .owner-grid[data-count="3"]>:last-child{grid-column:1/-1}
  .owner-dashboard-shell .owner-stat{padding:14px 14px 13px;border-radius:16px}
  .owner-dashboard-shell .owner-stat strong{font-size:24px}
  .owner-dashboard-shell .owner-section-head,.owner-dashboard-shell .owner-section-body{padding-left:14px;padding-right:14px}
  .owner-dashboard-shell .owner-form input,.owner-dashboard-shell .owner-form select,.owner-dashboard-shell .owner-form textarea,.owner-dashboard-shell .customer-toolbar input,.owner-dashboard-shell .customer-toolbar select{min-height:46px;font-size:16px}
  .owner-dashboard-shell .owner-mini-btn{padding:10px 13px;font-size:12.5px}
  .owner-dashboard-shell .setup-row{flex-wrap:wrap}
  .owner-dashboard-shell .setup-row .overview-action{margin-left:36px;flex:1 1 100%;text-align:center}
  /* Bookings and enquiries become cards: nothing important is ever off the side of the screen. */
  .owner-dashboard-shell .bookings-table,.owner-dashboard-shell .enquiries-table{display:block;min-width:0}
  .owner-dashboard-shell .bookings-table thead,.owner-dashboard-shell .enquiries-table thead{display:none}
  .owner-dashboard-shell .bookings-table tbody,.owner-dashboard-shell .enquiries-table tbody{display:grid;gap:10px}
  .owner-dashboard-shell .bookings-table tr,.owner-dashboard-shell .enquiries-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--ink-1)}
  .owner-dashboard-shell .bookings-table td,.owner-dashboard-shell .enquiries-table td{display:block;padding:0;border:0;min-width:0}
  .owner-dashboard-shell .bookings-table td:nth-child(1){grid-column:1;grid-row:1}
  .owner-dashboard-shell .bookings-table td:nth-child(5){grid-column:2;grid-row:1;justify-self:end}
  .owner-dashboard-shell .bookings-table td:nth-child(2){grid-column:1/-1}
  .owner-dashboard-shell .bookings-table td:nth-child(3){grid-column:1}
  .owner-dashboard-shell .bookings-table td:nth-child(4){grid-column:2;justify-self:end;color:var(--faint)}
  .owner-dashboard-shell .bookings-table td:nth-child(6),.owner-dashboard-shell .enquiries-table td:nth-child(5){grid-column:1/-1;margin-top:4px}
  .owner-dashboard-shell .enquiries-table td:nth-child(1){grid-column:1;grid-row:1}
  .owner-dashboard-shell .enquiries-table td:nth-child(4){grid-column:2;grid-row:1;justify-self:end}
  .owner-dashboard-shell .enquiries-table td:nth-child(2),.owner-dashboard-shell .enquiries-table td:nth-child(3){grid-column:1/-1}
  .owner-dashboard-shell .bookings-table .owner-actions .owner-mini-btn,.owner-dashboard-shell .enquiries-table .owner-actions .owner-mini-btn{flex:1;text-align:center}
  .section-grid{grid-template-columns:1fr}
  .section-card{grid-template-columns:auto minmax(0,1fr);row-gap:10px}
  .section-card-side{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;text-align:left}
  .section-card-hint{max-width:none}
  .website-prompt .owner-section-body{flex-wrap:wrap}.website-prompt .owner-mini-btn{flex:1 1 100%;text-align:center}
}

/* Money: the sales tax's own name and rate, tucked under the tick box until the owner wants them. */
.owner-dashboard-shell .money-tax-edit{grid-column:1/-1;margin-top:-4px}
.owner-dashboard-shell .money-tax-edit summary{cursor:pointer;width:max-content;max-width:100%;font-size:12.5px;font-weight:600;color:var(--muted);padding:4px 0;border-radius:6px}
.owner-dashboard-shell .money-tax-edit summary:hover{color:var(--text)}
.owner-dashboard-shell .money-tax-edit summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.owner-dashboard-shell .money-tax-fields{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px;margin-top:12px;max-width:520px}
.owner-dashboard-shell .money-tax-fields label{display:grid}
.owner-dashboard-shell .money-tax-note{margin:10px 0 0;font-size:12px;line-height:1.5;color:var(--faint)}
@media(max-width:560px){.owner-dashboard-shell .money-tax-fields{grid-template-columns:1fr}}

.owner-dashboard-shell .today-date{font-weight:650;color:var(--text)}

/* ---- Bookings: list, day and week (business-calendar.js draws the grid) ------------------- */
.owner-dashboard-shell .bookings-bar{align-items:center}
.owner-dashboard-shell .view-switch{display:inline-flex;margin-left:auto;padding:3px;border:1px solid var(--line-2);border-radius:12px;background:var(--ink-1)}
.owner-dashboard-shell .view-switch button{min-width:58px;min-height:34px;padding:6px 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:650;cursor:pointer}
.owner-dashboard-shell .view-switch button:hover{color:var(--text)}
.owner-dashboard-shell .view-switch button.active{background:var(--ink-3);color:#fff;box-shadow:inset 0 0 0 1px var(--line-2)}
.owner-dashboard-shell .view-switch button:focus-visible,.owner-dashboard-shell .cal-slot:focus-visible,.owner-dashboard-shell .cal-event:focus-visible,.owner-dashboard-shell .cal-col-head:focus-visible,.owner-dashboard-shell .cal-scroll:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.owner-dashboard-shell .cal{--cal-time:58px;--cal-min:150px}
.owner-dashboard-shell .cal[data-view="week"]{--cal-min:104px}
.owner-dashboard-shell .cal-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:13px 18px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.015)}
.owner-dashboard-shell .cal-nav{display:inline-flex;gap:6px}
.owner-dashboard-shell .cal-nav .owner-mini-btn{min-width:38px;text-align:center}
.owner-dashboard-shell .cal-bar h3{margin:0;font-size:15px}
.owner-dashboard-shell .cal-bar small{color:var(--faint);font-size:12px}
.owner-dashboard-shell .cal-who,.owner-dashboard-shell .cal-jump{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600}
.owner-dashboard-shell .cal-who{margin-left:auto}
.owner-dashboard-shell .cal[data-view="day"] .cal-jump{margin-left:auto}
.owner-dashboard-shell .cal-who select,.owner-dashboard-shell .cal-jump input{min-height:36px;padding:6px 10px;border:1px solid var(--line-2);border-radius:10px;background:var(--ink-1);color:var(--text);font:inherit;font-size:13px;color-scheme:dark}
.owner-dashboard-shell .cal-who select:focus,.owner-dashboard-shell .cal-jump input:focus{outline:2px solid var(--brand);outline-offset:1px}
.owner-dashboard-shell .cal-scroll{max-height:min(640px,calc(100vh - 250px));min-height:260px;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}
.owner-dashboard-shell .cal-grid{min-width:calc(var(--cal-time) + var(--cal-cols) * var(--cal-min))}
.owner-dashboard-shell .cal-head,.owner-dashboard-shell .cal-body{display:grid;grid-template-columns:var(--cal-time) repeat(var(--cal-cols),minmax(var(--cal-min),1fr))}
.owner-dashboard-shell .cal-head{position:sticky;top:0;z-index:4;background:var(--ink-2);border-bottom:1px solid var(--line-2)}
.owner-dashboard-shell .cal-corner,.owner-dashboard-shell .cal-times{position:sticky;left:0;z-index:3;background:var(--ink-2)}
.owner-dashboard-shell .cal-col-head{display:grid;gap:1px;align-content:center;min-height:50px;padding:8px 10px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--text);font:inherit;text-align:left;min-width:0}
.owner-dashboard-shell button.cal-col-head{cursor:pointer}
.owner-dashboard-shell button.cal-col-head:hover{background:rgba(255,255,255,.04)}
.owner-dashboard-shell .cal-col-head b{font-size:13px;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dashboard-shell .cal-col-head span{font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dashboard-shell .cal-col-head.today b,.owner-dashboard-shell .cal-col-head.today span{color:var(--orb)}
.owner-dashboard-shell .cal-times{position:sticky}
.owner-dashboard-shell .cal-times span{position:absolute;right:8px;margin-top:4px;font-size:11px;line-height:1;color:var(--faint);white-space:nowrap}
.owner-dashboard-shell .cal-col{position:relative;border-left:1px solid var(--line);min-width:0}
.owner-dashboard-shell .cal-col.today{background:color-mix(in srgb,var(--orb) 4%,transparent)}
.owner-dashboard-shell .cal-slot{position:absolute;left:0;right:0;margin:0;padding:0;border:0;border-top:1px dashed rgba(255,255,255,.045);border-radius:0;background:transparent;cursor:pointer}
.owner-dashboard-shell .cal-slot.hour{border-top:1px solid var(--line)}
.owner-dashboard-shell .cal-slot.off{background:repeating-linear-gradient(135deg,rgba(255,255,255,.028) 0 6px,transparent 6px 12px)}
.owner-dashboard-shell .cal-slot:hover,.owner-dashboard-shell .cal-slot:focus-visible{background:color-mix(in srgb,var(--orb) 16%,transparent)}
.owner-dashboard-shell .cal-event{position:absolute;z-index:1;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;overflow:hidden;margin:1px 0 0;padding:4px 7px 4px 9px;border:0;border-left:3px solid var(--orb);border-radius:8px;background:color-mix(in srgb,var(--orb) 24%,var(--ink-2));color:#fff;font:inherit;font-size:12px;line-height:1.3;text-align:left;cursor:pointer;box-shadow:0 0 0 1px var(--ink-2)}
.owner-dashboard-shell .cal-event:hover{background:color-mix(in srgb,var(--orb) 34%,var(--ink-2))}
.owner-dashboard-shell .cal-event b{font-weight:700;font-size:11.5px;color:color-mix(in srgb,var(--orb) 55%,#fff)}
.owner-dashboard-shell .cal-line{display:block;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dashboard-shell .cal-event.tight .cal-line b{display:none}
.owner-dashboard-shell .cal-event small{display:block;margin-top:1px;font-size:11px;color:rgba(255,255,255,.72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.owner-dashboard-shell .cal-event.short{padding-top:2px;padding-bottom:2px}
.owner-dashboard-shell .cal-event.short small{display:none}
.owner-dashboard-shell .cal-event.is-completed{border-left-color:var(--good);background:color-mix(in srgb,var(--good) 13%,var(--ink-2))}
.owner-dashboard-shell .cal-event.is-completed b{color:var(--good)}
.owner-dashboard-shell .cal-event.is-noshow{border-left-color:var(--warn);background:color-mix(in srgb,var(--warn) 13%,var(--ink-2))}
.owner-dashboard-shell .cal-event.is-noshow b{color:var(--warn)}
.owner-dashboard-shell .cal-now{position:absolute;left:0;right:0;z-index:2;height:2px;margin-top:-1px;background:var(--bad);pointer-events:none}
.owner-dashboard-shell .cal-now::before{content:"";position:absolute;left:-4px;top:-3px;width:8px;height:8px;border-radius:50%;background:var(--bad)}
.owner-dashboard-shell .cal-help{margin:0!important;padding:11px 18px;border-top:1px solid var(--line);font-size:12px!important;color:var(--faint)!important}
.owner-dashboard-shell .change-who{margin:0 0 12px!important;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;color:var(--text)!important;font-size:14px!important}
.owner-dashboard-shell .change-who small{color:var(--muted);font-size:12px;font-weight:400}
.owner-dashboard-shell .change-note{margin:-4px 0 14px!important;padding:9px 12px;border-left:2px solid var(--line-2);color:var(--muted)!important;font-size:12.5px!important;white-space:pre-wrap;overflow-wrap:anywhere}
.owner-dashboard-shell .booking-by{display:block;margin-top:3px;color:var(--faint);font-size:11.5px}
/* ---- the private calendar link, in Links and software ---- */
.owner-dashboard-shell .calendar-steps{margin:10px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.owner-dashboard-shell .calendar-steps li{color:var(--muted);font-size:13px;line-height:1.55}
.owner-dashboard-shell .calendar-steps b{color:var(--text)}
@media(max-width:760px){
  /* A phone shows one day at a time; a week of columns cannot be read at that width. */
  .owner-dashboard-shell .view-switch{margin-left:0;flex:1 1 100%}
  .owner-dashboard-shell .view-switch button{flex:1;min-height:40px}
  .owner-dashboard-shell .view-switch [data-cal-view="week"]{display:none}
  .owner-dashboard-shell .cal{--cal-time:48px;--cal-min:128px}
  .owner-dashboard-shell .cal-bar{padding:12px 14px;gap:10px}
  .owner-dashboard-shell .cal-bar h3{flex:1 1 100%;order:-1;font-size:16px}
  .owner-dashboard-shell .cal-nav .owner-mini-btn{min-width:44px;min-height:40px}
  .owner-dashboard-shell .cal-who,.owner-dashboard-shell .cal[data-view="day"] .cal-jump{margin-left:auto}
  .owner-dashboard-shell .cal-jump span{display:none}
  .owner-dashboard-shell .cal-jump input{min-height:40px;font-size:16px}
  .owner-dashboard-shell .cal-scroll{max-height:calc(100vh - 230px);max-height:calc(100dvh - 230px)}
  .owner-dashboard-shell .cal-help{padding:10px 14px}
}

/* ---- Quotes and invoices ----------------------------------------------------------------- */
.owner-dashboard-shell .status-pill[class*="paper-"]{text-transform:none;border:1px solid var(--line-2);background:var(--ink-3);color:var(--muted)}
.owner-dashboard-shell .status-pill.paper-sent,.owner-dashboard-shell .status-pill.paper-viewed{border-color:rgba(94,162,255,.4);background:rgba(94,162,255,.1);color:#A9CBFF}
.owner-dashboard-shell .status-pill.paper-accepted,.owner-dashboard-shell .status-pill.paper-paid{border-color:rgba(94,230,168,.4);background:rgba(94,230,168,.1);color:var(--good)}
.owner-dashboard-shell .status-pill.paper-due,.owner-dashboard-shell .status-pill.paper-part_paid,.owner-dashboard-shell .status-pill.paper-expired{border-color:rgba(247,197,102,.42);background:rgba(247,197,102,.09);color:var(--warn)}
.owner-dashboard-shell .status-pill.paper-overdue,.owner-dashboard-shell .status-pill.paper-declined{border-color:rgba(255,138,138,.42);background:rgba(255,138,138,.08);color:var(--bad)}
.owner-dashboard-shell .owed-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.owner-dashboard-shell .owed-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));max-width:560px}
.owner-dashboard-shell .owed-bucket{display:grid;gap:5px;padding:14px 14px 13px;border:1px solid var(--line);border-radius:14px;background:var(--ink-1);color:var(--text);font:inherit;text-align:left;cursor:pointer;min-width:0;transition:border-color .15s,background .15s}
.owner-dashboard-shell .owed-bucket small{font-size:11.5px;font-weight:600;color:var(--muted)}
.owner-dashboard-shell .owed-bucket strong{font-size:20px;font-weight:760;letter-spacing:-.02em;overflow-wrap:anywhere}
.owner-dashboard-shell .owed-bucket em{font-style:normal;font-size:11.5px;color:var(--faint)}
.owner-dashboard-shell .owed-bucket.late:not(:disabled) strong{color:var(--warn)}
.owner-dashboard-shell .owed-bucket:hover:not(:disabled){border-color:color-mix(in srgb,var(--orb) 55%,var(--line))}
.owner-dashboard-shell .owed-bucket.active{border-color:var(--orb);background:color-mix(in srgb,var(--orb) 9%,var(--ink-1))}
.owner-dashboard-shell .owed-bucket:disabled{opacity:.55;cursor:default}
.owner-dashboard-shell .owed-bucket:focus-visible,.owner-dashboard-shell .paper-filter select:focus-visible,.owner-dashboard-shell .paper-line input:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.owner-dashboard-shell .paper-filter{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:600}
.owner-dashboard-shell .paper-filter select{min-height:36px;padding:6px 10px;border:1px solid var(--line-2);border-radius:10px;background:var(--ink-1);color:var(--text);font:inherit;font-size:13px}
.owner-dashboard-shell .owner-table .num{text-align:right;white-space:nowrap}
.owner-dashboard-shell .paper-late{color:var(--warn)!important}
.owner-dashboard-shell .paper-panel .owner-section-head{align-items:flex-start;gap:12px}
.owner-dashboard-shell .paper-panel h3{font-size:16px;outline:none}
.owner-dashboard-shell .paper-facts{display:flex;flex-wrap:wrap;gap:3px 14px;margin-top:5px}
.owner-dashboard-shell .paper-head-side{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.owner-dashboard-shell .paper-sums{width:min(340px,100%);margin:14px 0 0 auto}
.owner-dashboard-shell .paper-sums div{display:flex;justify-content:space-between;gap:20px;padding:5px 0;font-size:13.5px}
.owner-dashboard-shell .paper-sums dt{color:var(--muted)}
.owner-dashboard-shell .paper-sums dd{margin:0;font-weight:650;color:var(--text);white-space:nowrap}
.owner-dashboard-shell .paper-sums .total{margin-top:3px;padding-top:9px;border-top:1px solid var(--line-2);font-size:16px}
.owner-dashboard-shell .paper-sums .total dt,.owner-dashboard-shell .paper-sums .total dd{color:#fff;font-weight:760}
.owner-dashboard-shell .paper-sums .note{font-size:12px}
.owner-dashboard-shell .paper-sums .note dt,.owner-dashboard-shell .paper-sums .note dd{color:var(--faint);font-weight:400}
.owner-dashboard-shell .paper-link{margin-top:16px}
.owner-dashboard-shell .paper-actions{margin-top:18px}
.owner-dashboard-shell .pay-form{margin-top:16px;padding:14px;border:1px solid var(--line-2);border-radius:14px;background:var(--ink-1)}
.owner-dashboard-shell .paper-payments{margin-top:16px}
.owner-dashboard-shell .paper-payments h4{margin:0 0 6px;font-size:12.5px;font-weight:650;color:var(--muted)}
.owner-dashboard-shell .paper-payments ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.owner-dashboard-shell .paper-payments li{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;padding:9px 12px;border:1px solid var(--line);border-radius:11px;background:var(--ink-1);font-size:13px;color:var(--text)}
.owner-dashboard-shell .paper-payments li span{flex:1 1 180px;min-width:0;color:var(--muted)}
.owner-dashboard-shell .paper-payments li small{color:var(--faint)}
.owner-dashboard-shell .paper-lines-edit{display:grid;gap:10px;margin-top:16px}
.owner-dashboard-shell .paper-line{display:grid;grid-template-columns:minmax(0,1fr) 96px 120px 110px auto;gap:10px;align-items:end}
.owner-dashboard-shell .paper-line label{display:grid;gap:7px;font-size:12px;font-weight:600;color:var(--muted);min-width:0}
.owner-dashboard-shell .paper-line:not(:first-child) label span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.owner-dashboard-shell .paper-line input{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line-2);border-radius:11px;background:var(--ink-1);color:var(--text);font:inherit;font-size:14px}
.owner-dashboard-shell .paper-line .line-qty input,.owner-dashboard-shell .paper-line .line-price input{text-align:right}
.owner-dashboard-shell .paper-line .line-amount{display:block;min-height:42px;padding:11px 0;text-align:right;font-size:14px;font-weight:650;color:var(--text);white-space:nowrap}
.owner-dashboard-shell .paper-line .owner-mini-btn{min-height:42px}
.owner-dashboard-shell .paper-form-foot{margin-top:18px}
.owner-dashboard-shell .owner-form textarea{resize:vertical;font:inherit;font-size:14px;line-height:1.45}
.owner-dashboard-shell .pw-logo{display:grid;gap:7px;align-content:start}
.owner-dashboard-shell .pw-logo-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.owner-dashboard-shell .pw-logo-row img{max-width:150px;max-height:54px;padding:6px;border-radius:8px;background:#fff;object-fit:contain}
.owner-dashboard-shell .pw-logo-none{color:var(--faint);font-size:12.5px}
@media(max-width:900px){.owner-dashboard-shell .owed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.owner-dashboard-shell .owed-grid>:first-child{grid-column:1/-1}.owner-dashboard-shell .owed-grid.two>:first-child{grid-column:auto}}
@media(max-width:760px){
  /* Lists of quotes and invoices become cards, like bookings: nothing is off the side of the screen. */
  .owner-dashboard-shell .paper-table{display:block;min-width:0}
  .owner-dashboard-shell .paper-table thead{display:none}
  .owner-dashboard-shell .paper-table tbody{display:grid;gap:10px}
  .owner-dashboard-shell .paper-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--ink-1)}
  .owner-dashboard-shell .paper-table td{display:block;padding:0;border:0;min-width:0;text-align:left}
  .owner-dashboard-shell .paper-table td:nth-child(1){grid-column:1;grid-row:1}
  .owner-dashboard-shell .paper-table td:nth-last-child(2){grid-column:2;grid-row:1;justify-self:end}
  .owner-dashboard-shell .paper-table td:nth-child(2){grid-column:1/-1}
  .owner-dashboard-shell .paper-table td:nth-child(3){grid-column:1;color:var(--faint)}
  .owner-dashboard-shell .paper-table td:nth-child(4){grid-column:2;justify-self:end;font-weight:700}
  .owner-dashboard-shell .paper-table.invoices td:nth-child(5){grid-column:1/-1;color:var(--warn)}
  .owner-dashboard-shell .paper-table.invoices td:nth-child(5)::before{content:"Owed "}
  .owner-dashboard-shell .paper-table td:last-child{grid-column:1/-1;margin-top:4px}
  .owner-dashboard-shell .paper-table .owner-actions .owner-mini-btn{flex:1;text-align:center}
  .owner-dashboard-shell .paper-line{grid-template-columns:1fr 1fr;padding:12px;border:1px solid var(--line);border-radius:13px}
  .owner-dashboard-shell .paper-line .line-what{grid-column:1/-1}
  .owner-dashboard-shell .paper-line:not(:first-child) label span{position:static;width:auto;height:auto;clip:auto}
  .owner-dashboard-shell .paper-line .line-amount{grid-column:1;text-align:left;padding:8px 0 0}
  .owner-dashboard-shell .paper-line input{min-height:46px;font-size:16px}
  .owner-dashboard-shell .paper-panel .owner-section-head,.owner-dashboard-shell #paperForm .owner-section-head{flex-wrap:wrap;gap:4px 12px}
  .owner-dashboard-shell .paper-actions .btn,.owner-dashboard-shell .paper-actions .owner-mini-btn{flex:1 1 auto;text-align:center}
  .owner-dashboard-shell .paper-sums{width:100%}
}

/* ==============================================================================================
   Build set 5, run 1: questions and problems are part of the page (no browser pop-ups)
   ============================================================================================== */
/* "Are you sure?" */
.owner-dashboard-shell .owner-ask{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px;background:rgba(4,7,14,.74)}
.owner-dashboard-shell .owner-ask-card{width:min(440px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:22px 22px 18px;border:1px solid var(--line-2);border-radius:18px;background:var(--ink-2);box-shadow:0 30px 80px rgba(0,0,0,.55);text-align:left}
.owner-dashboard-shell .owner-ask-card h3{margin:0;font-size:16.5px;line-height:1.35;color:#fff;overflow-wrap:anywhere}
.owner-dashboard-shell .owner-ask-card p{margin:9px 0 0;color:var(--muted);font-size:13.5px;line-height:1.55;overflow-wrap:anywhere}
.owner-dashboard-shell .owner-ask-card .owner-actions{margin-top:20px;justify-content:flex-end}
.owner-dashboard-shell .owner-ask-card .btn.primary,.owner-dashboard-shell .owner-ask-card .owner-mini-btn{min-height:40px;padding:0 16px;font-size:13px}
.owner-dashboard-shell .owner-ask-card .btn.primary.danger{background:var(--bad);box-shadow:none;color:#2A0B0B}
.owner-dashboard-shell .owner-ask-card button:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* Something could not be done: why, and the button that goes to the fix */
.owner-dashboard-shell .owner-problem{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px;margin:0 0 18px;padding:13px 16px;border:1px solid rgba(247,197,102,.5);border-radius:14px;background:rgba(247,197,102,.08)}
.owner-dashboard-shell .owner-problem-text{flex:1 1 280px;min-width:0;color:var(--text);font-size:13.5px;line-height:1.5}
.owner-dashboard-shell .owner-problem-text b{color:#fff}
.owner-dashboard-shell .fix-here{outline:2px solid var(--warn);outline-offset:6px;border-radius:12px}
.owner-dashboard-shell .needs-choice select{border-color:var(--warn);box-shadow:0 0 0 3px rgba(247,197,102,.18)}
.owner-dashboard-shell .needs-choice>span em{color:var(--warn);font-style:normal;font-weight:650}
.owner-dashboard-shell .privacy-callout p .customer-link{margin-left:4px}

/* A section built since this business chose its sections */
.owner-dashboard-shell .section-offer .owner-section-body{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.owner-dashboard-shell .section-offer .owner-section-body>div:not(.owner-actions){flex:1 1 260px;min-width:0}
.owner-dashboard-shell .section-offer b{font-size:13.5px;color:#fff}
.owner-dashboard-shell .section-offer p{margin:3px 0 0}

/* What became of the email about a quote or an invoice */
.owner-dashboard-shell .paper-email{display:flex;align-items:flex-start;flex-wrap:wrap;gap:10px 12px;margin:14px 0 0;padding:12px 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--ink-3)}
.owner-dashboard-shell .paper-email-mark{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:var(--line-2);color:#fff;font-size:12px;font-weight:800;line-height:1}
.owner-dashboard-shell .paper-email.is-sent .paper-email-mark{background:var(--good);color:#06281A}
.owner-dashboard-shell .paper-email.is-failed,.owner-dashboard-shell .paper-email.is-held,.owner-dashboard-shell .paper-email.is-retrying{border-color:rgba(255,138,138,.45);background:rgba(255,138,138,.06)}
.owner-dashboard-shell .paper-email.is-failed .paper-email-mark,.owner-dashboard-shell .paper-email.is-held .paper-email-mark,.owner-dashboard-shell .paper-email.is-retrying .paper-email-mark{background:var(--bad);color:#2A0B0B}
.owner-dashboard-shell .paper-email-text{flex:1 1 240px;min-width:0;font-size:13px}
.owner-dashboard-shell .paper-email-text b{color:#fff}
.owner-dashboard-shell .paper-email-text small{margin-left:6px;color:var(--muted)}
.owner-dashboard-shell .paper-email-text p{margin:3px 0 0;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.owner-dashboard-shell .paper-hint{margin:12px 0 0!important}

/* Who a new quote or invoice is from */
.owner-dashboard-shell .paper-from{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin:0 0 18px;padding:12px 14px;border:1px dashed var(--line-2);border-radius:12px}
.owner-dashboard-shell .paper-from>div{flex:1 1 260px;min-width:0}
.owner-dashboard-shell .paper-from b{display:block;color:#fff;font-size:13.5px;overflow-wrap:anywhere}
.owner-dashboard-shell .paper-from small{display:block;margin-top:2px;color:var(--muted);font-size:12.5px;line-height:1.5}

@media(max-width:650px){
  .owner-dashboard-shell .owner-ask{align-items:end;padding:10px}
  .owner-dashboard-shell .owner-ask-card{padding:20px 18px 16px}
  .owner-dashboard-shell .owner-ask-card .owner-actions{flex-direction:column-reverse}
  .owner-dashboard-shell .owner-ask-card .btn.primary,.owner-dashboard-shell .owner-ask-card .owner-mini-btn{width:100%;min-height:46px;justify-content:center;text-align:center;font-size:14px}
  .owner-dashboard-shell .owner-problem .owner-actions,.owner-dashboard-shell .section-offer .owner-actions{flex:1 1 100%}
  .owner-dashboard-shell .owner-problem .owner-actions>*,.owner-dashboard-shell .section-offer .owner-actions>*{flex:1 1 auto;min-height:44px;justify-content:center;text-align:center}
  .owner-dashboard-shell .paper-email>.owner-mini-btn,.owner-dashboard-shell .paper-from>.owner-mini-btn{flex:1 1 100%;min-height:44px;text-align:center}
}

/* "Your plan would change": the new monthly figure, accepted before anything is charged */
.owner-dashboard-shell .plan-change{margin-top:14px;padding:18px 18px 16px;border:1px solid color-mix(in srgb,var(--warn) 45%,var(--line-2));border-radius:16px;background:var(--ink-3)}
.owner-dashboard-shell .plan-change h4{margin:0;font-size:15.5px;color:#fff}
.owner-dashboard-shell .plan-change>p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.55;max-width:680px}
.owner-dashboard-shell .plan-change-sums{width:min(460px,100%);margin:16px 0 0}
.owner-dashboard-shell .plan-change-sums div{display:flex;justify-content:space-between;gap:20px;padding:5px 0;font-size:13.5px}
.owner-dashboard-shell .plan-change-sums dt{color:var(--muted)}
.owner-dashboard-shell .plan-change-sums dt small{display:block;color:var(--faint);font-size:11.5px}
.owner-dashboard-shell .plan-change-sums dd{margin:0;color:var(--text);font-weight:600;white-space:nowrap}
.owner-dashboard-shell .plan-change-sums .head{padding-bottom:7px}
.owner-dashboard-shell .plan-change-sums .head dt,.owner-dashboard-shell .plan-change-sums .head dd{color:#fff;font-weight:700}
.owner-dashboard-shell .plan-change-sums .add{margin-top:6px;padding-top:10px;border-top:1px solid var(--line-2)}
.owner-dashboard-shell .plan-change-sums .add dt,.owner-dashboard-shell .plan-change-sums .add dd{color:var(--warn)}
.owner-dashboard-shell .plan-change-sums .total{margin-top:6px;padding-top:11px;border-top:1px solid var(--text);font-size:17px}
.owner-dashboard-shell .plan-change-sums .total dt,.owner-dashboard-shell .plan-change-sums .total dd{color:#fff;font-weight:780}
.owner-dashboard-shell .plan-change .owner-actions{margin-top:16px}
.owner-dashboard-shell .plan-consents{list-style:none;margin:8px 0 0;padding:0;font-size:12.5px;color:var(--muted)}
.owner-dashboard-shell .plan-consents li{padding:3px 0}
.owner-dashboard-shell .plan-consents li b{display:inline;margin-right:6px;color:var(--text);font-weight:650}
@media(max-width:650px){
  .owner-dashboard-shell .plan-change .owner-actions>*{flex:1 1 100%;min-height:46px;justify-content:center;text-align:center}
}

/* Reminders and alerts: one card per ready-made rule */
.owner-dashboard-shell .alert-rules{display:grid;gap:10px}
.owner-dashboard-shell .alert-rule{display:flex;align-items:flex-start;gap:16px;padding:15px 16px;border:1px solid var(--line);border-radius:14px;background:var(--ink-2)}
.owner-dashboard-shell .alert-rule.on{border-color:var(--line-2)}
.owner-dashboard-shell .alert-rule-copy{flex:1;min-width:0}
.owner-dashboard-shell .alert-rule-copy b{display:block;color:#fff;font-size:14px}
.owner-dashboard-shell .alert-rule.off .alert-rule-copy b{color:var(--muted)}
.owner-dashboard-shell .alert-rule-copy p{margin:3px 0 0;color:var(--muted);font-size:12.5px;line-height:1.5;max-width:640px}
.owner-dashboard-shell .alert-rule-side{flex:0 0 auto;padding-top:1px}
.owner-dashboard-shell .alert-times{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0 0;padding:0;border:0;min-width:0}
.owner-dashboard-shell .alert-times legend{padding:0;margin:0 0 6px;color:var(--muted);font-size:12px;font-weight:600}
.owner-dashboard-shell .alert-times[disabled]{opacity:.45}
.owner-dashboard-shell .alerts-none{color:var(--muted)}
@media(max-width:650px){
  .owner-dashboard-shell .alert-rule{gap:12px;padding:14px}
  .owner-dashboard-shell .alert-times{flex-direction:column;gap:2px}
  .owner-dashboard-shell .alert-times .owner-inline-check{display:flex;align-items:center;min-height:44px}
  .owner-dashboard-shell .alert-rule .section-switch{min-height:44px}
}
