/* Shared presentation system for the public site and authenticated workspaces. */
:root{--ink:#20352e;--muted:#718078;--line:#e2e8e2;--paper:#f4f6f2;--green:#185b45;--green-2:#104431;--mint:#eaf2e9;--radius:16px;--shadow:0 6px 24px #20352e06}
body{font-family:"Segoe UI",Inter,system-ui,sans-serif;color:var(--ink);background:var(--paper);line-height:1.55}
h1,h2,h3{letter-spacing:-.035em;line-height:1.2;text-wrap:balance}h1{font-weight:650}h2{font-weight:650}p{line-height:1.65}
button,a,input,textarea,select{transition:background .15s,border-color .15s,box-shadow .15s}button,a{touch-action:manipulation}
:focus-visible{outline:3px solid #b89c55;outline-offset:3px}
body .primary-button,body .ghost-button,body .danger-button{border-radius:10px;padding:10px 17px;min-height:42px;font-size:13px;font-weight:600;letter-spacing:0;box-shadow:none;line-height:1.4}
body .primary-button{background:#185b45;color:#fff;border:1px solid #185b45}body .primary-button:hover{background:#104431;box-shadow:0 3px 10px #185b4520}
body .ghost-button{background:#fff;color:#355346;border:1px solid #dce5dc}body .ghost-button:hover{background:#f0f5ef;border-color:#a8bcae}
body .danger-button{background:#fff7f5;border:1px solid #ead7d1;color:#953e32}
body input:not([type=checkbox]):not([type=radio]):not([type=file]),body select,body textarea{border:1px solid #dce4db;border-radius:9px;background:#fbfcfa;color:#263d32;padding:11px 13px;min-height:44px;font-size:14px;box-shadow:none;max-width:100%}
body input:focus,body select:focus,body textarea:focus{background:#fff;border-color:#779b84;box-shadow:0 0 0 3px #185b4510}body label{font-size:13px;font-weight:600;color:#405448}
body input[type=checkbox],body input[type=radio]{accent-color:#185b45;width:17px;height:17px;min-height:0;flex-shrink:0}
body .panel,body .metric,body .ops-record{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}body .panel{padding:26px}body .ops-record{padding:21px;box-shadow:none}
body .panel h2{font-size:23px}body .panel h3{font-size:17px}body .ops-note,body .muted{color:#718078;font-size:13px}
body .ops-form{gap:20px;margin-top:24px}body .ops-actions,body .row-actions{gap:8px;margin-top:14px;flex-wrap:wrap}body .ops-list{gap:14px}
body .ops-status,body .status-pill{border-radius:6px;background:#edf4eb;color:#376a46;padding:5px 9px;font-size:11px;font-weight:650;letter-spacing:.02em}
body table{border-collapse:collapse;font-size:13px;width:100%}body th{background:#f6f8f4;color:#7c887d;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}body th,body td{padding:16px 14px;border-bottom:1px solid #edf0eb;text-align:left}body tbody tr:hover{background:#fafcf8}
body .bill-name{text-decoration:none;font-weight:600}body .bill-name:hover{text-decoration:underline}
body details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:12px;padding:15px 0;font-size:14px;font-weight:600;color:#315642}body details>summary::-webkit-details-marker{display:none}body details>summary:after{content:"+";font-size:22px;font-weight:400;margin-left:auto;color:#77917f}body details[open]>summary:after{content:"−"}
body .studio-disclosure>summary{padding:0;min-height:40px}body .studio-disclosure[open]>summary{padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:22px}
body .studio-disclosure>summary span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}.studio-summary-title{font-size:17px;font-weight:650;letter-spacing:-.025em}
.studio-kicker{font-size:10px;font-weight:700;color:#83917e;letter-spacing:.16em;text-transform:uppercase;margin-bottom:10px}
.studio-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:2px}.studio-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px 24px}.studio-stat span{display:block;font-size:12px;color:var(--muted)}.studio-stat strong{display:block;font-size:32px;font-weight:600;letter-spacing:-.05em;margin:7px 0 0}.studio-stat small{font-size:11px;color:#87927f}
body .ops-workbench>.panel:first-of-type{background:#edf2e9;border-color:#e1e9da;box-shadow:none}body .ops-heading{gap:16px}body .ops-workbench{gap:20px}
body .main{max-width:1640px;width:100%;padding:30px 40px 60px;min-width:0}body .topbar{border-bottom:1px solid var(--line);min-height:80px;margin-bottom:24px;padding-bottom:23px}body .topbar h1{font-size:27px;letter-spacing:-.045em;font-weight:650}body .topbar .eyebrow{font-size:10px;color:#8c978d;letter-spacing:.12em;margin-bottom:8px}
body .status-strip{box-shadow:none;border:1px solid #dbe5d8;border-radius:12px;background:#eaf0e4;color:#3e5942;padding:13px 18px;gap:12px;margin-bottom:24px}body .status-strip p{font-size:12px;color:#73816c}body .status-strip strong{font-size:13px}body .status-strip .status-pill{color:#536746;background:#dfe8d7}body .status-strip .ghost-button{background:transparent;color:#476341;border-color:#cddac5}
body .install-card{padding:10px 16px;border:1px dashed #d5ddcf;border-radius:10px;background:transparent;box-shadow:none;margin-bottom:16px}body .install-card p{font-size:12px}.install-card-icon{width:30px!important;height:30px!important}
body .metric{padding:22px;min-height:120px}body .metric strong{font-size:34px;font-weight:600;letter-spacing:-.045em}body .metric-grid{gap:16px}body .section-heading h2{font-size:26px}body .section-heading p{font-size:13px;color:var(--muted)}
body .bill-qr{background:#f5f7f0;padding:28px}body .bill-qr img{width:300px;box-shadow:0 12px 30px #233b2510;border-radius:12px}body .bill-item{padding:20px;background:#f7f9f4;border:1px solid #e4eadd;border-radius:12px;margin-bottom:14px;grid-template-columns:2fr 1fr 1.2fr 1fr}body .bill-item>button{justify-self:start}body #bill-live-total{font-size:22px;font-weight:600;letter-spacing:-.035em;padding:20px 0;border-bottom:1px solid var(--line)}
body .bill-stats div{background:#f0f4eb}body #bill-profile{border-radius:20px;padding:32px;box-shadow:0 30px 100px #152e3433}body #bill-profile::backdrop{background:#172d2477;backdrop-filter:blur(4px)}
body .site-header{background:#fff;border-bottom:1px solid var(--line);box-shadow:none;padding:20px 4vw}body .site-brand strong{font-size:23px;letter-spacing:-.055em;color:#214e39}body .site-brand small{font-size:10px;color:#87917f}body .site-nav>a{font-size:12px;font-weight:600}body .site-nav{gap:20px}
body .future-hero{min-height:650px;background:#182f23}body .future-hero-copy{max-width:800px;padding:80px 6vw}body .future-hero-copy h1{font-size:clamp(38px,4.7vw,68px);line-height:1.05;letter-spacing:-.055em;font-weight:550}body .future-hero-copy>p:not(.eyebrow){max-width:560px;font-size:16px;line-height:1.8;color:#e5ebe0}body .future-hero-shade{background:linear-gradient(90deg,#10271cf0 0%,#10271cb8 46%,#10271c20 100%)}body .future-hero .eyebrow{color:#d0dbab;font-size:10px;letter-spacing:.14em}body .future-hero .ghost-button{background:#ffffff0c;color:#fff;border-color:#ffffff50}body .future-proof-grid{border-top:1px solid #ffffff30;padding-top:22px;margin-top:30px}
body .admin-console{gap:24px}body .admin-login,body .auth-wall-card{border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 70px #203b2410;padding:36px;background:#fff}body .admin-shell,body .customer-shell{max-width:1280px;margin:auto}
#customerPortal main{max-width:1200px;margin:auto;padding:35px 30px;display:grid;gap:24px}#customerPortal main>.panel{margin:0}#customer-invoices .ops-record{margin-top:14px}#nearby-checkin{background:#edf2e8}#ops-customer .ops-balance{font-size:42px;font-weight:600;margin-top:22px;letter-spacing:-.05em}
@media(min-width:761px){body .app-shell{grid-template-columns:228px minmax(0,1fr)}body .sidebar{padding:28px 18px 18px;background:#173f30;color:#eef4e8;border:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#43624d transparent}body .brand-block{padding:0 8px 20px;border-bottom:1px solid #ffffff15;margin-bottom:10px}body .brand-name{color:#fff;font-size:21px;letter-spacing:-.04em}body .brand-line{color:#a5b99c;font-size:9px}body .brand-mark{width:34px;height:34px}.sidebar .nav-list{gap:3px}.sidebar .nav-item{color:#b5c8b2;background:transparent;border:0;border-radius:8px;font-size:12px;font-weight:500;padding:10px 12px;min-height:37px;display:flex;align-items:center;gap:11px}.sidebar .nav-item:hover{color:#fff;background:#ffffff09}.sidebar .nav-item.active{background:#e0ebc8;color:#234632;font-weight:650;box-shadow:none}.sidebar .nav-item.active:before{display:none}.sidebar .nav-item svg{width:17px;height:17px;opacity:.8;flex-shrink:0}.studio-nav-label{color:#809d7d;font-size:9px;letter-spacing:.16em;font-weight:700;margin:16px 12px 6px;text-transform:uppercase}.sidebar .sidebar-footer{margin-top:24px;border-color:#ffffff16}.sidebar-footer .ghost-button{background:transparent;border-color:#ffffff25;color:#b4c6aa;font-size:11px}.sidebar .nav-item[data-view=modules]{font-size:12px}}
@media(min-width:1200px){#ops-work .ops-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}#ops-work .ops-list>.ops-note{grid-column:1/-1}}
@media(max-width:1000px){body .main{padding:24px}.topbar-actions{gap:6px}body .topbar-actions .ghost-button{padding:9px 12px;font-size:11px}}
@media(max-width:760px){body:not(.pending-auth) .main{padding:20px 16px 100px;background:#f4f6f2}body .topbar{margin:-20px -16px 18px;padding:20px 16px 16px;background:#f4f6f2f5;border-bottom:1px solid var(--line)}body .topbar h1{font-size:23px}body .panel{padding:20px;border-radius:14px}body .ops-form{grid-template-columns:1fr;gap:18px}body .status-strip{margin-bottom:18px;padding:12px 15px}body .status-strip p{line-height:1.4}body .panel h2{font-size:22px}.studio-stats{gap:8px}.studio-stat{padding:14px 12px;border-radius:12px}.studio-stat strong{font-size:27px}.studio-stat span{font-size:10px}.studio-stat small{font-size:9px}body .bill-item{grid-template-columns:1fr 1fr;padding:14px}body .bill-item label:first-child{grid-column:1/-1}body .ops-record{padding:17px}body .ops-actions>*{flex:1;text-align:center}body .bill-qr .row-actions{width:100%}body .bill-qr .row-actions a{width:100%}.studio-nav-label{display:none}body .future-hero-copy{padding:64px 24px}body .future-hero{min-height:620px}body .site-header{padding:15px 20px}body .site-nav{gap:10px}#customerPortal main{padding:24px 16px 50px}body .admin-login{padding:24px}body .metric strong{font-size:28px}body .metric{min-height:105px;padding:18px}body .bill-stats{gap:8px}body #bill-profile{padding:22px}body .mobile-nav{border-top:1px solid var(--line);background:#fffffff5;box-shadow:0 -8px 20px #24352405}}
#businessStatusStrip p{color:#66785e}#businessStatusStrip{margin-bottom:20px}
#invoices.active{display:grid;gap:16px}#invoices>.panel{margin:0}#invoices>.bill-notice:empty{display:none}#invoices>.panel:has(#bill-layout){order:5}#invoices>.ops-heading{order:0}#invoices>#bill-create-panel{order:1}#invoices>.panel:has(#bill-filter){order:2}#invoices>#bill-list{order:3}#invoices>.bill-notice{order:0}
#bill-filter{margin-top:0;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;gap:12px}#bill-filter button{height:44px}#bill-list>.ops-record{margin-top:16px}
#ops-work>.studio-compose{order:3}#ops-work>.panel:last-child{order:2}#ops-work>.panel:first-of-type{order:1}.studio-stats{order:0}
.studio-install{margin-bottom:18px;font-size:12px}.studio-install>summary{padding:3px 0;font-size:11px;color:#7f8b79}.studio-install>summary:after{font-size:15px;margin-left:5px}.studio-install .install-card{margin:10px 0}
.studio-welcome{padding:0 0 4px}.studio-welcome h1{font-size:34px;letter-spacing:-.045em;margin:4px 0 10px}.studio-welcome p{font-size:14px;color:var(--muted)}
#customerPortal .studio-welcome{order:-1}body .ops-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:9px}
.studio-more{position:relative}.studio-more>summary{border:1px solid #dce5dc;border-radius:10px;padding:10px 16px;font-size:13px;min-height:42px}.studio-more>summary:after{font-size:14px}.studio-more-content{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0}.studio-more[open]{flex-basis:100%}.studio-more[open]>summary{width:max-content}
.studio-install:not(:has(.install-card:not(.hidden))){display:none}
#customers>.split-layout{grid-template-columns:minmax(0,1fr)}.studio-compose>.panel-heading{margin-bottom:15px}.studio-compose:has(#customerForm)>.panel-heading{display:none}body .metric span{color:#6f806d}body .metric:nth-child(n) span{color:#6f806d}
@media(max-width:760px){body .mobile-tabbar{padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #dfe7dc;box-shadow:0 -5px 18px #20352e08}body .mobile-tabbar .mobile-tab{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:7px 2px;min-height:52px;border-radius:10px}body .mobile-tabbar .mobile-tab span{font-size:10px;max-width:none;overflow:visible;white-space:nowrap;text-overflow:clip}body .mobile-tabbar .mobile-tab svg{width:20px;height:20px}body .mobile-tabbar .mobile-tab.active{background:#edf4e8;color:#24533c}body .mobile-fab{bottom:calc(90px + env(safe-area-inset-bottom));width:48px;height:48px;border-radius:15px}}
@media(max-width:760px){#businessStatusStrip .status-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}#businessStatusStrip .status-actions .ghost-button{width:auto;min-height:34px;padding:7px 12px;font-size:11px}}
@media(max-width:900px){#bill-filter{grid-template-columns:1fr 1fr}#bill-filter button{grid-column:1/-1}.studio-welcome h1{font-size:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
#platform-receipts { margin-top:24px; }
#platform-receipts > p, #platform-receipts [data-content] { margin-top:18px; }
#platform-receipts [data-content] > h3 { margin:24px 0 16px; }
#platform-receipts [data-receipts] { display:grid;gap:16px;margin-top:18px; }
#platform-receipts [data-record] { margin:0; padding:20px; }
#platform-receipts [data-record] p { margin:10px 0; }
#platform-receipts form { max-width:680px; margin:20px 0; }
#platform-receipts a { display:inline-block; margin:8px 12px 8px 0; }

/* Loading skeletons: shown briefly while public store data loads, so a slow connection never reads as an empty/broken page. */
@keyframes asli-skeleton-pulse{0%,100%{opacity:1}50%{opacity:.55}}
.skeleton-line{display:block;border-radius:6px;background:var(--line);animation:asli-skeleton-pulse 1.3s ease-in-out infinite}
.skeleton-line-tag{width:88px;height:12px;margin-bottom:10px}
.skeleton-line-title{width:70%;height:18px;margin-bottom:10px}
.skeleton-line-title-lg{width:60%;height:30px;margin:10px 0}
.skeleton-line-text{width:90%;height:12px}
.store-card-skeleton{pointer-events:none}
.store-card-skeleton .store-card-photo{background:var(--mint);animation:asli-skeleton-pulse 1.3s ease-in-out infinite}
.store-profile-skeleton{padding:8px 0}
