:root{--bg:#f7f8fc;--surface:#fff;--ink:#202336;--muted:#70768a;--border:#e9ebf3;--purple:#6b58e8;--lavender:#f0edff;--green:#24876d;--radius:18px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b8aaff;outline-offset:3px}button{border:0;background:none;color:inherit}svg{vertical-align:middle}.icon{width:20px;height:20px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.brand{font-size:29px;font-weight:800;letter-spacing:-1.5px;display:flex;align-items:center;gap:5px}.brand-dot{width:8px;height:8px;border-radius:50%;background:var(--purple);margin-top:11px}.primary,.secondary,.ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 16px;border-radius:10px;font-weight:600}.primary{background:var(--purple);color:white;box-shadow:0 4px 10px #6b58e819}.primary:hover{background:#5b47d7}.secondary{background:white;border:1px solid var(--border)}.ghost{color:var(--muted)}.ghost:hover,.secondary:hover{background:var(--lavender);color:var(--purple)}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.6}.eyebrow{color:var(--muted);font-size:10px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:7px;font-size:11px;font-weight:600;white-space:nowrap}.pill.green{color:var(--green);background:#eaf7f1}.pill.purple{color:var(--purple);background:var(--lavender)}.pill.gray{color:var(--muted);background:#f0f2f6}.pill.amber{color:#a07323;background:#fff5dd}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:white;border-right:1px solid var(--border);padding:32px 20px;display:flex;flex-direction:column;gap:28px;position:sticky;top:0;height:100vh}.sidebar .brand{padding-left:14px}.workspace{padding:14px 12px;border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;gap:10px}.workspace-icon,.avatar{display:flex;align-items:center;justify-content:center;background:var(--lavender);color:var(--purple);border-radius:10px;font-weight:700;width:34px;height:34px;flex-shrink:0}.workspace-title{font-size:12px;font-weight:650;line-height:1.5;max-width:140px}.workspace-sub{font-size:10px;color:var(--muted);margin-top:2px}.nav{display:grid;gap:6px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;padding:13px 15px;border-radius:10px;color:#7a7f92;font-size:13px;font-weight:500}.nav button:hover{background:#f8f7fe}.nav button.active{background:var(--lavender);color:var(--purple);font-weight:650}.nav .nav-count{margin-left:auto;font-size:10px;padding:3px 6px;background:#fff8;border-radius:5px}.sidebar-bottom{margin-top:auto;display:grid;gap:20px}.side-note{border-radius:13px;background:#f7f7fc;padding:16px;line-height:1.6;font-size:11px;color:var(--muted)}.side-note strong{display:block;color:#555a72;font-size:12px;margin-bottom:5px}.profile{border-top:1px solid var(--border);padding:19px 6px 0;display:flex;align-items:center;gap:10px;text-align:left;width:100%}.profile .avatar{background:#f2e9da;color:#94764e}.profile-text{flex:1;font-size:12px}.profile-text span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.main-area{min-width:0}.topbar{height:82px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--border);background:#ffffffb8}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{color:var(--ink);margin-left:9px}.topbar-actions{display:flex;gap:12px;align-items:center}.status-dot{width:6px;height:6px;background:#39a687;border-radius:50%}.content{padding:34px 40px 26px;max-width:1500px;margin:auto}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.page-title h1{font-size:29px;letter-spacing:-.9px;margin:0 0 8px;font-weight:700}.page-title p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.date-controls{display:flex;align-items:center;gap:12px;flex-shrink:0}.segments{display:flex;gap:3px;border:1px solid var(--border);border-radius:9px;padding:3px;background:white}.segments button{min-height:36px;padding:8px 12px;border-radius:6px;font-size:11px;color:var(--muted)}.segments button.selected{background:var(--lavender);color:var(--purple);font-weight:650}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px}.metric-head{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:12px;color:#777d90}.metric-symbol{width:31px;height:31px;background:#f5f3ff;color:#8a79dc;display:grid;place-items:center;border-radius:9px}.metric-symbol .icon{width:16px;height:16px}.metric-value{font-size:32px;font-weight:700;letter-spacing:-1.3px;margin:13px 0 9px;line-height:1}.metric-foot{font-size:11px;color:var(--muted);line-height:1.5}.metric-foot b{color:var(--green);font-weight:550}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px;margin-bottom:23px}.panel{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:23px;min-width:0}.panel h2{font-size:14px;margin:0;font-weight:650;letter-spacing:-.1px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.panel-head .caption{font-size:10px;color:var(--muted);margin:7px 0 0}.text-link{font-size:11px;color:var(--purple);font-weight:600;padding:6px;white-space:nowrap}.legend{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:6px}.legend i{width:7px;height:7px;border-radius:2px;background:var(--purple)}.chart{display:block;width:100%;height:206px}.chart text{fill:#737b90;font:10px Inter,Arial,sans-serif}.chart .gridline{stroke:#eef0f6;stroke-dasharray:3 4}.chart .bar{fill:#a89aee}.chart .bar:last-of-type{fill:var(--purple)}.chart-total{font-size:11px;display:flex;justify-content:space-between;align-items:center;padding-top:12px;color:var(--muted);gap:10px}.chart-total strong{color:var(--ink);font-weight:650}.program-panel{background:linear-gradient(155deg,#fbfaff,#f4f1ff);border-color:#e9e3fc}.program-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.program-stamps{display:flex;gap:7px;align-items:center;margin:24px 0 17px}.stamp{width:35px;height:35px;border-radius:50%;border:1.5px dashed #c7bbef;display:flex;align-items:center;justify-content:center;color:#b3a4da;background:#fff9}.stamp.checked{background:#e6dfff;border:1px solid #d9cdf9;color:#8b72d4}.stamp.gift{background:var(--purple);color:white;border:0}.stamp .icon{width:17px;height:17px}.program-panel h3{font-size:19px;font-weight:650;letter-spacing:-.3px;margin:0 0 8px}.program-panel p{font-size:11px;line-height:1.8;color:#756789;margin:0}.program-bottom{border-top:1px solid #e7e1f5;margin-top:20px;padding-top:16px;display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#756789}.program-bottom strong{color:#6c6292}.lower-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{color:var(--muted);font-weight:500;text-align:left;border-bottom:1px solid var(--border);padding:0 8px 14px}td{border-bottom:1px solid #f0f1f7;padding:15px 8px}tr:last-child td{border-bottom:0}td:first-child,th:first-child{padding-left:0}td:last-child,th:last-child{padding-right:0}.table-person{display:flex;align-items:center;gap:9px;font-weight:600}.table-avatar{width:28px;height:28px;border-radius:8px;background:#f5f2fc;color:#9a89c4;display:grid;place-items:center;font-size:10px}.table-time{font-size:10px;color:var(--muted);margin-top:4px}.point-row{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #f1f2f7}.point-row:last-child{border:0}.point-icon{width:33px;height:33px;border-radius:10px;background:#f6f7fc;color:#8f94a7;display:grid;place-items:center}.point-main{flex:1}.point-main strong{font-size:11px;font-weight:600}.point-main p{font-size:10px;color:var(--muted);margin:6px 0 0}.point-count{text-align:right;font-size:13px;font-weight:600}.point-count span{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:4px}.footer-line{margin-top:26px;font-size:10px;color:#a2a6b5;display:flex;justify-content:space-between;gap:16px}.search{position:relative;max-width:320px;margin-bottom:20px}.search input{width:100%;padding-left:38px}.search .icon{position:absolute;left:12px;top:12px;color:#959bae;width:17px}.field{display:grid;gap:8px;margin-bottom:18px}.field label{font-size:12px;font-weight:600}.field input,input[type=search]{border:1px solid #dee1eb;background:white;color:var(--ink);border-radius:9px;min-height:44px;padding:11px 13px;width:100%;font-size:12px}.field input::placeholder{color:#a9adba}.field-help{font-size:10px;color:var(--muted);line-height:1.6}.error{font-size:12px;line-height:1.6;padding:12px;border-radius:9px;background:#fff0f0;color:#a84949;margin-bottom:18px}.full{width:100%}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:white}.login-story{position:relative;overflow:hidden;background:#f1edff;padding:48px 10%;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.login-story:before{content:"";position:absolute;width:600px;height:600px;border:1px solid #d9cff9;border-radius:50%;left:-260px;bottom:-290px}.login-story:after{content:"";position:absolute;width:720px;height:720px;border:1px solid #e0d8f7;border-radius:50%;left:-320px;bottom:-350px;pointer-events:none}.login-story h1{font-size:42px;letter-spacing:-1.7px;line-height:1.17;font-weight:650;max-width:400px;margin:0 0 20px}.login-story h1 em{font-style:normal;color:var(--purple)}.login-story p{font-size:13px;line-height:1.8;color:#756789;max-width:340px}.login-art{position:relative;margin:34px 0 28px;max-width:350px;background:#ffffffcc;backdrop-filter:blur(6px);border:1px solid white;border-radius:22px;padding:26px;box-shadow:0 24px 65px #715ca31a;transform:rotate(-3deg)}.login-art .art-points{display:flex;gap:10px;margin:27px 0 20px}.login-art .art-points .stamp{width:39px;height:39px}.login-art .brand{font-size:22px}.art-caption{font-size:11px;color:#756789}.login-story .story-footer{font-size:10px;color:#9c92b5;z-index:1}.login-form-area{display:flex;align-items:center;justify-content:center;padding:48px}.login-box{width:100%;max-width:348px}.login-box h2{font-size:28px;letter-spacing:-.8px;margin:10px 0 10px}.login-sub{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 30px}.login-divider{display:flex;align-items:center;gap:15px;font-size:10px;color:#a2a7b8;margin:22px 0}.login-divider:before,.login-divider:after{content:"";height:1px;background:var(--border);flex:1}.login-foot{font-size:10px;text-align:center;color:#a0a5b5;line-height:1.8;margin-top:24px}.password-wrap{position:relative}.password-wrap input{padding-right:44px}.password-wrap button{position:absolute;right:9px;top:8px;padding:4px;color:#9095a8}.login-title-row{display:flex;justify-content:space-between;align-items:center}.empty{padding:32px 12px;text-align:center;color:var(--muted);font-size:12px;line-height:1.8}.empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:8px}.mobile-menu{display:none}.locations-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.location-stat{display:flex;gap:40px;margin-top:24px}.location-stat b{display:block;font-size:26px;font-weight:650;margin-bottom:7px}.location-stat span{font-size:10px;color:var(--muted)}.checks{display:grid;gap:11px;padding:5px 0 15px}.checks label{display:flex;align-items:center;gap:9px;font-size:12px}progress{accent-color:var(--purple);height:5px;width:70px;margin-right:8px;border:0;border-radius:5px}progress::-webkit-progress-bar{background:#efedf6;border-radius:5px}progress::-webkit-progress-value{background:#9986e8;border-radius:5px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;background:#29273f;color:white;padding:14px 22px;border-radius:11px;font-size:12px;max-width:92vw;box-shadow:0 8px 30px #24203620}dialog{border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 90px #20203030;max-width:460px;width:calc(100% - 32px);padding:26px;color:var(--ink)}dialog::backdrop{background:#24203955;backdrop-filter:blur(3px)}dialog h2{font-size:21px;letter-spacing:-.5px;margin:0 0 11px}dialog .dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.boot{min-height:100vh;display:grid;place-items:center;font-size:13px;color:var(--muted)}.alert{padding:12px 15px;border:1px solid #ece4f9;background:#faf7ff;border-radius:10px;font-size:11px;color:#8b79a7;line-height:1.6;margin-bottom:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1550px){.content{padding-top:42px}.chart{height:235px}.panel{padding:27px}.metric{padding:24px}}
@media(max-width:1150px){.shell{grid-template-columns:208px minmax(0,1fr)}.sidebar{padding:28px 14px}.topbar{padding:0 25px}.content{padding:28px 25px}.metrics{gap:10px}.metric{padding:17px 15px}.metric-value{font-size:28px}.dashboard-grid,.lower-grid{gap:16px;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr)}.panel{padding:20px}.program-stamps{gap:5px}.stamp{width:29px;height:29px}.locations-grid{grid-template-columns:1fr 1fr}.login-story h1{font-size:35px}}
@media(max-width:900px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-260px;top:0;width:238px;z-index:20;transition:left .2s;box-shadow:20px 0 70px #20233615}.sidebar.open{left:0}.mobile-menu{display:inline-flex;padding:5px}.topbar{height:66px;padding:0 20px}.breadcrumb{display:none}.topbar-actions .small{display:none}.content{padding:25px 20px}.page-title h1{font-size:25px}.login-story{padding:35px 8%}.login-story h1{font-size:32px}.login-art{padding:20px}.login-art .art-points{gap:6px}.login-art .art-points .stamp{width:31px;height:31px}}
@media(max-width:650px){.metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:17px}.metric{padding:16px}.metric-head{font-size:10px}.metric-value{font-size:29px;margin-top:12px}.metric-symbol{width:26px;height:26px}.metric-foot{font-size:9px}.dashboard-grid,.lower-grid{grid-template-columns:1fr;gap:17px}.dashboard-grid{margin-bottom:17px}.program-panel{display:grid;grid-template-columns:1fr auto;column-gap:12px}.program-top{grid-column:1/-1;margin-bottom:16px}.program-stamps{grid-column:2;grid-row:2/5;align-self:center;margin:10px 0;gap:4px}.program-stamps .stamp{width:25px;height:25px}.program-stamps .stamp .icon{width:13px}.program-panel h3{font-size:17px}.program-bottom{grid-column:1/-1}.program-panel p{font-size:10px}.page-title{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:20px}.date-controls{width:100%;justify-content:space-between}.date-controls .secondary{margin-left:auto}.panel{padding:20px}.locations-grid{grid-template-columns:1fr}.footer-line{font-size:9px}.footer-line span:last-child{display:none}.login{grid-template-columns:1fr}.login-story{min-height:0;padding:26px 25px 30px}.login-story .brand{font-size:25px}.login-story h1{font-size:28px;letter-spacing:-.9px;margin:28px 0 0;max-width:350px}.login-story p,.login-art,.story-footer{display:none}.login-form-area{padding:34px 25px 40px;align-items:flex-start}.login-box{max-width:400px}.login-box h2{font-size:25px}.login-sub{margin-bottom:23px}.topbar .primary{font-size:11px;min-height:37px;padding:8px 11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.program-editor{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:22px;align-items:start}.program-editor aside .panel{margin-bottom:20px}.program-editor select{min-height:44px;padding:10px 12px;border:1px solid #dee1eb;border-radius:9px;color:var(--ink);background:white;font:inherit;font-size:12px;width:100%}.form-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px}.program-products{border:1px solid var(--border);border-radius:10px;padding:16px;margin:2px 0 22px}.program-products legend{font-size:12px;font-weight:600;padding:0 6px}.program-products .checks{padding-bottom:10px}.program-products input{accent-color:var(--purple);width:16px;height:16px}.form-section-title{font-size:13px;font-weight:650;padding-top:20px;margin:24px 0 20px;border-top:1px solid var(--border)}.program-save{display:flex;justify-content:space-between;gap:14px;align-items:center;padding-top:21px;border-top:1px solid var(--border)}.program-save .small{max-width:160px}.loyalty-preview{background:linear-gradient(145deg,#7562e6,#9a87ed);border-radius:18px;color:white;padding:24px;margin-top:20px}.loyalty-preview>span{font-size:12px;opacity:.85}.loyalty-preview h3{font-size:28px;letter-spacing:-.5px;margin:25px 0 18px}.preview-stamps{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}.preview-stamps span{width:29px;height:29px;border:1px solid #ffffff70;border-radius:50%;display:grid;place-items:center;background:#ffffff20;font-size:13px}.preview-stamps svg{width:16px;height:16px}.loyalty-preview strong{font-size:17px;overflow-wrap:anywhere}.loyalty-preview p{font-size:11px;line-height:1.7;color:#f0ebff}.current-program h2{margin-bottom:18px}.current-program p{font-size:13px;line-height:1.9}.program-editor .guest-preview>.small{line-height:1.8}.program-editor>aside{position:sticky;top:25px}@media(max-width:1000px){.program-editor{grid-template-columns:1fr}.program-editor>aside{position:static;display:grid;grid-template-columns:1fr 1fr;gap:18px}}@media(max-width:650px){.form-pair{grid-template-columns:1fr;gap:0}.program-editor>aside{display:block}.program-save{align-items:stretch;flex-direction:column}.program-save .small{max-width:none}.program-save .primary{width:100%}}
.customer-link{display:flex;align-items:center;gap:10px;text-align:left;font-size:12px;font-weight:600;padding:0}.customer-link small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.profile-details{display:grid;gap:18px;margin:24px 0}.profile-details div{display:grid;gap:7px}.profile-details span{font-size:11px;color:var(--muted)}.profile-details strong{font-size:13px;font-weight:550}

.search input{padding-left:38px}
.customer-dialog{max-width:650px;max-height:88vh;overflow:auto}.customer-dialog .profile-details{grid-template-columns:1fr 1fr}.customer-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.history-title{font-size:14px;margin:25px 0 17px;padding-top:23px;border-top:1px solid var(--border)}@media(max-width:650px){.customer-dialog .profile-details{grid-template-columns:1fr}.customer-actions>*{width:100%}}

/* Client directory: filters retain their focus while results refresh. */
.customer-filters{display:grid;grid-template-columns:minmax(220px,1fr) 170px 190px auto;gap:16px;align-items:end;margin:0 24px 20px}
.customer-filters .search{margin:0;min-width:0}
.customer-filters .field{margin:0;min-width:0}
.customer-filters .field label{font-size:12px}
.customer-filters select{min-height:44px;width:100%}
.customer-filters .text-button{min-height:44px}
.customer-summary{padding:0 24px 16px;color:var(--muted);font-size:13px}
.customer-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:20px 24px;border-top:1px solid var(--border)}
#customer-results .empty button{display:block;margin:16px auto 0}
@media(max-width:1100px){.customer-filters{grid-template-columns:1fr 1fr}.customer-filters .search{grid-column:1/-1}.customer-filters .text-button{justify-self:start}}
@media(max-width:650px){.customer-filters{margin:0 16px 20px;gap:12px;grid-template-columns:1fr}.customer-filters .field select{font-size:16px}.customer-summary{padding:0 16px 16px}.customer-pagination{justify-content:space-between;gap:8px;padding:16px}.customer-pagination .secondary{padding:10px 13px}}
.customer-filters .search{max-width:none;width:100%}
.customer-filters select{appearance:none;-webkit-appearance:none;border:1px solid var(--border);border-radius:10px;padding:11px 38px 11px 13px;color:var(--ink);background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%2370768a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;cursor:pointer}
.customer-filters select:hover{border-color:#b8aaff}
.customer-pagination button:disabled{cursor:default}

.program-tabs{display:inline-flex;margin:0 0 24px;gap:4px}
.program-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px;margin:20px 0}
.program-history{margin-top:20px}.program-history ol{padding:0;list-style:none;margin-bottom:0}.program-history li{padding:12px 0;border-top:1px solid var(--border)}.program-history li strong{display:block;font-size:13px;font-weight:600}.program-history li span{display:block;color:var(--muted);font-size:12px;margin-top:5px}
@media(max-width:650px){.program-actions{flex-direction:column}.program-actions button{width:100%}}

.card-balances{min-width:170px;margin:8px 0}.card-balances>div{display:grid;gap:3px;margin:6px 0}.card-balances strong{font-size:12px;font-weight:600}.card-balances span{font-size:12px}.publish-confirm{display:flex;gap:10px;align-items:flex-start;line-height:1.5}.publish-confirm input{width:18px;height:18px;flex:none;margin-top:3px}

.registration-qr{text-align:center;margin:18px 0}.registration-qr img{width:224px;max-width:100%;height:auto;background:white;border-radius:12px}.registration-link{font-size:12px;overflow-wrap:anywhere}.guest-body{background:#f4f3f8}.guest-shell{width:min(100% - 32px,460px);margin:0 auto;padding:28px 0 36px}.guest-brand{font-size:28px;font-weight:800;letter-spacing:-1px;color:#27232f;display:flex;justify-content:space-between;align-items:center}.guest-brand span{font-size:11px;font-weight:500;letter-spacing:0;color:#827b91}.guest-demo{font-size:11px;color:#6c6380;border:1px solid #ded9eb;border-radius:8px;padding:8px 12px;margin:18px 0 24px}.guest-heading{margin:24px 0}.guest-heading h1{font-size:31px;line-height:1.15;letter-spacing:-.7px;margin:10px 0 12px}.guest-heading>p{color:#7b7487;line-height:1.6}.guest-digital-card{background:#5a40bd;color:white;border-radius:22px;padding:26px;box-shadow:0 12px 28px #4d34a324;margin-bottom:30px}.guest-digital-card>span{font-size:13px;color:#e0d8ff}.guest-digital-card>strong{display:block;font-size:25px;letter-spacing:1px;margin:25px 0}.guest-digital-card p{font-size:12px;color:#e0d8ff;margin:0}.guest-programs>h2,.guest-form-panel h2{font-size:18px;margin-bottom:18px}.guest-program{border:1px solid #ebe8f1;background:white;border-radius:16px;padding:22px;margin:14px 0}.guest-program h2,.guest-program h3{font-size:17px;margin:12px 0}.guest-program .panel-head{align-items:center;gap:12px;margin-bottom:12px}.guest-program .panel-head h3{margin:0}.guest-program progress{display:block;width:100%;height:9px;border:0;border-radius:8px;accent-color:#7054cf;background:#eeebf6}.guest-program progress::-webkit-progress-bar{background:#eeebf6;border-radius:8px}.guest-program progress::-webkit-progress-value{background:#7054cf;border-radius:8px}.guest-program>p{font-size:13px;line-height:1.6}.guest-gift{background:#f7f5fc;border-radius:10px;padding:14px;margin:16px 0;display:grid;gap:5px}.guest-gift strong{font-size:14px}.guest-gift span{font-size:12px;color:#74698e}.guest-form-panel{background:white;border:1px solid #ebe8f1;border-radius:18px;padding:24px;margin:20px 0}.guest-access-note,.guest-footer{font-size:11px;line-height:1.7;color:#8b8398;margin:20px 0}.guest-footer{text-align:center}.guest-shell .primary,.guest-shell .secondary{min-height:46px}.guest-shell .field input{font-size:16px;min-height:46px}
@media(max-width:480px){.guest-heading h1{font-size:29px}.guest-program{padding:18px}.guest-program .pill{white-space:nowrap;font-size:10px}.guest-digital-card>strong{font-size:23px}}
.guest-recovery{margin:20px 0}.guest-recovery summary{cursor:pointer;color:#6649bd;font-size:14px;font-weight:600;padding:12px 0}.guest-recovery[open] summary{padding-bottom:0}.guest-recovery .guest-form-panel{margin-top:14px}.card-code-note{font-size:12px;color:#81768d}

/* 0.15: mobile directory, keyboard-safe navigation and reachable dialogs. */
.sidebar-close,.nav-backdrop{display:none}
.modal-close{float:right;position:sticky;top:0;z-index:1;display:grid;place-items:center;width:44px;height:44px;margin:-12px -12px 4px 10px;background:var(--surface);border:1px solid var(--border);border-radius:10px;font-size:26px;line-height:1}
dialog{max-height:calc(100dvh - 32px);overflow:auto;overflow-wrap:anywhere}
dialog h2{padding-right:38px;line-height:1.35}
dialog .dialog-actions{flex-wrap:wrap}
.workspace-title,.profile-details strong,.guest-heading h1,.guest-program h2,.guest-program h3,.guest-gift strong{overflow-wrap:anywhere;min-width:0}
.guest-program .panel-head h3{flex:1;min-width:0}
.guest-program .panel-head .pill{flex:none}
@media(max-width:900px){
 .mobile-menu,.sidebar-close{min-width:44px;min-height:44px;align-items:center;justify-content:center}
 .sidebar-close{display:flex;position:absolute;top:12px;right:10px;font-size:28px;border-radius:10px}
 .sidebar{padding-top:66px;height:100dvh;overflow-y:auto;overscroll-behavior:contain;z-index:31}
 .nav-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#20233666;z-index:30;cursor:default}
 body.nav-open{overflow:hidden}
 .nav button,.profile{min-height:44px}
 .field input,input[type=search],.program-editor select{font-size:16px}
 .primary,.secondary,.ghost,.segments button,.text-link{min-height:44px}
}
@media(max-width:650px){
 .content{padding-left:16px;padding-right:16px}
 .date-controls{flex-wrap:wrap;flex-shrink:1;gap:10px}
 .date-controls>*{min-width:0}
 .metrics .metric-foot{font-size:11px;line-height:1.5}
 .metric-head{font-size:12px;line-height:1.5}
 .customer-table,.customer-table tbody{display:block;white-space:normal}
 .customer-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
 .customer-table tbody{display:grid}
 .customer-table tr{display:grid;grid-template-columns:minmax(0,1fr);padding:18px 16px;border-bottom:1px solid var(--border);gap:13px}
 .customer-table tr:last-child{border-bottom:0}
 .customer-table td,.customer-table td:first-child,.customer-table td:last-child{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
 .customer-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:5px}
 .customer-table td:first-child::before{display:none}
 .customer-table .customer-link{width:100%;min-height:44px;font-size:15px;line-height:1.4}
 .customer-table .customer-link>span:last-child{min-width:0;overflow-wrap:anywhere}
 .customer-table .customer-link small{font-size:12px}
 .customer-table .card-balances{min-width:0;margin:0}
 .customer-table .card-balances>div{margin-top:6px}
 .customer-table .pill{white-space:normal;font-size:12px}
 .customer-pagination{flex-wrap:wrap}
 .customer-pagination .small{font-size:12px}
 .guest-heading h1{font-size:27px}
}
@media(max-width:380px){
 .page-title .date-controls:has([data-action="new-customer"]){display:grid;grid-template-columns:1fr;width:100%}
 .page-title .date-controls:has([data-action="new-customer"]) button{width:100%;margin:0}
}

@media(max-width:900px){.topbar-actions{min-width:0}.topbar-actions>.pill{min-width:0;white-space:normal;line-height:1.4}.topbar .mobile-menu{flex:none}}

.guest-digital-card>strong{overflow-wrap:anywhere}

/* Read-only behavioral segments share the existing directory query and cursor. */
.customer-segments{margin:0 24px 20px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(240px,1fr);gap:20px;align-items:start}
.customer-segments>.field{margin:0}
.customer-segments select{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit}
.segment-settings{border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0 14px}
.segment-settings summary{min-height:44px;cursor:pointer;padding:12px 0;color:var(--purple);font-weight:600;font-size:13px}
.segment-settings form{padding:10px 0 16px}
.segment-note{margin:0;padding:0 24px 18px;color:var(--muted);font-size:12px;line-height:1.6}
.customer-link .customer-activity{white-space:normal;max-width:260px;line-height:1.5;margin-top:7px}
@media(max-width:900px){.customer-segments select{font-size:16px}}
@media(max-width:650px){.customer-segments{grid-template-columns:minmax(0,1fr);margin:0 16px 20px;gap:12px}.segment-note{padding:0 16px 18px}.customer-link .customer-activity{font-size:12px}}

#manual-form select{width:100%;min-height:44px;border:1px solid var(--border);border-radius:10px;padding:10px;background:white;color:var(--ink);font:inherit}.manual-result{display:grid;gap:6px;border:1px solid var(--border);border-radius:10px;padding:14px;margin:12px 0;font-size:13px}.manual-result span{line-height:1.5}.customer-dialog [data-manual-card]{margin:12px 0}

.manual-item-row{border:1px solid var(--border);border-radius:10px;padding:14px;margin:12px 0;display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:12px}.manual-item-row .field{margin:0}.manual-item-row .ghost{grid-column:1/-1;justify-self:end}#manual-form>button[data-action="manual-add-item"]{margin-bottom:14px}@media(max-width:650px){.manual-item-row{grid-template-columns:minmax(0,1fr)}}

/* Saved receipt uses the accounting response, including gift-only operations. */
.receipt-summary{margin:22px 0;border:1px solid var(--border);border-radius:14px;padding:0 16px}.receipt-summary>div{display:flex;justify-content:space-between;gap:22px;padding:14px 0;border-bottom:1px solid var(--border)}.receipt-summary>div:last-child{border:0}.receipt-summary dt{font-size:13px;line-height:1.6}.receipt-summary dd{font-size:17px;font-weight:700;flex-shrink:0;margin:0}.receipt-summary>div:nth-child(3) dd{color:var(--accent,#6950ed)}
