/* Shared component contract: program modules, checkout desk and member card. */
:is(.lm-shell,.lm-pos-body,.lm-member-body,.lm-access-body){--ui-line:#e3e7ef;--ui-muted:#687184;--ui-radius:20px;--ui-control:48px;--ui-shadow:0 6px 24px #18223805}
:is(.lm-shell,.lm-pos-body,.lm-member-body,.lm-access-body) *{box-sizing:border-box}
:is(.lm-shell,.lm-pos-body,.lm-member-body) :is(h1,h2,h3,strong,a,span,p){overflow-wrap:break-word}
:is(.lm-shell,.lm-pos-body,.lm-member-body) :is(h1,h2,h3){text-wrap:balance}
:is(.lm-shell,.lm-pos-body,.lm-member-body) .btn{min-height:var(--ui-control);display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 18px;line-height:1.3;font-size:14px;font-weight:650;text-align:center;white-space:normal;margin-bottom:0;border-radius:var(--brand-button-radius,12px);max-width:100%;text-decoration:none}
:is(.lm-shell,.lm-pos-body,.lm-member-body) .btn:not(.white):not(.secondary):not(.danger){background:var(--brand-primary,#191d47);color:var(--brand-primary-ink,#fff);border-color:transparent}
:is(.lm-shell,.lm-pos-body,.lm-member-body) .btn.white{color:var(--ink,#252938);background:#fff;border:1px solid var(--ui-line)}
:is(.lm-shell,.lm-pos-body,.lm-member-body) .btn:disabled{opacity:.45;cursor:not-allowed}
:is(.lm-shell,.lm-pos-body,.lm-member-body) :is(button,a,input,select,textarea):focus-visible{outline:3px solid color-mix(in srgb,var(--brand-primary,#191d47) 45%,transparent);outline-offset:3px}
:is(.lm-shell,.lm-pos-body,.lm-member-body) .lm-panel{border-radius:var(--brand-card-radius,var(--ui-radius));box-shadow:var(--ui-shadow);border-color:var(--ui-line)}
.lm-shell .lm-heading{align-items:flex-end;margin-bottom:24px}.lm-shell .lm-heading>div{min-width:0}.lm-shell .lm-heading h1{font-size:clamp(28px,3vw,38px);line-height:1.15;margin:8px 0 0;letter-spacing:-1.1px}.lm-shell .lm-heading>.btn{flex-shrink:0}
:is(.lm-shell,.lm-pos-body) .lm-field{display:flex;flex-direction:column;align-items:stretch;gap:7px;min-width:0;margin:0 0 20px}
:is(.lm-shell,.lm-pos-body) .lm-field>label{font-size:13px;line-height:1.4;font-weight:650;margin:0}
:is(.lm-shell,.lm-pos-body) .lm-field>small{display:block;font-size:12px;line-height:1.55;font-weight:400;color:var(--ui-muted);margin:0}
:is(.lm-shell,.lm-pos-body) .lm-field> :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=color]),select){min-height:var(--ui-control);height:auto;width:100%;max-width:100%;min-width:0;padding:11px 14px;font-size:15px;border:1px solid var(--ui-line);border-radius:12px;background-color:#fff;color:var(--ink,#252938);margin:0;line-height:1.45}
:is(.lm-shell,.lm-pos-body) .lm-field>select{padding-right:38px;background-position:right 14px center}
:is(.lm-shell,.lm-pos-body) .lm-field>textarea{width:100%;min-height:104px;max-width:100%;padding:12px 14px;resize:vertical;border-radius:12px;border:1px solid var(--ui-line);font:inherit}
:is(.lm-shell,.lm-pos-body) :is(.lm-form-actions,.lm-setup-actions){display:flex;align-items:stretch;gap:12px;flex-wrap:wrap;margin-top:24px}
:is(.lm-shell,.lm-pos-body) :is(.lm-form-actions,.lm-setup-actions)>.btn{margin:0;flex:1}
.lm-shell .lm-list-row{gap:16px;min-width:0}.lm-shell .lm-list-row>span:first-child{min-width:0}.lm-shell .lm-list-row small{line-height:1.5}
.lm-shell .lm-setup-complete{padding:20px 24px;background:linear-gradient(110deg,var(--brand-soft,#f5f6fa),#fff);margin-bottom:24px}.lm-shell .lm-setup-complete .lm-eyebrow{display:none}.lm-shell .lm-setup-complete h2{font-size:18px;margin:0 0 6px}.lm-shell .lm-setup-complete p{font-size:12px;margin:0}.lm-shell .lm-setup-complete>.btn{background:#fff!important;color:var(--ink,#252938)!important;border:1px solid var(--ui-line)!important}
.lm-shell .lm-stats{gap:16px}.lm-shell .lm-stats>.lm-panel{padding:20px 24px;min-height:116px}.lm-shell .lm-stats strong{font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums}.lm-shell .lm-stats span{font-size:13px}
.lm-operating{margin:0 0 26px}.lm-operating .lm-section-title{margin-top:0}.lm-operating .lm-section-title>div{display:grid;gap:7px}.lm-operating h2{font-size:21px}.lm-period{font-size:12px;color:var(--ui-muted);white-space:nowrap}
.lm-operating-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.lm-metric{position:relative;background:#fff;border:1px solid var(--ui-line);border-radius:var(--ui-radius);padding:22px;display:flex;flex-direction:column;gap:9px;min-width:0;box-shadow:var(--ui-shadow)}.lm-metric>span:not(.lm-metric-icon){font-size:13px;color:var(--ui-muted);padding-right:28px}.lm-metric>strong{font-size:36px;line-height:1.15;letter-spacing:-1px;font-variant-numeric:tabular-nums;color:var(--ink,#252938)}.lm-metric em{font-size:20px;font-style:normal;margin-left:3px}.lm-metric small{font-size:11px;line-height:1.5;color:var(--ui-muted);margin-top:auto}.lm-metric-icon{position:absolute;top:20px;right:18px;color:var(--lm-action-text,#343a52)}.lm-metric-icon svg{width:20px;height:20px}.lm-operating-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--ui-muted);padding:16px 0 0}.lm-operating-footer a{display:inline-flex;gap:8px;align-items:center;color:var(--ink,#252938);font-weight:600}.lm-operating-footer svg{width:18px;height:18px}
.lm-pos-body .lm-heading{align-items:flex-end}.lm-pos-body .lm-heading>form{display:flex;align-items:flex-end;margin:0 0 0 auto}.lm-pos-body .lm-heading>form .lm-field{margin-bottom:0;min-width:180px}.lm-pos-body .lm-heading>.lm-pos-mode-switch{height:48px;min-height:48px;margin:0;align-self:flex-end}.lm-pos-body .lm-pos-workspace>.lm-panel{margin-bottom:0}.lm-pos-body .lm-pos-product{transition:border-color .15s,background-color .15s;min-height:150px}.lm-pos-body .lm-pos-product img{width:80px;height:72px}.lm-pos-body .lm-pos-product strong{font-size:14px;line-height:1.4}.lm-pos-body .lm-pos-product:focus-visible{outline-offset:2px}.lm-pos-body .lm-quantity-control{height:48px}.lm-pos-body .lm-quantity-control input{height:38px;min-height:38px}.lm-pos-body .lm-quantity-control button{height:38px;width:38px}.lm-pos-body .lm-cart-line{align-items:center}.lm-pos-body .lm-pos-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.lm-pos-body .lm-pos-steps>*{font-size:12px;text-align:center;padding:9px 6px;line-height:1.35;border-radius:10px;background:#f4f5f8}.lm-pos-body .lm-pos-steps>strong{background:var(--brand-soft,#edf1f8);color:var(--lm-action-text,#252938)}
.lm-shell .lm-program-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;background:#eef0f5;border-radius:14px;margin-bottom:24px}.lm-shell .lm-program-tabs button{margin:0;border:0;min-height:44px;border-radius:10px;font-size:13px;font-weight:600;padding:10px;background:transparent;color:var(--ui-muted)}.lm-shell .lm-program-tabs button[aria-selected=true]{background:#fff;color:var(--ink,#252938);box-shadow:0 2px 8px #1822380a}
.lm-member-body .lm-member-reward{transition:box-shadow .15s,border-color .15s}.lm-member-body .lm-member-reward:focus-visible,.lm-member-body .lm-member-reward:hover{border-color:var(--brand-primary,#191d47);box-shadow:0 6px 20px #18223808}.lm-member-body .lm-member-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom));grid-template-rows:1fr}.lm-member-body .lm-member-nav>a{min-width:0;white-space:nowrap}.lm-member-body .lm-member-nav span{white-space:nowrap;line-height:1.3}.lm-member-body .lm-member-header{align-items:center}.lm-member-body .lm-member-profile .lm-profile-identity{align-items:center}.lm-member-body .lm-profile-identity :is(p,strong){overflow-wrap:anywhere}.lm-member-body .lm-member-qr{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto;padding:28px;border-radius:24px}.lm-member-body .lm-member-qr>img{max-width:100%;height:auto;aspect-ratio:1}.lm-member-body .lm-member-qr>.lm-icon-button{min-width:44px;min-height:44px}.lm-member-body .lm-selected-pickup .btn{margin-top:6px}
.lm-access-body .lm-access-card{width:100%;max-width:520px}.lm-access-body .lm-field>input{font-size:16px}.lm-access-body .lm-access-card form{min-width:0}.lm-access-body .lm-access-card :is(.btn,button[type=submit]){min-height:48px;line-height:1.3}.lm-access-body .lm-access-card .lm-check input{flex:0 0 20px;margin-top:2px}.lm-access-body .lm-access-card .lm-check{display:flex;align-items:flex-start;gap:12px}.lm-access-body .lm-access-card .lm-check span{font-size:13px;line-height:1.6}
.lm-materials-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,420px);gap:28px;align-items:start}.lm-materials-steps{padding-left:20px;line-height:1.7;font-size:14px}.lm-materials-steps li{padding:6px 0}.lm-materials-address{padding-top:24px;margin-top:24px;border-top:1px solid var(--ui-line);display:grid;gap:8px;font-size:12px}.lm-materials-address span{color:var(--ui-muted)}.lm-materials-address a{overflow-wrap:anywhere}.lm-counter-card{background:#fff;border:1px solid var(--ui-line);border-radius:24px;text-align:center;padding:32px;display:flex;flex-direction:column;align-items:center;box-shadow:0 18px 50px #18223808}.lm-counter-brand{margin-bottom:22px}.lm-counter-brand img{max-width:160px;max-height:58px;object-fit:contain}.lm-counter-card h2{font-size:34px;line-height:1.12;letter-spacing:-1px;margin:14px 0;color:var(--ink,#252938)}.lm-counter-card>p{font-size:14px;line-height:1.65;color:var(--ui-muted);margin:0 0 18px}.lm-counter-qr{width:min(100%,240px);height:auto;aspect-ratio:1;display:block;margin:0 auto 14px}.lm-counter-card>strong{font-size:19px}.lm-counter-card>small{font-size:12px;color:var(--ui-muted);margin:5px 0 22px}.lm-counter-card footer{display:flex;gap:10px;align-items:center;justify-content:center;border-radius:12px;background:var(--brand-soft,#eff1f8);padding:14px;font-size:11px;width:100%;color:var(--ink,#252938)}.lm-counter-card footer svg{width:22px;height:22px;flex-shrink:0}
@media(min-width:701px) and (max-width:1200px){.lm-operating-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-shell .lm-settings-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-shell .lm-settings-groups>.lm-panel:last-child{grid-column:1/-1}.lm-pos-body .lm-pos-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,1fr);gap:18px}.lm-pos-body .lm-pos-workspace>.lm-customer-select{grid-column:2;grid-row:1}.lm-pos-body .lm-pos-workspace>.lm-purchase-panel{grid-column:1;grid-row:1}.lm-pos-body .lm-pos-workspace:not(:has([data-purchase-form])){display:block}.lm-pos-body .lm-pos-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-materials-workspace{grid-template-columns:1fr 1fr;gap:20px}.lm-counter-card{padding:24px}.lm-counter-card h2{font-size:28px}}
@media(max-width:700px){.lm-shell .lm-heading{flex-wrap:wrap;align-items:center;gap:16px}.lm-shell .lm-heading>div{flex:1 1 100%}.lm-shell .lm-heading>.btn{width:100%}.lm-shell .lm-panel{padding:20px;border-radius:18px;margin-bottom:18px}.lm-shell .lm-setup-complete{gap:16px}.lm-operating-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lm-metric{padding:18px 15px;border-radius:18px;gap:8px}.lm-metric-icon{top:17px;right:13px}.lm-metric>span:not(.lm-metric-icon){font-size:11px;padding-right:20px;min-height:30px}.lm-metric>strong{font-size:30px}.lm-metric small{font-size:10px;line-height:1.5}.lm-operating .lm-section-title{align-items:flex-start;gap:12px;flex-direction:column}.lm-operating-footer{font-size:11px}.lm-shell .lm-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lm-shell .lm-stats>.lm-panel{min-height:105px;margin:0;padding:18px}.lm-shell .lm-stats strong{font-size:26px}.lm-shell .lm-stats span{font-size:11px}.lm-shell .lm-stats{margin-bottom:22px}.lm-shell .lm-program-tabs{gap:3px;padding:4px}.lm-shell .lm-program-tabs button{padding:10px 4px;font-size:11px;min-height:44px}.lm-shell .lm-list-row{flex-wrap:wrap;gap:12px}.lm-shell .lm-list-row>.btn{margin:0}.lm-pos-body .lm-heading>form{flex-basis:100%;width:100%;margin:0}.lm-pos-body .lm-heading>form .lm-field{width:100%}.lm-pos-body .lm-heading>.lm-pos-mode-switch{height:48px;min-height:48px}.lm-pos-body .lm-pos-workspace{display:flex;gap:16px}.lm-pos-body .lm-pos-steps>*{font-size:11px;padding:9px 5px}.lm-pos-body .lm-pos-product{min-height:140px;padding:14px 10px}.lm-pos-body .lm-purchase-panel{padding-bottom:22px}.lm-pos-body .lm-customer-select .lm-summary{grid-column:1/-1;margin:0;font-size:13px}.lm-pos-body .lm-customer-select .lm-summary strong{font-size:22px}.lm-member-body .lm-member-app{padding:20px 16px calc(100px + env(safe-area-inset-bottom))}.lm-member-body .lm-member-home-grid{gap:24px}.lm-member-body .lm-member-reward{grid-template-columns:48px minmax(0,1fr);gap:5px 12px;padding:14px;min-height:96px}.lm-member-body .lm-member-reward>img,.lm-member-body .lm-member-reward>.lm-reward-symbol{width:48px;height:48px;grid-row:1/3}.lm-member-body .lm-member-reward>span:nth-child(2){grid-column:2}.lm-member-body .lm-member-reward .lm-reward-state{grid-column:2;justify-self:start;margin-top:3px;padding:5px 8px;font-size:10px}.lm-member-body .lm-member-actions{gap:10px}.lm-member-body .lm-member-actions .lm-show-code{min-height:54px;font-size:15px}.lm-access-body .lm-access-main{padding:70px 20px 28px}.lm-access-body .lm-access-card{padding:0;border:0;box-shadow:none}.lm-materials-workspace{grid-template-columns:1fr;gap:20px}.lm-counter-card{max-width:420px;width:100%;margin:auto;padding:28px}.lm-counter-card h2{font-size:32px}}
@media(prefers-reduced-motion:reduce){:is(.lm-shell,.lm-pos-body,.lm-member-body) *{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A5 portrait;margin:10mm}body:has(.lm-counter-card){background:#fff!important}body:has(.lm-counter-card) :is(.sidebar,.topbar,.mobile-nav,.page-footer,.lm-no-print,body>header,body>nav,body>aside,.account-footer){display:none!important}body:has(.lm-counter-card) :is(.app-shell,.main-wrap,.main,.content,.content-wrap,main,.lm-shell){margin:0!important;padding:0!important;width:100%!important;max-width:none!important;min-height:0!important}body:has(.lm-counter-card) .lm-materials-workspace{display:block}body:has(.lm-counter-card) .lm-counter-card{border:1px solid #ddd;box-shadow:none;max-width:128mm;margin:0 auto;padding:10mm;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}body:has(.lm-counter-card) .lm-counter-qr{width:65mm;height:65mm}body:has(.lm-counter-card) .lm-counter-card footer{background:#f3f4f8!important}body:has(.lm-counter-card)>footer{display:none!important}}
.lm-operating .lm-operating-footer{margin:0;padding:16px 0 0;border:0;min-height:0;background:transparent}.lm-shell .lm-stats:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}.lm-pos-body .lm-pos-main .lm-heading label{text-align:left}.lm-pos-body .lm-pos-main .lm-heading form{align-self:flex-end}
@media(max-width:700px){.lm-pos-body .lm-pos-main .lm-pos-ready-actions{grid-template-columns:1fr}.lm-pos-body .lm-pos-ready-actions .btn{min-height:54px;flex-direction:row}.lm-shell .lm-stats:has(>:nth-child(3):last-child)>.lm-panel{padding:14px 12px;min-height:104px}.lm-shell .lm-stats:has(>:nth-child(3):last-child) span{font-size:10px;line-height:1.4}}
.lm-pos-body .lm-pos-main .lm-cart-lines:empty{display:none;margin:0}.lm-pos-body .lm-pos-main .lm-cart-total{margin:12px 0 0}.lm-pos-body .lm-pos-main .lm-field:has([name=receipt]){grid-column:1/-1}.lm-pos-body .lm-pos-main .lm-form-grid{row-gap:0}.lm-pos-body .lm-pos-main .lm-heading .lm-field{text-align:left}.lm-pos-body .lm-pos-product{min-height:136px}.lm-pos-body .lm-pos-product img{width:72px;height:64px}
.lm-shell .lm-image-upload{display:grid;gap:12px;min-width:0;width:100%}.lm-shell .lm-image-upload-current{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px;border:1px solid var(--ui-line);border-radius:12px;background:#f8f9fc}.lm-shell .lm-image-upload-current img{width:64px;height:52px;object-fit:contain;background:#fff;border-radius:8px}.lm-shell .lm-image-upload-current span{font-size:12px;color:var(--ui-muted)}.lm-shell .lm-image-upload-current.is-removing img{opacity:.3}.lm-shell .lm-image-remove{margin-left:auto;background:#fff;border:1px solid var(--ui-line);border-radius:8px;min-height:38px;padding:8px 12px;font:inherit;font-size:12px;color:#a83248;cursor:pointer}.lm-shell .lm-image-upload input[type=file]{font-size:12px;width:100%;min-width:0;padding:10px;background:#f8f9fc;border:1px solid var(--ui-line);border-radius:12px}.lm-shell .lm-image-upload input[type=file]::file-selector-button{padding:8px 10px;border:0;border-radius:8px;background:#fff;margin-right:8px;font:inherit}.lm-shell .lm-field :is(a,label){max-width:100%;overflow-wrap:anywhere}.lm-counter-card footer{margin:0}
.lm-shell .lm-form>.lm-check~button.btn{margin-top:24px}.lm-shell .lm-section-title{flex-wrap:wrap;align-items:center}.lm-shell .lm-section-title>.btn{margin-left:auto}.lm-shell .lm-section-title h2{margin-bottom:0}.lm-shell .lm-check{align-items:flex-start;gap:12px;line-height:1.5}.lm-shell .lm-check input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;margin:2px 0 0}
@media(max-width:500px){.lm-shell .lm-section-title>.btn{width:100%;margin-left:0}.lm-shell .lm-settings-row{padding:17px 0}.lm-shell .lm-image-upload-current{gap:10px}}
.lm-member-body .lm-member-header{background:#fff;border:1px solid var(--ui-line);border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin:0 0 22px;min-height:86px;background-image:none!important}.lm-member-body .lm-member-header>div{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.lm-member-body .lm-member-header img{display:block;width:50px;height:50px;object-fit:contain;border-radius:12px;background:#f8f9fb;padding:5px;flex:0 0 50px;margin:0}.lm-member-body .lm-member-header>div>div{min-width:0}.lm-member-body .lm-member-header h1{font-size:24px;line-height:1.2;margin:0 0 5px;letter-spacing:-.5px}.lm-member-body .lm-member-header p{font-size:12px;line-height:1.45;color:var(--ui-muted);margin:0}.lm-member-body .lm-member-header>.lm-icon-button{width:44px;height:44px;min-height:44px;min-width:44px;margin:0;flex:0 0 44px;border:1px solid var(--ui-line);border-radius:12px;padding:10px;background:#fff}.lm-member-body .lm-member-profile .lm-profile-identity{display:flex;align-items:center;gap:16px;margin:0 0 22px;padding:0 0 22px;border-bottom:1px solid var(--ui-line)}.lm-member-body .lm-profile-identity h2{font-size:23px;line-height:1.25;margin:0 0 8px}.lm-member-body .lm-profile-identity small{font-size:12px;line-height:1.4;color:var(--ui-muted)}.lm-member-body .lm-profile-identity strong{display:block;font-size:15px;line-height:1.5;letter-spacing:.06em;margin-top:5px}.lm-member-body .lm-profile-identity .lm-person-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:grid;place-items:center}.lm-member-body .lm-profile-identity .lm-person-avatar svg{width:24px;height:24px}
@media(max-width:700px){.lm-member-body .lm-member-header{padding:16px;gap:12px;margin-bottom:18px;border-radius:18px;min-height:80px}.lm-member-body .lm-member-header img{width:44px;height:44px;flex-basis:44px;padding:4px}.lm-member-body .lm-member-header>div{gap:12px}.lm-member-body .lm-member-header h1{font-size:21px}.lm-member-body .lm-member-header p{font-size:11px}.lm-member-body .lm-profile-identity h2{font-size:22px}.lm-member-body .lm-profile-identity strong{font-size:14px}.lm-member-body .lm-member-profile .lm-profile-identity{gap:14px}}

.lm-shell .lm-choice-group{border:0;padding:0;margin:0;min-width:0}.lm-shell .lm-choice-group legend{font-size:13px;font-weight:650;margin-bottom:12px;padding:0}.lm-shell .lm-choice-group>div{display:grid;gap:10px}.lm-shell .lm-choice-group label{display:flex;align-items:center;gap:12px;min-height:48px;border:1px solid var(--ui-line);border-radius:12px;background:#f8f9fc;padding:12px;font-size:14px;line-height:1.5}.lm-shell .lm-choice-group label input{width:20px;height:20px;flex:0 0 20px;margin:0}.lm-shell .lm-object-password{display:flex;align-items:center;gap:8px}.lm-shell .lm-object-password input{flex:1;min-width:0}.lm-shell .lm-object-password button{width:48px;height:48px;min-height:48px;display:grid;place-items:center;flex:0 0 48px;background:white;border:1px solid var(--ui-line);border-radius:12px;color:var(--ink,#252938);padding:10px;margin:0}.lm-shell .lm-object-password svg{width:22px;height:22px}

/* Card editor: align preview with the working panel, keep actions compact. */
.lm-shell .lm-program-editor{grid-template-columns:minmax(0,1fr) 330px;gap:20px 24px;align-items:start}.lm-shell .lm-program-editor .lm-program-tabs{grid-column:1;grid-row:1;margin:0;background:#eceef3}.lm-shell .lm-program-editor .lm-editor-content{grid-column:1;grid-row:2}.lm-shell .lm-program-editor .lm-editor-preview{grid-column:2;grid-row:2;top:24px}.lm-shell .lm-editor-preview>.lm-eyebrow{display:block;margin:0 0 14px;font-size:11px}.lm-shell .lm-editor-preview .lm-member-card{width:100%;min-height:0;padding:24px;gap:22px}.lm-shell .lm-program-editor .lm-editor-save{display:flex;align-items:center;justify-content:space-between;grid-column:1;grid-row:3;gap:20px;padding:18px 22px;margin:0;background:#fff;border:1px solid var(--lm-line);border-radius:16px}.lm-shell .lm-program-editor .lm-editor-save>.btn{flex:0 0 auto;width:auto;min-width:190px;margin:0;padding:12px 24px;min-height:48px}.lm-shell .lm-program-editor .lm-form-grid{align-items:start}.lm-shell .lm-program-editor input[type=color]{width:64px;height:48px;min-height:48px;padding:5px;border-radius:10px;cursor:pointer}.lm-shell .lm-program-editor .lm-field:has(input[type=color]){align-content:start}.lm-shell .lm-program-editor .lm-field:has(input[type=file]){min-width:0}.lm-shell .lm-program-editor .lm-image-upload-current{padding:12px;gap:12px;min-height:82px}.lm-shell .lm-program-editor .lm-image-upload-current img{width:64px;height:52px;object-fit:contain}.lm-shell .lm-program-editor .lm-image-upload-current button{margin-left:auto;flex:0 0 auto}.lm-primary-reward{border:1px solid var(--lm-line);border-radius:14px;margin:16px 0 24px;padding:18px 18px 0;min-width:0}.lm-primary-reward legend{padding:0 8px;font-size:12px;font-weight:700;color:var(--lm-muted)}.lm-editor-subheading{font-size:13px;margin:0 0 10px;color:var(--lm-muted)}.lm-editor-link{font-size:13px;font-weight:600;white-space:nowrap}.lm-shell .lm-program-editor .lm-menu-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto 22px;align-items:center;min-height:74px;padding:16px 0;gap:14px}.lm-shell .lm-program-editor .lm-menu-row>svg{width:22px;height:22px}.lm-shell .lm-program-editor .lm-menu-row>strong{white-space:nowrap}.lm-shell .lm-program-editor .lm-add-tier{width:auto;margin-top:20px;padding:12px 20px}.lm-editor-statuses{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.lm-editor-statuses>div{background:var(--brand-soft,#f5f6f8);padding:16px;border-radius:12px;display:grid;gap:10px}.lm-editor-statuses span{display:flex;align-items:center;gap:9px;font-size:13px}.lm-editor-statuses svg{width:20px;height:20px}.lm-editor-statuses strong{font-size:12px}.lm-editor-shortcuts{display:grid;gap:12px;margin-top:22px}.lm-editor-shortcuts>a{display:flex;gap:14px;align-items:center;padding:18px;border:1px solid var(--lm-line);border-radius:12px}.lm-editor-shortcuts>a>svg{width:22px;height:22px;flex-shrink:0}.lm-editor-shortcuts>a>svg:last-child{margin-left:auto;width:18px}.lm-editor-shortcuts strong,.lm-editor-shortcuts small{display:block}.lm-editor-shortcuts strong{font-size:14px}.lm-editor-shortcuts small{font-size:12px;line-height:1.6;color:var(--lm-muted);margin-top:4px}
@media(max-width:1100px){.lm-shell .lm-program-editor{grid-template-columns:minmax(0,1fr) 280px;gap:18px}.lm-shell .lm-program-editor .lm-panel{padding:22px}}
@media(max-width:960px){.lm-shell .lm-program-editor{grid-template-columns:minmax(0,1fr)}.lm-shell .lm-program-editor .lm-editor-preview{grid-column:1;grid-row:4;position:static;max-width:400px;width:100%;margin:0 auto}.lm-shell .lm-program-editor .lm-editor-save{grid-column:1;grid-row:3}.lm-shell .lm-program-editor .lm-form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.lm-shell .lm-program-editor .lm-form-grid{grid-template-columns:1fr}.lm-shell .lm-program-editor .lm-panel{padding:20px}.lm-shell .lm-program-editor .lm-editor-save{padding:16px}.lm-shell .lm-program-editor .lm-editor-save>.btn{width:100%;min-width:0}.lm-shell .lm-program-editor .lm-editor-save>span{display:none}.lm-shell .lm-program-editor .lm-menu-row{grid-template-columns:26px minmax(0,1fr) 22px;gap:10px}.lm-shell .lm-program-editor .lm-menu-row>strong{grid-column:2;grid-row:2}.lm-shell .lm-program-editor .lm-menu-row>svg:last-child{grid-column:3;grid-row:1/span 2}.lm-shell .lm-program-editor .lm-menu-row>span{grid-column:2}.lm-editor-statuses{grid-template-columns:1fr}.lm-shell .lm-program-editor .lm-section-title{align-items:flex-start;gap:12px;flex-wrap:wrap}}

.lm-shell .lm-program-editor .lm-card-color-row{display:flex;gap:20px;align-items:start;margin:18px 0 4px}.lm-shell .lm-program-editor .lm-card-assets{padding-top:16px;border-top:1px solid var(--lm-line);margin-bottom:4px}.lm-shell .lm-program-editor .lm-card-assets>.lm-field{display:grid;align-content:start}.lm-shell .lm-program-editor .lm-card-assets .lm-image-upload-current{flex-wrap:nowrap}.lm-shell .lm-program-editor .lm-card-assets .lm-image-upload-current span{display:none}
@media(max-width:600px){.lm-shell .lm-program-editor .lm-icon-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.lm-shell .lm-program-editor .lm-icon-picker button{width:100%;min-width:0;min-height:42px;padding:8px}.lm-shell .lm-program-editor .lm-icon-picker button[hidden]{display:none}.lm-shell .lm-program-editor .lm-style-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.lm-shell .lm-program-editor .lm-style-presets button{padding:8px 5px;gap:5px;font-size:10px;min-width:0;justify-content:center}.lm-shell .lm-program-editor .lm-style-presets i{width:12px;height:12px;flex:0 0 12px}}

/* Every tab shares one full-width workspace; preview belongs to Card only. */
.lm-shell .lm-program-editor{grid-template-columns:minmax(0,1fr)}
.lm-shell .lm-program-editor .lm-program-tabs,.lm-shell .lm-program-editor .lm-editor-content,.lm-shell .lm-program-editor .lm-editor-save{grid-column:1/-1}
.lm-shell .lm-program-editor .lm-card-workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:32px;align-items:start}
.lm-shell .lm-card-settings{min-width:0}
.lm-shell .lm-program-editor .lm-card-workspace .lm-editor-preview{grid-column:2;grid-row:1;position:sticky;top:24px;max-width:none;width:100%;margin:0;padding-left:24px;border-left:1px solid var(--lm-line)}
.lm-shell .lm-program-editor .lm-editor-save{grid-row:3}
@media(max-width:1100px){.lm-shell .lm-program-editor .lm-card-workspace{grid-template-columns:minmax(0,1fr) 280px;gap:22px}.lm-shell .lm-program-editor .lm-card-workspace .lm-editor-preview{padding-left:20px}}
@media(max-width:960px){.lm-shell .lm-program-editor .lm-card-workspace{grid-template-columns:minmax(0,1fr)}.lm-shell .lm-program-editor .lm-card-workspace .lm-editor-preview{grid-column:1;grid-row:2;position:static;max-width:400px;margin:0 auto;border-left:0;border-top:1px solid var(--lm-line);padding:24px 0 0}}
html:has(.lm-program-editor){scrollbar-gutter:stable}
/* One asset, one compact control: preview, replace, reversible remove. */
.lm-shell .lm-asset-upload{position:relative;display:block;min-width:0}
.lm-shell .lm-asset-upload>.lm-image-upload-current{display:grid;grid-template-columns:64px minmax(0,1fr) 44px;align-items:center;gap:14px;padding:14px;background:#f8f9fc;border:1px solid var(--lm-line);border-radius:14px;min-height:96px}
.lm-shell .lm-asset-upload .lm-asset-thumbnail{display:grid;place-items:center;width:64px;height:64px;border:1px solid var(--lm-line);border-radius:10px;background:white;overflow:hidden;color:var(--lm-muted)}
.lm-shell .lm-asset-upload .lm-asset-thumbnail img{width:100%;height:100%;object-fit:contain;border-radius:0}
.lm-shell .lm-asset-upload .lm-asset-thumbnail>svg{width:26px;height:26px}
.lm-shell .lm-asset-upload [hidden]{display:none!important}
.lm-shell .lm-asset-body{display:grid;gap:7px;min-width:0;align-content:center}
.lm-shell .lm-asset-upload .lm-asset-change{display:inline-flex;align-items:center;justify-self:start;min-height:34px;padding:5px 0;margin:0;font-size:13px;font-weight:650;cursor:pointer;color:var(--ink,#252938)}
.lm-shell .lm-asset-change:hover{text-decoration:underline}
.lm-shell .lm-asset-upload [data-asset-status]{display:block;font-size:11px;color:var(--lm-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.lm-shell .lm-asset-upload .lm-image-remove{display:grid;place-items:center;width:44px;min-height:44px;height:44px;padding:12px;margin:0;border:1px solid var(--lm-line);border-radius:10px;background:#fff;color:#a83248}
.lm-shell .lm-asset-upload .lm-image-remove svg{width:18px;height:18px}
.lm-shell .lm-asset-upload.is-removing .lm-asset-thumbnail{opacity:.45}
.lm-shell .lm-asset-upload.is-removing .lm-image-remove{background:#fceef0;border-color:#e7bec6}
.lm-shell .lm-asset-upload>input[type=file]{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0!important}
.lm-shell .lm-asset-upload:focus-within>.lm-image-upload-current{outline:2px solid var(--brand-primary,#191d47);outline-offset:3px}
@media(max-width:600px){.lm-shell .lm-asset-upload>.lm-image-upload-current{grid-template-columns:56px minmax(0,1fr) 44px;gap:10px;padding:12px;min-height:82px}.lm-shell .lm-asset-upload .lm-asset-thumbnail{width:56px;height:56px}}
/* Shared icon and background libraries. */
.lm-shell .lm-symbol-control{margin-bottom:24px}.lm-shell .lm-symbol-control .lm-picker-label{display:block;margin-bottom:10px;font-size:13px;font-weight:600}
.lm-shell .lm-library-trigger{display:inline-flex;align-items:center;gap:14px;min-height:60px;max-width:100%;padding:12px 18px;border:1px solid var(--lm-line);border-radius:12px;background:#fff;color:var(--ink,#252938);font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer}
.lm-shell .lm-library-trigger>svg,.lm-shell .lm-library-trigger [data-selected-icon]>svg{width:26px;height:26px;flex-shrink:0}.lm-shell .lm-library-trigger small{display:block;font-size:11px;font-weight:400;color:var(--lm-muted);margin-top:4px}
.lm-shell .lm-background-trigger{width:100%;margin:0 0 12px}.lm-shell .lm-library-dialog{width:min(650px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--lm-line);border-radius:22px;background:white;color:var(--ink,#252938);box-shadow:0 24px 80px #0002;overflow:auto}.lm-shell .lm-library-dialog:not([open]){display:none}
.lm-library-dialog::backdrop{background:#141a2866;backdrop-filter:blur(4px)}.lm-shell .lm-library-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px;border-bottom:1px solid var(--lm-line)}.lm-shell .lm-library-dialog h2{font-size:22px;line-height:1.3;margin:0}.lm-shell .lm-library-dialog p{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--lm-muted)}.lm-shell .lm-library-dialog [data-library-close]{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:10px;border:1px solid var(--lm-line);border-radius:50%;background:#f5f6f8;color:inherit;cursor:pointer}.lm-shell .lm-library-dialog [data-library-close] svg{width:20px;height:20px}
.lm-shell .lm-stamp-library{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:24px}.lm-shell .lm-stamp-library button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:88px;padding:12px 6px;border:1px solid var(--lm-line);border-radius:12px;background:#fff;color:inherit;cursor:pointer;font:inherit;font-size:11px}.lm-shell .lm-stamp-library button svg{width:30px;height:30px}.lm-shell .lm-stamp-library button[hidden]{display:none}.lm-shell .lm-stamp-library button[aria-pressed=true],.lm-shell .lm-background-library button[aria-pressed=true]{border-color:var(--brand-primary,#191d47);outline:2px solid var(--brand-primary,#191d47);outline-offset:-2px;background:var(--brand-soft,#f3f4f8)}
.lm-shell .lm-background-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:24px}.lm-shell .lm-background-library button{display:grid;gap:0;overflow:hidden;padding:0;border:1px solid var(--lm-line);border-radius:12px;background:#fff;color:inherit;cursor:pointer;font:inherit;text-align:left}.lm-shell .lm-background-library img{width:100%;aspect-ratio:5/3;object-fit:cover}.lm-shell .lm-background-library strong{padding:12px;font-size:12px}.lm-shell .lm-library-dialog>footer{display:flex;gap:12px;padding:18px 24px;border-top:1px solid var(--lm-line)}.lm-shell .lm-library-dialog>footer .btn{flex:1;min-width:0;margin:0}
@media(max-width:600px){.lm-shell .lm-stamp-library{grid-template-columns:repeat(4,minmax(0,1fr));padding:16px;gap:8px}.lm-shell .lm-stamp-library button{min-height:80px;font-size:10px}.lm-shell .lm-library-dialog>header{padding:20px}.lm-shell .lm-library-dialog h2{font-size:20px}.lm-shell .lm-background-library{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:10px}.lm-shell .lm-library-dialog>footer{padding:16px}.lm-shell .lm-library-dialog>footer .btn{font-size:12px;padding:12px}}

/* Background selection belongs to the same compact asset tile as its preview. */
.lm-shell .lm-asset-upload .lm-asset-picker{display:block;width:auto;min-height:34px;margin:0;padding:5px 0;border:0;border-radius:4px;background:transparent;font-size:13px;line-height:1.4;box-shadow:none;color:inherit}
.lm-shell .lm-asset-picker:hover{text-decoration:underline}
.lm-shell .lm-asset-picker small{display:none}
.lm-shell .lm-card-assets{align-items:start;gap:20px}
.lm-shell .lm-background-asset .lm-asset-thumbnail img{object-fit:cover}
.lm-shell .lm-asset-picker:focus-visible{outline:2px solid var(--brand-primary,#191d47);outline-offset:3px}
.lm-shell .lm-program-editor .lm-card-assets .lm-asset-picker>span{display:block;color:inherit;font-size:13px}
.lm-shell .lm-asset-upload .lm-asset-body{grid-column:2;grid-row:1}
.lm-shell .lm-asset-upload .lm-asset-thumbnail{grid-column:1;grid-row:1}
.lm-shell .lm-asset-upload .lm-image-remove{grid-column:3;grid-row:1}
.lm-shell .lm-asset-body>.lm-asset-picker{grid-column:1;grid-row:1;justify-self:start;justify-content:flex-start;text-align:left}
.lm-shell .lm-asset-body>[data-asset-status]{grid-column:1;grid-row:2}

/* Customer QR: one compact card and an aligned action footer. */
.lm-qr-pass{max-width:780px;margin:0 auto 28px;border:1px solid var(--lm-line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 12px 36px #191d4708}
.lm-qr-pass .lm-qr-card{max-width:none;margin:0;padding:28px;border-radius:0;box-shadow:none}
.lm-qr-pass .lm-qr-card>header{margin:0 0 26px;gap:20px}
.lm-qr-pass .lm-qr-card>header>span{font-size:10px;letter-spacing:1.5px;color:#ffffffb8}
.lm-qr-pass-content{display:grid;grid-template-columns:230px minmax(0,1fr);gap:32px;align-items:center}
.lm-qr-pass .lm-qr{width:230px;max-width:100%;margin:0;padding:12px;border-radius:18px}
.lm-qr-pass-details{min-width:0}
.lm-qr-pass-details h2{font-size:22px;line-height:1.35;margin:0 0 6px;color:inherit;overflow-wrap:anywhere}
.lm-qr-pass-number{display:block;font-size:11px;letter-spacing:1px;color:#ffffffb8}
.lm-qr-pass .lm-qr-balance{display:block;margin-top:22px;padding:18px 0 0;border-color:#ffffff25}
.lm-qr-pass .lm-qr-balance>span{display:block;font-size:12px;color:#ffffffba;margin-bottom:6px}
.lm-qr-pass .lm-qr-balance strong{display:block;font-size:28px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.lm-qr-pass .lm-qr-balance strong small{font-size:14px;font-weight:500}
.lm-qr-pass-details>p{font-size:12px;line-height:1.65;color:#ffffffc9;margin:20px 0 0}
.lm-qr-pass-actions{display:flex;gap:12px;padding:20px}
.lm-qr-pass-actions>.btn{flex:1;min-width:0;min-height:48px;margin:0;justify-content:center;gap:9px;line-height:1.3}
@media(max-width:600px){.lm-qr-pass{border-radius:20px}.lm-qr-pass .lm-qr-card{padding:22px}.lm-qr-pass .lm-qr-card>header{margin-bottom:22px}.lm-qr-pass-content{grid-template-columns:1fr;gap:22px;text-align:center}.lm-qr-pass .lm-qr{width:min(220px,100%);margin:auto}.lm-qr-pass-details h2{font-size:20px}.lm-qr-pass .lm-qr-balance{margin-top:18px;padding-top:16px}.lm-qr-pass .lm-qr-balance strong{font-size:26px}.lm-qr-pass-details>p{margin-top:16px}.lm-qr-pass-actions{padding:16px;gap:10px}.lm-qr-pass-actions>.btn{padding:11px 8px;font-size:12px}.lm-qr-pass-actions .lm-icon{width:19px;height:19px}}
