:root{--ink:#17251f;--muted:#718078;--green:#176b4a;--green-dark:#10251d;--line:#e5ebe7;--paper:#fff;--bg:#f4f7f5;--red:#b42318}*{box-sizing:border-box}body{margin:0;background:#07152d url('./aurora-background.jpg') center center / cover fixed no-repeat;color:#f5f8ff;font:15px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.topbar{height:72px;background:var(--green-dark);color:#fff;padding:0 max(20px,calc((100vw - 1240px)/2));display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;color:#fff;text-decoration:none;font-weight:800;letter-spacing:.04em}.brand-mark{width:38px;height:38px;border-radius:12px;background:#d8f4e4;color:#14583c;display:grid;place-items:center;font-size:22px}.brand small{display:block;font-size:9px;letter-spacing:.12em;color:#b7c9c0;font-weight:600}.top-actions{display:flex;gap:14px;align-items:center}.user-label{font-size:13px;color:#d8e5de}.shell{max-width:1240px;margin:34px auto;padding:0 20px;min-height:calc(100vh - 150px)}h1,h2,p{margin-top:0}h1{font-size:clamp(27px,4vw,36px);letter-spacing:-.04em;margin-bottom:5px}h2{font-size:19px;margin:0}.muted{color:var(--muted)}.small{font-size:12px;margin:3px 0 0}.eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:var(--green);margin:0 0 8px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.btn{border:0;border-radius:10px;padding:12px 16px;font:700 14px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;cursor:pointer;min-height:44px}.btn-primary{background:var(--green);color:white}.btn-primary:hover{background:#10583c}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-light{background:#e8f0eb;color:#1c4935}.btn-quiet{background:#294438;color:white}.full{width:100%}.text-btn{background:none;border:0;color:var(--red);font-weight:700;cursor:pointer}.panel,.login-card{background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 22px #142b1b08}.pos-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.9fr);gap:20px;align-items:start}.products-panel,.cart-panel{padding:20px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.count-pill{font-size:11px;background:#edf5ef;color:#285d42;border-radius:30px;padding:6px 10px}.search-row{display:flex;gap:12px;align-items:center;margin-bottom:15px}input,select{width:100%;border:1px solid #dce5df;border-radius:9px;padding:12px 13px;font:inherit;color:var(--ink);background:#fff;min-height:44px;outline:none}input:focus,select:focus{border-color:#4d9b75;box-shadow:0 0 0 3px #2d9a611c}.check-label{white-space:nowrap;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:6px}.check-label input{width:16px;min-height:auto}.product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-card{border:1px solid var(--line);border-radius:12px;padding:13px;text-align:left;background:#fff;cursor:pointer;min-width:0}.product-card:hover{border-color:#79ae91;background:#f8fcf9}.product-card:disabled{opacity:.62;cursor:not-allowed;background:#f5f6f5;border-color:#e5e8e6}.product-card:disabled:hover{border-color:#e5e8e6;background:#f5f6f5}.product-name{font-weight:700;display:block;overflow-wrap:anywhere}.product-meta{display:flex;justify-content:space-between;gap:8px;margin-top:9px;align-items:center}.price{font-weight:800;color:var(--green)}.stock{font-size:11px;color:var(--muted)}.stock.low{color:#b54708}.stock.out{color:var(--red)}.empty{padding:28px 10px;text-align:center;color:var(--muted);font-size:13px;grid-column:1/-1}.cart-list{min-height:120px;max-height:350px;overflow:auto}.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.cart-row-name{font-weight:700;font-size:13px}.cart-row-sub{font-size:11px;color:var(--muted);margin-top:3px}.imei-entry{display:block;margin-top:7px;font-size:10px;color:var(--muted)}.imei-entry input{display:block;width:100%;max-width:230px;margin-top:4px;padding:7px 9px;min-height:34px;font-size:12px}.qty-control{display:flex;align-items:center;gap:8px}.qty-control button{width:29px;height:29px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:800;cursor:pointer}.qty-control span{font-size:13px;font-weight:700;min-width:12px;text-align:center}.totals{border-top:1px solid var(--line);margin:12px 0 16px;padding-top:12px}.totals>div,.discount-line{display:flex;justify-content:space-between;align-items:center;margin:9px 0;font-size:13px}.discount-line input{width:110px;text-align:right;padding:7px 9px;min-height:36px}.grand-total{font-size:16px!important;padding-top:10px;border-top:1px dashed var(--line)}.grand-total strong{font-size:22px;color:var(--green)}.tiny{font-size:10px;margin:10px 0 0}.login-wrap{display:grid;place-items:center;min-height:68vh}.login-card{width:min(100%,430px);padding:30px}.login-card h1{font-size:29px}.login-card form{display:grid;gap:15px;margin-top:22px}label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#435249}.error{color:var(--red);font-size:12px;min-height:17px;margin:0}.notice{padding:12px 15px;background:#fff5e8;color:#8a4b08;border:1px solid #f2d5aa;border-radius:10px;margin-bottom:16px;font-size:13px}.hidden{display:none!important}.modal{position:fixed;inset:0;background:#0d1e16a8;z-index:5;display:grid;place-items:center;padding:18px;overflow:auto}.modal-card{background:#fff;border-radius:17px;padding:22px;width:min(100%,480px);max-height:94vh;overflow:auto;box-shadow:0 20px 70px #0003}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.modal-head h2{font-size:23px}.icon-btn{border:0;background:#edf2ee;border-radius:50%;width:34px;height:34px;font-size:23px;cursor:pointer}.modal form{display:grid;gap:14px}.buyer-fields{background:#f6faf7;padding:13px;border-radius:12px;display:grid;gap:12px}.buyer-note{font-size:12px;color:#6b4a17;margin:0}.checkout-total{display:flex;justify-content:space-between;align-items:center;background:#eff6f1;padding:15px;border-radius:10px}.checkout-total strong{font-size:21px;color:var(--green)}.receipt-paper{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#111}.receipt-center{text-align:center}.receipt-paper h3{font-size:19px;margin:0 0 3px}.receipt-paper .muted{color:#555}.receipt-divider{border-top:1px dashed #888;margin:12px 0}.receipt-line{display:flex;justify-content:space-between;gap:12px;margin:6px 0}.receipt-actions{display:flex;gap:10px;margin-top:20px}.receipt-actions>*{flex:1}.footer{text-align:center;color:#9aa69f;font-size:11px;padding:18px}.no-print{}@media(max-width:800px){.pos-grid{grid-template-columns:1fr}.cart-panel{order:-1}.cart-list{max-height:240px}.page-heading{align-items:flex-start;gap:12px}.page-heading .btn{font-size:12px;padding:10px}.shell{margin:24px auto}.product-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:430px){.topbar{height:64px;padding:0 14px}.user-label{display:none}.shell{padding:0 12px}.products-panel,.cart-panel{padding:14px}.product-list{grid-template-columns:1fr 1fr;gap:7px}.product-card{padding:10px}.product-name{font-size:12px}.search-row{align-items:stretch;flex-direction:column}.check-label{align-self:flex-start}.receipt-actions{flex-direction:column}}@media print{body{background:#fff}.topbar,.shell,.footer,.no-print{display:none!important}.modal{position:static;background:#fff;padding:0;display:block}.modal-card{box-shadow:none;border:0;border-radius:0;width:100%;max-height:none;padding:0}.receipt-paper{width:76mm;margin:0 auto;font-size:11px}.receipt-paper h3{font-size:16px}}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:22px}.auth-shell .panel{width:min(100%,560px);padding:26px}.auth-shell form{display:grid;gap:13px;margin:18px 0}.auth-shell button{border:0;border-radius:10px;background:var(--green);color:#fff;padding:13px 16px;font-weight:700;min-height:44px}.auth-shell article.panel{width:100%;margin:12px 0;padding:14px;box-shadow:none}

.inventory-actions{display:flex;align-items:center;gap:10px}.inventory-actions .btn{padding:9px 12px;min-height:38px;font-size:12px}.form-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline-check{display:flex;align-items:center;gap:9px;font-weight:600!important}.inline-check input{width:18px;min-height:18px}.buyer-fields{display:grid;gap:12px}.buyer-fields label{display:grid}.buyer-fields .hidden{display:none!important}
@media(max-width:430px){.inventory-actions{gap:6px}.inventory-actions .btn{padding:8px;font-size:11px}.form-two{grid-template-columns:1fr}}

.profile-panel{padding:20px;margin:0 0 20px}.profile-panel form{display:grid;gap:13px}.profile-logo-row{display:flex;align-items:center;gap:16px}.logo-preview{width:90px;height:90px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:6px}.receipt-logo{display:block;max-width:130px;max-height:90px;object-fit:contain;margin:0 auto 8px}.receipt-paper h2{font-size:17px;margin:0 0 4px}@media(max-width:430px){.profile-logo-row{align-items:flex-start;flex-direction:column}}

.history-panel{padding:18px;margin:0 0 20px}.history-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:12px}.history-list{display:grid;gap:9px}.history-row{border:1px solid var(--line);border-radius:11px;padding:12px;background:#fff}.history-row-top{display:flex;justify-content:space-between;gap:10px}.history-row-top strong:last-child{color:var(--green)}.history-row-meta,.history-row-items{font-size:11px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.history-row-items{color:var(--ink)}@media(max-width:700px){.history-filters{grid-template-columns:1fr 1fr}.history-filters label:first-child{grid-column:1/-1}.history-filters button{grid-column:1/-1}}

/* Ink-style official paid stamp on printed receipts */
.official-paid-stamp{width:154px;height:154px;box-sizing:border-box;border:4px double #a32626;border-radius:50%;color:#a32626;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;text-align:center;position:relative;transform:rotate(-7deg);font-family:Arial,sans-serif;opacity:.88;background:repeating-linear-gradient(135deg,transparent 0,transparent 3px,#a3262608 3px,#a3262608 5px);box-shadow:inset 0 0 0 2px #a3262640}
.official-paid-stamp:before,.official-paid-stamp:after{content:"";position:absolute;border:1px solid #a32626;border-radius:50%;inset:5px;pointer-events:none}
.official-paid-stamp:after{inset:10px;border-style:dashed;opacity:.55}
.stamp-business{font-size:9px;line-height:1.2;font-weight:900;letter-spacing:1px;text-transform:uppercase;max-width:112px;overflow-wrap:anywhere}
.stamp-paid{font-size:29px;line-height:1;font-weight:1000;letter-spacing:2px;border-top:2px solid #a32626;border-bottom:2px solid #a32626;padding:6px 4px;margin:8px 0 6px;text-shadow:.5px 0 #a32626}
.stamp-date{font-size:9px;font-weight:900;letter-spacing:.5px}
.stamp-branch{font-size:7px;font-weight:700;letter-spacing:.6px;margin-top:4px;max-width:112px;overflow-wrap:anywhere;text-transform:uppercase}

.customer-lookup-panel{padding:18px;margin:0 0 20px}
.customer-lookup-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}
.customer-lookup-form label{display:grid;gap:7px}
.customer-result{margin-top:12px;padding:15px;border:1px solid var(--line);border-radius:12px;background:#fbfdfb}
.customer-result p{font-size:13px;margin:7px 0}
.customer-result-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.customer-match{font-size:11px;font-weight:800;color:#17633f;background:#e8f5ed;border-radius:20px;padding:5px 9px}
.customer-result ul{padding-left:20px;font-size:12px;color:var(--muted)}
.customer-result li{margin:5px 0}
@media(max-width:650px){.customer-lookup-form{grid-template-columns:1fr}.customer-lookup-form button{width:100%}}

/* SWASS install-app action */
.btn-install{background:#e9f7e9!important;color:#12632f!important;border:1px solid #a8dfb5!important;font-weight:800}

/* Aurora E-Receipt visual theme */
body:before{content:'';position:fixed;inset:0;z-index:-1;background:linear-gradient(135deg,rgba(3,8,35,.70),rgba(15,12,65,.48) 48%,rgba(0,28,58,.68));pointer-events:none}.topbar{background:rgba(3,8,34,.78);backdrop-filter:blur(16px);border-bottom:1px solid rgba(157,190,255,.18)}.brand-mark{background:linear-gradient(135deg,#18e0c0,#a94cff);color:#07152d}.brand small{color:#c1c8ff}.shell{position:relative}.login-wrap{grid-template-columns:minmax(0,1fr) minmax(320px,430px);gap:clamp(24px,6vw,80px);min-height:76vh}.aurora-welcome{color:#fff;max-width:560px;padding:30px 0;text-shadow:0 3px 25px #0008}.aurora-welcome h1{font-size:clamp(48px,8vw,88px);letter-spacing:-.06em;margin:12px 0;background:linear-gradient(90deg,#fff,#a9fff2 45%,#e5b8ff);-webkit-background-clip:text;background-clip:text;color:transparent}.aurora-welcome p{font-size:clamp(20px,3vw,30px);margin:0 0 12px}.aurora-welcome .aurora-kicker{font-size:11px;letter-spacing:.28em;color:#a8fff1;font-weight:800}.aurora-welcome span{color:#d3dfff;font-size:14px}.login-card,.panel{background:rgba(7,17,48,.76);border:1px solid rgba(177,202,255,.25);box-shadow:0 18px 60px rgba(0,0,0,.28);backdrop-filter:blur(18px);color:#f5f7ff}.login-card .muted,.panel .muted{color:#c2cbe3}.login-card label,.panel label{color:#e0e8ff}.login-card input,.panel input,.panel select{background:rgba(255,255,255,.95);color:#17251f}.login-card h2{font-size:25px}.eyebrow{color:#76f5e0}.welcome-back-banner{margin:18px 0 22px;padding:18px 22px;border:1px solid rgba(157,220,255,.35);border-radius:16px;background:linear-gradient(110deg,rgba(11,31,78,.84),rgba(70,29,111,.68),rgba(0,92,117,.62));color:#fff;font-size:clamp(18px,3vw,25px);font-weight:750;box-shadow:0 12px 35px #0003;backdrop-filter:blur(14px)}.workspace-nav{background:rgba(7,17,48,.82);border-color:rgba(177,202,255,.25)}.footer{color:#d2ddff}@media(max-width:760px){.login-wrap{grid-template-columns:1fr;gap:8px;min-height:auto;padding:22px 0}.aurora-welcome{text-align:center;padding:14px 0}.aurora-welcome h1{font-size:52px}.login-card{width:100%;padding:24px}}

/* Item identification QR codes and mobile camera scanner */
.imei-qr{display:inline-block;vertical-align:middle;margin:6px 0 2px;padding:4px;background:#fff;border-radius:6px;min-width:80px;min-height:80px}.imei-qr img,.imei-qr canvas{display:block;max-width:80px;height:auto}.cart-row [data-scan-imei]{margin-top:8px}.modal-card video{display:block;margin:8px 0 14px}.modal-card #imei-scanner-use{margin-top:12px}


/* Compact account profile dropdown: keeps the working screen visible. */
.topbar{position:relative;z-index:30}
.account-profile-menu{position:absolute;z-index:1200;top:76px;right:max(14px,calc((100vw - 1240px)/2));width:min(440px,calc(100vw - 24px));max-height:calc(100vh - 96px);overflow:auto;padding:18px;background:#fff;border:1px solid #d9e5ed;border-radius:16px;box-shadow:0 16px 44px rgba(13,38,55,.22);color:#17384e}
.account-profile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.account-profile-head h2{margin:0 0 4px;color:#17384e}
.account-profile-details{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.account-profile-details>div{min-width:0;padding:11px;border-radius:10px;background:#f3f8fb;border:1px solid #e5eef4}
.account-profile-details span{display:block;color:#688092;font-size:11px;margin-bottom:5px}
.account-profile-details strong{display:block;color:#17384e;font-size:13px;overflow-wrap:anywhere}
.account-profile-photo-area{padding-top:15px;margin-top:14px;border-top:1px solid #e5edf2}
.account-profile-photo-area h3{font-size:14px;margin:0 0 10px;color:#17384e}
.account-profile-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e5edf2}
.account-profile-actions #logout-btn{display:inline-flex}
@media(max-width:520px){.account-profile-menu{top:68px;right:8px;padding:14px}.account-profile-details{grid-template-columns:1fr 1fr}.account-profile-menu .staff-profile-edit{align-items:flex-start}.account-profile-menu .staff-profile-edit label{min-width:0;flex:1}.account-profile-menu .staff-profile-edit .btn{width:100%}}


/* Aurora E-Receipt: shared bright three-tab app shell */
body{background:#f9fafb!important;color:#1f2937!important;padding-bottom:82px}
body:before{display:none!important}
.topbar{background:#fff!important;color:#1f2937!important;border-bottom:1px solid #e5e7eb!important;backdrop-filter:none!important}
.brand,.user-label{color:#1f2937!important}
.brand small{color:#6b7280!important}
.brand-mark{background:#3b82f6!important;color:#fff!important}
.shell{max-width:980px;margin:22px auto;min-height:calc(100vh - 150px)}
.panel,.login-card{background:#fff!important;color:#1f2937!important;border:1px solid #e5e7eb!important;box-shadow:0 5px 18px rgba(15,23,42,.06)!important;backdrop-filter:none!important;border-radius:16px}
.panel .muted,.login-card .muted{color:#6b7280!important}
.panel label,.login-card label{color:#374151!important}
.eyebrow{color:#3b82f6!important}
.btn-primary,.auth-shell button{background:#3b82f6!important;color:#fff!important;border-radius:10px}
.btn-primary:hover{background:#2563eb!important}
input,select{border-color:#d1d5db!important;border-radius:9px}
input:focus,select:focus{border-color:#3b82f6!important;box-shadow:0 0 0 3px #3b82f61c!important}
.bottom-nav{position:fixed;z-index:1000;left:0;right:0;bottom:0;display:flex;justify-content:space-around;align-items:center;gap:8px;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(255,255,255,.97);border-top:1px solid #e5e7eb;box-shadow:0 -5px 18px rgba(15,23,42,.06);backdrop-filter:blur(12px)}
.bottom-nav button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;border:0;background:transparent;color:#9ca3af;font:600 11px system-ui;cursor:pointer;border-radius:12px}
.bottom-nav .nav-icon{font-size:21px;line-height:1.1}
.bottom-nav button.active{color:#3b82f6}
.bottom-nav button.receipt-nav{color:#fff;background:#3b82f6;max-width:116px;min-height:58px;margin-top:-17px;box-shadow:0 6px 16px #3b82f644}
.bottom-nav button.receipt-nav.active{background:#2563eb;color:#fff}
.owner-home{display:grid;gap:14px}
.owner-home-card{padding:22px}
.owner-home-card h1{color:#1f2937}
.owner-home-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.owner-home-metrics .panel{padding:18px}
.owner-home-metrics span{display:block;color:#6b7280;font-size:12px}
.owner-home-metrics strong{display:block;color:#1f2937;font-size:22px;margin-top:8px}
#owner-dashboard-view{padding:0}
#owner-dashboard-view>.page-heading,#owner-dashboard-view>.dashboard-layout,#owner-dashboard-view>.dashboard-sidebar,#owner-dashboard-view>.command-bar{display:none!important}
#owner-dashboard-view #owner-staff-area{margin:14px 0}
#account-profile-menu{position:static!important;display:block;width:100%;max-height:none;overflow:visible;padding:18px;margin-bottom:14px;box-shadow:none;border:1px solid #e5e7eb}
#account-profile-menu.hidden{display:none!important}
.footer{color:#9ca3af!important}
@media(max-width:760px){.shell{margin:14px auto;padding:0 12px}.owner-home-metrics{grid-template-columns:1fr 1fr}}

.serial-capture{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#f8fbf9}.serial-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.serial-input-row .btn{min-width:72px}.btn-small{min-height:38px;padding:8px 12px;font-size:12px}


/* Fixed, single-screen workspace: navigation stays in place and panels scroll internally only when needed. */
body.workspace-active{height:100dvh;min-height:100dvh;overflow:hidden;padding-bottom:0}
body.workspace-active .shell{height:calc(100dvh - 72px - 78px);min-height:0;margin:0 auto;padding:12px 20px 8px;overflow:hidden;display:flex;flex-direction:column;gap:8px}
body.workspace-active #welcome-back-banner{flex:0 0 auto;margin:0;padding:8px 13px;border-radius:10px;font-size:13px;line-height:1.25;box-shadow:none}
body.workspace-active #workspace-nav{flex:0 0 auto;margin:0;padding:5px 0;position:relative;top:auto;overflow-x:auto}
body.workspace-active #owner-home,body.workspace-active #receipts-home,body.workspace-active #pos-view,body.workspace-active #owner-dashboard-view,body.workspace-active #profile-panel,body.workspace-active #staff-profile-panel{flex:1 1 auto;min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain;margin:0;padding-bottom:8px}
body.workspace-active #pos-view .pos-grid{display:block;min-height:0}
body.workspace-active #pos-view .cart-panel{max-height:100%;padding:14px}
body.workspace-active #pos-view .cart-list{max-height:calc(100dvh - 390px);min-height:50px;overflow-y:auto;overscroll-behavior:contain}
body.workspace-active #pos-view #history-panel,body.workspace-active #pos-view #owner-customers-section,body.workspace-active #pos-view .customer-lookup-panel{display:none!important}
body.workspace-active #pos-view .page-heading{margin-bottom:8px}
body.workspace-active #pos-view .page-heading p{margin-bottom:0}
body.workspace-active .bottom-nav{position:fixed;left:0;right:0;bottom:0}
@media(max-width:760px){body.workspace-active .shell{height:calc(100dvh - 64px - 74px);padding:8px 12px 6px;margin:0 auto}body.workspace-active #pos-view .cart-list{max-height:calc(100dvh - 350px)}body.workspace-active #workspace-nav{gap:5px}body.workspace-active #workspace-nav button{padding:8px 10px;font-size:12px}}

/* Keep the app viewport stationary. The Profile tab owns both account and shop details. */
html,body{overscroll-behavior:none}
body.workspace-active{position:fixed;inset:0;width:100%;height:100dvh;overflow:hidden;touch-action:pan-x}
body.workspace-active .shell{width:100%;max-width:980px}
body.workspace-active #account-profile-menu{display:none!important}
body.workspace-active #profile-panel{overflow-y:auto;overscroll-behavior:contain}
body.workspace-active .profile-account-summary{padding:14px 16px;margin-bottom:14px;border:1px solid #e5e7eb;border-radius:14px;background:#f8fafc}
body.workspace-active .profile-account-summary .account-profile-details{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:520px){body.workspace-active .profile-account-summary{padding:10px}.profile-account-summary .account-profile-details{gap:7px}}

/* Business overview shop identity photos */
.dashboard-shop-photos{display:flex;flex-wrap:wrap;gap:14px;margin:16px 0;}
.dashboard-shop-photos figure{margin:0;min-width:0;width:min(100%,220px);}
.dashboard-shop-photo{display:block;width:100%;height:132px;object-fit:cover;border-radius:12px;border:1px solid var(--border,#dbe3ec);background:var(--surface,#f5f8fc);}
.dashboard-shop-photos figcaption{margin-top:6px;font-size:.82rem;color:var(--muted,#64748b);}

/* The owner profile is nested in #pos-view and #owner-dashboard-view.
   Keep the profile screen focused: do not leave dashboard charts/staff sections
   above or below the actual profile form on small screens. */
#pos-view.profile-workspace-mode > :not(#owner-dashboard-view){display:none!important;}
#pos-view.profile-workspace-mode #owner-dashboard-view{display:block!important;}
#pos-view.profile-workspace-mode #owner-dashboard-view > :not(#profile-panel):not(#owner-staff-area){display:none!important;}
#pos-view.profile-workspace-mode #owner-dashboard-view > #profile-panel{display:block!important;width:100%;max-width:100%;}#pos-view.profile-workspace-mode #owner-dashboard-view > #owner-staff-area:not(.hidden){display:block!important;width:100%;max-width:100%;}

/* Remove the decorative AURORA watermark above the bottom navigation. */
body.workspace-active .bottom-nav{position:fixed;}
body.workspace-active .bottom-nav::after{content:none!important;display:none!important;}
body.workspace-active .footer{display:none!important;}


/* AURORA fixed-phone viewport: the document never drifts; only long lists/forms
   may scroll inside their own bounded panel. */
html, body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  scroll-behavior: auto;
}
body:not(.workspace-active) {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}
body:not(.workspace-active) .shell {
  height: calc(100dvh - 72px);
  min-height: 0;
  margin: 0 auto;
  padding: 10px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:not(.workspace-active) #login-view {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
body:not(.workspace-active) .login-wrap {
  min-height: 0;
  height: 100%;
  align-items: center;
  overflow: hidden;
}
body:not(.workspace-active) .login-card {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.workspace-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  touch-action: pan-x;
}
body.workspace-active .shell {
  width: 100%;
  max-width: 980px;
  height: calc(100dvh - 72px - 74px);
  min-height: 0;
  margin: 0 auto;
  padding: 8px 16px 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.workspace-active #workspace-nav {
  flex: 0 0 auto;
  min-height: 58px;
  margin: 0;
  overflow: visible;
}
body.workspace-active #owner-home,
body.workspace-active #receipts-home,
body.workspace-active #pos-view,
body.workspace-active #owner-dashboard-view,
body.workspace-active #staff-profile-panel {
  flex: 1 1 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  margin: 0;
}
body.workspace-active #owner-home {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 10px;
}
body.workspace-active #owner-home-card,
body.workspace-active .owner-home-card { padding: 14px 16px; }
body.workspace-active .owner-home-metrics { gap: 8px; }
body.workspace-active .owner-home-metrics .panel { padding: 12px; }
body.workspace-active .owner-home-metrics strong { font-size: 19px; }
body.workspace-active #receipts-home { padding: 12px; }
body.workspace-active #receipts-home .receipt-actions-grid { gap: 10px; }
body.workspace-active #receipts-home .receipt-choice {
  min-height: 112px;
  padding: 13px;
}
body.workspace-active #pos-view {
  display: flex;
  flex-direction: column;
}
body.workspace-active #pos-view .page-heading { flex: 0 0 auto; }
body.workspace-active #pos-view .pos-grid {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
body.workspace-active #pos-view .cart-panel {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.workspace-active #pos-view .cart-list {
  flex: 1 1 auto;
  min-height: 48px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.workspace-active #profile-panel {
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.workspace-active .footer { display: none !important; }
body.workspace-active .shell,
body.workspace-active #workspace-nav,
body.workspace-active #owner-home,
body.workspace-active #receipts-home,
body.workspace-active #pos-view,
body.workspace-active #owner-dashboard-view {
  animation: none !important;
  transition: none !important;
}
@media (max-width: 760px) {
  body:not(.workspace-active) .shell {
    height: calc(100dvh - 64px);
    padding: 6px 12px;
  }
  body:not(.workspace-active) .login-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px 0;
  }
  body:not(.workspace-active) .aurora-welcome {
    padding: 4px 0;
  }
  body:not(.workspace-active) .aurora-welcome h1 {
    font-size: 34px;
    margin: 4px 0;
  }
  body:not(.workspace-active) .aurora-welcome p,
  body:not(.workspace-active) .aurora-welcome span {
    display: none;
  }
  body:not(.workspace-active) .login-card {
    width: 100%;
    padding: 16px;
  }
  body.workspace-active .shell {
    height: calc(100dvh - 64px - 74px);
    padding: 6px 10px 4px;
    gap: 6px;
  }
  body.workspace-active #workspace-nav {
    min-height: 54px;
    padding: 3px 0;
  }
  body.workspace-active #owner-home-card { padding: 12px; }
  body.workspace-active #receipts-home { padding: 10px; }
  body.workspace-active #receipts-home .receipt-choice {
    min-height: 100px;
    padding: 11px;
  }
  body.workspace-active #pos-view .page-heading h1 { font-size: 22px; }
}


/* Main Dashboard / Receipt / Profile controls stay in a permanent bottom bar. */
body.workspace-active #workspace-nav.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 10000 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 7px max(12px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)) !important;
  min-height: calc(66px + env(safe-area-inset-bottom)) !important;
  background: rgba(255,255,255,.98) !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 -5px 18px rgba(15,23,42,.08) !important;
}
body.workspace-active #workspace-nav.bottom-nav button {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 50px !important;
  margin: 0 !important;
}
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav {
  max-width: 116px !important;
  min-height: 56px !important;
  margin-top: -10px !important;
}
body.workspace-active .shell {
  height: calc(100dvh - 66px - env(safe-area-inset-bottom)) !important;
  padding-bottom: 8px !important;
}
body.workspace-active #workspace-nav.hidden { display: none !important; }


/* Compact optional IMEI controls and a small QR scan shortcut beside Add product. */
.product-imei-capture{gap:8px;padding:10px 12px}.imei-tools-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.imei-tools-head strong{font-size:12px}.btn-imei-add{background:#16a34a!important;color:#fff!important;border:0!important;padding:7px 11px;min-height:34px}.btn-imei-add:disabled{opacity:.45}.product-submit-actions{display:flex;align-items:center;gap:8px}.product-submit-actions .btn-primary{flex:1}.btn-scan-optional{min-height:38px;padding:7px 11px;font-size:11px;background:#eef5f0;color:#39724e;border:1px solid #d5e8da}.product-imei-capture .imei-entry-row{margin-top:2px}.product-imei-capture .imei-entry-row input{min-height:38px;padding:8px 10px;font-size:12px}.modal#checkout-modal{z-index:20000}.modal#checkout-modal .modal-card{max-height:90dvh;overscroll-behavior:contain}



/* Keep the customer-details action visible in the fixed phone-style receipt screen. */
body.workspace-active #pos-view .cart-panel{min-height:0}
body.workspace-active #pos-view #checkout-open{
  display:block!important;visibility:visible!important;opacity:1!important;
  flex:0 0 auto!important;position:sticky!important;bottom:0!important;z-index:4;
  width:100%!important;min-height:48px!important;margin:8px 0 0!important;
  box-shadow:0 -5px 14px rgba(255,255,255,.92);
}
body.workspace-active #pos-view .cart-panel>.tiny,
body.workspace-active #pos-view .cart-panel>.totals,
body.workspace-active #pos-view .cart-panel>#add-another-item{flex:0 0 auto}
body.workspace-active #pos-view .cart-panel>.totals{margin-bottom:8px}
body.workspace-active #pos-view #add-another-item{min-height:40px}


/* Reliable receipt progression: keep the next-step action pinned above bottom tabs. */
body.workspace-active #pos-view .cart-panel{
  position:relative!important;
  box-sizing:border-box!important;
  padding-bottom:76px!important;
}
body.workspace-active #pos-view #checkout-open{
  position:fixed!important;
  left:12px!important;
  right:12px!important;
  bottom:calc(76px + env(safe-area-inset-bottom))!important;
  width:calc(100% - 24px)!important;
  max-width:calc(980px - 32px)!important;
  margin:0 auto!important;
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  visibility:visible!important;
  opacity:1!important;
  z-index:10001!important;
  flex:none!important;
  border-radius:14px!important;
  box-shadow:0 5px 22px rgba(15,23,42,.22)!important;
}
body.workspace-active #pos-view #checkout-open:disabled{
  opacity:.55!important;
}
body.workspace-active #pos-view .cart-panel>.tiny{display:none!important}
#checkout-modal{position:fixed!important;inset:0!important;z-index:20000!important;overflow-y:auto!important;padding:12px!important}
#checkout-modal .modal-card{width:min(100%,560px)!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;margin:auto!important}
#checkout-modal #complete-sale{position:sticky!important;bottom:0!important;z-index:2!important;min-height:52px!important;box-shadow:0 -5px 14px rgba(255,255,255,.95)!important}
@media(min-width:761px){
 body.workspace-active #pos-view #checkout-open{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(calc(100% - 32px),948px)!important}
}

/* Keep app navigation out of the signed-out/login screen. */
body:not(.workspace-active) #workspace-nav,
.bottom-nav.hidden{display:none!important}


.compact-extra-fields{margin:2px 0;padding:7px 9px;border:1px solid var(--line,#dce5df);border-radius:10px;background:#f8fbf9}.compact-extra-fields summary{cursor:pointer;color:#315b47;font-size:11px;font-weight:700;list-style:none}.compact-extra-fields summary::-webkit-details-marker{display:none}.compact-extra-fields[open]{display:grid;gap:7px}
#register-form{max-height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 2px 10px;gap:8px!important;margin-top:10px!important}#register-form input{min-height:36px;padding:7px 9px}#register-form .compact-extra-fields label{margin-top:4px}
#profile-panel{display:flex;flex-direction:column;gap:5px;min-height:0}#profile-panel>.profile-account-summary{padding:6px 9px;margin:0;border-radius:10px}#profile-panel .profile-account-summary .section-head{margin:0 0 3px}#profile-panel .profile-account-summary h2{font-size:13px;margin:0}#profile-panel .profile-account-summary .eyebrow,#profile-panel .profile-account-summary .muted{font-size:9px;margin:0}#profile-panel .account-profile-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px}#profile-panel .account-profile-details>div{display:flex;gap:4px;min-width:0;align-items:baseline;font-size:9px}#profile-panel .account-profile-details span{font-size:8px;white-space:nowrap}#profile-panel .account-profile-details strong{font-size:9px;overflow-wrap:anywhere}#profile-panel>.section-head{margin:0;gap:8px;align-items:center}#profile-panel>.section-head h2{font-size:13px;margin:0}#profile-panel>.section-head p{display:none}#profile-panel>.section-head .btn{min-height:28px;padding:4px 8px;font-size:10px}
#profile-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;min-height:0}#profile-form label{min-width:0;gap:2px;font-size:9px}#profile-form input{min-height:32px;padding:5px 7px;font-size:11px}#profile-form>.profile-logo-row,#profile-form>.compact-extra-fields,#profile-form>.error,#profile-form>button{grid-column:1/-1}#profile-form>.profile-logo-row{display:flex;align-items:center;gap:7px;margin:0}#profile-form .logo-preview{width:34px;height:34px;object-fit:contain}#profile-form .compact-extra-fields{grid-column:1/-1;margin:0;padding:5px 7px}#profile-form>.error{min-height:0;margin:0;font-size:9px}#profile-form>button{min-height:34px;padding:6px 9px}
@media(max-width:600px){body.workspace-active #owner-home,body.workspace-active #receipts-home,body.workspace-active #pos-view,body.workspace-active #owner-dashboard-view,body.workspace-active #profile-panel,body.workspace-active #staff-profile-panel{overflow:hidden!important}body.workspace-active #profile-panel{padding:6px!important;gap:4px!important}#profile-form{gap:4px 6px}#profile-form .compact-extra-fields[open]{max-height:28dvh;overflow-y:auto}}


/* Lay out paired fields as true full-width rows inside the fixed phone screen. */
#profile-form>.form-two{grid-column:1/-1}
#owner-signup-fields,#register-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
#owner-signup-fields>.compact-extra-fields,#register-fields>.compact-extra-fields{grid-column:1/-1}
#owner-signup-fields>label:nth-of-type(3),#register-fields>label:last-of-type{grid-column:1/-1}
#register-form>p,#register-form>button,#register-form>.error{grid-column:1/-1}
@media(max-width:420px){#owner-signup-fields,#register-fields{gap:6px}#register-form input{font-size:12px}}


/* Header intentionally contains only the E-RECEIPT by E-TECH identity. */
.topbar{height:58px!important;min-height:58px!important;justify-content:flex-start!important;padding:0 14px!important}
.topbar .brand{gap:9px!important}
.topbar .brand-mark{width:32px!important;height:32px!important;border-radius:9px!important;font-size:19px!important}
.topbar .brand>span:last-child{font-size:14px!important;line-height:1.15!important}
.topbar .brand small{font-size:8px!important;letter-spacing:.14em!important;margin-top:2px!important}
.topbar .top-actions{display:none!important}
#pos-view.profile-workspace-mode #owner-dashboard-view{padding-top:0!important;margin-top:0!important}
#pos-view.profile-workspace-mode #owner-dashboard-view>#profile-panel{margin:0!important;align-self:start!important;position:relative!important;top:0!important}
#pos-view.profile-workspace-mode #profile-panel>.profile-account-summary{order:2!important;margin-top:0!important}
#pos-view.profile-workspace-mode #profile-form{margin-top:0!important;align-content:start!important}


/* PROFILE FIX: keep the first section at the top and never clip the lower cards.
   The app shell stays fixed; only the profile content area scrolls when needed. */
#pos-view.profile-workspace-mode{display:flex!important;flex-direction:column!important;min-height:0!important;overflow:hidden!important;padding:0!important;}
#pos-view.profile-workspace-mode #owner-dashboard-view{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0 0 18px!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;}
#pos-view.profile-workspace-mode #profile-panel{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;order:1!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:8px!important;overflow:visible!important;}
#pos-view.profile-workspace-mode #profile-panel>.section-head{order:1!important;position:relative!important;top:auto!important;margin:0!important;}
#pos-view.profile-workspace-mode #profile-panel>#profile-form{order:2!important;display:grid!important;flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;align-content:start!important;}
#pos-view.profile-workspace-mode #profile-panel>.profile-account-summary{order:3!important;flex:0 0 auto!important;margin:0!important;}
#pos-view.profile-workspace-mode #owner-staff-area:not(.hidden){display:block!important;flex:0 0 auto!important;order:4!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:8px!important;}
#pos-view.profile-workspace-mode #owner-staff-area.hidden{display:none!important;}
@media(max-width:600px){#pos-view.profile-workspace-mode #owner-dashboard-view{padding:0 0 22px!important;overflow-y:auto!important;}#pos-view.profile-workspace-mode #profile-panel{overflow:visible!important;padding:7px!important;}#pos-view.profile-workspace-mode #profile-panel>#profile-form{overflow:visible!important;}}



/* Profile layout: directly under the E-RECEIPT header, with three distinct cards. */
body.workspace-active .shell{gap:0!important;padding-top:0!important}
body.workspace-active .shell>#owner-dashboard-view.profile-workspace-mode{order:-20!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;justify-content:flex-start!important;align-items:stretch!important;gap:9px!important;width:100%!important;min-height:0!important;max-height:100%!important;margin:0!important;padding:0 0 12px!important;overflow-x:hidden!important;overflow-y:auto!important}
body.workspace-active .shell>#workspace-nav{order:20!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode> :not(#profile-panel):not(#owner-staff-area){display:none!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode>#profile-panel{display:flex!important;flex:0 0 auto!important;flex-direction:column!important;gap:9px!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-shop-card{order:1!important;display:block!important;margin:0!important;padding:14px!important;border:1px solid rgba(119,161,174,.22)!important;border-radius:16px!important;background:linear-gradient(125deg,rgba(255,248,232,.97),rgba(233,249,245,.95),rgba(244,238,255,.95))!important;box-shadow:0 7px 22px rgba(44,62,80,.07)!important;animation:aurora-profile-glow 13s ease-in-out infinite alternate}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-account-summary{order:2!important;display:block!important;flex:0 0 auto!important;margin:0!important;padding:14px!important;border:1px solid rgba(119,161,174,.22)!important;border-radius:16px!important;background:linear-gradient(120deg,rgba(231,244,255,.97),rgba(244,239,255,.95),rgba(255,248,234,.95))!important;box-shadow:0 7px 22px rgba(44,62,80,.06)!important;animation:aurora-profile-glow 15s ease-in-out infinite alternate}
body.workspace-active #owner-dashboard-view.profile-workspace-mode #profile-form{display:grid!important;gap:8px!important;margin:8px 0 0!important;align-content:start!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode>#owner-staff-area:not(.hidden){order:3!important;display:block!important;flex:0 0 auto!important;width:100%!important;margin:0!important;padding:12px!important;border:1px solid rgba(224,157,92,.25)!important;border-radius:16px!important;background:linear-gradient(120deg,rgba(255,239,218,.97),rgba(255,248,232,.95),rgba(246,239,255,.95))!important;box-shadow:0 7px 22px rgba(128,86,45,.06)!important;animation:aurora-invite-glow 11s ease-in-out infinite alternate}
body.workspace-active #owner-dashboard-view.profile-workspace-mode>#owner-staff-area.hidden{display:none!important}
@media(prefers-reduced-motion:reduce){body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-shop-card,body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-account-summary,body.workspace-active #owner-dashboard-view.profile-workspace-mode>#owner-staff-area{animation:none!important}}
@media(max-width:600px){body.workspace-active .shell>#owner-dashboard-view.profile-workspace-mode{padding-bottom:18px!important}body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-shop-card,body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-account-summary,body.workspace-active #owner-dashboard-view.profile-workspace-mode>#owner-staff-area:not(.hidden){padding:10px!important}}

/* Independent tap-to-open profile cards. Each controls only its own details. */
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card{display:block!important;flex:0 0 auto!important;overflow:hidden!important;padding:0!important;border-radius:16px!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-summary{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:66px!important;padding:13px 15px!important;list-style:none!important;cursor:pointer!important;user-select:none!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-summary::-webkit-details-marker{display:none!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-summary>span:first-child{display:flex!important;flex-direction:column!important;gap:3px!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-summary strong{font-size:15px!important;font-weight:750!important;color:#243044!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-summary small{font-size:11px!important;color:#64748b!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-chevron{font-size:23px!important;line-height:1!important;transition:transform .2s ease!important;color:#526477!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card[open]>.profile-card-summary .profile-card-chevron{transform:rotate(180deg)!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-body{padding:0 14px 14px!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-shop-card{background:linear-gradient(125deg,rgba(255,248,232,.98),rgba(233,249,245,.97),rgba(244,238,255,.97))!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-account-summary{background:linear-gradient(120deg,rgba(231,244,255,.98),rgba(244,239,255,.97),rgba(255,248,234,.97))!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-invite-card{background:linear-gradient(120deg,rgba(255,239,218,.98),rgba(255,248,232,.97),rgba(246,239,255,.97))!important}
body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-invite-card .panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 0!important}
@media(prefers-reduced-motion:reduce){body.workspace-active #owner-dashboard-view.profile-workspace-mode .profile-card-chevron{transition:none!important}}


/* AURORA E-RECEIPT: fixed glowing header and always-available in-app back control */
.topbar{position:sticky;top:0;z-index:1200;min-height:68px;height:auto;background:linear-gradient(115deg,#071d38,#075b74,#493b80,#087c79,#071d38);background-size:320% 320%;animation:auroraHeaderFlow 13s ease-in-out infinite;box-shadow:0 5px 26px rgba(42,220,208,.24),0 2px 18px rgba(132,102,255,.2);border-bottom:1px solid rgba(255,255,255,.24)}
.brand{font-size:clamp(20px,3vw,25px);font-weight:900;letter-spacing:.09em;text-shadow:0 0 16px rgba(139,255,244,.45),0 0 25px rgba(174,142,255,.32)}
.global-back-btn{margin-left:auto;min-height:40px;padding:8px 14px;border:1px solid rgba(255,255,255,.48);border-radius:999px;background:rgba(255,255,255,.16);color:#fff;font:700 13px system-ui,sans-serif;backdrop-filter:blur(10px);box-shadow:0 0 18px rgba(119,238,231,.18)}
.global-back-btn:active{transform:translateY(1px)}
@keyframes auroraHeaderFlow{0%,100%{background-position:0% 50%}50%{background-position:100% 50%}}
@media(prefers-reduced-motion:reduce){.topbar{animation:none}}
.profile-readonly-note{margin:0 0 10px;padding:10px 12px;border:1px solid rgba(88,156,192,.3);border-radius:12px;background:rgba(220,241,250,.72);color:#254a61;font-size:12px;font-weight:650}
.profile-readonly .profile-card-body input:disabled,.profile-readonly .profile-card-body select:disabled,.profile-readonly .profile-card-body textarea:disabled{opacity:.88;color:#30445a;background:#f1f5f8;cursor:not-allowed}
.profile-readonly .profile-card-body label{opacity:.92}

.page-back-row{position:sticky;top:8px;z-index:1100;display:flex;justify-content:flex-start;margin:0 0 14px;padding:4px 0;background:transparent}
.page-back-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;box-shadow:0 5px 18px rgba(15,42,67,.14)}

/* Referral wallet history */
.referral-history{margin-top:12px;padding-top:10px;border-top:1px solid #eadcf2}
.referral-history h3{font-size:13px;color:#55306e;margin:0 0 7px}
.referral-withdrawal-history{display:grid;gap:6px;max-height:150px;overflow:auto}
.referral-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:8px 10px;border:1px solid #eee4f4;border-radius:9px;background:#ffffffd9;font-size:11px;color:#6b5878}
.referral-history-row strong{color:#55306e;font-size:12px}
.referral-history-row small{grid-column:1/-1;overflow-wrap:anywhere;color:#64748b}

/* Company-side referral withdrawal review */
.platform-referral-admin{padding:16px;margin:12px 0}
.platform-referral-admin-list{display:grid;gap:9px;margin-top:12px}
.platform-referral-request{padding:12px;border:1px solid #dce7f0;border-radius:12px;background:linear-gradient(120deg,#f8fcff,#fff)}
.platform-referral-request-title{display:flex;justify-content:space-between;gap:12px;color:#173b56}
.platform-referral-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px}
.platform-referral-actions input{flex:1;min-width:170px}

.referral-subheading{margin-top:12px;padding-top:8px;border-top:1px solid #eadcf2}


/* AURORA compact desktop workspace: centered phone-width app on laptops. */
@media (min-width: 761px) {
  body.workspace-active .topbar {
    width: min(100%, 520px);
    margin-inline: auto;
    padding-inline: 14px;
  }
  body.workspace-active .shell {
    width: min(100%, 520px);
    max-width: 520px;
    height: calc(100dvh - 72px - 78px);
    min-height: 0;
    margin: 0 auto;
    padding: 10px 12px 8px;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,.18);
    border-right: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.97);
    box-shadow: 0 0 42px rgba(0,0,0,.16);
  }
  body.workspace-active .bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 520px);
    transform: translateX(-50%);
  }
}
@media (max-width: 760px) {
  body.workspace-active .topbar,
  body.workspace-active .shell,
  body.workspace-active .bottom-nav {
    width: 100%;
    max-width: 100%;
  }
}


/* Final desktop navigation override: keep all three working tabs inside the
   same centered 520px workspace frame (the earlier full-width rule used !important). */
@media (min-width: 761px) {
  body.workspace-active #workspace-nav.bottom-nav {
    left: 50% !important;
    right: auto !important;
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: space-around !important;
    gap: 12px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.workspace-active #workspace-nav.bottom-nav button {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body.workspace-active #workspace-nav.bottom-nav button.receipt-nav {
    flex: 1 1 0 !important;
    max-width: none !important;
    margin-top: -10px !important;
  }
}
body.workspace-active #workspace-nav.bottom-nav button {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.workspace-active #workspace-nav.bottom-nav button.active {
  color: #155e75 !important;
  background: linear-gradient(135deg, rgba(207,250,254,.95), rgba(224,231,255,.92)) !important;
  box-shadow: inset 0 0 0 1px rgba(14,116,144,.16), 0 3px 12px rgba(14,116,144,.10) !important;
}
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav.active {
  color: #fff !important;
  background: linear-gradient(135deg,#087f8c,#3156a5) !important;
  box-shadow: 0 5px 16px rgba(8,127,140,.30) !important;
}


/* AURORA four-tab navigation: distinct soft colour pulses with a bright glow. */
body.workspace-active #workspace-nav.bottom-nav{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;
  gap:7px!important;
  padding:8px 10px!important;
}
body.workspace-active #workspace-nav.bottom-nav button,
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav{
  display:flex!important;
  flex:1 1 0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  min-height:54px!important;
  margin:0!important;
  padding:7px 3px!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:3px!important;
  border:1px solid rgba(255,255,255,.56)!important;
  border-radius:15px!important;
  font-weight:750!important;
  font-size:clamp(9px,2.6vw,12px)!important;
  background-size:220% 220%!important;
  animation:auroraTabPulse 7s ease-in-out infinite!important;
  transition:transform .22s ease,filter .22s ease,box-shadow .22s ease!important;
}
body.workspace-active #workspace-nav.bottom-nav button:nth-child(1){color:#174f91!important;background:linear-gradient(135deg,#d8efff,#a8d5ff,#e8f5ff)!important;box-shadow:0 0 13px rgba(76,164,255,.24)!important;animation-delay:0s!important}
body.workspace-active #workspace-nav.bottom-nav button:nth-child(2){color:#08766d!important;background:linear-gradient(135deg,#d8fff1,#8ee6d1,#e8fff8)!important;box-shadow:0 0 13px rgba(42,210,171,.24)!important;animation-delay:-1.4s!important}
body.workspace-active #workspace-nav.bottom-nav button:nth-child(3){color:#67449a!important;background:linear-gradient(135deg,#f0e3ff,#d1b6ff,#fbf2ff)!important;box-shadow:0 0 13px rgba(171,119,255,.24)!important;animation-delay:-2.8s!important}
body.workspace-active #workspace-nav.bottom-nav button:nth-child(4){color:#9a5a18!important;background:linear-gradient(135deg,#fff0d4,#ffd18c,#fff8e9)!important;box-shadow:0 0 13px rgba(255,174,75,.24)!important;animation-delay:-4.2s!important}
body.workspace-active #workspace-nav.bottom-nav button.active{
  filter:saturate(1.22) brightness(1.035)!important;
  transform:translateY(-3px)!important;
  box-shadow:0 0 0 1px rgba(255,255,255,.9),0 0 20px currentColor,0 5px 18px rgba(28,65,100,.18)!important;
}
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav.active{
  color:#08766d!important;
  background:linear-gradient(135deg,#d8fff1,#8ee6d1,#e8fff8)!important;
}
body.workspace-active #workspace-nav.bottom-nav .nav-icon{font-size:19px!important;line-height:1.1!important}
@keyframes auroraTabPulse{
  0%,100%{background-position:0% 50%;filter:brightness(.94);box-shadow:0 0 7px rgba(117,180,255,.13)}
  50%{background-position:100% 50%;filter:brightness(1.12);box-shadow:0 0 20px rgba(115,208,255,.38),0 0 30px rgba(173,137,255,.16)}
}
/* Respect reduced motion for navigation without disabling Shop content. */
@media(prefers-reduced-motion:reduce){
  body.workspace-active #workspace-nav.bottom-nav button{animation:none!important}
}
@media(max-width:420px){
  body.workspace-active #workspace-nav.bottom-nav{gap:5px!important;padding-inline:7px!important}
  body.workspace-active #workspace-nav.bottom-nav button{border-radius:12px!important;min-height:50px!important}
}

body.workspace-active #shop-home.shop-home.hidden{display:none!important}

/* SHOP DIRECTORY: first card uses a soft, fading sky-blue aurora. */
body.workspace-active #shop-home.shop-home{
  display:block!important;flex:1 1 auto!important;width:100%!important;min-height:0!important;
  margin:8px 0 14px!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;animation:none!important;overflow:visible!important;
}
body.workspace-active #shop-home.shop-home.hidden{display:none!important}
.shop-directory-card{
  display:grid;gap:13px;padding:16px;border:1px solid rgba(93,169,224,.42);border-radius:20px;
  background:linear-gradient(125deg,rgba(224,244,255,.98),rgba(184,222,255,.96),rgba(235,248,255,.98),rgba(196,229,255,.97));
  background-size:260% 260%;animation:shopSkyBluePulse 10s ease-in-out infinite;
  box-shadow:0 8px 25px rgba(71,154,219,.14),0 0 23px rgba(114,194,255,.22),inset 0 0 18px rgba(255,255,255,.62);
}
.shop-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.shop-directory-heading>div{min-width:0}
.shop-directory-heading .eyebrow{margin:0 0 4px;color:#3277a8}
.shop-directory-heading h1{margin:0;color:#174b73;font-size:21px;letter-spacing:-.025em}
.shop-directory-heading .muted{margin:5px 0 0;color:#456b86}
.shop-search-toggle{
  flex:0 0 auto;border:1px solid rgba(49,123,178,.35);border-radius:999px;padding:7px 11px;
  background:rgba(255,255,255,.72);color:#145b8b;font-size:11px;font-weight:800;
  box-shadow:0 3px 12px rgba(48,126,185,.12);cursor:pointer
}
.shop-add-products,.shop-product-search-form{display:grid;gap:9px}
.shop-add-products label,.shop-product-search-form label{display:grid;gap:5px;color:#245777;font-size:12px;font-weight:700}
.shop-add-products input,.shop-product-search-form input{
  width:100%;min-height:42px;padding:9px 11px;border:1px solid rgba(67,139,190,.3);
  border-radius:11px;background:rgba(255,255,255,.9);color:#173e5b;font-size:14px
}
.shop-product-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.shop-directory-card .btn-primary{background:linear-gradient(120deg,#1677b8,#315fbd);box-shadow:0 5px 14px rgba(38,111,177,.22)}
.shop-directory-message{min-height:15px;margin:0;color:#245777;font-size:11px}
.shop-product-results{display:grid;gap:9px;margin:12px 0 20px}
.shop-product-results h2{margin:4px 2px;color:#214b6c;font-size:16px}
.shop-product-result-card{padding:12px;border:1px solid rgba(93,169,224,.28);border-radius:14px;background:linear-gradient(125deg,#fff,#f1f8ff);box-shadow:0 4px 14px rgba(38,101,153,.07)}
.shop-product-result-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;color:#183f5e}
.shop-product-result-top strong{font-size:14px;overflow-wrap:anywhere}
.shop-product-result-top b{flex:0 0 auto;color:#176b9e;font-size:13px}
.shop-result-business{margin:7px 0 2px;color:#315d7a;font-size:12px;font-weight:750}
.shop-result-location{margin:2px 0;color:#627f94;font-size:11px}
.shop-result-contact{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:9px;padding-top:8px;border-top:1px solid #e3eff8;color:#456b86;font-size:11px}
.shop-result-contact strong{color:#204d70}
.shop-enquiry-link{display:inline-flex;align-items:center;justify-content:center;padding:7px 12px;border-radius:999px;background:#176eaa;color:#fff;text-decoration:none;font-size:11px;font-weight:800}
@keyframes shopSkyBluePulse{
  0%,100%{background-position:0% 50%;filter:brightness(.96);box-shadow:0 7px 18px rgba(71,154,219,.12),0 0 12px rgba(114,194,255,.16),inset 0 0 14px rgba(255,255,255,.52)}
  50%{background-position:100% 50%;filter:brightness(1.08);box-shadow:0 9px 27px rgba(71,154,219,.2),0 0 28px rgba(83,174,245,.34),inset 0 0 24px rgba(255,255,255,.78)}
}
@media(prefers-reduced-motion:reduce){.shop-directory-card{animation:none!important}}
@media(max-width:420px){.shop-directory-card{padding:12px;gap:11px}.shop-directory-heading h1{font-size:18px}.shop-search-toggle{padding:7px 9px}.shop-product-fields{gap:7px}}

/* Compact Shop workspace card leaves room for additional Shop tabs. */
.shop-directory-card{gap:8px;padding:10px 12px;border-radius:14px;box-shadow:0 4px 14px rgba(71,154,219,.12),0 0 12px rgba(114,194,255,.15),inset 0 0 12px rgba(255,255,255,.58)}
.shop-directory-heading{gap:7px;align-items:center}
.shop-directory-heading .eyebrow{font-size:9px;letter-spacing:.08em;margin-bottom:2px}
.shop-directory-heading h1{font-size:16px;line-height:1.2}
.shop-directory-heading .muted{font-size:10px;line-height:1.25;margin-top:3px}
.shop-search-toggle{padding:6px 9px;font-size:10px}
.shop-add-products,.shop-product-search-form{gap:6px}
.shop-add-products label,.shop-product-search-form label{gap:3px;font-size:10px}
.shop-add-products input,.shop-product-search-form input{min-height:34px;padding:6px 9px;border-radius:8px;font-size:12px}
.shop-product-fields{gap:7px}
.shop-directory-card .btn-primary{min-height:34px;padding:7px 10px;font-size:11px;border-radius:9px}
.shop-directory-message{min-height:11px;font-size:10px}
.shop-owner-note{font-size:10px;margin:0}
.shop-product-results{gap:7px;margin:8px 0 14px}
@media(max-width:420px){.shop-directory-card{padding:9px 10px;gap:7px}.shop-directory-heading h1{font-size:15px}.shop-search-toggle{padding:6px 8px}.shop-add-products input,.shop-product-search-form input{min-height:33px}}

.referral-redemption-panel{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:12px 14px;border:1px solid rgba(70,151,211,.24);border-radius:14px;background:linear-gradient(115deg,rgba(224,244,255,.82),rgba(242,249,255,.96))}
.referral-redemption-panel>div{display:grid;gap:2px;color:#315d7a;font-size:11px}
.referral-redemption-panel>div strong{font-size:22px;line-height:1.1;color:#176b9e}
.referral-redemption-panel .btn{flex:0 0 auto}
@media(max-width:420px){.referral-redemption-panel{align-items:stretch;flex-direction:column}.referral-redemption-panel .btn{width:100%}}

/* Dashboard controls: keep every action separate, visible and reachable above the fixed navigation. */
body.workspace-active #owner-home{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:10px!important;
  min-height:0!important;
  height:100%!important;
  max-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  padding:0 2px 20px!important;
  scrollbar-gutter:stable;
}
body.workspace-active #owner-home>*{
  position:relative!important;
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
}
body.workspace-active .dashboard-payment-tabs{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
}
body.workspace-active .dashboard-payment-tab{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:62px!important;
  height:auto!important;
  margin:0!important;
  padding:9px 6px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:1.25!important;
}
body.workspace-active .dashboard-payment-tab strong{
  display:block!important;
  font-size:clamp(10px,2.7vw,13px)!important;
  text-align:center!important;
}
body.workspace-active .dashboard-payment-tab small{
  display:block!important;
  font-size:clamp(9px,2.3vw,11px)!important;
  text-align:center!important;
}
body.workspace-active #dashboard-payment-panel{
  display:block;
  max-height:none!important;
  overflow:visible!important;
  padding:12px!important;
}
body.workspace-active #dashboard-payment-panel.hidden{display:none!important}
body.workspace-active #referral-card{
  display:block!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  padding:14px!important;
}
body.workspace-active #referral-card.hidden{display:none!important}
body.workspace-active .referral-redemption-panel{
  display:flex!important;
  position:relative!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  width:100%!important;
  min-height:64px!important;
  overflow:visible!important;
}
body.workspace-active #referral-redeem{
  display:inline-flex!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:1!important;
  min-height:42px!important;
  white-space:normal!important;
}
body.workspace-active #today-sales-toggle,
body.workspace-active #owner-home-issue{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  white-space:normal!important;
}
body.workspace-active #today-sales-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;
}
body.workspace-active #today-sales-details.hidden{display:none!important}
@media(max-width:480px){
  body.workspace-active .dashboard-payment-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.workspace-active .dashboard-payment-tab{min-height:58px!important}
  body.workspace-active .referral-redemption-panel{flex-direction:column!important;align-items:stretch!important}
  body.workspace-active #referral-redeem{width:100%!important;justify-content:center!important}
  body.workspace-active #today-sales-details{grid-template-columns:1fr 1fr!important}
}
@media(min-width:481px){
  body.workspace-active #owner-home{padding-bottom:26px!important}
}

body.workspace-active #owner-home>.hidden,
body.workspace-active #owner-home #referral-card.hidden,
body.workspace-active #owner-home #dashboard-payment-panel.hidden,
body.workspace-active #owner-home #today-sales-details.hidden{display:none!important}

.receipt-special-amendment {
  display: inline-flex;
  width: auto;
  min-height: 32px;
  margin-top: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line, #d9e2ef);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
}


/* Compact AURORA welcome-page sign-in panel */
.login-role-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}
.login-role-tab{min-width:0;min-height:38px;padding:8px 5px;border:1px solid rgba(31,111,220,.25);border-radius:9px;background:#eef5ff;color:#174477;font-size:12px;font-weight:750;line-height:1.1}
.login-role-tab.active{background:linear-gradient(135deg,#075bd8,#08a8ed);border-color:#0879e5;color:#fff;box-shadow:0 5px 14px rgba(0,91,216,.2)}
.login-submit-compact{min-height:40px!important;padding:9px 14px!important;font-size:13px!important;letter-spacing:.04em}
.login-forgot-wrap{margin:8px 0 0;text-align:center}
.login-forgot-btn{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 13px;border-radius:8px;background:#c62828;color:#fff!important;font-size:11px;font-weight:800;letter-spacing:.035em;text-decoration:none}
.login-forgot-btn:hover{background:#a91f1f}
@media(max-width:380px){.login-role-tabs{gap:4px}.login-role-tab{font-size:11px;padding:7px 3px}}

/* Clean login landing: keep attention on the logo area and sign-in controls. */
body:not(.workspace-active) .topbar{display:none!important}
body:not(.workspace-active) .shell{max-width:520px;margin:12px auto;min-height:calc(100vh - 24px);display:flex;align-items:center;justify-content:center}
body:not(.workspace-active) #login-view{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;width:100%;min-height:0;padding:8px 0}
body:not(.workspace-active) #login-view .login-card{width:100%;max-width:460px;padding:18px 20px;margin:0;border-radius:18px}
body:not(.workspace-active) #login-form{display:grid;gap:10px}
body:not(.workspace-active) #login-form>label{display:grid;gap:5px;margin:0;font-size:12px;font-weight:700}
body:not(.workspace-active) #login-form input{min-height:42px}
body:not(.workspace-active) .login-role-tabs{margin:0 0 8px}
body:not(.workspace-active) .login-forgot-wrap{margin-top:6px}
body:not(.workspace-active) #owner-register-entry{margin:10px 0 0}
@media(max-width:480px){body:not(.workspace-active) .shell{margin:0 auto;padding:10px 14px;min-height:100dvh}body:not(.workspace-active) #login-view .login-card{padding:16px 14px}}


/* AURORA login logo: use the supplied platform artwork without extra welcome copy */
.aurora-login-logo{display:block;width:min(100%,420px);height:auto;max-height:220px;object-fit:contain;margin:0 auto 14px;border-radius:12px}
#login-view .login-card{padding-top:16px}
@media(max-width:600px){.aurora-login-logo{width:100%;max-height:190px;margin-bottom:10px}#login-view .login-card{padding:12px}}


/* Compact creative AURORA identity above sign-in */
#login-view .aurora-brand-lockup{position:relative;text-align:center;margin:0 auto 20px;padding:8px 12px 15px;max-width:390px;border-radius:22px;background:radial-gradient(ellipse at 50% 0%,rgba(0,157,255,.16),transparent 68%)}
#login-view .aurora-login-logo{width:min(100%,250px);height:116px;max-height:116px;object-fit:contain;display:block;margin:0 auto 2px;border-radius:0;filter:drop-shadow(0 8px 18px rgba(0,116,255,.18))}
#login-view .aurora-tagline{margin:0;display:flex;flex-direction:column;gap:2px;letter-spacing:.02em;line-height:1.18}
#login-view .aurora-tagline span{font-size:clamp(17px,4vw,21px);font-weight:800;color:#087de2}
#login-view .aurora-tagline strong{font-size:clamp(13px,3.4vw,16px);font-weight:650;color:var(--text,#102448)}
#login-view .login-card{padding-top:18px}
@media(max-width:600px){#login-view .aurora-brand-lockup{margin-bottom:14px;padding:4px 8px 10px}#login-view .aurora-login-logo{width:210px;height:96px;max-height:96px}}


/* Full-page living aurora atmosphere: slow, soft fading colour movement */
body:not(.workspace-active){background-color:#07152d!important;background-image:linear-gradient(125deg,rgba(4,13,43,.82),rgba(14,37,83,.54),rgba(34,15,76,.62),rgba(0,61,83,.60),rgba(4,13,43,.82)),url('./aurora-background.jpg')!important;background-size:320% 320%,cover!important;background-position:0% 50%,center center!important;background-attachment:fixed,fixed!important;animation:auroraLoginAtmosphere 22s ease-in-out infinite!important}
body:not(.workspace-active):before{content:"";position:fixed;inset:-20%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 18% 25%,rgba(0,211,255,.20),transparent 38%),radial-gradient(ellipse at 82% 70%,rgba(174,90,255,.20),transparent 42%),radial-gradient(ellipse at 50% 50%,rgba(42,117,255,.12),transparent 55%);filter:blur(24px);animation:auroraAmbientFade 14s ease-in-out infinite alternate}
@keyframes auroraLoginAtmosphere{0%,100%{background-position:0% 50%,center center;filter:brightness(.88) saturate(1)}50%{background-position:100% 50%,center center;filter:brightness(1.12) saturate(1.25)}}
@keyframes auroraAmbientFade{0%{opacity:.45;transform:scale(.96)}100%{opacity:1;transform:scale(1.06)}}
/* Restore the animated, glowing AURORA heading on the welcome/login screen */
body:not(.workspace-active) .topbar{display:flex!important;position:relative!important;top:auto!important;min-height:62px!important;height:62px!important;padding:0 18px!important;background:linear-gradient(115deg,#071d38,#075b74,#493b80,#087c79,#071d38)!important;background-size:320% 320%!important;animation:auroraHeaderFlow 13s ease-in-out infinite!important;box-shadow:0 5px 26px rgba(42,220,208,.24),0 2px 18px rgba(132,102,255,.2)!important;border-bottom:1px solid rgba(255,255,255,.24)!important;backdrop-filter:blur(16px)!important}
body:not(.workspace-active) .topbar .brand{font-size:clamp(19px,4vw,24px)!important;font-weight:900!important;letter-spacing:.09em!important;color:#fff!important;text-shadow:0 0 8px rgba(139,255,244,.8),0 0 16px rgba(139,255,244,.58),0 0 27px rgba(174,142,255,.58)!important;animation:auroraBrandGlow 3.8s ease-in-out infinite}
@keyframes auroraBrandGlow{0%,100%{filter:brightness(.86);text-shadow:0 0 7px rgba(139,255,244,.45),0 0 15px rgba(174,142,255,.32)}50%{filter:brightness(1.35);text-shadow:0 0 12px rgba(139,255,244,.95),0 0 25px rgba(139,255,244,.72),0 0 38px rgba(174,142,255,.7)}}
body:not(.workspace-active) .shell{margin:12px auto!important;min-height:calc(100vh - 86px)!important}
body:not(.workspace-active) #login-view .login-card{background:rgba(7,17,48,.76)!important;border:1px solid rgba(177,202,255,.34)!important;box-shadow:0 18px 60px rgba(0,0,0,.32),0 0 28px rgba(48,164,255,.12)!important;backdrop-filter:blur(18px)!important;color:#f5f7ff!important}
body:not(.workspace-active) #login-view .login-card label{color:#e0e8ff!important}
body:not(.workspace-active) #login-view .login-card .muted{color:#c2cbe3!important}
@media(prefers-reduced-motion:reduce){body:not(.workspace-active),body:not(.workspace-active):before,body:not(.workspace-active) .topbar .brand{animation:none!important}}


/* Compact signed-in header action to return to the AURORA sign-in screen. */
.topbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.back-to-login-btn{border:1px solid rgba(255,255,255,.5);border-radius:9px;padding:8px 11px;background:rgba(255,255,255,.14);color:#fff;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}.back-to-login-btn:hover{background:rgba(255,255,255,.24)}body:not(.workspace-active) .topbar-actions{display:none!important}@media(max-width:420px){.back-to-login-btn{padding:7px 8px;font-size:11px}}

/* Keep the return-to-login action visible on every authenticated workspace page. */
body.workspace-active .topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;z-index:100!important}body.workspace-active .topbar-actions{display:flex!important;align-items:center!important;visibility:visible!important;opacity:1!important}body.workspace-active .back-to-login-btn:not(.hidden){display:inline-flex!important;align-items:center!important;justify-content:center!important;visibility:visible!important;opacity:1!important;position:relative!important;z-index:101!important}


/* Dashboard-level sign-out route: always visible at the top of the dashboard. */
body.workspace-active #owner-home .dashboard-login-return-row{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  width:100%!important;flex:0 0 auto!important;margin:0 0 2px!important;padding:0 2px!important;
}
body.workspace-active #owner-home .dashboard-back-to-login{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:36px!important;padding:7px 13px!important;border:1px solid #b8d8f5!important;
  border-radius:10px!important;background:linear-gradient(120deg,#eaf5ff,#d7eaff)!important;
  color:#15558a!important;font-size:12px!important;font-weight:800!important;
  line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important;
  box-shadow:0 3px 12px rgba(38,112,177,.13)!important;
}
body.workspace-active #owner-home .dashboard-back-to-login:active{transform:translateY(1px)}

/* Shop directory card two and card three follow one compact visual system. */
body.workspace-active #shop-home .shop-search-directory-card{
  display:grid;gap:10px;margin:10px 0;padding:12px;border:1px solid rgba(93,169,224,.38);
  border-radius:16px;background:linear-gradient(125deg,rgba(226,244,255,.98),rgba(193,226,250,.96),rgba(240,249,255,.98));
  box-shadow:0 5px 16px rgba(71,154,219,.12),inset 0 0 14px rgba(255,255,255,.65);
}
body.workspace-active #receipts-home #secondhand-open-card{margin:10px 0 12px;width:100%;min-height:78px}
body.workspace-active #receipts-home #secondhand-open-card .secondhand-entry-copy strong{font-size:14px}
body.workspace-active #receipts-home #secondhand-open-card .secondhand-entry-copy small{font-size:11px;line-height:1.35}
.secondhand-download-pdf{display:flex;align-items:center;justify-content:center;margin:0 0 10px;text-decoration:none}
.secondhand-buyer-summary{padding:10px 12px;border-radius:10px;background:#eaf5ff;color:#174b73;font-size:12px}
@media(max-width:420px){body.workspace-active #shop-home .shop-search-directory-card{padding:10px;gap:8px}}

/* Second-Hand Receipt now lives inside the Receipt workspace. */
body.workspace-active #receipts-home .secondhand-receipt-entry-label{margin:14px 0 4px;color:#4b83ac}
body.workspace-active #receipts-home #secondhand-open-card{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #b9d9f4;border-radius:14px;background:linear-gradient(120deg,#edf7ff,#dceeff);color:#174b73;text-align:left;cursor:pointer}
body.workspace-active #receipts-home #secondhand-open-card .secondhand-entry-copy{display:grid;gap:3px}
body.workspace-active #receipts-home #secondhand-open-card .secondhand-entry-copy strong{font-size:14px}
body.workspace-active #receipts-home #secondhand-open-card .secondhand-entry-copy small{font-size:11px;line-height:1.35}
body.workspace-active #receipts-home #secondhand-panel{margin-top:10px}


/* Shop Details belongs only in the Profile tab, never in Products. */
body.workspace-active #shop-home .shop-business-details-card{
  display:block;
  margin:12px 0 18px!important;
  overflow:hidden;
  border:1px solid rgba(44,154,104,.42)!important;
  border-radius:17px!important;
  background:linear-gradient(125deg,#e7fff0,#b8f0ce,#f0fff5,#a9e8c1)!important;
  background-size:300% 300%!important;
  animation:auroraShopDetailsFade 13s ease-in-out infinite!important;
  box-shadow:0 5px 18px rgba(24,135,83,.15),inset 0 0 18px rgba(255,255,255,.62)!important;
}
/* The shared .hidden utility must win over the card's presentation styles. */
body.workspace-active #shop-home .shop-business-details-card.hidden{
  display:none!important;
}
body.workspace-active #shop-home .shop-business-details-card>.profile-card-summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 15px!important;color:#145b39!important;cursor:pointer;list-style:none;
}
body.workspace-active #shop-home .shop-business-details-card>.profile-card-summary::-webkit-details-marker{display:none}
body.workspace-active #shop-home .shop-business-details-card>.profile-card-summary strong{display:block;font-size:15px}
body.workspace-active #shop-home .shop-business-details-card>.profile-card-summary small{display:block;margin-top:3px;color:#327653;font-size:11px}
body.workspace-active #shop-home .shop-business-details-card[open]>.profile-card-body{
  padding:12px!important;border-top:1px solid rgba(34,139,84,.2);
  background:rgba(255,255,255,.84);color:#17251f;
}
body.workspace-active #shop-home .shop-business-details-card .profile-readonly-note{margin:0 0 10px;color:#80551a;font-size:12px}
@keyframes auroraShopDetailsFade{
  0%,100%{background-position:0% 50%;filter:brightness(.94);box-shadow:0 4px 14px rgba(24,135,83,.12),inset 0 0 14px rgba(255,255,255,.55)}
  50%{background-position:100% 50%;filter:brightness(1.08);box-shadow:0 7px 24px rgba(24,155,91,.28),inset 0 0 24px rgba(255,255,255,.78)}
}
@media(prefers-reduced-motion:reduce){body.workspace-active #shop-home .shop-business-details-card{animation:none!important}}


/* Compact thermal-receipt preview: keep the receipt paper sized and scrollable on phones. */
#receipt-modal{padding:10px!important;place-items:center!important;overflow:auto!important}
#receipt-modal .receipt-card{width:min(80mm,calc(100vw - 20px))!important;max-width:80mm!important;max-height:calc(100dvh - 20px)!important;padding:10px!important;overflow-y:auto!important;border-radius:8px!important}
#receipt-modal #receipt-paper{width:100%!important;max-width:72mm!important;margin:0 auto!important;padding:4px!important;font-size:10px!important;line-height:1.35!important;overflow-wrap:anywhere!important;color:#111!important}
#receipt-modal .receipt-paper h2{font-size:15px!important}
#receipt-modal .receipt-logo{max-width:42mm!important;max-height:18mm!important;object-fit:contain!important}
#receipt-modal .receipt-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:10px!important}
#receipt-modal .receipt-actions button{min-width:0!important;padding:8px 6px!important;font-size:11px!important}
#receipt-modal #receipt-email-status{font-size:10px!important;overflow-wrap:anywhere}
.receipt-seller-details,.receipt-customer-details{padding:5px 0}
.receipt-seller-meta,.receipt-customer-details{font-size:10px;line-height:1.45}
.receipt-customer-details>strong{display:block;text-align:center;margin-bottom:4px;letter-spacing:.06em}
.receipt-party-separator{border-top:2px solid #222;margin:8px 0}
@media(max-width:430px){#receipt-modal .receipt-card{width:min(80mm,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;padding:8px!important}}
@media print{.receipt-seller-details,.receipt-customer-details{break-inside:avoid}.receipt-party-separator{border-top:1.5px solid #000}}


/* Receipt preview: true compact 80 mm thermal format, scrollable without covering controls. */
#receipt-modal{align-items:center!important;justify-items:center!important;padding:8px!important;overflow-y:auto!important;overscroll-behavior:contain}
#receipt-modal .receipt-card{box-sizing:border-box!important;width:80mm!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow-x:hidden!important;overflow-y:auto!important;padding:7px!important;margin:auto!important}
#receipt-modal #receipt-paper{box-sizing:border-box!important;width:100%!important;max-width:100%!important;padding:2px!important;font-size:9px!important;line-height:1.25!important}
#receipt-modal #receipt-paper .receipt-divider{margin:5px 0!important}
#receipt-modal #receipt-paper .receipt-line{gap:5px!important;margin:3px 0!important}
#receipt-modal #receipt-paper .receipt-party-separator{margin:5px 0!important}
#receipt-modal .modal-head{margin-bottom:7px!important}
#receipt-modal .modal-head h2{font-size:16px!important}
#receipt-modal .receipt-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:5px!important;margin-top:7px!important}
#receipt-modal .receipt-actions button{min-width:0!important;min-height:34px!important;padding:6px 4px!important;font-size:10px!important;white-space:normal!important}
@media print{#receipt-modal .receipt-card{width:80mm!important;max-width:80mm!important;max-height:none!important;overflow:visible!important;padding:0!important}#receipt-modal #receipt-paper{width:76mm!important;max-width:76mm!important;font-size:10px!important}}

/* Compact Shop section tabs and Lost & Found workflow */
.shop-section-tabs{display:flex;gap:7px;position:sticky;top:0;z-index:4;padding:8px;margin:0 0 12px;border:1px solid #dce8f4;border-radius:15px;background:rgba(248,251,255,.96);box-shadow:0 5px 18px rgba(23,65,100,.07)}
.shop-section-tabs button{flex:1;min-width:0;border:0;border-radius:10px;padding:10px 8px;background:transparent;color:#496176;font-weight:700;font-size:13px}
.shop-section-tabs button.active{background:linear-gradient(120deg,#dcefff,#dff8f4);color:#075b85;box-shadow:inset 0 0 0 1px #b9dff3}
.shop-business-details-card{margin:0 0 12px!important}
.shop-business-details-card summary{padding:12px 14px!important}
.shop-lost-items-panel{display:grid;gap:12px}
.lost-items-intro{padding:15px!important}
.lost-items-intro h2{margin:4px 0}
.lost-item-register{padding:14px!important;border-radius:16px}
.lost-item-register>summary{display:grid;gap:4px;cursor:pointer}
.lost-item-register>summary small{color:#687b8c}
.lost-item-form{display:grid;gap:10px;margin-top:14px}
.lost-item-qr{margin-top:12px;padding:14px;border:1px dashed #91b9d4;border-radius:14px;text-align:center;background:#f4faff}
.lost-item-qr img{display:block;width:min(260px,100%);height:auto;margin:12px auto;background:white}
.lost-items-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lost-item-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px;margin:8px 0;border:1px solid #dfe8f1;border-radius:13px;background:#fff}
.lost-item-row>div:first-child{min-width:0;display:grid;gap:4px}
.lost-item-row small{color:#65788b;overflow-wrap:anywhere}
.lost-item-actions{display:flex;flex-wrap:wrap;gap:5px;justify-content:flex-end}
.public-lost-item-view{max-width:620px;margin:24px auto;padding:12px}
.public-lost-item-view .panel{padding:20px}
.public-lost-item-view form{display:grid;gap:12px;margin-top:18px}
.public-lost-item-view h1{margin:4px 0 14px}
@media(max-width:520px){.lost-item-row{align-items:flex-start;flex-direction:column}.lost-item-actions{justify-content:flex-start}.shop-section-tabs button{font-size:12px;padding:9px 4px}}

/* AURORA lost-item match alarm */
.lost-item-checker{padding:16px;display:grid;gap:10px}.lost-item-check-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.lost-item-check-result{padding:13px;border-radius:10px;background:#eaf4ef;color:#173b2b;font-size:13px}.lost-item-check-result.lost-match-alert{background:#fff0f0!important;border:2px solid #dc2626!important;color:#991b1b!important;animation:auroraLostAlarm .65s steps(2,end) infinite}.lost-item-check-result.lost-match-alert p{margin:6px 0}.nav-lost-goods{white-space:nowrap}@keyframes auroraLostAlarm{0%,100%{background:#fff0f0;box-shadow:0 0 0 0 #ef444455}50%{background:#ffcaca;box-shadow:0 0 0 7px #ef444422}}@media(max-width:520px){.lost-item-check-form{grid-template-columns:1fr}.lost-item-check-form button{width:100%}}

body.aurora-lost-alarm .topbar{animation:auroraGlobalLostAlarm .55s steps(2,end) infinite!important;border-bottom:4px solid #dc2626!important}@keyframes auroraGlobalLostAlarm{0%,100%{background:#7f1d1d!important;box-shadow:0 0 0 0 #ef444455}50%{background:#dc2626!important;box-shadow:0 0 0 8px #ef444422}}

.aurora-lost-alarm-banner{position:fixed;z-index:10000;top:78px;left:50%;transform:translateX(-50%);width:min(94vw,620px);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:2px solid #fecaca;border-radius:12px;background:#991b1b;color:#fff;box-shadow:0 12px 35px #0006;font-size:13px;animation:auroraGlobalLostAlarm .55s steps(2,end) infinite}.aurora-lost-alarm-banner button{flex:0 0 auto;border:1px solid #fff;border-radius:8px;padding:8px 10px;background:#fff;color:#991b1b;font-weight:800}


/* Lost Goods is a dedicated scroll area. Keep every form control above the fixed
   four-button navigation on short phones and when the register is expanded. */
body.workspace-active #shop-lost-items-panel:not(.hidden){
  position:fixed!important;
  top:72px!important;
  bottom:calc(74px + env(safe-area-inset-bottom))!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  width:min(100%,520px)!important;
  max-width:520px!important;
  box-sizing:border-box!important;
  display:block!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;
  padding:8px 12px 18px!important;
  margin:0!important;
  z-index:20!important;
  background:#f7fbff!important;
}
body.workspace-active #shop-lost-items-panel:not(.hidden) .lost-item-register{
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.workspace-active #shop-lost-items-panel:not(.hidden) .lost-item-form,
body.workspace-active #shop-lost-items-panel:not(.hidden) .lost-item-form>*{
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.workspace-active #shop-lost-items-panel:not(.hidden) input,
body.workspace-active #shop-lost-items-panel:not(.hidden) textarea,
body.workspace-active #shop-lost-items-panel:not(.hidden) select{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  body.workspace-active #shop-lost-items-panel:not(.hidden){
    top:64px!important;
    bottom:calc(66px + env(safe-area-inset-bottom))!important;
    padding:6px 9px 16px!important;
  }
}


/* Full-screen red emergency state whenever a lost item is detected. */
body.aurora-lost-alarm,
body.aurora-lost-alarm .shell,
body.aurora-lost-alarm #shop-lost-items-panel,
body.aurora-lost-alarm #lost-item-check-result{
  background:#fee2e2!important;
}
body.aurora-lost-alarm:after{
  content:"";
  position:fixed;
  inset:0;
  z-index:9997;
  pointer-events:none;
  background:rgba(220,38,38,.20);
  border:8px solid #dc2626;
  box-shadow:inset 0 0 0 8px rgba(127,29,29,.22);
}
body.aurora-lost-alarm .aurora-lost-alarm-banner{
  z-index:10000!important;
  background:#7f1d1d!important;
  border:3px solid #fff!important;
}
body.aurora-lost-alarm #shop-lost-items-panel .lost-item-checker,
body.aurora-lost-alarm #shop-lost-items-panel .lost-item-check-result{
  background:#fecaca!important;
  border:2px solid #b91c1c!important;
  color:#7f1d1d!important;
}


/* AURORA subscription: three softly fading cards and a dedicated payment page */
.subscription-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:16px 0}
.subscription-choice-card{min-width:0;padding:17px;border-radius:19px;border:1px solid rgba(255,255,255,.72);box-shadow:0 9px 25px rgba(23,55,100,.12);background-size:260% 260%;animation:auroraSubscriptionFade 12s ease-in-out infinite;display:flex;flex-direction:column;gap:10px}
.subscription-choice-card h2{font-size:19px;margin:0;color:#102b4b}.subscription-choice-card>p:not(.eyebrow){font-size:12px;color:#405a72;line-height:1.45;margin:0}
.subscription-plan-card{background-image:linear-gradient(130deg,#e5f2ff,#a9d5ff,#edf7ff,#9bcaff)}
.subscription-buy-card{background-image:linear-gradient(130deg,#e8fff2,#9ce8c0,#f0fff6,#a8edc9);animation-delay:-4s}
.subscription-balance-card{background-image:linear-gradient(130deg,#fff2df,#ffd19a,#fff8e9,#ffdda9);animation-delay:-8s}
.subscription-choice-action{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;border:1px solid rgba(36,100,160,.18);border-radius:12px;padding:11px;background:rgba(255,255,255,.78);color:#143b62;cursor:pointer}
.subscription-choice-action span{display:grid;gap:3px}.subscription-choice-action strong{font-size:14px}.subscription-choice-action small{font-size:11px}.subscription-choice-action b{font-size:11px;white-space:nowrap}
.receipt-unit-price{display:flex;align-items:baseline;gap:7px;margin:7px 0}.receipt-unit-price strong{font-size:30px;color:#12613d}.receipt-unit-price span{font-size:12px;color:#37674d}
.subscription-main-action{margin-top:auto;padding:12px;border:0;border-radius:12px;background:#14764b;color:white;font-weight:800;cursor:pointer}
.subscription-count-number{font-size:38px;font-weight:900;line-height:1.05;color:#7a4200;font-variant-numeric:tabular-nums}
.subscription-count-meta{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid rgba(130,83,20,.16);font-size:12px;color:#674a27}.subscription-count-meta strong{color:#55330d}
.subscription-expiry-countdown{display:grid;gap:4px;padding:10px;border-radius:12px;background:rgba(255,255,255,.65);color:#70420e;font-size:11px}.subscription-expiry-countdown strong{font-size:17px;font-variant-numeric:tabular-nums}.subscription-expiry-countdown small{font-size:10px}
.subscription-balance-card #subscription-balance-message{margin:0;font-size:10px}
.subscription-payment-view{max-width:520px;margin:8px auto;padding:17px;border:1px solid #d6e6f5;border-radius:18px;background:linear-gradient(145deg,#f7fbff,#e9f5ff);box-shadow:0 12px 35px rgba(25,76,125,.12)}
.subscription-payment-view h1{font-size:23px;margin:8px 0}.subscription-back-button{border:0;background:transparent;color:#1768a8;font-weight:800;padding:8px 0;cursor:pointer}
.subscription-payment-view #dashboard-payment-form-slot>section{display:block!important;margin:12px 0 0!important}
.subscription-payment-view #owner-mpesa-form{display:grid;gap:12px}
.subscription-payment-success{text-align:center;padding:22px 12px}.subscription-success-mark{width:62px;height:62px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#15803d;font-size:36px;font-weight:900}.subscription-payment-success h2{color:#166534;margin:8px}.subscription-payment-success p{line-height:1.6;color:#285b3d}
@keyframes auroraSubscriptionFade{0%,100%{background-position:0% 50%;filter:saturate(.94) brightness(.98)}50%{background-position:100% 50%;filter:saturate(1.16) brightness(1.05)}}
@media(max-width:760px){.subscription-choice-grid{grid-template-columns:1fr;gap:10px}.subscription-choice-card{padding:14px}.subscription-choice-card h2{font-size:17px}.subscription-payment-view{margin:6px 0;padding:14px}}
@media(prefers-reduced-motion:reduce){.subscription-choice-card{animation:none}}


/* AURORA SUBSCRIPTION: three clearly separated, full-width colour cards */
#subscription-home #subscription-overview-view{display:block!important;width:100%!important;max-width:760px!important;margin:0 auto!important;padding:4px 0 24px!important}
#subscription-home .subscription-heading{margin:0 0 18px!important}
#subscription-home .subscription-choice-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:100%!important;margin:16px 0!important;align-items:stretch!important}
#subscription-home .subscription-choice-card{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important;min-width:0!important;min-height:180px!important;padding:22px!important;border:1px solid rgba(255,255,255,.82)!important;border-radius:22px!important;box-shadow:0 14px 32px rgba(3,18,45,.24),inset 0 1px 0 rgba(255,255,255,.65)!important;background-size:300% 300%!important;color:#102b4b!important;overflow:hidden!important;animation:auroraSubscriptionCardFlow 11s ease-in-out infinite!important}
#subscription-home .subscription-plan-card{background-image:linear-gradient(125deg,#d9ecff 0%,#8fc5ff 35%,#f0f8ff 68%,#a6d3ff 100%)!important}
#subscription-home .subscription-buy-card{background-image:linear-gradient(125deg,#d9ffea 0%,#83dfad 35%,#f1fff6 68%,#9be8bd 100%)!important;animation-delay:-3.5s!important}
#subscription-home .subscription-balance-card{background-image:linear-gradient(125deg,#fff0d6 0%,#ffc879 35%,#fff9ed 68%,#ffdaa0 100%)!important;animation-delay:-7s!important}
#subscription-home .subscription-choice-card .eyebrow{color:#234e75!important;font-weight:900!important}
#subscription-home .subscription-choice-card h2{font-size:21px!important;color:#102b4b!important}
#subscription-home .subscription-choice-card>p:not(.eyebrow){font-size:13px!important;color:#294861!important}
#subscription-home .subscription-choice-action{display:flex!important;width:100%!important;min-height:58px!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:12px 15px!important;border:1px solid rgba(24,75,120,.18)!important;border-radius:14px!important;background:rgba(255,255,255,.82)!important;color:#153d61!important;box-shadow:0 4px 12px rgba(21,62,99,.08)!important}
#subscription-home .subscription-choice-action span{display:grid!important;gap:3px!important}
#subscription-home .subscription-choice-action strong{font-size:15px!important}
#subscription-home .subscription-choice-action small{font-size:12px!important}
#subscription-home .subscription-choice-action b{font-size:12px!important;white-space:nowrap!important}
#subscription-home .subscription-main-action{width:100%!important;min-height:50px!important;border:0!important;border-radius:14px!important;background:#12613d!important;color:#fff!important;font-weight:900!important;box-shadow:0 6px 16px rgba(18,97,61,.2)!important}
#subscription-home .receipt-unit-price strong{font-size:38px!important;color:#12613d!important}
#subscription-home .subscription-count-number{font-size:48px!important;line-height:1.05!important;font-weight:900!important;color:#7c4300!important}
#subscription-home .subscription-count-meta,#subscription-home .subscription-expiry-countdown{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;padding:9px 0!important;border-top:1px solid rgba(124,67,0,.16)!important;color:#593b1c!important}
#subscription-home .subscription-expiry-countdown{display:grid!important;grid-template-columns:1fr auto!important}
#subscription-home .subscription-expiry-countdown small{grid-column:1/-1!important}
@keyframes auroraSubscriptionCardFlow{0%,100%{background-position:0% 50%;filter:saturate(1)}50%{background-position:100% 50%;filter:saturate(1.13)}}
@media(max-width:600px){#subscription-home .subscription-choice-grid{gap:13px!important}#subscription-home .subscription-choice-card{min-height:160px!important;padding:17px!important;border-radius:19px!important}#subscription-home .subscription-choice-card h2{font-size:19px!important}}
@media(prefers-reduced-motion:reduce){#subscription-home .subscription-choice-card{animation:none!important}}


/* Compact subscription cards and true dedicated payment screen */
#subscription-home #subscription-overview-view{max-width:620px!important;padding-bottom:12px!important}
#subscription-home .subscription-heading{margin-bottom:10px!important}
#subscription-home .subscription-choice-grid{gap:10px!important;margin:10px 0!important}
#subscription-home .subscription-choice-card{min-height:0!important;padding:14px 16px!important;gap:8px!important;border-radius:17px!important}
#subscription-home .subscription-choice-card h2{font-size:17px!important;margin:0!important}
#subscription-home .subscription-choice-card>p:not(.eyebrow){font-size:11px!important;line-height:1.35!important}
#subscription-home .subscription-choice-action{min-height:46px!important;padding:9px 12px!important}
#subscription-home .subscription-main-action{min-height:42px!important}
#subscription-home .receipt-unit-price{margin:2px 0!important}
#subscription-home .receipt-unit-price strong{font-size:29px!important}
#subscription-home .subscription-count-number{font-size:38px!important}
#subscription-home.is-payment-page #subscription-overview-view{display:none!important}
#subscription-home.is-payment-page #subscription-payment-view{display:block!important;min-height:calc(100dvh - 110px)!important;max-width:620px!important;margin:0 auto!important;padding:18px!important}
#subscription-home.is-payment-page #subscription-payment-view #dashboard-payment-form-slot{width:100%!important}
#subscription-home.is-payment-page #subscription-payment-view #dashboard-payment-form-slot>section{width:100%!important;max-width:100%!important;margin:12px 0!important}
@media(max-width:600px){#subscription-home .subscription-choice-card{padding:12px 14px!important}#subscription-home.is-payment-page #subscription-payment-view{min-height:calc(100dvh - 90px)!important;padding:13px!important}}


/* AURORA header wordmark: calm sky-blue fade, no blinking or glow. */
.topbar{background:linear-gradient(110deg,#082b50,#075b86,#0b4770)!important;background-size:100% 100%!important;animation:none!important;box-shadow:none!important;border-bottom:1px solid rgba(135,206,235,.22)!important}
.topbar .brand{color:#87ceeb!important;text-shadow:none!important;animation:auroraWordmarkFade 7s ease-in-out infinite!important}
@keyframes auroraWordmarkFade{0%,100%{color:#b8e7ff}50%{color:#65b9e8}}
@media(prefers-reduced-motion:reduce){.topbar,.topbar .brand{animation:none!important}.topbar .brand{color:#87ceeb!important}}


/* Back control sits in its own row directly below the AURORA header. */
.global-back-row{display:none;position:relative;z-index:1200;width:100%;max-width:980px;margin:0 auto;padding:7px 14px 0;box-sizing:border-box;justify-content:flex-start}
body.workspace-active .global-back-row:has(.global-back-dock:not(.hidden)){display:flex!important}
body.workspace-active .global-back-dock:not(.hidden){
 display:inline-flex!important;position:relative!important;inset:auto!important;z-index:1201!important;
 align-items:center!important;justify-content:center!important;min-height:38px!important;padding:8px 17px!important;
 border:1px solid #a8d8f3!important;border-radius:999px!important;background:#dff2ff!important;
 color:#174b70!important;font:750 13px system-ui,sans-serif!important;box-shadow:0 2px 7px rgba(24,85,125,.10)!important;
 backdrop-filter:none!important
}


/* Clear, compact history button row below the header. */
body.workspace-active .global-back-row{min-height:0!important;padding:5px 14px 0!important;margin:0 auto!important}
body.workspace-active .global-back-dock:not(.hidden){
  min-height:34px!important;padding:6px 13px!important;border-radius:10px!important;
  background:#e4f2fc!important;color:#245b80!important;border:1px solid #c2deef!important;
  font-size:12px!important;font-weight:750!important;box-shadow:none!important;opacity:1!important
}


/* Disable old sticky full-width Continue bar on the Issue Receipt screen. */
html body.workspace-active #pos-view.workspace-issue-mode #checkout-open{
 position:static!important;bottom:auto!important;top:auto!important;left:auto!important;
 width:auto!important;min-width:0!important;display:inline-flex!important;
 box-shadow:none!important;transform:none!important
}
html body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{
 position:static!important;bottom:auto!important;box-shadow:none!important
}


/* Keep the uploaded shop/business logo completely visible inside its preview space. */
.profile-logo-row{align-items:center!important}
.profile-logo-row .logo-preview{display:block!important;flex:0 0 112px!important;width:112px!important;height:112px!important;max-width:112px!important;max-height:112px!important;box-sizing:border-box!important;object-fit:contain!important;object-position:center!important;padding:8px!important;background:#fff!important;border:1px solid #cbdceb!important;border-radius:14px!important}
@media(max-width:430px){.profile-logo-row{align-items:center!important;flex-direction:row!important;gap:12px!important}.profile-logo-row>label{min-width:0!important;flex:1!important}}


/* Three compact action cards for the AURORA Lost Goods workspace. */
.lost-goods-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 14px}
.lost-goods-card{min-width:0;min-height:132px;padding:16px;border:1px solid #d9e7f4;border-radius:17px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px;cursor:pointer;box-shadow:0 8px 22px #15395c12;transition:transform .18s ease,box-shadow .18s ease}
.lost-goods-card:hover{transform:translateY(-2px);box-shadow:0 12px 26px #15395c20}
.lost-goods-card strong{font-size:15px;color:#17324d}
.lost-goods-card small{font-size:12px;line-height:1.45;color:#4e6579}
.lost-card-number{font-size:11px;font-weight:800;letter-spacing:.12em;opacity:.75}
.lost-card-register{background:linear-gradient(135deg,#e7f2ff,#c8e2ff);border-color:#b5d5fa}
.lost-card-found{background:linear-gradient(135deg,#e6fbf1,#c5f1dd);border-color:#a9e3c6}
.lost-card-check{background:linear-gradient(135deg,#fff5df,#ffe4b0);border-color:#f4d69b}
@media(max-width:620px){.lost-goods-cards{grid-template-columns:1fr;gap:9px}.lost-goods-card{min-height:0;padding:13px}.lost-goods-card small{max-width:34em}}


/* The Issue Receipt workspace must never leak onto Home or other tabs. */
#pos-view:not(.workspace-issue-mode){display:none!important;}

/* Public lost-item QR page controls and urgent lost status */
.public-lost-item-controls{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.public-lost-status{padding:14px;border:2px solid #dc2626;border-radius:10px;background:#fee2e2;color:#991b1b;font-weight:900;text-align:center;letter-spacing:.03em}.public-item-status{padding:10px;border-radius:9px;background:#e8f2ff;color:#174a82;font-weight:800}.public-lost-item-view .panel{transition:border-color .2s,background .2s}body.aurora-public-lost{background:#fff1f1!important}body.aurora-public-lost .public-lost-item-view .panel{border:3px solid #dc2626!important;box-shadow:0 0 0 5px #fecaca!important}body.aurora-public-lost .public-lost-item-view h1{color:#991b1b}@media(max-width:520px){.public-lost-item-controls{display:grid;grid-template-columns:1fr 1fr}.public-lost-item-controls button{width:100%;font-size:13px}}

/* iPhone/iOS scrolling compatibility:
   The fixed, single-screen Android layout can clip longer forms on iOS Safari.
   On iOS, let the document scroll naturally and reserve space for the fixed nav
   and Safari safe area so the final fields remain reachable. */
@supports (-webkit-touch-callout: none) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }
  body:not(.workspace-active) {
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
  }
  body.workspace-active {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
    touch-action: pan-y !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.workspace-active) .shell,
  body.workspace-active .shell {
    height: auto !important;
    min-height: calc(100svh - 72px) !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.workspace-active) #login-view,
  body:not(.workspace-active) .login-wrap {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body:not(.workspace-active) .login-card {
    max-height: none !important;
    overflow: visible !important;
  }
  body.workspace-active #owner-home,
  body.workspace-active #receipts-home,
  body.workspace-active #pos-view,
  body.workspace-active #owner-dashboard-view,
  body.workspace-active #profile-panel,
  body.workspace-active #staff-profile-panel {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
  body.workspace-active #pos-view .pos-grid,
  body.workspace-active #pos-view .cart-panel,
  body.workspace-active #pos-view .cart-list {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.workspace-active .bottom-nav {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1000;
  }
}

/* UNIVERSAL MOBILE RESPONSIVE FIX — Android phones and iPhones.
   On compact screens, use natural page scrolling instead of a fixed-height
   app viewport. This prevents long forms, receipt details and inner sections
   from being trapped behind the browser controls or bottom navigation. */
@media (max-width: 760px) {
  html, body {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
  }
  body:not(.workspace-active),
  body.workspace-active {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
    touch-action: pan-y !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:not(.workspace-active) .shell,
  body.workspace-active .shell {
    width: 100% !important;
    height: auto !important;
    min-height: calc(100svh - 58px) !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 8px 12px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
  }
  body:not(.workspace-active) #login-view,
  body:not(.workspace-active) .login-wrap,
  body:not(.workspace-active) .login-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.workspace-active #owner-home,
  body.workspace-active #receipts-home,
  body.workspace-active #pos-view,
  body.workspace-active #owner-dashboard-view,
  body.workspace-active #profile-panel,
  body.workspace-active #staff-profile-panel,
  body.workspace-active #pos-view.profile-workspace-mode,
  body.workspace-active #pos-view.profile-workspace-mode #owner-dashboard-view {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
  body.workspace-active #pos-view .pos-grid,
  body.workspace-active #pos-view .cart-panel,
  body.workspace-active #pos-view .cart-list {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body.workspace-active #workspace-nav.bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 10000 !important;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body.workspace-active #pos-view #checkout-open {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #checkout-modal {
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px
      calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  }
  #checkout-modal .modal-card {
    max-height: calc(100svh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* UNIVERSAL PHONE WIDTH + READABILITY FIX.
   Keep every app page fitted to the phone viewport so users do not need
   pinch-zoom or squeeze the screen to read fields, cards or buttons. */
@media (max-width: 760px) {
  *, *::before, *::after { box-sizing: border-box !important; }
  html, body { max-width: 100% !important; }
  body { font-size: 15px !important; }
  .shell, .shell > *, main, section, article, .panel, .card,
  .dashboard-card, .workspace-section, .view, .modal-card {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .shell { padding-left: 12px !important; padding-right: 12px !important; }
  img, video, canvas, svg { max-width: 100%; }
  input, select, textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px !important;
  }
  button, .button, .btn {
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .row, .form-row, .profile-logo-row, .action-row {
    min-width: 0 !important;
    flex-wrap: wrap !important;
  }
  [style*="grid-template-columns"],
  .grid, .pos-grid, .dashboard-grid, .stats-grid, .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .panel, .card, .modal-card, .workspace-section {
    overflow-wrap: anywhere !important;
  }
  table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  th, td { overflow-wrap: anywhere !important; }
  pre, code { white-space: pre-wrap !important; overflow-wrap: anywhere !important; }
  .topbar, .bottom-nav { max-width: 100vw !important; }
  .bottom-nav { overflow-x: auto !important; }
}


/* Shop: product fields stay hidden until Add Product is tapped. */
.shop-add-product-disclosure{margin-top:8px}
.shop-add-product-disclosure>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:10px 13px;border-radius:10px;background:linear-gradient(120deg,#1677b8,#315fbd);color:#fff;cursor:pointer}
.shop-add-product-disclosure>summary::-webkit-details-marker{display:none}
.shop-add-product-disclosure>summary strong{font-size:13px;font-weight:800}
.shop-add-product-disclosure>summary small{font-size:10px;font-weight:600;opacity:.9;text-align:right}
.shop-add-product-disclosure[open]>summary{border-radius:10px 10px 0 0}
.shop-add-product-disclosure .shop-add-products{padding:12px;border:1px solid #d9e8f4;border-top:0;border-radius:0 0 10px 10px;background:#f8fbff}


/* Shop cards open their own details; avoid a separate blue search tab/button. */
.shop-add-product-disclosure>summary{
  min-height:0!important;padding:7px 2px!important;border-radius:0!important;
  background:transparent!important;color:#174b73!important;box-shadow:none!important;
}
.shop-add-product-disclosure>summary strong{font-size:15px!important;color:#174b73!important}
.shop-add-product-disclosure>summary small{color:#58758d!important;opacity:1!important}
.shop-add-product-disclosure[open]>summary{border-radius:0!important}
.shop-add-product-disclosure .shop-add-products{padding:10px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important}
.shop-search-disclosure{cursor:pointer}
.shop-search-disclosure>summary{list-style:none;cursor:pointer}
.shop-search-disclosure>summary::-webkit-details-marker{display:none}
.shop-search-disclosure .shop-product-search-form{margin-top:10px}


/* Flagged Items navigation: red alert-style tab with a flag symbol. */
.bottom-nav .nav-lost-goods{
  color:#fff!important;background:#dc2626!important;border:2px solid #991b1b!important;
  border-radius:12px!important;font-weight:900!important;
  box-shadow:0 0 0 2px rgba(220,38,38,.18),0 0 15px rgba(220,38,38,.65)!important;
  animation:auroraFlaggedNavAlarm 1s ease-in-out infinite!important;
}
.bottom-nav .nav-lost-goods .nav-icon{font-size:22px!important;color:#fff!important;filter:drop-shadow(0 0 3px #fff)}
.bottom-nav .nav-lost-goods.active,
.bottom-nav .nav-lost-goods[aria-current="page"]{background:#991b1b!important;color:#fff!important}
@keyframes auroraFlaggedNavAlarm{0%,100%{background:#b91c1c;box-shadow:0 0 0 1px rgba(220,38,38,.25),0 0 7px rgba(220,38,38,.4)}50%{background:#ef4444;box-shadow:0 0 0 4px rgba(239,68,68,.2),0 0 20px rgba(239,68,68,.85)}}
@media(prefers-reduced-motion:reduce){.bottom-nav .nav-lost-goods{animation:none!important}}
/* Purple fading treatment for the AURORA Lost & Found Network intro card. */
#shop-lost-items-panel .lost-items-intro{
  background:linear-gradient(115deg,#eee3ff,#d9c2ff,#f0e7ff)!important;
  border:1px solid rgba(139,92,246,.28)!important;
  color:#452477!important;
  animation:auroraFlaggedPurpleFade 3.2s ease-in-out infinite;
  box-shadow:0 7px 22px rgba(104,58,170,.16)!important;
}
#shop-lost-items-panel .lost-items-intro .eyebrow,
#shop-lost-items-panel .lost-items-intro h2{color:#542b91!important}
#shop-lost-items-panel .lost-items-intro .muted{color:#654a85!important}
@keyframes auroraFlaggedPurpleFade{
  0%,100%{background:linear-gradient(115deg,#eee3ff,#d9c2ff,#f0e7ff);box-shadow:0 7px 22px rgba(104,58,170,.13)}
  50%{background:linear-gradient(115deg,#d8c0ff,#b995f2,#e2d0ff);box-shadow:0 8px 25px rgba(104,58,170,.28)}
}
@media(prefers-reduced-motion:reduce){#shop-lost-items-panel .lost-items-intro{animation:none}}


/* AURORA layout: remove the title from the upper strip on every page,
   while retaining a calm creamy spacer of the same height. */
.topbar{
  height:72px!important;
  min-height:72px!important;
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.topbar .brand,
.topbar .topbar-actions{
  display:none!important;
}
@media(max-width:430px){.topbar{height:64px!important;min-height:64px!important;background:#fff0d8!important}}

/* Flagged Items page background fades gently between warm red shades. */
#shop-lost-items-panel{
  background:linear-gradient(125deg,#fff0f0,#ffd6d6,#fff5f2,#ffcaca)!important;
  background-size:300% 300%!important;
  animation:auroraFlaggedPageFade 6s ease-in-out infinite!important;
  border:1px solid rgba(220,38,38,.22)!important;
  border-radius:16px!important;
  padding:14px!important;
}
@keyframes auroraFlaggedPageFade{
  0%,100%{background-position:0% 50%;box-shadow:0 5px 18px rgba(185,28,28,.08)}
  50%{background-position:100% 50%;box-shadow:0 8px 25px rgba(185,28,28,.2)}
}
@media(prefers-reduced-motion:reduce){#shop-lost-items-panel{animation:none!important;background:#ffe3e3!important}}


/* Flagged Items: apply the soft creamy-red fade to the entire page area,
   overriding the earlier pale-blue panel background (not just its edges). */
body.workspace-active #shop-lost-items-panel:not(.hidden){
  background:linear-gradient(125deg,#ffe3e3 0%,#ffd1d1 35%,#fff0ed 68%,#ffcaca 100%)!important;
  background-size:300% 300%!important;
  animation:auroraFlaggedPageFade 7s ease-in-out infinite!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){
  body.workspace-active #shop-lost-items-panel:not(.hidden){
    animation:none!important;
    background:#ffe3e3!important;
  }
}


/* Full viewport Flagged Items theme: colour the page behind the centred panel too. */
@supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(125deg,#ffe1e1 0%,#ffd0d0 38%,#fff0ec 70%,#ffcaca 100%)!important;
    background-size:300% 300%!important;
    animation:auroraFlaggedPageFade 7s ease-in-out infinite!important;
  }
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) #shop-lost-items-panel:not(.hidden){
    background:transparent!important;
  }
}


/* Flagged Items: restore the clean white page and highlight Log Lost Item in red. */
body.workspace-active #shop-lost-items-panel:not(.hidden){
  background:#fff!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  animation:none!important;
}
body.workspace-active:has(#shop-lost-items-panel:not(.hidden)),
body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
  background:#fff!important;
  background-image:none!important;
  animation:none!important;
}
#shop-lost-items-panel .lost-goods-card.lost-card-register{
  background:#dc2626!important;
  border:1px solid #b91c1c!important;
  box-shadow:0 6px 18px rgba(185,28,28,.18)!important;
}
#shop-lost-items-panel .lost-goods-card.lost-card-register strong,
#shop-lost-items-panel .lost-goods-card.lost-card-register small{
  color:#fff!important;
}
@media(max-width:430px){.topbar{background:#fff!important}}


/* Active Lost Items card uses a soft creamy-blue background. */
#shop-lost-items-panel .lost-goods-card.lost-card-active{
  background:#e8f4fb!important;
  border:1px solid #c8e1ef!important;
  box-shadow:0 6px 18px rgba(66,133,160,.10)!important;
}
#shop-lost-items-panel .lost-goods-card.lost-card-active strong{color:#234b61!important}
#shop-lost-items-panel .lost-goods-card.lost-card-active small{color:#557487!important}


/* Muted deep-purple fade on workspace pages, excluding the Shop page. */
@keyframes auroraMainPurpleFade{
  0%,100%{background-position:0% 50%;opacity:.94}
  50%{background-position:100% 50%;opacity:1}
}
body.workspace-active{
  background:linear-gradient(125deg,#24152f 0%,#30203e 27%,#3b2850 50%,#291b38 76%,#24152f 100%)!important;
  background-size:240% 240%!important;
  animation:auroraMainPurpleFade 24s ease-in-out infinite!important;
}
body.workspace-active:before{
  content:""!important;display:block!important;position:fixed!important;inset:0!important;
  z-index:-1!important;pointer-events:none!important;
  background:linear-gradient(120deg,rgba(91,57,119,.10),rgba(35,23,48,.06) 50%,rgba(105,69,132,.10))!important;
  background-size:240% 240%!important;
  animation:auroraMainPurpleFade 24s ease-in-out infinite!important;
}
body.workspace-active .shell{background:transparent!important}
/* Shop keeps its original clean white background. */
@supports selector(body:has(#shop-home:not(.hidden))){
  body.workspace-active:has(#shop-home:not(.hidden)){
    background:#f9fafb!important;animation:none!important;
  }
  body.workspace-active:has(#shop-home:not(.hidden)):before{display:none!important;animation:none!important}
}
@media(prefers-reduced-motion:reduce){
  body.workspace-active,body.workspace-active:before{animation:none!important}
}


/* One continuous, softly fading sky-blue background from login through every workspace page. */
@keyframes auroraSkyBlueFade{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
html,body{
  background:#244c68!important;
}
body,body.workspace-active,body:not(.workspace-active){
  background:linear-gradient(125deg,#244b68 0%,#315f7e 30%,#3b7090 52%,#2d5876 76%,#244b68 100%)!important;
  background-size:260% 260%!important;
  animation:auroraSkyBlueFade 30s ease-in-out infinite!important;
}
body:before{
  content:""!important;
  display:block!important;
  position:fixed!important;
  inset:0!important;
  z-index:-1!important;
  pointer-events:none!important;
  background:linear-gradient(125deg,rgba(31,72,101,.12),rgba(91,145,176,.08) 50%,rgba(36,79,108,.12))!important;
  background-size:260% 260%!important;
  animation:auroraSkyBlueFade 30s ease-in-out infinite!important;
}
.topbar{
  background:transparent!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.shell{background:transparent!important}
@media(prefers-reduced-motion:reduce){
  body,body:before{animation:none!important}
}


/* AURORA global page background: soft creamy yellow across login and every page. */
@keyframes auroraCreamyYellowFade{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
html,body{
  min-height:100%;
  background:linear-gradient(125deg,#fff8df 0%,#fff1c2 28%,#fff6d9 55%,#ffefb8 78%,#fff8df 100%)!important;
  background-size:240% 240%!important;
  animation:auroraCreamyYellowFade 32s ease-in-out infinite!important;
}
body.workspace-active,
body:not(.workspace-active),
body.workspace-active .shell,
.shell{
  background:transparent!important;
}
body:before,
body.workspace-active:before{
  background:transparent!important;
  animation:none!important;
}
.topbar{
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
@media(prefers-reduced-motion:reduce){
  html,body{animation:none!important;background-position:50% 50%!important}
}


/* Keep the global creamy-yellow outer background visible on Shop and Flagged Items too. */
@supports selector(body:has(#shop-home:not(.hidden))){
  body.workspace-active:has(#shop-home:not(.hidden)),
  body.workspace-active:has(#shop-home:not(.hidden)) .shell{
    background:linear-gradient(125deg,#fff8df 0%,#fff1c2 35%,#fff6d9 68%,#ffefb8 100%)!important;
    background-size:260% 260%!important;
    animation:auroraCreamyYellowFade 32s ease-in-out infinite!important;
  }
  body.workspace-active:has(#shop-home:not(.hidden)):before{display:none!important;background:transparent!important}
}
@supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{
    background:linear-gradient(125deg,#fff8df 0%,#fff1c2 35%,#fff6d9 68%,#ffefb8 100%)!important;
    background-size:260% 260%!important;
    animation:auroraCreamyYellowFade 32s ease-in-out infinite!important;
  }
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)):before{display:none!important;background:transparent!important}
}
@media(prefers-reduced-motion:reduce){
  body.workspace-active:has(#shop-home:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
    animation:none!important;
  }
}


/* Correction: creamy yellow belongs ONLY to the outer page canvas (body),
   never to the inner .shell or the Shop/Flagged Items content panels. */
@supports selector(body:has(#shop-home:not(.hidden))){
  html:has(body.workspace-active #shop-home:not(.hidden)),
  body.workspace-active:has(#shop-home:not(.hidden)){
    background:linear-gradient(125deg,#fff8df 0%,#fff1c2 35%,#fff6d9 68%,#ffefb8 100%)!important;
    background-size:260% 260%!important;
    animation:auroraCreamyYellowFade 32s ease-in-out infinite!important;
    min-height:100vh!important;
  }
  body.workspace-active:has(#shop-home:not(.hidden)) .shell{background:transparent!important;background-image:none!important}
}
@supports selector(body:has(#shop-lost-items-panel:not(.hidden))){
  html:has(body.workspace-active #shop-lost-items-panel:not(.hidden)),
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)){
    background:linear-gradient(125deg,#fff8df 0%,#fff1c2 35%,#fff6d9 68%,#ffefb8 100%)!important;
    background-size:260% 260%!important;
    animation:auroraCreamyYellowFade 32s ease-in-out infinite!important;
    min-height:100vh!important;
  }
  body.workspace-active:has(#shop-lost-items-panel:not(.hidden)) .shell{background:transparent!important;background-image:none!important}
}


/* AURORA refreshed login identity: vector mark on a creamy, almost-white sky-blue field. */
body:not(.workspace-active) #login-view .aurora-brand-lockup{
  width:min(100%,390px);
  padding:12px 14px 13px;
  margin:0 auto 17px;
  border:1px solid rgba(139,190,224,.42);
  border-radius:20px;
  background:linear-gradient(145deg,#fbfeff 0%,#f2faff 48%,#eaf6ff 100%);
  box-shadow:0 8px 24px rgba(37,104,158,.10),inset 0 1px 0 rgba(255,255,255,.95);
}
body:not(.workspace-active) #login-view .aurora-login-logo{
  display:block;
  width:min(100%,300px);
  height:auto;
  max-height:none;
  margin:0 auto 5px;
  filter:drop-shadow(0 5px 9px rgba(76,30,144,.12));
}
body:not(.workspace-active) #login-view .aurora-tagline span{color:#1979c8}
body:not(.workspace-active) #login-view .aurora-tagline strong{color:#334b68}
@media(max-width:480px){
  body:not(.workspace-active) #login-view .aurora-brand-lockup{padding:9px 9px 11px;margin-bottom:13px;border-radius:16px}
  body:not(.workspace-active) #login-view .aurora-login-logo{width:min(100%,275px)}
}


/* ROOT CAUSE FIX: remove inherited top offsets across every authenticated page.
   Keep the header and bottom navigation; start each page immediately beneath them. */
html body.workspace-active{
  padding-top:0!important;
  margin-top:0!important;
  overflow:hidden!important;
}
html body.workspace-active .topbar{
  position:relative!important;
  top:0!important;
  margin:0!important;
  height:54px!important;
  min-height:54px!important;
  max-height:54px!important;
  animation:none!important;
  background:#fff!important;
  box-shadow:none!important;
}
html body.workspace-active .global-back-row{
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0 10px!important;
}
html body.workspace-active .shell{
  position:relative!important;
  top:0!important;
  margin:0 auto!important;
  padding:0 10px 6px!important;
  height:calc(100dvh - 54px - 66px - env(safe-area-inset-bottom))!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  gap:0!important;
}
html body.workspace-active .shell>*{
  margin-top:0!important;
}
html body.workspace-active .shell>#workspace-nav{
  order:20!important;
}
html body.workspace-active .shell>#welcome-back-banner:not(.hidden){
  flex:0 0 auto!important;
  margin:0 0 5px!important;
}
html body.workspace-active .shell>#owner-home:not(.hidden),
html body.workspace-active .shell>#receipts-home:not(.hidden),
html body.workspace-active .shell>#pos-view:not(.hidden),
html body.workspace-active .shell>#shop-home:not(.hidden),
html body.workspace-active .shell>#subscription-home:not(.hidden),
html body.workspace-active .shell>#owner-dashboard-view.profile-workspace-mode:not(.hidden),
html body.workspace-active .shell>#lost-goods-view:not(.hidden){
  flex:1 1 auto!important;
  align-self:stretch!important;
  justify-content:flex-start!important;
  align-content:flex-start!important;
  min-height:0!important;
  max-height:100%!important;
  margin:0!important;
  padding-top:0!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
}
html body.workspace-active .shell>#owner-home:not(.hidden){
  overflow:hidden!important;
}
html body.workspace-active .shell .page-heading,
html body.workspace-active .shell .section-heading{
  margin-top:0!important;
  padding-top:0!important;
}
@media(max-width:760px){
 html body.workspace-active .topbar{height:52px!important;min-height:52px!important;max-height:52px!important}
 html body.workspace-active .shell{
   height:calc(100dvh - 52px - 66px - env(safe-area-inset-bottom))!important;
   padding:0 9px 4px!important;
 }
}


/* AURORA final top-strip removal: the blank header was reserving 72px on every page.
   Hide that empty strip entirely and reclaim its height across the whole workspace. */
html body.workspace-active .topbar{
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  box-shadow:none!important;
}
html body.workspace-active .shell{
  margin-top:0!important;
  padding-top:0!important;
  height:calc(100dvh - 66px - env(safe-area-inset-bottom))!important;
  min-height:0!important;
}
html body.workspace-active .shell>*{
  margin-top:0!important;
}
@media(max-width:760px){
  html body.workspace-active .shell{
    margin-top:0!important;
    padding-top:0!important;
    height:calc(100dvh - 66px - env(safe-area-inset-bottom))!important;
  }
}


/* AURORA HOME BOTTOM GAP FIX: the top bar is hidden, so do not reserve
   its old 66px height. The blue app shell must extend to the bottom edge. */
html body.workspace-active .shell{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  padding-bottom:0!important;
  box-sizing:border-box!important;
}
@media(max-width:760px){
  html body.workspace-active .shell{
    height:100dvh!important;
    min-height:100dvh!important;
    max-height:100dvh!important;
    padding-bottom:env(safe-area-inset-bottom)!important;
  }
}

/* Customer portal home and referral QR */
.customer-home{display:grid;gap:14px;max-width:900px;margin:0 auto;padding:16px}
.customer-welcome-card,.customer-referral-card{border:1px solid #d8e8f4;border-radius:18px;background:#fff;padding:18px;box-shadow:0 8px 22px rgba(25,75,110,.06)}
.customer-welcome-card h1{margin:5px 0;font-size:clamp(22px,4vw,30px);color:#173b56}
.customer-welcome-card p:last-child,.customer-referral-copy p{color:#61788a;margin:6px 0 0}
.customer-referral-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(125deg,#f1f9ff,#fff)}
.customer-referral-copy{min-width:0;flex:1}.customer-referral-copy h2{font-size:clamp(17px,3vw,22px);line-height:1.3;color:#174b70;margin:5px 0}.customer-referral-copy strong{display:inline-block;margin-top:12px;color:#176b9e;font-size:13px}
.customer-referral-qr-wrap{flex:0 0 184px;display:grid;justify-items:center;gap:6px;padding:10px;background:#fff;border:1px solid #dceaf4;border-radius:14px}.customer-referral-qr-wrap #customer-referral-qr{min-height:164px;display:grid;place-items:center}.customer-referral-qr-wrap small{font-size:11px;color:#55748a;font-weight:700}
@media(max-width:520px){.customer-home{padding:10px;gap:10px}.customer-welcome-card,.customer-referral-card{padding:14px}.customer-referral-card{align-items:stretch;flex-direction:column}.customer-referral-qr-wrap{align-self:center;width:100%;max-width:220px;flex-basis:auto}}

/* Customer accounts must never display the Shop navigation item. */
body.customer-account-active #workspace-nav [data-workspace="shop"]{display:none!important;visibility:hidden!important;width:0!important;min-width:0!important;max-width:0!important;flex:0 0 0!important;padding:0!important;margin:0!important;border:0!important;}


/* Customer accounts: Issue Receipt is not an available action. Enforce at the page level so layout rules cannot reveal it. */
body.customer-account-active #receipts-home #open-issue-receipt,
body.customer-account-active #receipts-home #open-issue-receipt[hidden]{display:none!important;visibility:hidden!important;}
body.customer-account-active #receipts-home .receipt-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}

/* Desktop customer registration: keep the first fields and Back control in view. */
@media(min-width:761px){
  body:not(.workspace-active) #login-view .login-card{max-height:calc(100dvh - 92px);overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:0}
  body:not(.workspace-active) #register-form,
  body:not(.workspace-active) #freelancer-register-form{max-height:calc(100dvh - 190px);min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding-top:8px;padding:2px 3px 16px}
  body:not(.workspace-active) #register-form{gap:8px!important;margin-top:10px!important}
  body:not(.workspace-active) #register-form input,
  body:not(.workspace-active) #freelancer-register-form input{min-height:36px;padding:7px 9px}
  body:not(.workspace-active) #signup-back-btn{position:sticky;top:0;z-index:5;align-self:flex-start;margin:0 0 4px;padding:5px 11px;font-size:11px;min-height:28px}
}

/* Customer account: keep the return control at the card's upper-right. */
.customer-welcome-card .customer-back-to-login{
  display:block!important;
  width:max-content!important;
  margin:0 0 10px auto!important;
  padding:7px 12px!important;
  min-height:32px!important;
  border:1px solid #111!important;
  border-radius:8px!important;
  background:#111!important;
  color:#fff!important;
  font-size:11px!important;
  font-weight:700!important;
  cursor:pointer;
}


/* AURORA account registration: make the existing Create account control easy to find. */
body:not(.workspace-active) #owner-register-entry #show-register{
  position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:46px!important;min-width:180px!important;padding:11px 25px 14px!important;
  border:2px solid #075fc4!important;border-radius:12px!important;
  background:#087be8!important;color:#fff!important;font-size:15px!important;font-weight:850!important;
  line-height:1.2!important;letter-spacing:.01em!important;text-decoration:none!important;
  box-shadow:0 5px 0 #064b9b,0 8px 18px rgba(0,91,190,.22)!important;
}
body:not(.workspace-active) #owner-register-entry #show-register::after{
  content:'';position:absolute;right:9px;bottom:4px;width:25px;height:4px;border-radius:4px;background:#20b56b;
}

/* Registration fields remain reachable by scrolling the card on desktop and mobile.
   Avoid nested clipped forms: one continuous card scroll contains every field and button. */
html body:not(.workspace-active) .shell{
  min-height:100dvh!important;height:auto!important;max-height:none!important;overflow:visible!important;
}
html body:not(.workspace-active) #login-view{
  min-height:100dvh!important;height:auto!important;max-height:none!important;
  align-items:flex-start!important;justify-content:flex-start!important;overflow:visible!important;
  padding-top:8px!important;padding-bottom:24px!important;
}
html body:not(.workspace-active) #login-view .login-card{
  max-height:calc(100dvh - 16px)!important;height:auto!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch!important;scrollbar-gutter:stable!important;
}
html body:not(.workspace-active) #login-view #register-form,
html body:not(.workspace-active) #login-view #freelancer-register-form{
  max-height:none!important;height:auto!important;min-height:0!important;
  overflow:visible!important;overscroll-behavior:auto!important;
  padding:2px 3px 18px!important;gap:11px!important;
}
html body:not(.workspace-active) #login-view #register-form label,
html body:not(.workspace-active) #login-view #freelancer-register-form label{min-width:0!important}
html body:not(.workspace-active) #login-view #register-form input,
html body:not(.workspace-active) #login-view #freelancer-register-form input{
  min-height:42px!important;font-size:14px!important;padding:9px 11px!important;
}
html body:not(.workspace-active) #login-view .compact-extra-fields{min-width:0!important}
@media(max-width:760px){
  html body:not(.workspace-active) .shell{padding:6px 10px 20px!important}
  html body:not(.workspace-active) #login-view{padding:0 0 20px!important}
  html body:not(.workspace-active) #login-view .login-card{
    width:100%!important;max-width:520px!important;max-height:calc(100dvh - 12px)!important;
    padding:14px 13px 18px!important;margin:0 auto!important;border-radius:16px!important;
  }
  html body:not(.workspace-active) #login-view #register-form,
  html body:not(.workspace-active) #login-view #freelancer-register-form{gap:10px!important}
}


/* CUSTOMER NAVIGATION: compact black dock with a small lift and ordered active glow. */
body.customer-account-active #workspace-nav.bottom-nav{
  background:#050505!important;
  border:1px solid #222!important;
  border-radius:14px 14px 0 0!important;
  box-shadow:0 -5px 18px rgba(0,0,0,.24)!important;
  padding:3px 6px calc(3px + env(safe-area-inset-bottom))!important;
  gap:5px!important;
  min-height:0!important;
}
body.customer-account-active #workspace-nav.bottom-nav button,
body.customer-account-active #workspace-nav.bottom-nav button.receipt-nav{
  min-height:43px!important;
  height:43px!important;
  padding:4px 2px!important;
  gap:2px!important;
  border:1px solid #303030!important;
  border-radius:9px!important;
  background:#111!important;
  color:#f4f4f5!important;
  box-shadow:none!important;
  animation:none!important;
  transition:transform .18s ease,box-shadow .22s ease,background .22s ease,color .22s ease!important;
}
body.customer-account-active #workspace-nav.bottom-nav .nav-icon{
  font-size:16px!important;
  line-height:1!important;
}
body.customer-account-active #workspace-nav.bottom-nav button.active{
  transform:translateY(-3px)!important;
  animation:auroraCustomerNavGlow .85s ease-out both!important;
}
body.customer-account-active #workspace-nav.bottom-nav button:nth-child(1).active{
  color:#a9d9ff!important;border-color:#3298f5!important;
  box-shadow:0 0 0 1px rgba(50,152,245,.35),0 0 13px rgba(50,152,245,.72)!important;
}
body.customer-account-active #workspace-nav.bottom-nav button:nth-child(2).active{
  color:#9ff5dc!important;border-color:#21c99a!important;
  box-shadow:0 0 0 1px rgba(33,201,154,.35),0 0 13px rgba(33,201,154,.72)!important;
}
body.customer-account-active #workspace-nav.bottom-nav button:nth-child(3).active{
  color:#d8baff!important;border-color:#a879f5!important;
  box-shadow:0 0 0 1px rgba(168,121,245,.35),0 0 13px rgba(168,121,245,.72)!important;
}
@keyframes auroraCustomerNavGlow{
  0%{transform:translateY(0) scale(.98);filter:brightness(.85)}
  45%{transform:translateY(-4px) scale(1.035);filter:brightness(1.2)}
  100%{transform:translateY(-3px) scale(1);filter:brightness(1.05)}
}
@media(max-width:760px){
  body.customer-account-active #workspace-nav.bottom-nav{
    padding:2px 5px calc(2px + env(safe-area-inset-bottom))!important;
    gap:4px!important;
  }
  body.customer-account-active #workspace-nav.bottom-nav button,
  body.customer-account-active #workspace-nav.bottom-nav button.receipt-nav{
    min-height:40px!important;height:40px!important;font-size:10px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.customer-account-active #workspace-nav.bottom-nav button.active{animation:none!important;transform:none!important}
}


/* Registration: one continuous, top-starting scroll area on every screen size.
   All account fields, optional details, verification controls and submit buttons
   remain reachable without being clipped by the login card. */
html body:not(.workspace-active) #login-view .login-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-height:0!important;max-height:calc(100dvh - 12px)!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;
  scroll-padding-top:10px!important;
}
html body:not(.workspace-active) #login-view #register-form,
html body:not(.workspace-active) #login-view #freelancer-register-form{
  flex:0 0 auto!important;width:100%!important;min-height:max-content!important;
  max-height:none!important;overflow:visible!important;
  padding-bottom:24px!important;scroll-margin-top:8px!important;
}
html body:not(.workspace-active) #login-view #owner-signup-fields,
html body:not(.workspace-active) #login-view #register-fields{align-content:start!important}
html body:not(.workspace-active) #login-view .compact-extra-fields[open]{
  max-height:none!important;overflow:visible!important;
}
html body:not(.workspace-active) #login-view #register-form button,
html body:not(.workspace-active) #login-view #freelancer-register-form button{
  flex-shrink:0!important;min-height:42px!important;
}
@media(max-width:760px){
  html body:not(.workspace-active) #login-view .login-card{
    max-height:calc(100dvh - 8px)!important;padding:12px 12px 20px!important;
  }
  html body:not(.workspace-active) #login-view #register-form,
  html body:not(.workspace-active) #login-view #freelancer-register-form{
    gap:12px!important;
  }
}

/* Customer has exactly three navigation items: equal-width tabs in a compact black dock. */
body.customer-account-active #workspace-nav.bottom-nav{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;max-width:100%!important;box-sizing:border-box!important;
  min-height:0!important;height:auto!important;
  padding:3px 7px calc(3px + env(safe-area-inset-bottom))!important;
  gap:5px!important;background:#050505!important;
}
body.customer-account-active #workspace-nav.bottom-nav button{
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:37px!important;height:37px!important;padding:3px 2px!important;
  margin:0!important;font-size:10px!important;line-height:1.1!important;
  white-space:nowrap!important;overflow:hidden!important;
}
body.customer-account-active #workspace-nav.bottom-nav [data-workspace="shop"]{display:none!important}
@media(max-width:760px){
  body.customer-account-active #workspace-nav.bottom-nav{
    padding:2px 5px calc(2px + env(safe-area-inset-bottom))!important;gap:4px!important;
  }
  body.customer-account-active #workspace-nav.bottom-nav button{
    min-height:35px!important;height:35px!important;font-size:9px!important;
  }
}


/* Final customer navigation dock: compact black strip with three equal tabs. */
html body.customer-account-active #workspace-nav.bottom-nav{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:center!important;justify-content:stretch!important;
  height:39px!important;min-height:39px!important;max-height:39px!important;
  padding:2px 5px!important;gap:4px!important;box-sizing:border-box!important;
  background:#050505!important;background-color:#050505!important;background-image:none!important;
  border-top:1px solid #222!important;box-shadow:none!important;backdrop-filter:none!important;
  overflow:hidden!important;
}
html body.customer-account-active #workspace-nav.bottom-nav button,
html body.customer-account-active #workspace-nav.bottom-nav button.receipt-nav{
  display:flex!important;position:static!important;flex:1 1 0!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  height:31px!important;min-height:31px!important;max-height:31px!important;
  margin:0!important;padding:1px 2px!important;gap:1px!important;
  border:0!important;border-radius:6px!important;background:#111!important;
  color:#fff!important;box-shadow:none!important;transform:none!important;
  font-size:9px!important;line-height:1!important;white-space:nowrap!important;
}
html body.customer-account-active #workspace-nav.bottom-nav button .nav-icon{font-size:13px!important;line-height:1!important}
html body.customer-account-active #workspace-nav.bottom-nav button.active{background:#222!important;color:#fff!important;box-shadow:inset 0 0 0 1px #555!important;transform:none!important;animation:none!important}
html body.customer-account-active #workspace-nav.bottom-nav [data-workspace="shop"]{display:none!important}


/* Full-screen white registration workspace for Shop Owner and Freelancer.
   The login card becomes the page itself while either registration form is open. */
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)),
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)){
  position:fixed!important;inset:0!important;z-index:10000!important;
  display:block!important;width:100vw!important;height:100dvh!important;
  min-height:100dvh!important;max-height:100dvh!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  background:#fff!important;align-items:stretch!important;justify-content:stretch!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) .login-card,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) .login-card{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;max-width:none!important;height:100dvh!important;
  min-height:100dvh!important;max-height:100dvh!important;
  margin:0!important;padding:18px clamp(16px,4vw,42px) calc(24px + env(safe-area-inset-bottom))!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:#fff!important;color:#172b3b!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;overscroll-behavior-y:contain!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) .aurora-brand-lockup,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) .aurora-brand-lockup{
  display:none!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form{
  display:flex!important;flex:0 0 auto!important;flex-direction:column!important;
  width:100%!important;max-width:760px!important;margin:0 auto!important;
  min-height:max-content!important;max-height:none!important;overflow:visible!important;
  padding:8px 2px 30px!important;gap:13px!important;
  background:#fff!important;color:#172b3b!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form label,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form label{
  display:flex!important;flex-direction:column!important;width:100%!important;
  min-width:0!important;color:#263b4b!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form input,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form input{
  width:100%!important;min-height:46px!important;box-sizing:border-box!important;
  padding:11px 12px!important;background:#fff!important;color:#172b3b!important;
  border:1px solid #cbd6df!important;border-radius:9px!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form .eyebrow,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form .eyebrow{
  color:#155da8!important;font-size:17px!important;font-weight:850!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form button,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form button{
  flex-shrink:0!important;min-height:46px!important;
}
html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden))>p,
html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden))>p{
  display:none!important;
}
@media(max-width:760px){
  html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) .login-card,
  html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) .login-card{
    padding:12px 14px calc(22px + env(safe-area-inset-bottom))!important;
  }
  html body:not(.workspace-active) #login-view:has(#register-form:not(.hidden)) #register-form,
  html body:not(.workspace-active) #login-view:has(#freelancer-register-form:not(.hidden)) #freelancer-register-form{
    gap:12px!important;
  }
}


/* Subtle pointer-follow card glow, consistent across every account workspace.
   Touch devices retain the original card styling and do not get hover effects. */
@media (hover:hover) and (pointer:fine){
  :is(.card,.dashboard-card,.summary-card,.stat-card,.metric-card,.receipt-card,
      .product-card,.customer-card,.staff-card,.shop-card,.item-card,.record-card,
      .panel,.section-card,.content-card,.feature-card,.account-card,
      .list-card,.data-card,.workspace-card,.activity-card,.report-card){
    transition:box-shadow .22s ease,filter .22s ease,border-color .22s ease!important;
  }
  :is(.card,.dashboard-card,.summary-card,.stat-card,.metric-card,.receipt-card,
      .product-card,.customer-card,.staff-card,.shop-card,.item-card,.record-card,
      .panel,.section-card,.content-card,.feature-card,.account-card,
      .list-card,.data-card,.workspace-card,.activity-card,.report-card):hover{
    box-shadow:0 0 0 1px rgba(80,170,255,.22),
               0 5px 18px rgba(35,135,235,.13),
               0 0 14px rgba(70,160,255,.10)!important;
    filter:brightness(1.025);
  }
  /* Also cover common nested cards without changing their colours or size. */
  [class*="card"]:not(button):not(input):not(textarea):not(select){
    transition:box-shadow .22s ease,filter .22s ease,border-color .22s ease;
  }
  [class*="card"]:not(button):not(input):not(textarea):not(select):hover{
    box-shadow:0 0 0 1px rgba(80,170,255,.18),
               0 4px 15px rgba(35,135,235,.11)!important;
    filter:brightness(1.02);
  }
}


/* Both account types get the same clear blue registration entry button. */
body:not(.workspace-active) #freelancer-register-entry #show-freelancer-register{
 position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-height:46px!important;min-width:210px!important;padding:11px 25px 14px!important;
 border:2px solid #075fc4!important;border-radius:12px!important;background:#087be8!important;
 color:#fff!important;font-size:15px!important;font-weight:850!important;line-height:1.2!important;
 box-shadow:0 5px 0 #064b9b,0 8px 18px rgba(0,91,190,.22)!important;
}
body:not(.workspace-active) #freelancer-register-entry #show-freelancer-register::after{
 content:'';position:absolute;right:9px;bottom:4px;width:25px;height:4px;border-radius:4px;background:#20b56b;
}

/* Login tagline: one polished, italic line separated by a comma. */
#login-view .aurora-tagline{display:block!important;margin:0 auto!important;text-align:center!important}
#login-view .aurora-tagline span{display:inline-block!important;font-style:italic!important;font-weight:750!important;letter-spacing:.015em!important}


/* Final visible freelancer registration entry + full-screen form override.
   These selectors intentionally outrank the old login-card layout rules. */
body:not(.workspace-active):not(.registration-open) #freelancer-register-entry:not(.hidden){
 display:block!important;visibility:visible!important;opacity:1!important;text-align:center!important;margin:12px 0!important;
}
body:not(.workspace-active):not(.registration-open) #freelancer-register-entry #show-freelancer-register{
 display:inline-flex!important;visibility:visible!important;opacity:1!important;
 min-height:36px!important;min-width:0!important;padding:7px 14px!important;
 align-items:center!important;justify-content:center!important;background:#087be8!important;
 border:1px solid #075fc4!important;border-radius:9px!important;color:#fff!important;
 font-size:12px!important;font-weight:800!important;text-decoration:none!important;
 box-shadow:0 2px 0 #064b9b!important;
}
/* Freelancer identity uploads: give the file controls a clear, comfortable tap area. */
#freelancer-register-form input[type="file"] {
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:58px!important;
  margin-top:8px!important;
  padding:12px!important;
  box-sizing:border-box!important;
  border:1px solid #c8d7e5!important;
  border-radius:10px!important;
  background:#f7fbff!important;
  color:#20384b!important;
  font-size:14px!important;
  line-height:1.5!important;
}
#freelancer-register-form label {
  display:block!important;
  margin-bottom:15px!important;
}
#freelancer-register-form input[type="file"]::file-selector-button {
  min-height:34px!important;
  margin-right:10px!important;
  padding:7px 12px!important;
  border:0!important;
  border-radius:7px!important;
  background:#087be8!important;
  color:#fff!important;
  font-weight:700!important;
}

/* AURORA terms, privacy and security policy notice */
.aurora-policy-center{width:min(100%,760px);margin:16px auto 28px;color:#17251f;background:#fff;border:1px solid #dce5df;border-radius:12px;padding:12px 15px;}
.aurora-policy-center summary{cursor:pointer;color:#075bd8;font-weight:800;padding:5px 0;}
.aurora-policy-content{max-height:55vh;overflow:auto;padding:10px 3px;color:#26352e;font-size:13px;line-height:1.6;}
.aurora-policy-content h3{font-size:17px;margin:0 0 12px;}
.aurora-policy-content p{margin:0 0 11px;}
.aurora-policy-consent{display:flex!important;grid-template-columns:18px minmax(0,1fr);align-items:start;gap:9px!important;color:#26352e!important;font-size:12px!important;line-height:1.5;}
.aurora-policy-consent input{width:17px!important;height:17px;margin:1px 0 0;accent-color:#075bd8;}
.aurora-policy-consent a{color:#075bd8;font-weight:800;}


/* Keep freelancer sign-in content visible after switching account tabs. */
html body:not(.workspace-active):not(.registration-open) #login-view{display:block!important;visibility:visible!important;opacity:1!important}
html body:not(.workspace-active):not(.registration-open) #login-form:not(.hidden){display:grid!important;visibility:visible!important;opacity:1!important}
html body:not(.workspace-active):not(.registration-open) #login-form .login-role-tabs{display:grid!important}
html body:not(.workspace-active):not(.registration-open) #login-form label,
html body:not(.workspace-active):not(.registration-open) #login-form input,
html body:not(.workspace-active):not(.registration-open) #login-form button[type=submit],
html body:not(.workspace-active):not(.registration-open) .login-forgot-wrap{visibility:visible!important;opacity:1!important}
html body:not(.workspace-active):not(.registration-open) #freelancer-register-entry:not(.hidden){display:block!important;visibility:visible!important;opacity:1!important}

@media(max-width:480px){body:not(.workspace-active) #freelancer-register-entry{margin:7px 0!important}body:not(.workspace-active) #freelancer-register-entry #show-freelancer-register{min-height:34px!important;padding:6px 12px!important;font-size:11px!important}}

/* Small persistent AURORA copyright notice on login, registration and workspace screens. */
.aurora-copyright{position:fixed;z-index:1300;left:0;right:0;bottom:5px;margin:0 auto;width:max-content;max-width:calc(100vw - 20px);padding:2px 8px;border-radius:8px;background:rgba(5,16,42,.72);color:#dce8ff;font:500 9px/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;letter-spacing:.025em;text-align:center;pointer-events:none;white-space:nowrap}
body.workspace-active .aurora-copyright{bottom:calc(66px + env(safe-area-inset-bottom));}
@media print{.aurora-copyright{display:none!important}}


/* AURORA copyright visibility: keep the notice above every application layer. */
html body>footer.aurora-copyright{
  display:block!important;visibility:visible!important;opacity:1!important;
  position:fixed!important;z-index:2147483000!important;
  left:50%!important;right:auto!important;bottom:8px!important;top:auto!important;
  transform:translateX(-50%)!important;
  width:max-content!important;max-width:calc(100vw - 20px)!important;
  margin:0!important;padding:3px 9px!important;
  color:#eaf4ff!important;background:rgba(5,16,42,.88)!important;
  border:1px solid rgba(255,255,255,.28)!important;border-radius:3px!important;
  font:600 10px/1.35 system-ui,-apple-system,Segoe UI,Roboto,sans-serif!important;
  letter-spacing:.02em!important;text-align:center!important;
  pointer-events:none!important;white-space:nowrap!important;
}
@media print{html body>footer.aurora-copyright{display:none!important}}


/* Goods on Repair — dedicated golden service card within Shop */
#shop-home .shop-goods-on-repair-card{
  box-sizing:border-box;width:100%;margin:12px 0 20px;padding:clamp(14px,3vw,22px);
  border:1px solid #d6ad45;border-radius:20px;
  background:linear-gradient(145deg,#fffdf4 0%,#fff7dc 48%,#fffdf7 100%);
  box-shadow:0 12px 30px rgba(143,104,22,.12),inset 0 1px 0 rgba(255,255,255,.9);
  color:#473613;overflow:hidden;
}
#shop-home .repair-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:0 0 13px;border-bottom:1px solid rgba(176,133,35,.25)}
#shop-home .repair-card-heading h2{margin:3px 0 4px;color:#5b4210;font-size:clamp(19px,4vw,24px);letter-spacing:-.025em}
#shop-home .repair-card-heading p{margin:0;color:#786331;font-size:13px;line-height:1.5}
#shop-home .repair-card-kicker{font-size:10px;font-weight:850;letter-spacing:.13em;color:#99701c}
#shop-home .repair-gold-mark{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#f8e7a9,#d9ae43);color:#60460c;font-size:24px;box-shadow:inset 0 1px 0 #fff7d5,0 5px 12px rgba(133,94,16,.16)}
#shop-home .shop-repair-form{display:grid;gap:12px}
#shop-home .shop-repair-form label{display:grid;gap:6px;min-width:0;color:#634d1d;font-size:12px;font-weight:750}
#shop-home .shop-repair-form input,#shop-home .shop-repair-form textarea{
  box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px 12px;
  border:1px solid #dfcc94;border-radius:10px;background:#fffefa;color:#2e2a20;font:inherit;font-size:14px;
}
#shop-home .shop-repair-form textarea{min-height:76px;resize:vertical}
#shop-home .shop-repair-form input:focus,#shop-home .shop-repair-form textarea:focus{outline:3px solid rgba(193,151,50,.2);border-color:#b78a25}
#shop-home #repair-submit{min-height:47px;border:1px solid #a77a18;background:linear-gradient(110deg,#9c7117,#d4a632 55%,#f0d47a);color:#332507;font-weight:850;box-shadow:0 5px 13px rgba(135,98,19,.17)}
#shop-home .repair-records-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 10px;padding-top:15px;border-top:1px solid rgba(176,133,35,.25)}
#shop-home .repair-records-heading h3{margin:0;color:#5b4210;font-size:16px}
#shop-home .repair-record-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.72fr);gap:14px;margin:10px 0;padding:13px;border:1px solid #e2ce96;border-radius:14px;background:rgba(255,255,255,.8)}
#shop-home .repair-record-main{display:grid;gap:5px;min-width:0}
#shop-home .repair-record-main>strong{color:#503b12;font-size:15px;overflow-wrap:anywhere}
#shop-home .repair-record-main small{color:#6c5a35;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#shop-home .repair-record-tools{display:grid;align-content:start;gap:8px;min-width:0}
#shop-home .repair-record-tools select,#shop-home .repair-record-tools textarea{box-sizing:border-box;width:100%;min-width:0;padding:9px;border:1px solid #dfcc94;border-radius:9px;background:#fffefa;color:#473613;font:inherit;font-size:12px}
#shop-home .repair-status{display:inline-flex;align-items:center;justify-content:center;width:max-content;max-width:100%;padding:5px 9px;border-radius:999px;background:#f5e7bd;color:#72520e;font-size:11px;font-weight:800}
#shop-home .repair-status-ready{background:#e2f4e8;color:#17633a}
#shop-home .repair-status-collected{background:#e8edf3;color:#46566a}
#shop-home .repair-status-cancelled{background:#fbe6e3;color:#963b32}
#shop-home .shop-section-tabs button[data-shop-tab="repairs"]{color:#805c12}
#shop-home .shop-section-tabs button[data-shop-tab="repairs"].active{background:linear-gradient(120deg,#f7e7b3,#f1d47d);color:#61450b;box-shadow:inset 0 0 0 1px #d6ad45}
@media(max-width:560px){
  #shop-home .repair-record-row{grid-template-columns:minmax(0,1fr)}
  #shop-home .repair-record-tools{grid-template-columns:minmax(0,1fr)}
  #shop-home .shop-repair-form .form-two{grid-template-columns:minmax(0,1fr)}
}


/* 2026-11-16: registration redesign and small-screen reflow */
:root{--auth-red:#a71930;--auth-red-deep:#5f1024;--auth-gold:#d6ad62;--auth-cream:#fffaf2}
body.registration-open{
  background:radial-gradient(ellipse at 14% 12%,rgba(255,255,255,.13),transparent 34%),
    radial-gradient(ellipse at 88% 88%,rgba(214,173,98,.18),transparent 36%),
    linear-gradient(138deg,#7d1229 0%,#a71930 48%,#4e1026 100%)!important;
  background-attachment:scroll!important;
}
body.registration-open .topbar{background:rgba(67,12,31,.94)!important;border-bottom:1px solid rgba(255,255,255,.18)}
body.registration-open .shell{
  width:100%;max-width:760px;box-sizing:border-box;margin:0 auto;padding:clamp(12px,3vw,28px);
  height:auto!important;min-height:0!important;overflow:visible!important;display:block!important;
}
body.registration-open #login-view,
body.registration-open .login-wrap{
  display:grid;place-items:start center;width:100%;height:auto!important;min-height:0!important;overflow:visible!important;
}
body.registration-open .login-card{
  width:min(100%,680px)!important;max-width:680px;box-sizing:border-box;
  max-height:none!important;min-height:0;overflow:visible!important;
  padding:clamp(16px,3.5vw,30px)!important;margin:0 auto 24px;
  border:1px solid rgba(255,255,255,.65)!important;border-top:5px solid var(--auth-gold)!important;
  border-radius:20px!important;background:var(--auth-cream)!important;color:#202633!important;
  box-shadow:0 22px 65px rgba(35,4,16,.28)!important;
}
body.registration-open #register-form,
body.registration-open #freelancer-register-form{
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;
  width:100%;max-width:100%;max-height:none!important;min-height:0!important;
  overflow:visible!important;margin:14px 0 0!important;padding:0 1px 18px!important;
}
body.registration-open #register-form label,
body.registration-open #freelancer-register-form label{
  display:grid;grid-template-columns:minmax(0,1fr);gap:7px;min-width:0;
  width:100%;font-size:14px;line-height:1.4;color:#293244;
}
body.registration-open #owner-signup-fields,
body.registration-open #register-fields{
  display:grid;grid-template-columns:minmax(0,1fr)!important;gap:13px!important;min-width:0;width:100%;
}
body.registration-open #owner-signup-fields>.compact-extra-fields,
body.registration-open #register-fields>.compact-extra-fields{grid-column:1!important}
body.registration-open #register-form input,
body.registration-open #freelancer-register-form input,
body.registration-open #register-form select,
body.registration-open #freelancer-register-form select{
  width:100%;max-width:100%;min-width:0;min-height:48px;box-sizing:border-box;
  padding:11px 12px;font-size:16px;line-height:1.35;border:1px solid #d6dbe3;border-radius:10px;
}
body.registration-open #register-form input[type=file],
body.registration-open #freelancer-register-form input[type=file]{
  min-height:52px;padding:9px;background:#fff;overflow:hidden;font-size:14px;
}
body.registration-open #register-form button,
body.registration-open #freelancer-register-form button{min-height:48px;max-width:100%;white-space:normal}
body.registration-open #register-form .aurora-policy-consent,
body.registration-open #freelancer-register-form .aurora-policy-consent{
  display:flex;align-items:flex-start;gap:10px;line-height:1.5;
}
body.registration-open #register-form .aurora-policy-consent input,
body.registration-open #freelancer-register-form .aurora-policy-consent input{
  flex:0 0 22px;width:22px;min-width:22px;min-height:22px;margin:1px 0 0;
}
body.registration-open .aurora-brand-lockup{max-width:100%;margin:0 auto 10px}
body.registration-open .aurora-login-logo{display:block;width:min(100%,300px);height:auto;margin:auto}
body.registration-open .eyebrow{color:var(--auth-red)!important}
body.registration-open .registration-sticky-footer{
  position:static!important;display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 0 0;margin-top:4px;border-top:1px solid #e7e2dc;background:transparent!important;
}
@media(max-width:600px){
  body:not(.workspace-active){height:auto!important;min-height:100svh!important;overflow-x:hidden!important;overflow-y:auto!important}
  body:not(.workspace-active) .shell{height:auto!important;min-height:0!important;overflow:visible!important;padding:10px 12px 28px!important}
  body:not(.workspace-active) #login-view{height:auto!important;min-height:0!important;overflow:visible!important}
  body:not(.workspace-active) .login-wrap{height:auto!important;min-height:0!important;overflow:visible!important;padding:8px 0!important}
  body:not(.workspace-active) .login-card{max-height:none!important;overflow:visible!important}
  body.registration-open .shell{padding:10px 10px 24px!important}
  body.registration-open .login-card{padding:16px 13px!important;border-radius:16px!important}
  body.registration-open #register-form,
  body.registration-open #freelancer-register-form{gap:12px!important}
}
@media(max-width:360px){
  body.registration-open .login-card{padding:13px 10px!important}
  body.registration-open #register-form input,
  body.registration-open #freelancer-register-form input{padding:10px;font-size:16px}
}

/* Shop staff invitations — green owner-only team card */
.staff-team-card{margin:16px 0;padding:20px;background:linear-gradient(135deg,#e8f8ed 0%,#f5fff7 100%);border:1px solid #a8dfb7;border-left:5px solid #159447;border-radius:16px;color:#153d27;box-shadow:0 8px 24px rgba(21,148,71,.08)}
.staff-team-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.staff-team-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#168345}.staff-team-card h2{margin:5px 0 7px;font-size:21px;color:#12452a}.staff-team-card-head p{margin:0;color:#426451;line-height:1.5;font-size:13px}.staff-team-icon{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:13px;background:#168345;color:#fff;font-size:25px;font-weight:700}.staff-invite-cta{background:#168345!important;border-color:#168345!important;color:#fff!important}.staff-invite-cta:hover{background:#106b36!important}.staff-team-card>.staff-invite-cta{margin-top:16px}.staff-invite-form{margin-top:16px;padding:16px;background:#fff;border:1px solid #c8e8d1;border-radius:12px}.staff-invite-help{font-size:12px;line-height:1.5;color:#496b55}.staff-invite-actions{display:flex;gap:10px;flex-wrap:wrap}.staff-invitations-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px}.staff-invitations-heading h3{margin:0;color:#16492c;font-size:16px}.staff-invitations-list{display:grid;gap:10px;margin-top:10px}.staff-team-card .history-row{background:#fff;border:1px solid #d5eadb;border-radius:10px;padding:12px;color:#173d27}

/* Four account types on the AURORA sign-in screen, including invited Shop Staff. */
.login-role-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:380px){.login-role-tabs{gap:3px}.login-role-tab{font-size:10px;padding:7px 2px}}


/* Shop workspace cards: keep every form inside its card until tapped.
   A previous display:grid rule on <details> bypassed the browser's native
   closed-details behaviour and exposed the search form immediately. */
body.workspace-active #shop-home details.shop-register-product-card,
body.workspace-active #shop-home details.shop-search-directory-card,
body.workspace-active #shop-home details.loan-items-card,
body.workspace-active #shop-home details.shop-goods-on-repair-card,
body.workspace-active #shop-home details.shop-business-details-card {
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:10px 0!important;
  overflow:hidden!important;
}
body.workspace-active #shop-home details.shop-register-product-card:not([open]) > :not(summary),
body.workspace-active #shop-home details.shop-search-directory-card:not([open]) > :not(summary),
body.workspace-active #shop-home details.loan-items-card:not([open]) > :not(summary),
body.workspace-active #shop-home details.shop-goods-on-repair-card:not([open]) > :not(summary),
body.workspace-active #shop-home details.shop-business-details-card:not([open]) > :not(summary) {
  display:none!important;
}
body.workspace-active #shop-home details.shop-register-product-card > summary,
body.workspace-active #shop-home details.shop-search-directory-card > summary,
body.workspace-active #shop-home details.loan-items-card > summary,
body.workspace-active #shop-home details.shop-goods-on-repair-card > summary,
body.workspace-active #shop-home details.shop-business-details-card > summary {
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:100%!important;
  min-height:68px!important;
  box-sizing:border-box!important;
  padding:13px 14px!important;
  list-style:none!important;
  cursor:pointer!important;
}
body.workspace-active #shop-home details > summary::-webkit-details-marker {display:none!important}
body.workspace-active #shop-home details.shop-search-directory-card > .shop-product-search-form,
body.workspace-active #shop-home details.shop-register-product-card > .shop-register-product-body,
body.workspace-active #shop-home details.loan-items-card > .loan-card-body,
body.workspace-active #shop-home details.shop-goods-on-repair-card > .repair-card-content {
  display:grid!important;
  gap:10px!important;
  padding:12px!important;
  border-top:1px solid #e2edf5!important;
}


/* Keep the five sign-in choices readable, including the dedicated platform-admin entry. */
.login-role-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.login-role-tab.platform-admin-login-tab{grid-column:span 2;font-size:11px;letter-spacing:.01em}


/* Separate Platform Admin sign-in from every ordinary shop/customer login.
   Admin mode is available only through the dedicated ?platform-admin=1 entry URL. */
.login-role-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}
.login-role-tab.platform-admin-login-tab{display:none!important}
body.platform-admin-login:not(.workspace-active) .login-role-tabs,
body.platform-admin-login:not(.workspace-active) #owner-register-entry,
body.platform-admin-login:not(.workspace-active) #freelancer-register-entry,
body.platform-admin-login:not(.workspace-active) .aurora-auth-tabs,
body.platform-admin-login:not(.workspace-active) .aurora-tagline{display:none!important}
body.platform-admin-login:not(.workspace-active) #login-view .login-card{max-width:430px}
.platform-admin-login-heading{margin:4px 0 14px;padding:13px;border:1px solid #d8c7f4;border-radius:12px;background:#f7f1ff;text-align:center}
.platform-admin-login-heading p{margin:0;color:#4a168e;font-size:14px;font-weight:900;letter-spacing:.06em}
.platform-admin-login-heading span{display:block;margin-top:5px;color:#5f5870;font-size:11px}
.platform-admin-return{margin:12px 0 0;text-align:center;font-size:12px}
.platform-admin-return a{color:#4a168e;font-weight:700;text-decoration:none}

body.platform-admin-login:not(.workspace-active) .aurora-auth-welcome{display:none!important}

/* Customer repair tracking */
.customer-repairs-card{margin:14px 0;padding:18px;border:1px solid #d9e4ef;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(24,55,86,.06)}
.customer-repairs-card h2{margin:2px 0 5px;color:#183b5c}.customer-repair-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 0;border-top:1px solid #e7edf3}.customer-repair-row>div{display:grid;gap:5px;min-width:0}.customer-repair-row strong{color:#203247}.customer-repair-row small{font-size:12px;line-height:1.45;color:#64748b;overflow-wrap:anywhere}.customer-repair-row .repair-status{flex:0 0 auto}@media(max-width:560px){.customer-repair-row{flex-direction:column;align-items:flex-start}}


/* Flagged Items — calm four-action card design.
   Keep the cards in one vertical column on desktop and mobile. */
#shop-lost-items-panel .lost-items-intro{display:block!important;padding:15px 17px!important;border:1px solid #e7edf3!important;border-radius:16px!important;background:#fff!important;box-shadow:0 5px 18px rgba(28,49,71,.045)!important}
#shop-lost-items-panel .lost-items-intro .eyebrow{margin:0 0 5px;color:#7b8794;font-size:10px;font-weight:800;letter-spacing:.12em}
#shop-lost-items-panel .lost-items-intro h2{margin:0 0 5px!important;color:#26384b;font-size:21px}
#shop-lost-items-panel .lost-items-intro p:last-child{margin:0;line-height:1.5}
#shop-lost-items-panel .lost-goods-cards{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important;width:100%;margin:0 0 14px!important}
#shop-lost-items-panel .lost-goods-card{display:grid!important;grid-template-columns:44px minmax(0,1fr) 18px!important;align-items:center!important;column-gap:13px!important;min-width:0!important;min-height:88px!important;padding:14px 16px!important;border:1px solid transparent!important;border-radius:16px!important;text-align:left!important;box-shadow:0 5px 15px rgba(28,49,71,.055)!important;transition:transform .16s ease,box-shadow .16s ease!important}
#shop-lost-items-panel .lost-goods-card:hover{transform:translateY(-1px);box-shadow:0 8px 19px rgba(28,49,71,.09)!important}
#shop-lost-items-panel .lost-card-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.78);font-size:23px;font-weight:800;line-height:1}
#shop-lost-items-panel .lost-card-copy{display:grid;gap:4px;min-width:0}
#shop-lost-items-panel .lost-goods-card strong{color:#29394a!important;font-size:15px!important;line-height:1.25}
#shop-lost-items-panel .lost-goods-card small{color:#5d6d7c!important;font-size:12px!important;line-height:1.4!important}
#shop-lost-items-panel .lost-card-arrow{color:#68798a;font-size:25px;font-weight:400;text-align:right}
#shop-lost-items-panel .lost-card-register{background:#fce5e5!important;border-color:#f2caca!important}
#shop-lost-items-panel .lost-card-register .lost-card-icon{color:#a83240}
#shop-lost-items-panel .lost-card-found{background:#e3f2e9!important;border-color:#c9e6d5!important}
#shop-lost-items-panel .lost-card-found .lost-card-icon{color:#26734d}
#shop-lost-items-panel .lost-card-check{background:#fff1d9!important;border-color:#f1dfb9!important}
#shop-lost-items-panel .lost-card-check .lost-card-icon{color:#96600d}
#shop-lost-items-panel .lost-card-active{background:#e3f0fa!important;border-color:#c9dfef!important}
#shop-lost-items-panel .lost-card-active .lost-card-icon{color:#28628d}
#shop-lost-items-panel .lost-goods-card:focus-visible{outline:3px solid #527da5!important;outline-offset:3px}
@media(max-width:620px){
  #shop-lost-items-panel .lost-goods-cards{grid-template-columns:minmax(0,1fr)!important;gap:9px!important}
  #shop-lost-items-panel .lost-goods-card{min-height:0!important;padding:12px 13px!important;grid-template-columns:40px minmax(0,1fr) 16px!important;column-gap:11px!important}
  #shop-lost-items-panel .lost-card-icon{width:38px;height:38px;border-radius:12px;font-size:21px}
}

/* Shop Products — colourful, responsive action dashboard */
.shop-products-intro{margin:2px 0 14px;padding:4px 2px}
.shop-products-kicker{display:block;margin-bottom:5px;color:#64809a;font-size:10px;font-weight:850;letter-spacing:.15em}
.shop-products-intro h2{margin:0;color:#203b55;font-size:23px;letter-spacing:-.025em}
.shop-products-intro p{max-width:650px;margin:6px 0 0;color:#64788b;font-size:13px;line-height:1.55}
.shop-product-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 16px}
.shop-product-action{display:grid;grid-template-columns:44px minmax(0,1fr) 16px;align-items:center;gap:12px;min-width:0;min-height:100px;padding:15px;border:1px solid transparent;border-radius:17px;text-align:left;cursor:pointer;box-shadow:0 5px 16px rgba(25,48,72,.055);transition:transform .16s ease,box-shadow .16s ease}
.shop-product-action:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(25,48,72,.10)}
.shop-product-action-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:rgba(255,255,255,.78);font-size:25px;font-weight:800;line-height:1}
.shop-product-action-copy{display:grid;gap:5px;min-width:0}
.shop-product-action-copy strong{color:#26384a;font-size:14px;line-height:1.25}
.shop-product-action-copy small{color:#5f7080;font-size:11px;line-height:1.45}
.shop-product-action-arrow{color:#65798b;font-size:25px;text-align:right}
.shop-product-action--add{background:#e1efff;border-color:#c8def7}
.shop-product-action--add .shop-product-action-icon{color:#1769aa}
.shop-product-action--inventory{background:#e4f4e9;border-color:#cce8d5}
.shop-product-action--inventory .shop-product-action-icon{color:#21834a}
.shop-product-action--low{background:#fff0d9;border-color:#f0dfbd}
.shop-product-action--low .shop-product-action-icon{color:#a96a12}
.shop-product-action--market{background:#f0e9ff;border-color:#ded1f5}
.shop-product-action--market .shop-product-action-icon{color:#7548b8}
.shop-product-action:focus-visible{outline:3px solid #527da5;outline-offset:3px}
#shop-register-product-card,#shop-find-products-card,#shop-stock-manager-card{margin:0 0 13px;border:1px solid #e0e8ef;border-radius:15px;background:#fff;box-shadow:0 4px 15px rgba(25,48,72,.045);overflow:hidden}
#shop-register-product-card>summary,#shop-find-products-card>summary,#shop-stock-manager-card>summary{display:grid;gap:4px;padding:14px 16px;cursor:pointer;list-style:none;color:#263c51}
#shop-register-product-card>summary::-webkit-details-marker,#shop-find-products-card>summary::-webkit-details-marker,#shop-stock-manager-card>summary::-webkit-details-marker{display:none}
#shop-register-product-card>summary strong,#shop-find-products-card>summary strong,#shop-stock-manager-card>summary strong{font-size:14px}
#shop-register-product-card>summary small,#shop-find-products-card>summary small,#shop-stock-manager-card>summary small{color:#718194;font-size:11px;line-height:1.4}
.shop-register-product-body,#shop-find-products-card>.shop-product-search-form,.shop-stock-manager-body{padding:0 16px 16px}
.shop-stock-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.shop-stock-list{display:grid;gap:9px}
.shop-stock-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 12px;padding:12px;border:1px solid #e3eaf0;border-radius:13px;background:#fbfdff}
.shop-stock-item-main{display:grid;gap:4px;min-width:0}
.shop-stock-item-main strong{color:#2b4054;font-size:13px;overflow-wrap:anywhere}
.shop-stock-item-main small,.shop-stock-status{color:#718194;font-size:10px;line-height:1.4}
.shop-stock-quantity{color:#256e4a;font-size:18px;font-weight:850;white-space:nowrap}
.shop-stock-quantity small{font-size:10px;font-weight:600}
.shop-stock-item.is-low{border-color:#f0dfbd;background:#fffaf1}
.shop-stock-item.is-low .shop-stock-quantity,.shop-stock-item.is-low .shop-stock-status{color:#a96a12}
.shop-stock-item.is-out{border-color:#f0cccc;background:#fff7f7}
.shop-stock-item.is-out .shop-stock-quantity,.shop-stock-item.is-out .shop-stock-status{color:#b13c45}
.shop-stock-item.is-healthy .shop-stock-status{color:#21834a}
.shop-stock-adjust{grid-column:1/-1;display:flex;align-items:end;gap:8px}
.shop-stock-adjust label{display:grid;gap:4px;flex:1;color:#607286;font-size:10px;font-weight:750}
.shop-stock-adjust input{width:100%;min-width:0;min-height:36px;padding:7px 9px;border:1px solid #dce5ed;border-radius:9px;font-size:13px}
@media(max-width:620px){.shop-product-action-grid{grid-template-columns:minmax(0,1fr);gap:9px}.shop-product-action{min-height:82px;padding:12px 13px;grid-template-columns:40px minmax(0,1fr) 15px;gap:10px}.shop-product-action-icon{width:38px;height:38px;font-size:22px}.shop-stock-adjust{align-items:stretch}.shop-stock-adjust .btn{white-space:nowrap}}


/* AURORA main navigation: compact rounded navy plate shared by mobile and desktop. */
body.workspace-active #workspace-nav.bottom-nav{
  position:fixed!important;left:50%!important;right:auto!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;top:auto!important;
  z-index:10000!important;width:min(calc(100% - 24px),520px)!important;max-width:520px!important;min-height:72px!important;
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;gap:4px!important;
  box-sizing:border-box!important;padding:7px 9px!important;overflow:visible!important;transform:translateX(-50%)!important;
  border:1px solid rgba(173,195,225,.24)!important;border-radius:22px!important;
  background:linear-gradient(145deg,#172b45 0%,#1c3048 55%,#24364b 100%)!important;
  box-shadow:0 10px 28px rgba(8,20,39,.32),inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(16px)!important;-webkit-backdrop-filter:blur(16px)!important;
}
body.workspace-active #workspace-nav.bottom-nav button,
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav{
  display:flex!important;flex:1 1 0!important;width:auto!important;min-width:0!important;max-width:none!important;min-height:56px!important;
  margin:0!important;padding:5px 2px!important;gap:4px!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  border:1px solid transparent!important;border-radius:15px!important;background:transparent!important;color:#c5d2e2!important;
  box-shadow:none!important;animation:none!important;transform:none!important;filter:none!important;
  font:650 10px/1.15 Inter,ui-sans-serif,system-ui,sans-serif!important;white-space:nowrap!important;
}
body.workspace-active #workspace-nav.bottom-nav .nav-icon{display:flex!important;align-items:center!important;justify-content:center!important;width:27px!important;height:25px!important;font-size:22px!important;line-height:1!important;color:inherit!important}
body.workspace-active #workspace-nav.bottom-nav .nav-icon svg{display:block!important;width:24px!important;height:24px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.workspace-active #workspace-nav.bottom-nav .nav-icon svg path{fill:none!important;stroke:currentColor!important}
body.workspace-active #workspace-nav.bottom-nav button.active,
body.workspace-active #workspace-nav.bottom-nav button.receipt-nav.active{
  color:#fff!important;background:linear-gradient(145deg,#31577f,#29496d)!important;border-color:rgba(174,207,244,.28)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 3px 10px rgba(3,12,26,.22)!important;
}
body.workspace-active #workspace-nav.bottom-nav button.nav-lost-goods{color:#ffb1b1!important;background:transparent!important;border:1px solid transparent!important;box-shadow:none!important}
body.workspace-active #workspace-nav.bottom-nav button.nav-lost-goods .nav-icon{font-size:21px!important;filter:none!important}
body.workspace-active #workspace-nav.bottom-nav button.nav-lost-goods.active{background:rgba(145,35,45,.32)!important;border-color:rgba(255,130,130,.25)!important;color:#ffd5d5!important}
body.workspace-active .shell{padding-bottom:88px!important;height:calc(100dvh - 72px - 8px - env(safe-area-inset-bottom))!important}
@media(min-width:761px){body.workspace-active #workspace-nav.bottom-nav{width:min(calc(100% - 40px),520px)!important}}
@media(max-width:520px){body.workspace-active #workspace-nav.bottom-nav{width:calc(100% - 20px)!important;min-height:68px!important;bottom:calc(6px + env(safe-area-inset-bottom))!important;padding:6px 7px!important;gap:2px!important}body.workspace-active #workspace-nav.bottom-nav button,body.workspace-active #workspace-nav.bottom-nav button.receipt-nav{min-height:54px!important;font-size:9px!important}body.workspace-active #workspace-nav.bottom-nav .nav-icon{width:25px!important;height:24px!important;font-size:21px!important}body.workspace-active .shell{padding-bottom:82px!important}}
@media(prefers-reduced-motion:reduce){body.workspace-active #workspace-nav.bottom-nav button{transition:none!important}}

/* DESKTOP WORKSPACE REPAIR (2026-11-22)
   The previous desktop overrides constrained the active screens and let the
   shell's fixed-height/overflow rules clip their contents. Keep the workspace
   as one full-width flex viewport; only the active page content scrolls. */
@media (min-width: 761px) {
  html body.workspace-active {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100dvh !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  html body.workspace-active main.shell {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: none !important;
    height: calc(100dvh - 72px) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 12px 28px 104px !important;
    gap: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* All three affected pages must use the full workspace width. Do not set
     display on hidden panels and do not change their internal grid/flex layout. */
  html body.workspace-active main.shell > #receipts-home:not(.hidden),
  html body.workspace-active main.shell > #shop-home:not(.hidden),
  html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden) {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    flex: 1 1 0 !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  html body.workspace-active main.shell > #receipts-home:not(.hidden) {
    padding: 18px 20px 28px !important;
  }
  html body.workspace-active main.shell > #shop-home:not(.hidden) {
    padding: 16px 18px 28px !important;
  }
  html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden) {
    padding: 16px 18px 28px !important;
  }

  /* Fixed dock is anchored to the viewport, not the scrollable page panel. */
  html body.workspace-active #workspace-nav.bottom-nav {
    position: fixed !important;
    inset: auto auto 12px 50% !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: center !important;
    justify-content: stretch !important;
    width: min(calc(100vw - 48px), 620px) !important;
    max-width: 620px !important;
    min-width: 0 !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 7px 9px !important;
    gap: 5px !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    z-index: 10000 !important;
  }

  html body.workspace-active #workspace-nav.bottom-nav > button,
  html body.workspace-active #workspace-nav.bottom-nav > button.receipt-nav {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 56px !important;
    margin: 0 !important;
    flex: 1 1 0 !important;
  }
}

/* Preserve the five destinations on every viewport, including desktop. */
body.workspace-active #workspace-nav.bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

/* SHOP + WORKSPACE DOCK: final desktop layout correction.
   Shop is a real content page (tabs, product actions and forms), not a backdrop.
   Keep the dock anchored to the workspace shell rather than the browser viewport. */
@media (min-width: 761px) {
  html body.workspace-active main.shell {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-bottom: 104px !important;
  }

  html body.workspace-active main.shell > #shop-home:not(.hidden) {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    align-self: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
  }

  html body.workspace-active #shop-home > .shop-section-tabs {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    position: sticky !important;
    top: 0 !important;
  }

  html body.workspace-active #shop-home > [data-shop-tab-panel]:not(.hidden) {
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  html body.workspace-active #shop-home > .shop-products-intro:not(.hidden) {
    display: block !important;
  }

  html body.workspace-active #shop-home > .shop-product-action-grid:not(.hidden) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  /* Absolute positioning is relative to main.shell, so the dock stays inside
     the actual workspace even when the page content scrolls. */
  html body.workspace-active #workspace-nav.bottom-nav {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 48px), 620px) !important;
    max-width: 620px !important;
    min-width: 0 !important;
    margin: 0 !important;
    z-index: 10000 !important;
  }
}

/* DESKTOP ONLY — Shop must render as a real page and the dock must stay
   within the same centered workspace column. Keep mobile and other screens intact. */
@media (min-width: 761px) {
  html body.workspace-active main.shell {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: min(100%, 1240px) !important;
    max-width: 1240px !important;
    min-width: 0 !important;
    height: calc(100dvh - 66px - env(safe-area-inset-bottom)) !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 8px 20px 100px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  /* Show Shop's actual selected content; do not let the old background-only
     display rule or fixed-height panel styles collapse its children. */
  html body.workspace-active main.shell > #shop-home.shop-home:not(.hidden) {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    animation: none !important;
  }

  html body.workspace-active #shop-home > .shop-section-tabs {
    display: flex !important;
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    width: 100% !important;
  }

  html body.workspace-active #shop-home > .shop-products-intro:not(.hidden):not([hidden]) {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  html body.workspace-active #shop-home > .shop-product-action-grid:not(.hidden):not([hidden]) {
    display: grid !important;
    flex: 0 0 auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
  }

  html body.workspace-active #shop-home > details:not(.hidden):not([hidden]) {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  /* The nav is a child of main.shell. Absolute positioning makes its width
     resolve against the workspace, not the full browser window. */
  html body.workspace-active main.shell > #workspace-nav.bottom-nav:not(.hidden) {
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 12px !important;
    transform: translateX(-50%) !important;
    width: min(calc(100% - 40px), 520px) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    margin: 0 !important;
    z-index: 10000 !important;
    box-sizing: border-box !important;
  }
}

/* FINAL DESKTOP NAV DOCK
   Float above the bottom edge of the page at all times. The page content gets
   its own reserved space so it can never scroll underneath or hide the dock. */
@media (min-width: 761px) {
  html body.workspace-active main.shell {
    padding-bottom: 124px !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }

  html body.workspace-active main.shell > #workspace-nav.bottom-nav {
    position: fixed !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 40px)) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 68px !important;
    max-height: 76px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }

  html body.workspace-active main.shell > #workspace-nav.bottom-nav > button,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.receipt-nav {
    min-width: 0 !important;
    min-height: 54px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 6px 3px !important;
    flex: 1 1 0 !important;
    white-space: nowrap !important;
  }
}

/* Persistent desktop dock: the nav is a direct child of body, outside the
   workspace shell and all scrolling/overflow-clipped page panels. */
@media (min-width: 761px) {
  html body.workspace-active > #workspace-nav.bottom-nav {
    position: fixed !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: max(16px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%) !important;
    width: min(520px, calc(100vw - 40px)) !important;
    max-width: 520px !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 68px !important;
    max-height: 76px !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2147483000 !important;
  }

  html body.workspace-active > #workspace-nav.bottom-nav > button {
    min-width: 0 !important;
    min-height: 54px !important;
    max-height: 62px !important;
    margin: 0 !important;
    padding: 6px 3px !important;
    flex: 1 1 0 !important;
    white-space: nowrap !important;
  }

  /* Keep the last part of each scrolling page clear of the floating dock. */
  html body.workspace-active main.shell {
    padding-bottom: 124px !important;
  }
}

/* Workspace-aligned floating dock and true end-of-content clearance. */
@media (min-width: 761px) {
  html body.workspace-active > #workspace-nav.bottom-nav {
    left: var(--workspace-dock-left, 50%) !important;
    width: var(--workspace-dock-width, min(520px, calc(100vw - 40px))) !important;
    max-width: var(--workspace-dock-width, 520px) !important;
  }

  /* The dock is fixed to the viewport, so each visible page's own scroll
     container needs bottom padding. This lets the final card/form scroll
     completely above the floating bar instead of ending behind it. */
  html body.workspace-active main.shell > section:not(.hidden):not(#login-view),
  html body.workspace-active main.shell > div:not(.hidden),
  html body.workspace-active main.shell > article:not(.hidden) {
    scroll-padding-bottom: 124px !important;
    padding-bottom: max(124px, calc(100px + env(safe-area-inset-bottom))) !important;
    box-sizing: border-box !important;
  }

  html body.workspace-active main.shell > #shop-home:not(.hidden),
  html body.workspace-active main.shell > #receipts-home:not(.hidden),
  html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden) {
    padding-bottom: max(124px, calc(100px + env(safe-area-inset-bottom))) !important;
    scroll-padding-bottom: 124px !important;
  }
}


/* FINAL DESKTOP-ONLY DOCK FIT: size and centre the floating nav from the
   measured workspace column, never from the browser viewport. */
@media (min-width: 761px) {
  html body.workspace-active > #workspace-nav.bottom-nav {
    position: fixed !important;
    left: var(--workspace-dock-left) !important;
    right: auto !important;
    bottom: 14px !important;
    top: auto !important;
    width: var(--workspace-dock-width) !important;
    max-width: min(400px, calc(100vw - 32px)) !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    padding: 5px 6px !important;
    gap: 3px !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    transform: translateX(-50%) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html body.workspace-active > #workspace-nav.bottom-nav > button,
  html body.workspace-active > #workspace-nav.bottom-nav > button.receipt-nav {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 52px !important;
    max-height: 54px !important;
    padding: 4px 1px !important;
    margin: 0 !important;
    gap: 2px !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon {
    width: 22px !important;
    height: 21px !important;
    font-size: 19px !important;
  }
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}


/* Phone only: keep the final Issue Receipt action clear of the fixed
   bottom navigation. Desktop spacing and navigation remain unchanged. */
@media (max-width: 760px) {
  html body.workspace-active #receipts-home {
    padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom))) !important;
    scroll-padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom))) !important;
  }

  html body.workspace-active #receipts-home form,
  html body.workspace-active #receipts-home .receipt-form,
  html body.workspace-active #receipts-home .receipt-form-content {
    padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom))) !important;
    scroll-padding-bottom: 120px !important;
  }

  html body.workspace-active #receipts-home button:last-of-type {
    scroll-margin-bottom: 120px !important;
  }
}


/* PHONE CHECKOUT: keep the final Issue Receipt button fully tappable.
   The customer form scrolls inside the dialog while the submit action stays
   docked at the bottom of that dialog, above the phone navigation/safe area. */
@media (max-width: 760px) {
  html body.workspace-active #checkout-modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px
      max(10px, env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.workspace-active #checkout-modal .modal-card {
    display: flex !important;
    flex-direction: column !important;
    width: min(100%, 560px) !important;
    max-height: calc(100dvh - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 16px !important;
    margin: auto !important;
  }

  html body.workspace-active #checkout-modal .modal-head {
    flex: 0 0 auto !important;
    margin-bottom: 12px !important;
  }

  html body.workspace-active #checkout-modal #checkout-form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0 2px max(18px, env(safe-area-inset-bottom, 0px)) !important;
  }

  html body.workspace-active #checkout-modal #checkout-customer-step {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 12px !important;
    min-height: 0 !important;
  }

  html body.workspace-active #checkout-modal #complete-sale {
    position: sticky !important;
    bottom: 16px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    width: 100% !important;
    min-height: 56px !important;
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    z-index: 5 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: 0 -8px 18px rgba(255,255,255,.98) !important;
  }
}


/* Keep the phone checkout dialog closed until the app explicitly opens it.
   The flex layout above must never override the shared .hidden state. */
@media (max-width: 760px) {
  html body.workspace-active #checkout-modal:not(.hidden):not([hidden]) {
    display: flex !important;
  }

  html body.workspace-active #checkout-modal.hidden,
  html body.workspace-active #checkout-modal[hidden] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/* Receipts home: clear, colourful action cards with permanently visible labels. */
body.workspace-active #receipts-home .receipt-actions-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  gap:12px!important;
}
body.workspace-active #receipts-home .receipt-choice{
  appearance:none!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  min-height:142px!important;
  padding:16px!important;
  border:1px solid transparent!important;
  border-radius:16px!important;
  text-align:left!important;
  white-space:normal!important;
  box-shadow:0 3px 12px rgba(25,42,58,.07)!important;
  cursor:pointer!important;
}
body.workspace-active #receipts-home .receipt-choice>span{
  display:grid!important;
  place-items:center!important;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  margin:0 0 3px!important;
  border-radius:11px!important;
  font-size:23px!important;
  line-height:1!important;
  font-weight:800!important;
}
body.workspace-active #receipts-home .receipt-choice>strong{
  display:block!important;
  width:100%!important;
  color:#243244!important;
  font-size:15px!important;
  line-height:1.3!important;
  font-weight:800!important;
  overflow-wrap:anywhere!important;
  visibility:visible!important;
  opacity:1!important;
}
body.workspace-active #receipts-home .receipt-choice>small{
  display:block!important;
  width:100%!important;
  color:#526174!important;
  font-size:11px!important;
  line-height:1.45!important;
  font-weight:500!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  visibility:visible!important;
  opacity:1!important;
}
body.workspace-active #receipts-home #open-issue-receipt{
  background:#eaf1ff!important;border-color:#cfddf5!important;
}
body.workspace-active #receipts-home #open-issue-receipt>span{
  color:#3267b2!important;background:#d5e4ff!important;
}
body.workspace-active #receipts-home #open-recover-receipt{
  background:#e5f3ec!important;border-color:#cce5d7!important;
}
body.workspace-active #receipts-home #open-recover-receipt>span{
  color:#31815b!important;background:#cfe9da!important;
}
body.workspace-active #receipts-home .declaration-card{
  min-width:0!important;width:100%!important;
}
body.workspace-active #receipts-home .declaration-choice{
  background:#f7efe2!important;border-color:#eadbc2!important;
}
body.workspace-active #receipts-home .declaration-choice>span{
  color:#a47736!important;background:#efe2cb!important;
}
body.workspace-active #receipts-home .shop-receipt-history-card{
  margin-top:12px!important;
  border:1px solid #d9dfe8!important;
  border-radius:16px!important;
  background:#f0eaf8!important;
  color:#243244!important;
}
body.workspace-active #receipts-home .shop-receipt-history-card h3{
  color:#243244!important;font-size:16px!important;font-weight:800!important;
}
body.workspace-active #receipts-home .shop-receipt-history-card .muted{
  color:#526174!important;
}
@media(max-width:760px){
  body.workspace-active #receipts-home .receipt-actions-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.workspace-active #receipts-home .receipt-choice{
    min-height:132px!important;padding:12px!important;
  }
  body.workspace-active #receipts-home .receipt-choice>strong{font-size:14px!important;}
  body.workspace-active #receipts-home .receipt-choice>small{font-size:10.5px!important;}
}
@media(max-width:360px){
  body.workspace-active #receipts-home .receipt-choice{padding:10px!important;min-height:126px!important;}
  body.workspace-active #receipts-home .receipt-choice>strong{font-size:13px!important;}
}


/* RECEIPT PAGES — one natural document scroll, scoped to opened receipt screens.
   The default Receipts card landing page and every non-receipt workspace keep
   their existing fixed-shell layout. */
html:has(body.workspace-active #pos-view.workspace-issue-mode:not(.hidden)),
html:has(body.workspace-active #receipts-home.secondhand-active),
html:has(body.workspace-active #receipts-home #history-content:not(.hidden)){
  height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;
}
body.workspace-active:has(#pos-view.workspace-issue-mode:not(.hidden)),
body.workspace-active:has(#receipts-home.secondhand-active),
body.workspace-active:has(#receipts-home #history-content:not(.hidden)){
  position:relative!important;inset:auto!important;width:100%!important;height:auto!important;
  min-height:100svh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important;
  touch-action:pan-y!important;overscroll-behavior-y:auto!important;
  padding:0 0 calc(132px + env(safe-area-inset-bottom,0px))!important;
}
body.workspace-active:has(#pos-view.workspace-issue-mode:not(.hidden)) main.shell,
body.workspace-active:has(#receipts-home.secondhand-active) main.shell,
body.workspace-active:has(#receipts-home #history-content:not(.hidden)) main.shell{
  display:block!important;position:relative!important;width:100%!important;max-width:1240px!important;
  height:auto!important;min-height:calc(100svh - 72px)!important;max-height:none!important;
  margin:0 auto!important;padding:12px 16px calc(148px + env(safe-area-inset-bottom,0px))!important;
  overflow:visible!important;box-sizing:border-box!important;
}
body.workspace-active #pos-view.workspace-issue-mode:not(.hidden){
  display:block!important;position:relative!important;flex:none!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;
  padding:8px 0 24px!important;overflow:visible!important;overscroll-behavior:auto!important;
}
body.workspace-active #pos-view.workspace-issue-mode .pos-grid,
body.workspace-active #pos-view.workspace-issue-mode .cart-panel,
body.workspace-active #pos-view.workspace-issue-mode .cart-list,
body.workspace-active #receipts-home.secondhand-active #secondhand-panel,
body.workspace-active #receipts-home.secondhand-active #secondhand-form,
body.workspace-active #receipts-home #history-content:not(.hidden),
body.workspace-active #receipts-home #history-content:not(.hidden) .history-list{
  position:static!important;display:block!important;width:100%!important;height:auto!important;
  min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;
}
body.workspace-active #pos-view.workspace-issue-mode .cart-panel{padding:16px!important}
body.workspace-active #pos-view.workspace-issue-mode .receipt-product-actions{
  position:static!important;display:block!important;width:100%!important;margin:12px 0 18px!important;
  padding:0!important;inset:auto!important;transform:none!important;box-shadow:none!important;
}
body.workspace-active #pos-view.workspace-issue-mode #checkout-open{
  position:static!important;display:flex!important;width:100%!important;min-height:52px!important;margin:0!important;
  inset:auto!important;transform:none!important;float:none!important;box-shadow:none!important;
}
body.workspace-active #workspace-nav.bottom-nav{
  position:fixed!important;left:50%!important;right:auto!important;top:auto!important;
  bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;z-index:2147483000!important;
  transform:translateX(-50%)!important;
}
@media(max-width:760px){
  body.workspace-active:has(#pos-view.workspace-issue-mode:not(.hidden)) main.shell,
  body.workspace-active:has(#receipts-home.secondhand-active) main.shell,
  body.workspace-active:has(#receipts-home #history-content:not(.hidden)) main.shell{
    padding-left:10px!important;padding-right:10px!important;
    padding-bottom:calc(148px + env(safe-area-inset-bottom,0px))!important;
  }
  body.workspace-active #pos-view.workspace-issue-mode .cart-panel{padding:13px!important}
}
/* Standalone Verify Receipts form: natural page scrolling without affecting app shell pages. */
html:has(body #request-form #national-id),body:has(#request-form #national-id){
  width:100%!important;height:auto!important;min-height:100%!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:auto!important;
}
body:has(#request-form #national-id){
  position:relative!important;inset:auto!important;height:auto!important;min-height:100svh!important;
  max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important;
  touch-action:pan-y!important;padding-bottom:32px!important;
}
body:has(#request-form #national-id) .auth-shell,
body:has(#request-form #national-id) .auth-shell>.panel{
  display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}


/* AURORA declaration workspace — independent page navigation */
.aurora-declaration-workspace:not(.hidden){
  display:block!important;position:relative;width:100%;max-width:1080px;margin:0 auto 28px;padding:clamp(16px,3vw,30px);
  border:1px solid #dbe3ed;border-radius:20px;background:#fff;box-shadow:0 12px 34px rgba(24,39,65,.09);box-sizing:border-box;
}
.aurora-declaration-workspace .secondhand-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid #e5eaf1}
.aurora-declaration-workspace .secondhand-panel-heading h2{margin:5px 0 8px;color:#17243a;font-size:clamp(23px,3vw,32px);font-weight:850;line-height:1.15}
.aurora-declaration-workspace .secondhand-warning{margin:18px 0;padding:14px 16px;border:1px solid #ead7aa;border-left:4px solid #c58b2c;border-radius:12px;background:#fff9ed;color:#5c481f;line-height:1.5}
.aurora-declaration-workspace .secondhand-receipt-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}
.aurora-declaration-workspace .secondhand-receipt-option{min-height:76px;border:1px solid #d5deea;border-radius:13px;background:#f7f9fc;color:#24334b;font-weight:850;letter-spacing:.04em}
.aurora-declaration-workspace .secondhand-receipt-option.selected{border-color:#087fb5;background:#eaf6fc;color:#075c85;box-shadow:0 0 0 2px rgba(8,127,181,.10)}
.aurora-declaration-workspace #secondhand-form:not(.hidden){display:grid!important;gap:16px;margin-top:18px}
.aurora-declaration-workspace #secondhand-form fieldset{min-width:0;margin:0;padding:18px;border:1px solid #e0e6ee;border-radius:14px;background:#fbfcfe}
.aurora-declaration-workspace #secondhand-form legend{padding:0 8px;color:#174e70;font-weight:850}
@media(max-width:620px){.aurora-declaration-workspace:not(.hidden){padding:14px;border-radius:15px}.aurora-declaration-workspace .secondhand-receipt-options{grid-template-columns:1fr}.aurora-declaration-workspace #secondhand-form fieldset{padding:13px}}


/* AURORA receipt and declaration history — compact, distinct record cards */
.aurora-history-card{position:relative;overflow:hidden;border:1px solid #dce5f0!important;background:linear-gradient(145deg,#fff 0%,#f5f8ff 100%)!important;box-shadow:0 8px 22px rgba(35,54,88,.08)!important}
.aurora-history-card>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;font-size:23px;font-weight:800;margin-bottom:10px}
.aurora-receipt-history-card>span{color:#087e9c;background:#e0f5f8}
.aurora-declaration-history-card>span{color:#6240a4;background:#eee8fb}
.aurora-history-card strong{display:block;color:#1c2d45}
.aurora-history-card small{display:block;color:#65758b;line-height:1.45}
.aurora-history-workspace{background:#fff;border:1px solid #e1e8f1;border-radius:20px;padding:clamp(16px,3vw,26px);box-shadow:0 12px 32px rgba(31,50,82,.07);margin:12px 0 90px}
.aurora-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}
.aurora-history-heading h2{margin:2px 0 5px;color:#1c2d45}
.aurora-history-toolbar{display:grid;gap:7px;margin:14px 0}
.aurora-history-toolbar label{font-weight:700;font-size:.88rem;color:#34445a}
.aurora-history-toolbar input{width:100%;min-height:44px;border:1px solid #d8e1ed;border-radius:12px;padding:10px 13px;background:#fbfdff;color:#1b2b42}
.aurora-history-list{display:grid;gap:10px}
.aurora-history-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px;border:1px solid #e5ebf3;border-radius:14px;background:linear-gradient(110deg,#fff,#f8faff)}
.aurora-history-row-main{min-width:0;display:grid;gap:4px}
.aurora-history-row-main strong{color:#243650;overflow-wrap:anywhere}
.aurora-history-row-main small{color:#68788e;line-height:1.4}
.aurora-history-row .btn{flex:0 0 auto;white-space:nowrap}
.aurora-history-empty{padding:24px 16px;text-align:center;border:1px dashed #ccd7e5;border-radius:14px;color:#6c7a8e;background:#fafcff}
@media(max-width:560px){.aurora-history-heading{display:grid}.aurora-history-heading .btn{width:100%}.aurora-history-row{align-items:flex-start;flex-direction:column}.aurora-history-row .btn{width:100%}}


@media (min-width: 761px) {
  html body.workspace-active main.shell {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  html body.workspace-active main.shell > section:not(.hidden),
  html body.workspace-active main.shell > div:not(.hidden),
  html body.workspace-active main.shell > article:not(.hidden) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  html body.workspace-active main.shell > #receipts-home:not(.hidden),
  html body.workspace-active main.shell > #shop-home:not(.hidden),
  html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden) {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}


/* AURORA workspace refresh: pure-white canvas and restrained card surfaces */
body.workspace-active main.shell {
  background: #ffffff !important;
  background-image: none !important;
}
body.workspace-active main.shell > section:not(.hidden),
body.workspace-active main.shell > div:not(.hidden),
body.workspace-active main.shell > article:not(.hidden) {
  background-color: #ffffff !important;
  background-image: none !important;
}
body.workspace-active main.shell .panel,
body.workspace-active main.shell [class$="-card"],
body.workspace-active main.shell .receipt-choice,
body.workspace-active main.shell .receipt-card,
body.workspace-active main.shell .owner-stat,
body.workspace-active main.shell .owner-home-card,
body.workspace-active main.shell .freelancer-home-card,
body.workspace-active main.shell .profile-card,
body.workspace-active main.shell .subscription-choice-card,
body.workspace-active main.shell .subscription-plan-card,
body.workspace-active main.shell .aurora-history-workspace,
body.workspace-active main.shell .aurora-history-row,
body.workspace-active main.shell .secondhand-panel,
body.workspace-active main.shell .cart-panel,
body.workspace-active main.shell .repair-stage-panel {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #e3e6ea !important;
  border-radius: 11px !important;
  box-shadow: 0 1px 3px rgba(20, 30, 40, .07) !important;
}
body.workspace-active main.shell .panel,
body.workspace-active main.shell [class$="-card"],
body.workspace-active main.shell .receipt-choice,
body.workspace-active main.shell .receipt-card,
body.workspace-active main.shell .owner-stat,
body.workspace-active main.shell .owner-home-card,
body.workspace-active main.shell .freelancer-home-card,
body.workspace-active main.shell .profile-card,
body.workspace-active main.shell .subscription-choice-card,
body.workspace-active main.shell .subscription-plan-card,
body.workspace-active main.shell .aurora-history-workspace,
body.workspace-active main.shell .aurora-history-row,
body.workspace-active main.shell .secondhand-panel,
body.workspace-active main.shell .cart-panel,
body.workspace-active main.shell .repair-stage-panel {
  outline: none !important;
  filter: none !important;
}
body.workspace-active main.shell .panel .panel,
body.workspace-active main.shell [class$="-card"] [class$="-card"],
body.workspace-active main.shell .panel [class$="-card"] {
  box-shadow: none !important;
}
@media (min-width: 761px) {
  body.workspace-active main.shell,
  body.workspace-active main.shell > section:not(.hidden),
  body.workspace-active main.shell > div:not(.hidden),
  body.workspace-active main.shell > article:not(.hidden) {
    background: #ffffff !important;
  }
}


/* AURORA workspace consistency: one white canvas, italic supporting descriptions,
   and clean typography in the Flagged Items workspace. */
body.workspace-active main.shell #receipts-home:not(.hidden),
body.workspace-active main.shell #shop-lost-items-panel:not(.hidden) {
  background:#fff!important;
  background-color:#fff!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  outline:0!important;
  filter:none!important;
  padding:0!important;
}

/* The workspace is the canvas; its action cards are the first surfaced elements. */
body.workspace-active main.shell #receipts-home .section-head,
body.workspace-active main.shell #shop-lost-items-panel > .lost-items-intro {
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.workspace-active main.shell #receipts-home .receipt-actions-grid {
  margin-top:12px!important;
}

/* Supporting explanations directly beneath page/section headings use italic text. */
body.workspace-active main.shell .page-heading > div > p,
body.workspace-active main.shell .section-head > div > p,
body.workspace-active main.shell .panel-heading > div > p,
body.workspace-active main.shell .analytics-intro p,
body.workspace-active main.shell .shop-products-intro p,
body.workspace-active main.shell .lost-items-intro p:last-child,
body.workspace-active main.shell .receipt-choice small,
body.workspace-active main.shell .lost-goods-card small {
  font-style:italic!important;
}

/* Flagged Items: remove legacy pulsing/fading text treatments and restore the
   same steady, crisp typography used by the other workspaces. */
body.workspace-active main.shell #shop-lost-items-panel,
body.workspace-active main.shell #shop-lost-items-panel .lost-items-intro,
body.workspace-active main.shell #shop-lost-items-panel .lost-goods-card,
body.workspace-active main.shell #shop-lost-items-panel .lost-card-copy,
body.workspace-active main.shell #shop-lost-items-panel .lost-card-copy strong,
body.workspace-active main.shell #shop-lost-items-panel .lost-card-copy small {
  animation:none!important;
  text-shadow:none!important;
  -webkit-text-stroke:0!important;
  filter:none!important;
  transform:none;
  opacity:1!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-items-intro {
  background:#fff!important;
  color:#26384b!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:8px 0 12px!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-items-intro .eyebrow {
  color:#7b8794!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-items-intro h2 {
  color:#26384b!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-items-intro .muted {
  color:#64748b!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-goods-card strong {
  font-style:normal!important;
  font-weight:700!important;
  letter-spacing:normal!important;
}
body.workspace-active main.shell #shop-lost-items-panel .lost-goods-card small {
  font-style:italic!important;
  font-weight:400!important;
  letter-spacing:normal!important;
  text-decoration:none!important;
}


/* AURORA whole-workspace scrolling:
   Scroll belongs to the workspace viewport, not to individual page panels.
   This lets wheel/touch scrolling work wherever the pointer/finger is over
   the workspace while keeping the navigation dock fixed in view. */
html body.workspace-active {
  touch-action:pan-y!important;
}
html body.workspace-active main.shell {
  height:calc(100dvh - 72px)!important;
  min-height:0!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch!important;
  touch-action:pan-y!important;
  padding-bottom:112px!important;
  scroll-padding-bottom:112px!important;
}
html body.workspace-active main.shell > :not(#workspace-nav):not(#welcome-back-banner):not(.hidden) {
  flex:0 0 auto!important;
  min-height:0!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
  touch-action:pan-y!important;
}
html body.workspace-active main.shell > #receipts-home:not(.hidden),
html body.workspace-active main.shell > #shop-lost-items-panel:not(.hidden),
html body.workspace-active main.shell > #shop-home:not(.hidden),
html body.workspace-active main.shell > #owner-home:not(.hidden),
html body.workspace-active main.shell > #pos-view:not(.hidden),
html body.workspace-active main.shell > #owner-dashboard-view:not(.hidden),
html body.workspace-active main.shell > #profile-panel:not(.hidden),
html body.workspace-active main.shell > #staff-profile-panel:not(.hidden) {
  flex:0 0 auto!important;
  min-height:100%!important;
  max-height:none!important;
  height:auto!important;
  overflow:visible!important;
  overscroll-behavior:auto!important;
}

/* Keep the bottom navigation floating above the scrolling content on desktop
   and mobile; it must not become part of the scrollable document. */
html body.workspace-active #workspace-nav.bottom-nav {
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  top:auto!important;
  bottom:12px!important;
  transform:translateX(-50%)!important;
  z-index:10000!important;
}


/* Mobile navigation fix: keep the dock outside the scrolling shell so it
   remains visible and tappable on every phone workspace. */
@media (max-width: 760px) {
  html body.workspace-active > #workspace-nav.bottom-nav:not(.hidden) {
    position: fixed !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: 520px !important;
    min-width: 0 !important;
    height: 68px !important;
    min-height: 64px !important;
    max-height: 72px !important;
    margin: 0 auto !important;
    padding: 6px !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    z-index: 2147483000 !important;
  }
  html body.workspace-active > #workspace-nav.bottom-nav:not(.hidden) > button:not(.hidden) {
    display: flex !important;
    flex: 1 1 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 52px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    gap: 2px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 18px !important;
    margin: 0 !important;
  }
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon svg {
    width: 20px !important;
    height: 20px !important;
  }
}



/* AURORA normal document scrolling — one scroll surface on phone and desktop. */
/* Remove the legacy fixed-viewport and nested-panel scroll locks. The browser
   document becomes the single vertical scroll surface for every workspace. */
html:has(body.workspace-active) {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  scroll-behavior: auto !important;
}
html body.workspace-active {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100svh !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
  padding: 0 0 calc(18px + env(safe-area-inset-bottom, 0px)) !important;
}
html body.workspace-active main.shell {
  position: relative !important;
  display: block !important;
  flex: none !important;
  inset: auto !important;
  width: min(100%, 1240px) !important;
  max-width: 1240px !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: calc(100svh - 72px) !important;
  max-height: none !important;
  margin: 0 auto !important;
  padding: 12px 20px calc(136px + env(safe-area-inset-bottom, 0px)) !important;
  gap: normal !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
  -webkit-overflow-scrolling: auto !important;
  box-sizing: border-box !important;
}
/* Every visible top-level workspace page grows naturally with its content.
   No page gets its own scrolling viewport or a clipped fixed height. */
html body.workspace-active main.shell > :not(.hidden):not(.modal):not(#welcome-back-banner) {
  position: relative !important;
  inset: auto !important;
  flex: none !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  touch-action: auto !important;
}
/* Let scroll gestures and mouse-wheel input pass through page content normally. */
html body.workspace-active main.shell,
html body.workspace-active main.shell *:not(input):not(textarea):not(select):not(.modal):not(.modal-card) {
  overscroll-behavior-y: auto !important;
}
@media (max-width: 760px) {
  html body.workspace-active main.shell {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 10px 12px calc(142px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
/* The dock remains fixed while the document itself scrolls. */
html body.workspace-active > #workspace-nav.bottom-nav:not(.hidden) {
  position: fixed !important;
  top: auto !important;
  bottom: max(8px, env(safe-area-inset-bottom, 0px)) !important;
  z-index: 2147483000 !important;
}


/* AURORA desktop 14 cm workspace navigation fit.
   The document remains the only vertical scroll surface. The dock stays fixed
   to the viewport, but its width and centre match the 14 cm desktop workspace. */
@media (min-width: 1024px) {
  html body.workspace-active main.shell {
    width: 14cm !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding-bottom: 150px !important;
  }

  html body.workspace-active > nav#workspace-nav.bottom-nav:not(.hidden) {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom, 0px)) !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    width: min(400px, calc(14cm - 32px), calc(100vw - 64px)) !important;
    max-width: min(400px, calc(100vw - 64px)) !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    margin: 0 !important;
    padding: 5px 6px !important;
    gap: 3px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 2147483000 !important;
  }

  html body.workspace-active > nav#workspace-nav.bottom-nav:not(.hidden) > button:not(.hidden) {
    display: flex !important;
    position: static !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px !important;
    max-height: 54px !important;
    margin: 0 !important;
    padding: 4px 2px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }

  html body.workspace-active > nav#workspace-nav.bottom-nav:not(.hidden) > button:not(.hidden) > span:not(.nav-icon) {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: center !important;
  }
}


/* AURORA glass navigation — replaces the legacy dock appearance only.
   Keep the existing navigation markup and data-workspace actions intact. */
@keyframes aurora-glass-sheen {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  18% { opacity: .72; }
  48% { opacity: .28; }
  100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}
@keyframes aurora-glass-tap {
  0% { transform: scale(1); filter: brightness(1); }
  42% { transform: scale(.93); filter: brightness(1.55); }
  100% { transform: scale(1); filter: brightness(1.08); }
}
@keyframes aurora-glass-active-glow {
  0%,100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 0 9px rgba(78,190,255,.18), 0 4px 16px rgba(4,12,28,.25); }
  50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 0 17px rgba(113,210,255,.36), 0 4px 18px rgba(4,12,28,.30); }
}

/* One compact floating glass capsule, centred on the 14 cm workspace. */
html body.workspace-active #workspace-nav.bottom-nav,
html body.workspace-active main.shell > #workspace-nav.bottom-nav,
html body.workspace-active > #workspace-nav.bottom-nav {
  position: fixed !important;
  z-index: 2147483000 !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: max(9px, env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center !important;
  width: min(calc(14cm - 32px), calc(100vw - 20px)) !important;
  max-width: calc(100vw - 20px) !important;
  min-width: 0 !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  padding: 6px !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  border: 1px solid rgba(205,235,255,.42) !important;
  border-radius: 24px 30px 22px 30px / 28px 22px 30px 22px !important;
  background:
    radial-gradient(ellipse at 18% 0%, rgba(104,202,255,.22), transparent 42%),
    linear-gradient(125deg, rgba(16,31,52,.82), rgba(30,48,72,.72) 48%, rgba(14,27,48,.84)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(175%) !important;
  backdrop-filter: blur(22px) saturate(175%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.24), inset 0 -1px 0 rgba(120,190,255,.12), 0 9px 28px rgba(5,13,29,.28), 0 0 22px rgba(88,180,255,.12) !important;
  isolation: isolate !important;
}
html body.workspace-active #workspace-nav.bottom-nav::before,
html body.workspace-active main.shell > #workspace-nav.bottom-nav::before,
html body.workspace-active > #workspace-nav.bottom-nav::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  z-index: -1 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  background: linear-gradient(110deg, rgba(255,255,255,.09), transparent 34%, rgba(125,210,255,.08) 72%, transparent) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button,
html body.workspace-active #workspace-nav.bottom-nav > button.receipt-nav,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.receipt-nav,
html body.workspace-active > #workspace-nav.bottom-nav > button,
html body.workspace-active > #workspace-nav.bottom-nav > button.receipt-nav {
  position: relative !important;
  display: flex !important;
  flex: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 48px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 4px 2px !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  overflow: hidden !important;
  border: 1px solid transparent !important;
  border-radius: 15px 19px 14px 19px / 18px 14px 19px 14px !important;
  background: rgba(255,255,255,.035) !important;
  color: rgba(232,243,255,.78) !important;
  box-shadow: none !important;
  font: 600 9px/1.1 system-ui, sans-serif !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  transition: background .24s ease, color .24s ease, border-color .24s ease, box-shadow .24s ease, filter .24s ease !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button::after,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button::after,
html body.workspace-active > #workspace-nav.bottom-nav > button::after {
  content: "" !important;
  position: absolute !important;
  top: -20% !important;
  bottom: -20% !important;
  left: -45% !important;
  width: 34% !important;
  pointer-events: none !important;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent) !important;
  opacity: 0 !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button:active,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button:active,
html body.workspace-active > #workspace-nav.bottom-nav > button:active {
  animation: aurora-glass-tap .42s ease-out !important;
  color: #fff !important;
  background: linear-gradient(135deg, rgba(73,180,255,.44), rgba(151,116,255,.34), rgba(60,224,205,.30)) !important;
  border-color: rgba(194,235,255,.72) !important;
  box-shadow: 0 0 10px rgba(91,197,255,.45), 0 0 22px rgba(139,120,255,.22), inset 0 1px 0 rgba(255,255,255,.36) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button:active::after,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button:active::after,
html body.workspace-active > #workspace-nav.bottom-nav > button:active::after {
  animation: aurora-glass-sheen .62s ease-out !important;
  opacity: 1 !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.active,
html body.workspace-active #workspace-nav.bottom-nav > button.receipt-nav.active,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.active,
html body.workspace-active > #workspace-nav.bottom-nav > button.active {
  color: #fff !important;
  border-color: rgba(169,225,255,.62) !important;
  background: linear-gradient(135deg, rgba(64,166,255,.38), rgba(127,112,255,.30) 55%, rgba(52,211,195,.26)) !important;
  animation: aurora-glass-active-glow 3.2s ease-in-out infinite !important;
}
html body.workspace-active #workspace-nav.bottom-nav .nav-icon,
html body.workspace-active main.shell > #workspace-nav.bottom-nav .nav-icon,
html body.workspace-active > #workspace-nav.bottom-nav .nav-icon {
  display: grid !important;
  place-items: center !important;
  width: 21px !important;
  height: 21px !important;
  margin: 0 !important;
  color: inherit !important;
  font-size: 18px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 0 5px currentColor) !important;
}
html body.workspace-active #workspace-nav.bottom-nav .nav-icon svg,
html body.workspace-active main.shell > #workspace-nav.bottom-nav .nav-icon svg,
html body.workspace-active > #workspace-nav.bottom-nav .nav-icon svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.nav-lost-goods,
html body.workspace-active #workspace-nav.bottom-nav > button.nav-lost-goods.active {
  color: #ffb7c3 !important;
}
html body.workspace-active main.shell,
html body.workspace-active .shell {
  padding-bottom: max(112px, calc(100px + env(safe-area-inset-bottom, 0px))) !important;
}
@media (min-width: 1024px) {
  html body.workspace-active #workspace-nav.bottom-nav,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav,
  html body.workspace-active > #workspace-nav.bottom-nav {
    width: min(400px, calc(14cm - 32px), calc(100vw - 64px)) !important;
    max-width: min(400px, calc(100vw - 64px)) !important;
  }
}
@media (max-width: 760px) {
  html body.workspace-active #workspace-nav.bottom-nav,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav,
  html body.workspace-active > #workspace-nav.bottom-nav {
    width: calc(100vw - 20px) !important;
    height: 60px !important;
    min-height: 60px !important;
    max-height: 60px !important;
    padding: 5px !important;
    gap: 2px !important;
    border-radius: 22px 27px 20px 27px / 26px 20px 27px 20px !important;
  }
  html body.workspace-active #workspace-nav.bottom-nav > button,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav > button,
  html body.workspace-active > #workspace-nav.bottom-nav > button {
    min-height: 48px !important;
    max-height: 48px !important;
    font-size: 8px !important;
    gap: 2px !important;
  }
  html body.workspace-active #workspace-nav.bottom-nav .nav-icon,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav .nav-icon,
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 17px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.workspace-active #workspace-nav.bottom-nav *,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav *,
  html body.workspace-active > #workspace-nav.bottom-nav * {
    animation: none !important;
    transition: none !important;
  }
}


/* AURORA navigation refinement: fading navy glass plate, smaller mobile dock,
   and distinct colour identities for Receipt, Flagged Items and Loans. */
html body.workspace-active #workspace-nav.bottom-nav,
html body.workspace-active main.shell > #workspace-nav.bottom-nav,
html body.workspace-active > #workspace-nav.bottom-nav {
  background:
    radial-gradient(ellipse at 18% -18%, rgba(93,166,255,.30), transparent 52%),
    linear-gradient(112deg, rgba(5,19,48,.88) 0%, rgba(17,43,79,.78) 48%, rgba(6,22,52,.90) 100%) !important;
  border: 1px solid rgba(133,183,244,.38) !important;
  border-radius: 29px 36px 26px 36px / 32px 25px 36px 25px !important;
  box-shadow:
    inset 0 1px 0 rgba(224,241,255,.22),
    inset 0 -5px 14px rgba(2,10,29,.22),
    0 10px 30px rgba(2,10,28,.34),
    0 0 18px rgba(59,130,246,.13) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.nav-loans,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.nav-loans,
html body.workspace-active > #workspace-nav.bottom-nav > button.nav-loans {
  color: #c7b5ff !important;
  background: linear-gradient(145deg, rgba(126,87,255,.25), rgba(88,65,180,.16)) !important;
  border-color: rgba(180,155,255,.30) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.nav-loans.active,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.nav-loans.active,
html body.workspace-active > #workspace-nav.bottom-nav > button.nav-loans.active {
  color: #fff !important;
  background: linear-gradient(140deg, rgba(133,92,255,.72), rgba(79,89,219,.58)) !important;
  border-color: rgba(218,207,255,.72) !important;
  box-shadow: 0 0 15px rgba(139,110,255,.40), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.receipt-nav,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.receipt-nav,
html body.workspace-active > #workspace-nav.bottom-nav > button.receipt-nav {
  color: #a9efff !important;
  background: linear-gradient(145deg, rgba(20,145,218,.34), rgba(37,99,235,.22)) !important;
  border-color: rgba(113,211,255,.40) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 3px 12px rgba(10,100,190,.15) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.receipt-nav.active,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.receipt-nav.active,
html body.workspace-active > #workspace-nav.bottom-nav > button.receipt-nav.active {
  color: #fff !important;
  background: linear-gradient(140deg, rgba(16,169,224,.82), rgba(55,104,245,.72)) !important;
  border-color: rgba(179,239,255,.78) !important;
  box-shadow: 0 0 16px rgba(42,190,255,.42), inset 0 1px 0 rgba(255,255,255,.38) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.nav-lost-goods,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.nav-lost-goods,
html body.workspace-active > #workspace-nav.bottom-nav > button.nav-lost-goods {
  color: #ffc28b !important;
  background: linear-gradient(145deg, rgba(244,111,55,.27), rgba(190,65,61,.17)) !important;
  border-color: rgba(255,174,123,.34) !important;
}
html body.workspace-active #workspace-nav.bottom-nav > button.nav-lost-goods.active,
html body.workspace-active main.shell > #workspace-nav.bottom-nav > button.nav-lost-goods.active,
html body.workspace-active > #workspace-nav.bottom-nav > button.nav-lost-goods.active {
  color: #fff !important;
  background: linear-gradient(140deg, rgba(239,116,62,.78), rgba(207,67,79,.66)) !important;
  border-color: rgba(255,211,179,.78) !important;
  box-shadow: 0 0 15px rgba(255,125,83,.38), inset 0 1px 0 rgba(255,255,255,.34) !important;
}
@media (max-width: 760px) {
  html body.workspace-active #workspace-nav.bottom-nav,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav,
  html body.workspace-active > #workspace-nav.bottom-nav {
    width: calc(100vw - 32px) !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 4px !important;
    gap: 3px !important;
    border-radius: 23px 30px 21px 30px / 26px 20px 30px 20px !important;
  }
  html body.workspace-active #workspace-nav.bottom-nav > button,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav > button,
  html body.workspace-active > #workspace-nav.bottom-nav > button {
    min-height: 44px !important;
    max-height: 44px !important;
    padding: 3px 1px !important;
    gap: 2px !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
    border-radius: 13px 17px 12px 17px / 16px 12px 17px 12px !important;
  }
  html body.workspace-active #workspace-nav.bottom-nav .nav-icon,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav .nav-icon,
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon {
    width: 17px !important;
    height: 17px !important;
    font-size: 15px !important;
  }
  html body.workspace-active #workspace-nav.bottom-nav .nav-icon svg,
  html body.workspace-active main.shell > #workspace-nav.bottom-nav .nav-icon svg,
  html body.workspace-active > #workspace-nav.bottom-nav .nav-icon svg {
    width: 16px !important;
    height: 16px !important;
  }
}


/* The Products action cards are the only visible triggers for these panels.
   Keep their native disclosure content available to JavaScript, but hide the
   empty summary rows that previously rendered as three "Details" bars. */
body.workspace-active #shop-home #shop-register-product-card > .shop-product-panel-summary,
body.workspace-active #shop-home #shop-find-products-card > .shop-product-panel-summary,
body.workspace-active #shop-home #shop-stock-manager-card > .shop-product-panel-summary {
  display:none!important;
  min-height:0!important;
  height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}


/* Optional WebAuthn / passkey account controls */
.passkey-login-btn{width:100%;margin-top:10px;padding:13px 16px;border:1px solid #8b7af0;border-radius:12px;background:linear-gradient(110deg,#f7f5ff,#eef4ff);color:#3e35a8;font:700 14px system-ui,sans-serif;cursor:pointer}
.passkey-login-btn:disabled{opacity:.6;cursor:wait}
.passkey-message{min-height:18px;margin:8px 0 0;color:#596579;font-size:12px;line-height:1.5}
.passkey-settings{margin:18px 0;padding:16px;border:1px solid #dfe7f2;border-radius:15px;background:linear-gradient(140deg,#fff,#f5f8ff);color:#1d2d45}
.passkey-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.passkey-settings h3{margin:0 0 5px;font-size:16px}
.passkey-settings p{margin:0;color:#68778d;font-size:12px;line-height:1.55}
.passkey-state{flex:none;border-radius:20px;padding:5px 9px;background:#eef1f6;color:#536174;font-size:10px;font-weight:800}
.passkey-state.ready{background:#e4f7ef;color:#087a55}
.passkey-settings-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.passkey-settings-actions .btn{font-size:12px;padding:9px 12px;min-height:38px}
.passkey-device-list{list-style:none;margin:12px 0 0;padding:0}
.passkey-device-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #e8edf5;color:#24344e;font-size:12px}
.passkey-device-list li strong,.passkey-device-list li small{display:block}
.passkey-device-list li small{margin-top:3px;color:#7b8799;font-size:10px}
.passkey-device-list li button{flex:none;border:0;border-radius:18px;padding:7px 11px;background:#fee4e2;color:#a12a35;font-weight:750;font-size:11px;cursor:pointer}
.passkey-device-list li button:disabled{opacity:.5}
@media(max-width:520px){.passkey-settings-head{display:block}.passkey-state{display:inline-block;margin-top:9px}.passkey-settings-actions .btn{flex:1}}


/* Compact login footer links; preserve the existing password-reset and signup actions. */
#login-view .login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 30px;
}
#login-view .login-links > p {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
#login-view .login-links button {
  display: inline-block;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-weight: 900 !important;
  line-height: 1.35;
  text-decoration: none !important;
  cursor: pointer;
}
#login-view .login-links .login-forgot-btn {
  color: #dc2626 !important;
  font-size: 17px !important;
  letter-spacing: 0 !important;
}
#login-view .login-links #show-register {
  color: #2563eb !important;
  font-size: 22px !important;
  letter-spacing: .2px !important;
}
#login-view .login-links button:active { opacity: .6; }

/* Remove the retired fingerprint login controls and their reserved space. */
#login-view #passkey-login-btn,
#login-view #passkey-login-message,
#login-view #fpLoginBtn,
#login-view #fpOr,
#login-view #fpMsg,
#login-view .fp-btn,
#login-view .fp-or {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}
