/* Merchant workspace: the same paper, mint, typography and controls as the site. */
#appShell{--brand:#0d8378;--brand-bg:#e2f3ef;--ink:#0f201d;--ink-soft:#44605a;--ink-muted:#61766f;--bg-alt:#f6faf8;--border:#d3e2dc;--border-light:#e3ece7;--card:#fff;background:#f6faf8;font-family:'Figtree','Segoe UI',sans-serif;color:var(--ink)}
#appShell input,#appShell button,#appShell select{font-family:inherit}
#appShell .sidebar{background:#edf5f1!important;border-right:1px solid #d3e2dc;box-shadow:none;padding:28px 18px;color:#0f201d}
#appShell .side-brand{display:block;padding:0 12px;margin-bottom:30px}
#appShell .side-brand img{width:150px;height:50px;max-height:none;object-fit:contain}
#appShell .merchant{background:#fff;border:1px solid #d3e2dc;border-radius:16px;padding:14px;gap:10px;margin-bottom:28px}
#appShell .merchant b{color:#0f201d;font-size:14px}#appShell .merchant span{color:#44605a;font-size:12px}
#appShell .merchant-icon{background:#e2f3ef;color:#0a6f66;border-radius:10px}
#appShell .sidebar nav{gap:6px}
#appShell .sidebar nav button,#appShell .logout{min-height:46px;padding:12px 14px;border-radius:12px;color:#44605a;font-size:14px;font-weight:500;background:transparent}
#appShell .sidebar nav button:hover,#appShell .logout:hover{background:#e2f3ef;color:#0a6f66}
#appShell .sidebar nav button.active{background:#0d8378;color:#fff;font-weight:700;box-shadow:none}
#appShell .logout{border-top:1px solid #d3e2dc;border-radius:0;margin-top:auto;color:#0a6f66}
#appShell .app-top{height:78px;padding:0 36px;background:#f6faf8;border-bottom:1px solid #d3e2dc;box-shadow:none;backdrop-filter:none}
#appShell .app-top>div>span{color:#44605a;font-size:14px}
#appShell .app-user{color:#0f201d;font-size:14px}#appShell .avatar{background:#e2f3ef;color:#0a6f66;border:1px solid #c9e9e2}
#appShell .app-home{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;margin-right:12px;border:1px solid #c9e9e2;border-radius:999px;background:#e2f3ef;color:#0a6f66;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer}
#appShell .app-home:hover{background:#c9e9e2}
#appShell .app-home:focus-visible{outline:2px solid #0d8378;outline-offset:3px}
#appShell .app-home svg{width:18px;height:18px;color:inherit;flex-shrink:0}
@media(max-width:700px){#appShell .app-top>div:has(>#appCrumb){display:none}#appShell .app-home{font-size:12px;padding:10px 12px;margin-right:0}#appShell .app-user>.icon-btn{display:none}}
#appShell .settings-view{max-width:1180px;margin:auto;padding:46px 40px 64px;background:#f6faf8;min-height:calc(100dvh - 78px)}
#appShell .settings-view .module-hero{padding:0 0 28px;margin:0 0 24px;border:0;border-bottom:1px solid #d3e2dc;border-radius:0;background:none!important;box-shadow:none!important;color:#0f201d;overflow:visible;align-items:center}
#appShell .settings-view .module-hero::after{display:none}
#appShell .settings-view .dashboard-eyebrow{display:block;margin-bottom:12px;color:#0a6f66!important;font:600 13px/1.5 'Figtree','Segoe UI',sans-serif;text-transform:none;letter-spacing:0}
#appShell .settings-view .module-hero h1{font:700 46px/1.08 'Bricolage Grotesque','Segoe UI',sans-serif;letter-spacing:-.045em;margin:0 0 14px}
#appShell .settings-view .module-hero p{color:#44605a;font-size:16px;line-height:1.6}
#appShell .settings-view .module-hero-badge{background:#e2f3ef;color:#0a6f66;border:1px solid #c9e9e2;border-radius:999px;padding:10px 14px;font-size:12px;white-space:nowrap}
#appShell .settings-tabs{display:flex;gap:8px;flex-wrap:wrap;background:none;padding:0;margin:0 0 26px;border-radius:0}
#appShell .settings-tabs button{min-height:44px;padding:11px 22px;border:1px solid #d3e2dc;border-radius:999px;background:transparent;color:#44605a;font-size:14px;font-weight:600;box-shadow:none}
#appShell .settings-tabs button.active{background:#0d8378;border-color:#0d8378;color:#fff;box-shadow:none}
#appShell .settings-tabs button:hover:not(.active){background:#e2f3ef;color:#0a6f66}
#appShell .settings-panel{padding:30px!important;border:1px solid #d3e2dc;border-radius:22px;background:#fff;box-shadow:none}
#appShell .settings-panel h2,#appShell .settings-panel h3{font-family:'Bricolage Grotesque','Segoe UI',sans-serif;font-size:24px!important;letter-spacing:-.025em;line-height:1.2;margin:0 0 10px;color:#0f201d}
#appShell .settings-panel .settings-description{font-size:14px;color:#44605a;line-height:1.6;margin:0 0 28px;max-width:600px}
#appShell .settings-panel .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px;align-items:start}
#appShell .settings-panel label{display:block;font-size:14px;font-weight:600;line-height:1.5;color:#0f201d;margin:0}
#appShell .settings-panel input:not([type=checkbox]){width:100%;min-height:48px;margin-top:9px;padding:12px 14px;border:1px solid #ccdcd4;border-radius:11px;background:#f6faf8;color:#0f201d;font-size:15px;box-shadow:none}
#appShell .settings-panel input:focus-visible{outline:2px solid #0f8f83;outline-offset:2px;border-color:#0f8f83}
#appShell .settings-panel .locked-input{background:#edf3ef!important;color:#61766f}
#appShell .settings-panel .locked-label{background:#edf3ef;color:#44605a;font-size:10px;text-transform:none;letter-spacing:0;padding:3px 7px}
#appShell .settings-panel .locked-help{font-size:12px;line-height:1.6;color:#61766f;margin-top:8px;overflow-wrap:anywhere}
#appShell .settings-panel .btn{min-height:46px;border-radius:999px;font-size:14px;line-height:1.35;padding:12px 20px;box-shadow:none!important;white-space:normal}
#appShell .settings-panel .btn-primary{background:#0d8378!important;color:#fff!important;border:1px solid #0d8378!important}
#appShell .settings-panel .btn-primary:hover{background:#0a6f66!important}
#appShell .settings-panel .btn-secondary{background:#fff;border:1px solid #ccdcd4;color:#0a6f66}
#appShell .settings-panel #saveSettings{margin-top:30px!important}
#appShell .settings-panel .settings-plan-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
#appShell .settings-plan-grid>div{min-width:0!important;padding:24px!important;border:1px solid #d3e2dc!important;border-radius:18px!important;background:#f6faf8!important;color:#0f201d!important}
#appShell .settings-plan-grid>div:last-child{background:#e2f3ef!important}
#appShell .settings-plan-grid h4{font-family:'Bricolage Grotesque','Segoe UI',sans-serif}
#appShell .settings-plan-grid>div:last-child>div:first-child{display:none}
#appShell .settings-plan-head{gap:16px;flex-wrap:wrap}
#appShell .settings-panel .danger-zone{padding:24px;border:1px solid #eed5d2;background:#fff9f8;border-radius:16px;margin-top:0}
#appShell .settings-panel .danger-zone h3{color:#9c3831}
#appShell .settings-panel .danger-zone p{font-size:14px;line-height:1.6;color:#78504b}
#appShell .settings-panel .danger-zone label{margin-top:16px}
#appShell .settings-panel .delete-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px}
#appShell .settings-panel input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:#0d8378;margin:2px 0 0}
#appShell :focus-visible{outline:3px solid #0f8f83;outline-offset:3px}
@media(max-width:1000px){#appShell .settings-view{padding:32px 24px 48px}#appShell .settings-panel .settings-plan-grid{grid-template-columns:1fr}}
@media(max-width:700px){#appShell .app-top{height:66px;padding:0 20px}#appShell .settings-view{padding:28px 18px 42px}#appShell .settings-view .module-hero{align-items:flex-start;gap:18px}#appShell .settings-view .module-hero h1{font-size:36px}#appShell .settings-view .module-hero p{font-size:15px}#appShell .settings-panel{padding:22px 18px!important;border-radius:18px}#appShell .settings-panel .form-grid{grid-template-columns:1fr;gap:20px}#appShell .settings-panel .form-grid>div:empty{display:none}#appShell .settings-tabs{gap:6px}#appShell .settings-tabs button{padding:10px 15px;font-size:13px}#appShell .settings-panel #saveSettings{width:100%}#appShell .settings-panel .danger-zone{padding:18px}#appShell .settings-panel .settings-plan-grid>div{padding:18px!important}#appShell .settings-panel h3{font-size:22px!important}}

/* iPhone 13 / narrow mobile: keep the workspace usable without horizontal bleed. */
@media (max-width: 600px) {
  #appShell { min-height: 100svh; overflow-x: clip; }
  #appShell .sidebar {
    width: min(286px, calc(100vw - 48px));
    padding: 22px 16px;
    box-shadow: 18px 0 42px rgba(15, 32, 29, .14);
  }
  #appShell .side-brand { width: 100%; margin-bottom: 22px; padding-inline: 4px; }
  #appShell .side-brand img { width: 142px; }
  #appShell .merchant { margin-bottom: 20px; }
  #appShell .app-top { height: 64px; padding-inline: 14px; }
  #appShell .app-home { max-width: 188px; overflow: hidden; text-overflow: ellipsis; }
  #appShell .view { width: 100%; padding: 20px 14px 48px; }
  #appShell .module-hero,
  #appShell .dashboard-welcome,
  #appShell .customers-hero { width: 100%; min-width: 0; }
  #appShell .module-hero h1,
  #appShell .dashboard-welcome h1,
  #appShell .customers-hero h1 { font-size: clamp(28px, 9vw, 36px); overflow-wrap: anywhere; }
  #appShell .panel,
  #appShell .settings-panel,
  #appShell .reward-card { min-width: 0; max-width: 100%; }
  #appShell .panel-heading-row,
  #appShell .subscription-heading { flex-wrap: wrap; }
  #appShell .data-table { min-width: 680px; }
  #appShell .dashboard-transactions,
  #appShell .module-directory,
  #appShell .customer-directory { max-width: 100%; overflow-x: auto !important; }
}
/* Shared Fidelyxa direction across every merchant view. */
#appShell .app-main,#appShell #viewContainer,#appShell .view{background:#f6faf8}
#appShell .view{max-width:1440px;margin-inline:auto;padding:38px 32px 64px;min-width:0}
#appShell :is(.dashboard-welcome,.customers-hero,.module-hero){background:#e2f3ef!important;color:#0f201d;border:1px solid #c9e9e2;border-radius:24px;box-shadow:none!important;padding:30px 32px;margin-bottom:24px;gap:24px}
#appShell :is(.dashboard-welcome,.customers-hero,.module-hero)::after{display:none}
#appShell :is(.dashboard-welcome,.customers-hero,.module-hero) h1{font:700 clamp(30px,3vw,42px)/1.1 'Bricolage Grotesque',sans-serif;letter-spacing:-.04em;color:#0f201d}
#appShell :is(.dashboard-welcome,.customers-hero,.module-hero) p{font-size:15px;line-height:1.65;color:#44605a}
#appShell .dashboard-welcome p strong{color:#0a6f66}
#appShell .dashboard-eyebrow{font:600 13px/1.5 'Figtree',sans-serif;letter-spacing:0;text-transform:none;color:#0a6f66;margin-bottom:12px}
#appShell .btn{border-radius:999px;min-height:44px;font:650 14px/1.3 'Figtree',sans-serif;box-shadow:none!important;padding:11px 18px}
#appShell :is(.btn-primary,.dashboard-btn-solid){background:#0d8378!important;color:#fff!important;border:1px solid #0d8378}
#appShell :is(.btn-primary,.dashboard-btn-solid):hover{background:#0a6f66!important}
#appShell :is(.btn-secondary,.btn-ghost,.dashboard-btn-light){background:#fff!important;color:#0a6f66!important;border:1px solid #d3e2dc}
#appShell :is(.panel,.kpi,.customer-stats article,.module-stats article,.reward-card){border:1px solid #d3e2dc;border-radius:20px;background:#fff;box-shadow:none!important}
#appShell :is(.kpi,.customer-stats article,.module-stats article,.reward-card){padding:22px;min-width:0}
#appShell :is(.kpi-grid,.customer-stats,.module-stats,.reward-grid){gap:16px;margin-bottom:24px}
#appShell :is(.kpi-header small,.customer-stats small,.module-stats small){font-size:13px;line-height:1.4;color:#44605a}
#appShell :is(.kpi-value strong,.customer-stats strong,.module-stats strong){font:700 30px/1.2 'Bricolage Grotesque',sans-serif;color:#0f201d;letter-spacing:-.03em}
#appShell :is(.customer-stats em,.module-stats span,.delta){font-size:11px}
#appShell :is(.customer-stat-icon.violet,.customer-stat-icon.blue,.customer-avatar,.table-person>span,.kpi-icon,.reward-card-icon){background:#e2f3ef!important;color:#0a6f66}
#appShell :is(.panel-heading-row h3,.dashboard-section-head h2,.customer-directory-head h2,.module-directory-head h2,.reward-card h2){font:700 21px/1.2 'Bricolage Grotesque',sans-serif;letter-spacing:-.025em}
#appShell :is(.panel-heading-row p,.dashboard-section-head p,.customer-directory-head p,.module-directory-head p,.reward-card>p){font-size:13px;line-height:1.6;color:#61766f}
#appShell .data-table{font-size:14px}
#appShell .data-table th{font:600 12px/1.4 'Figtree',sans-serif;text-transform:none;letter-spacing:0;background:#f6faf8;color:#44605a;padding:16px}
#appShell .data-table td{font-size:14px;padding:18px 16px;border-color:#e3ece7}
#appShell .data-table tbody tr:hover{background:#f6faf8}
#appShell :is(.customer-identity small,.customer-identity em,.customer-progress small,.customer-activity small){font-size:11px;line-height:1.5}
#appShell :is(.customer-identity b,.customer-progress strong,.customer-activity b){font-size:13px}
#appShell :is(.badge,.customer-status){font-size:11px;padding:5px 9px}
#appShell :is(.customer-search input,.customer-tools select){font-size:14px;min-height:44px}
#appShell .customer-search{margin:0}
#appShell :is(.member-bar>span,.health-track i){background:#0d8378!important;box-shadow:none}
#appShell :is(.member-bar strong,.member-bar small,.chart-y-axis span,.health-metric small,.chart-total span,.health-summary span){font-size:11px}
#appShell .health-metric>div:first-child{font-size:13px}
#appShell .reward-card-metrics small{font-size:12px}
#appShell .reward-card-metrics strong{font:700 17px/1.4 'Figtree',sans-serif}
#appShell .scanner-camera-panel{background:#e2f3ef!important;border-color:#c9e9e2!important;min-width:0}
#appShell .scanner-camera-shade,#appShell .scanner-grid-bg{display:none}
#appShell .scanner-viewfinder{background:#fff!important;border:2px solid #7abdaf!important;box-shadow:none!important;width:min(290px,100%)!important}
#appShell :is(.scanner-placeholder,.scanner-status-badge,.scanner-empty-steps,.scanner-balance-card){background:#f6faf8!important;border-color:#c9e9e2!important;color:#0a6f66;box-shadow:none}
#appShell .scanner-placeholder{font-size:12px}
#appShell .scanner-view .scanner-customer-panel>div:first-child,#appShell .scanner-empty-steps b{background:#e2f3ef!important;color:#0a6f66}
#appShell .scanner-empty-copy h2{font:700 24px/1.2 'Bricolage Grotesque',sans-serif}
#appShell .scanner-empty-copy p{font-size:14px}
#appShell .scanner-empty-steps{font-size:11px;flex-wrap:wrap}
#appShell .scanner-camera-panel::before{white-space:pre-line;right:24px;font-size:13px}
#appShell .scanner-camera-panel::after{right:24px;font-size:11px}
#appShell .employees-view .module-directory,#appShell .dashboard-transactions{overflow-x:auto}
#appShell .settings-view{max-width:1180px}
#appShell .settings-view .module-hero{padding:0 0 28px;border-radius:0;border:0;border-bottom:1px solid #d3e2dc}
#appShell .dc-editor{max-width:1440px}
#appShell button:focus-visible{outline:2px solid #0d8378;outline-offset:3px}
@media(max-width:1100px){
 #appShell :is(.dashboard-welcome,.customers-hero,.module-hero){align-items:flex-start;flex-direction:column}
 #appShell .dashboard-actions{justify-content:flex-start}
 #appShell .dashboard-main-grid,#appShell .scanner-layout-clean{grid-template-columns:1fr}
 #appShell .customer-directory-head{align-items:flex-start;flex-direction:column}
 #appShell .reward-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 #appShell .view{padding:24px 16px 48px}
 #appShell :is(.dashboard-welcome,.customers-hero,.module-hero){padding:24px 20px;border-radius:20px;gap:20px}
 #appShell :is(.kpi-grid,.customer-stats,.module-stats,.reward-grid){grid-template-columns:1fr}
 #appShell .customer-tools{width:100%;flex-direction:column}
 #appShell .customer-search{min-width:0;width:100%}
 #appShell .customer-tools select{width:100%}
 #appShell .dashboard-actions{width:100%}
 #appShell .dashboard-actions .btn{width:100%}
 #appShell .scanner-actions-disabled{grid-template-columns:1fr}
 #appShell .scanner-camera-panel{padding:108px 20px 65px!important}
 #appShell .scanner-viewfinder{height:230px!important}
 #appShell .module-directory-head{align-items:flex-start;gap:16px;flex-wrap:wrap}
 #appShell .settings-view .module-hero{padding:0 0 24px}
}
#appShell .dashboard-eyebrow{color:#0a6f66!important}
#appShell .customer-progress>span{background:#e2f3ef}
#appShell .customer-progress>span i{background:#0d8378}
#appShell .customer-progress{width:210px}
#appShell .scanner-view .scanner-balance-card>div:nth-child(3)>div{background:#0d8378!important}
:is(#customerModal,#rewardModal) .modal-card{background:#f6faf8;border:1px solid #d3e2dc;border-radius:24px;box-shadow:0 24px 64px #0f201d26;font-family:'Figtree',sans-serif}
:is(#customerModal,#rewardModal) h2{font-family:'Bricolage Grotesque',sans-serif;color:#0f201d}
:is(#customerModal,#rewardModal) .checkout-eyebrow{color:#0a6f66;letter-spacing:0;text-transform:none}
:is(#customerModal,#rewardModal) input,:is(#customerModal,#rewardModal) select{border-color:#d3e2dc;background:#fff;font-size:16px;min-height:44px}
:is(#customerModal,#rewardModal) input[type=checkbox]{min-height:0}
:is(#customerModal,#rewardModal) .btn{border-radius:999px;box-shadow:none}
#appShell .customer-directory{min-width:0;max-width:100%;overflow:hidden!important}
#appShell .customer-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overscroll-behavior-x:contain}
#appShell .customer-table-wrap{position:relative;contain:layout paint}
/* Unavailable rewards remain readable and can always be reactivated. */
#appShell .reward-card.is-disabled{background:#eef2f0;border:1px dashed #9dacA6;box-shadow:none}
#appShell .reward-card.is-disabled .reward-card-icon{background:#dce3df!important;color:#65766e}
#appShell .reward-card.is-disabled h2{color:#506158}
#appShell .reward-card.is-disabled .reward-card-metrics{background:#f6faf8}
#appShell .reward-disabled-badge{background:#e0e5e2;color:#394e44;border:1px solid #acbab2;font-weight:700;gap:7px}
#appShell .reward-card.is-disabled .reward-toggle{background:#fff!important;border:1px solid #0d8378;color:#0a6f66!important}
.employee-meta{display:block;max-width:340px;font-size:12px;line-height:1.65;color:#61766f;margin-top:6px}
.employee-actions{display:flex;gap:8px;flex-wrap:wrap}
.employee-protected{font-size:12px;background:#e2f3ef;color:#0a6f66;padding:8px 12px;border-radius:999px;white-space:nowrap}
.employee-demo-note{font-size:13px;line-height:1.6;color:#61766f;margin:0 0 22px}
#appShell .employee-delete{border:1px solid #e8bcb8;background:#fff5f3!important;color:#9b3027!important}
.employee-dialog{padding:30px;border:1px solid #d3e2dc;border-radius:24px;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;color:#0f201d;background:#f6faf8;box-shadow:0 24px 70px #0f201d33;font-family:'Figtree',sans-serif}
.employee-dialog::backdrop{background:#0f201d80}
.employee-dialog h2{font:700 28px/1.15 'Bricolage Grotesque',sans-serif;margin:0 0 16px}
.employee-dialog p{line-height:1.6}
.employee-dialog fieldset{border:1px solid #d3e2dc;border-radius:16px;padding:16px;margin:24px 0}
.employee-dialog legend{font-weight:700;padding:0 6px}
.employee-dialog .employee-right{display:flex;align-items:center;gap:12px;padding:10px 0;margin:0;font-size:15px}
.employee-right input{width:20px;height:20px;accent-color:#0d8378;flex-shrink:0}
.employee-name input{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid #d3e2dc;border-radius:12px;font-size:16px}
.employee-dialog-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.employee-dialog-error{color:#9b3027}
#employeeFeedback{color:#0a6f66;font-size:14px}
@media(max-width:700px){.employee-dialog{padding:22px}.employee-dialog-actions .btn{width:100%}}
#appShell .demo-subscription{padding:30px!important}
.subscription-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:26px}
.subscription-heading p,.subscription-grid p{font-size:14px;line-height:1.6;color:#44605a}
.subscription-state{flex-shrink:0;padding:8px 14px;border-radius:999px;background:#e2f3ef;color:#0a6f66;font-weight:700;font-size:13px}
.subscription-state.is-cancelled{background:#eee4df;color:#874331;border:1px solid #dcc4b9}
.subscription-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.subscription-grid article{padding:24px;border:1px solid #d3e2dc;border-radius:20px;background:#f6faf8;min-width:0}
.subscription-grid .subscription-upgrade{background:#e2f3ef}
.subscription-grid h3{font:700 24px/1.2 'Bricolage Grotesque',sans-serif;margin:0 0 16px}
.subscription-price{font:700 28px/1.2 'Bricolage Grotesque',sans-serif}
.subscription-price small{font:400 14px 'Figtree',sans-serif}
.subscription-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.subscription-feedback{color:#0a6f66;min-height:20px;margin:18px 0 0}
.subscription-form>label{display:grid;gap:8px;margin:20px 0;font-size:15px}
.subscription-form select{width:100%;min-height:46px;padding:10px;border:1px solid #d3e2dc;border-radius:12px;background:#fff;font-size:16px}
.subscription-summary{padding:16px;background:#e2f3ef;border-radius:12px;color:#0a6f66}
@media(max-width:800px){.subscription-grid{grid-template-columns:1fr}.subscription-heading{flex-direction:column}#appShell .demo-subscription{padding:22px!important}}
