/* WorkOps Night Safe v123 — visual properties only. No layout, positioning, transforms, filters, pointer-events or z-index changes. */
:root{--bg:#0d1020;--panel:#181c31;--ink:#f7f8ff;--text:#f7f8ff;--muted:#aeb5c9;--line:#39405a;--accent:#8b5cf6;--accent2:#b18cff;--dark:#080914;--dark2:#14182b;--soft:#20253b;--good:#39d98a;--bad:#ff6573;--warning:#f4b84a;--shadow-sm:0 9px 24px rgba(0,0,0,.18);--shadow-md:0 16px 40px rgba(0,0,0,.28);--shadow-xl:0 26px 70px rgba(0,0,0,.44)}
html,body{background:#0d1020;color:#f7f8ff}
body{background-image:radial-gradient(circle at 85% 0,rgba(139,92,246,.14),transparent 27%),linear-gradient(180deg,#0d1020,#111529)}
.sidebar{background:linear-gradient(180deg,#080914,#0d0f1f);border-color:#20243a;box-shadow:14px 0 38px rgba(0,0,0,.16)}
.brand-mark,.mobile-nav .create-tab b{background:linear-gradient(145deg,#a85cf7,#7353ef 68%,#5a3bd1);box-shadow:0 10px 26px rgba(139,92,246,.34);color:#fff}
.brand b,.side-foot b,.mobile-brand{color:#fff}.brand small,.side-foot small{color:#747c96}
.sidebar nav button{color:#8b93aa}.sidebar nav button:hover{background:#151829;color:#fff}.sidebar nav button.active{background:linear-gradient(90deg,rgba(139,92,246,.23),rgba(139,92,246,.06));color:#fff;box-shadow:inset 3px 0 #9a6cff}
.topbar{background:#0b0d19;border-color:#24283d}.topbar p{color:#858da4}.icon-btn{background:#141728;border-color:#2d324a;color:#d8ddef}.icon-btn:hover{background:#1a1e32;border-color:#424963}
.primary{background:linear-gradient(135deg,#9e5cff,#7657f5 55%,#6047e4);border-color:#7657f5;color:#fff;box-shadow:0 9px 23px rgba(127,88,246,.27)}
.primary:hover{background:linear-gradient(135deg,#aa6bff,#8061fa 55%,#6a50ea);box-shadow:0 13px 30px rgba(127,88,246,.34)}
.secondary{background:#171a2b;border-color:#30354d;color:#dce1f2}.secondary:hover{background:#1d2136;border-color:#434a64;color:#fff}.text-btn{color:#b18cff}
.hero{background:radial-gradient(circle at 84% 6%,rgba(174,103,255,.4),transparent 29%),linear-gradient(135deg,#0c0e1d,#15172f 55%,#201755);border-color:#302d52;box-shadow:0 24px 65px rgba(0,0,0,.32)}
.hero h1{color:#fff}.hero p{color:#b8bed2}.hero .kicker{color:#c09eff}.hero-action{background:#211c3b;border-color:#493c70;color:#fff}
.panel,.workflow-main,.workflow-profile,.quote-card,.quote-step,.price-card,.cert-pref-card,.membership-status-card,.document-branding-card{background:linear-gradient(180deg,#1b2037,#171c31);border-color:#3a425d;color:#f4f6fc;box-shadow:var(--shadow-sm)}
.page-head h1,.panel-head h2,.workflow-head h2,.quote-section-title h3{color:#fff}.page-head p,.workflow-head p,.hint{color:#929ab0}.kicker{color:#9a7bea}
.stats article,.money-strip>div{background:linear-gradient(180deg,#121526,#0f1220)!important;border-color:#292e44!important;box-shadow:0 9px 25px rgba(0,0,0,.2);color:#fff}.stats strong,.money-strip b{color:#fff!important}.stats span,.stats small,.money-strip span{color:#8f97ad!important}.stats article:nth-child(1):before{background:#9a6cff}.stats article:nth-child(2):before{background:#6279ff}.stats article:nth-child(3):before{background:#efad4c}.stats article:nth-child(4):before{background:#39cf8c}
.workflow-steps button,.action-grid button,.certificate-chooser button{background:#141728;border-color:#2c3148;color:#eef1fa;box-shadow:0 7px 18px rgba(0,0,0,.17)}.workflow-steps button:hover,.action-grid button:hover,.certificate-chooser button:hover{background:#1a1e31;border-color:#4b4169;box-shadow:0 12px 27px rgba(0,0,0,.27)}.workflow-steps button:first-child{background:linear-gradient(145deg,#191532,#2c205f);border-color:#49387c}.workflow-steps b,.action-grid b,.certificate-chooser button>b{background:#261e4b;color:#c6acff;border-color:#40336d}.workflow-steps small,.action-grid small,.certificate-chooser small{color:#858da3}
.list-row,.workspace-item,.workspace-history-row,.search-result,.invoice-detail-addresses>div,.invoice-lines>div,.accounting-provider-card,.accounting-history-row,.stripe-status-facts>div,.system-health-row,.setup-check{background:#121526;border-color:#292e44;color:#eef1fb;box-shadow:0 6px 17px rgba(0,0,0,.16)}.list-row b,.workspace-item b,.workspace-history-row b,.search-result b{color:#f5f7ff}.list-row small,.workspace-item small,.workspace-history-row small,.search-result small{color:#8d95ab}.clickable-row:hover,.cert-row:hover{background:#171a2c;border-color:#48405f;box-shadow:0 11px 25px rgba(0,0,0,.27)}
.badge,.life-pill,.lifecycle-pills span{background:#191d31;border-color:#30364f;color:#bbc2d5}.badge-complete{background:#10281f!important;border-color:#1e563f!important;color:#68e2a7!important}.info-strip{background:#18152e;border-color:#3e3469;color:#c1adef}.empty{background:#0f1220;border-color:#34394e;color:#798197}.offline-ready{background:#10251d;border-color:#23533d;color:#69dca7}
.calendar-toolbar,.diary-mode{background:#111425;border-color:#292e44;color:#eef1fa}.calendar-toolbar button{background:#191d31;color:#bec5d7}.diary-mode button{color:#9098af}.diary-mode button.active{background:#271f4f;color:#dbcaff;box-shadow:0 3px 10px rgba(0,0,0,.24)}.diary-date-strip button{background:#111425;border-color:#292e44;color:#8d95ab}.diary-date-strip button b{color:#edf0f8}.diary-date-strip button.today{border-color:#6650a6}.diary-date-strip button.active{background:linear-gradient(145deg,#302260,#4a3291);border-color:#7155c2;color:#dfd1ff;box-shadow:0 10px 23px rgba(75,48,151,.25)}
.agenda-job{background:#121526;border-color:#292e44;color:#f1f3fb;box-shadow:0 6px 17px rgba(0,0,0,.15)}.agenda-job time,.agenda-job b{color:#fff}.agenda-job small,.agenda-type{color:#8e96ad}.agenda-free,.week-free{background:#0f1220;border-color:#373b50;color:#8e96aa}.agenda-free:hover,.week-free:hover{background:#1a1e32;border-color:#4b4169;color:#eef1fa}.agenda-free>span{background:#261e4b;color:#c5adff}.agenda-swipe .agenda-job{background:#121526}.agenda-more{background:#1b1f32;color:#9ca4b8}
.quick-book-section,.quick-more,.quick-booked-jobs,.quick-day-job,.quick-route-check,.quick-day-empty{background:#111425;border-color:#292e44;color:#eef1fa}.quick-booked-head{background:#171a2b;border-color:#292e44}.quick-booked-head b,.quick-day-head b,.quick-time-label b,.quick-day-job strong,.quick-day-time b{color:#f2f4fb}.quick-booked-head strong{color:#bd9cff}.quick-day-job span,.quick-day-job small,.quick-booked-row span,.quick-booked-row small{color:#8d95ac}.quick-day-gap{background:#0f1220;border-color:#363b51}.quick-day-gap b{color:#c4afea}.quick-day-gap button{background:#261e4b;border-color:#42366f;color:#cdbafa}.quick-chip,.quick-type,.quick-custom-date,.quick-custom-time{background:#151829;border-color:#30354c;color:#c8cedf}.quick-chip.active{background:linear-gradient(135deg,#915ff6,#694ce4);border-color:#8159e8;color:#fff}.quick-book-summary,.booking-confirm-hero{background:linear-gradient(145deg,#181430,#2b205a);border-color:#47397a}.quick-book-summary span,.quick-book-summary small,.booking-confirm-hero span,.booking-confirm-hero small{color:#b9bfd1}
.modal{background-color:rgba(2,3,10,.76)}.sheet,.inline-sheet{background:#0e1120;border-color:#2d3249;color:#f3f5fc;box-shadow:var(--shadow-xl)}.sheet-head h2{color:#fff}.sheet-head button{background:#191d31;color:#c8cddd}.sheet-grip{background:#3d435b}
.form-grid label,.modal label,.cert-gas-body label,.iv-row label,.quote-builder-v3 label{color:#a4abc0}.form-grid input,.form-grid textarea,.form-grid select,.modal input,.modal textarea,.modal select,.cert-gas-body input,.cert-gas-body select,.iv-row input,.picker-search{background:#151829!important;border-color:#30364d!important;color:#eef1fb!important;box-shadow:none!important}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus,.modal input:focus,.modal textarea:focus,.modal select:focus{background:#191d31!important;border-color:#8b5cf6!important;box-shadow:0 0 0 4px rgba(139,92,246,.15)!important}input::placeholder,textarea::placeholder{color:#626a82!important}.sticky-actions,.cert-wizard-controls{background:#0e1120;border-color:#292e44}.form-confidence,.inline-site-block,.oneoff-customer{background:#121526;border-color:#292e44}.choice-chips button{background:#151829;border-color:#30364d;color:#bac1d4}.choice-chips button.active{background:#271f4f;border-color:#865cf1;color:#d8c8ff;box-shadow:0 0 0 2px rgba(139,92,246,.12)}
.cert-progress button{background:#151829;border-color:#30364d;color:#9da5ba}.cert-progress button b{background:#261e4b;color:#c4aaff}.cert-progress button.active{background:#291f52;border-color:#7455c8;color:#d6c7fb}.cert-section,.cert-appliance,.appliance-card-v2{background:#121526!important;border-color:#2a2f45!important;box-shadow:0 7px 20px rgba(0,0,0,.17)}.cert-section-title{border-color:#292e44}.cert-section-title b,.appliance-card-v2 .cert-card-head b,.appliance-check-row>span{color:#eef1fb}.cert-section-title span,.appliance-block h4{color:#838ba2}.appliance-card-v2 .cert-card-head,.appliance-check-row,.appliance-reading-row input,.appliance-reading-row select{background:#141728!important;border-color:#292e44!important}.appliance-block{border-color:#292e44}.appliance-outcome{background:linear-gradient(145deg,#181430,#2b205a)}.cert-photo-capture{background:#111425;border-color:#34394f}
.workspace-hero{background:#121526;border-color:#2b3046;color:#eef1fa;box-shadow:0 9px 23px rgba(0,0,0,.17)}.workspace-hero h2{color:#fff}.workspace-quick a,.workspace-quick button,.workspace-action{background:#151829;border-color:#30354c;color:#dce1f1}.workspace-action:hover{background:#1b1f32;border-color:#48405f}.workspace-action.primary{background:linear-gradient(145deg,#191532,#2b205a);border-color:#47397a}.workspace-note{background:#111425;border-color:#292e44;color:#d8ddeb}.workspace-section{border-color:#292e44}
.invoice-detail-hero,.completion-hero,.customer-hero,.quote-flow-head,.invoice-fast-head,.fast-invoice .invoice-summary,.quote-total-step .invoice-summary{background:linear-gradient(145deg,#181430,#2b205a)!important;border-color:#47397a!important}.invoice-detail-hero h2,.completion-hero b,.customer-hero h2{color:#fff}.invoice-summary>div{border-color:#292e44}.quote-line,.quote-line-v2,.catalog-row,.quote-more-v3,.saved-price-picker{background:#121526!important;border-color:#292e44!important}.quote-total-card .invoice-summary{color:#eef1fa!important}.quote-copy-toggle{background:#151829;border-color:#30364d;color:#d7dceb!important}.copied-address{background:#111425!important;color:#8e96ad!important}
.settings-nav{background:#0f1220;border-color:#292e44}.settings-nav button{color:#9098af}.settings-nav button.active{background:#271f4f;color:#d6c5fb}.toggle-grid label{background:#121526;border-color:#2a2f45;color:#cfd4e4}.document-theme-preview{background:#0b0d18}.settings-save-state{background:#191d31;border-color:#30364d;color:#a9b0c3}.settings-save-state[data-kind="saved"]{background:#10251d;border-color:#24513d;color:#68dda5}.settings-save-state[data-kind="dirty"]{background:#2c2413;border-color:#5c4821;color:#f5c76c}.settings-save-state[data-kind="saving"]{background:#211b3e;border-color:#44366e;color:#c5aef8}
.timer-choice button,.meter-choice button{background:#151829;border-color:#30364d;color:#bec5d8}.timer-choice button.active,.meter-choice button.active{background:#271f4f;border-color:#7055bf;color:#d6c8f8}.gas-timer{background:#111425;border-color:#292e44}.gas-timer strong{color:#fff}.gas-result,.cert-gas-clock{background:linear-gradient(145deg,#181430,#2b205a);box-shadow:0 18px 40px rgba(0,0,0,.3)}.iv-result>div,.assessment{background:#121526;border-color:#292e44;color:#eef1fb}.iv-result span{color:#929aaf}
.mobile-nav{background:#0d0f1d;border-color:#2b3046;box-shadow:0 15px 45px rgba(0,0,0,.42)}.mobile-nav button{color:#777f97}.mobile-nav button.active{color:#b78fff}.mobile-nav .create-tab span{color:#a7aec2}
.booking-feature-status.awaiting{color:#ff7b86!important}.booking-feature-status.confirmed{color:#55dd9b!important}
.calendar-grid .day,.calendar-grid .day.today{background:#0f1729;border:1px solid #2a3958;color:#d7e2f5;box-shadow:none}
.calendar-grid .day-head{color:#e8eef8;font-size:13px;line-height:1.3}
.calendar-grid .day-head small{display:block;color:#8fa0bd;margin-top:3px;font-size:11px;font-weight:600}
.calendar-grid .appt,.calendar-grid .appt.colour-coded{background:#1a2336;border-color:#334155;color:#e8eef8}
.calendar-grid .appt time{display:block;font-weight:800;color:#fff;font-size:13px;margin:0 0 4px;font-variant-numeric:tabular-nums}
.calendar-grid .appt b{color:#e8eef8}
.calendar-grid .appt small,.calendar-grid .appt-type{color:#9fb0cc}