:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;color:#25263d;background:#f5f5fc;font-size:16px;--purple:#5942b2}*{box-sizing:border-box}body{margin:0}main{max-width:540px;margin:auto;padding:0 18px 32px;padding-bottom:max(32px,env(safe-area-inset-bottom))}header{height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e1dfee;margin-bottom:18px}header strong{font-size:20px}header a{font-size:13px;color:var(--purple);text-decoration:none}header button{width:auto;background:none;border:0;font-size:32px;padding:0 12px 0 0;color:#29263c;margin:0}h1{font-size:26px;margin:20px 0 10px}h2{font-size:21px;margin:0 0 16px}h3{font-size:17px;margin:0 0 10px}p{line-height:1.6}button,input,textarea,select{font:inherit}button{display:block;width:100%;border:1px solid #d8d2ea;border-radius:12px;background:white;color:var(--purple);padding:13px 16px;margin:12px 0;min-height:48px;cursor:pointer}button.primary{background:var(--purple);border-color:var(--purple);color:white;font-weight:600}button:disabled{opacity:.48;cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #aa98e2;outline-offset:2px}input:not([type=checkbox]),textarea{width:100%;padding:13px;border:1px solid #d8d2ea;border-radius:10px;background:white;margin:8px 0 12px;min-height:48px}input[type=checkbox]{width:20px;height:20px;accent-color:var(--purple);flex-shrink:0}label{display:block;font-size:15px;line-height:1.6}label.consent{display:flex;gap:9px;align-items:flex-start;margin:18px 0}section,.card{border:1px solid #e1deef;background:white;border-radius:16px;padding:18px;margin:16px 0;box-shadow:0 3px 10px #2b205006}.home{padding-top:18px}.home .entry{text-align:left;padding:24px 20px;min-height:110px;box-shadow:0 4px 16px #2b205009}.entry strong{display:block;font-size:21px}.entry small{margin-top:10px}.steps{display:flex;justify-content:space-between;margin:22px 0;font-size:13px;color:#85869a}.steps span{display:flex;align-items:center;flex-direction:column;gap:6px}.steps b{border-radius:50%;background:#b4b8ca;color:white;width:24px;height:24px;text-align:center;line-height:24px}.steps .active{color:var(--purple);font-weight:600}.steps .active b{background:var(--purple)}.coupon{background:#eeeafa;border-radius:12px;padding:16px;font-size:20px;font-weight:650;margin-bottom:15px}.muted,small{color:#74788e;font-size:13px;line-height:1.6}small{display:block}.row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #eeedf5}.row:last-child{border:0}.row button{width:auto;min-width:58px;padding:7px;margin:0;font-size:13px}.row>div{min-width:0;overflow-wrap:anywhere}.amount{font-size:22px;color:var(--purple)}.banner{padding:16px;border-radius:12px;margin:16px 0;border:1px solid}.banner p{margin:6px 0 0;font-size:14px}.bad{background:#fff0f0;color:#ba202a;border-color:#ffc8cc}.warn{background:#fff7e7;color:#966013;border-color:#f2d69b}.good{background:#edf9f1;color:#217642;border-color:#c8e7d2}#notice:empty{display:none}#notice{font-size:14px;overflow-wrap:anywhere}#notice.error{color:#b32132}details{border:1px solid #e1deef;border-radius:10px;padding:12px;margin:16px 0}summary{cursor:pointer}pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.ba-scroll{max-height:55vh;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.ba-option{text-align:left;margin:8px 0}.ba-option.selected{border:2px solid var(--purple);background:#f3efff}.record{text-align:left;padding:16px;background:white}.record strong{display:block;margin-bottom:8px}.record .badge{display:inline-block;padding:3px 8px;border-radius:6px;background:#eeebf8;font-size:13px;margin-top:8px}.actions{display:flex;gap:12px}.actions button{flex:1}.caption{margin:8px 0;font-size:13px;color:#74788e}.empty{text-align:center;padding:40px 10px;color:#74788e}.required{color:#bf2737}.link{border:0;background:transparent;min-height:36px;padding:6px}.break{overflow-wrap:anywhere}

.entry.primary small{color:#fff}

#gift-store{display:block;width:100%;min-height:48px;margin:8px 0 16px;border:1px solid #d8dbe9;border-radius:10px;background:white;padding:10px} [data-gift]{margin-top:10px} #gift-reason{min-height:70px}

.gift-tabs{display:flex;gap:8px;margin:16px 0}.gift-tabs button{flex:1;margin-top:0}.gift-tabs button[aria-pressed="true"]{background:#5144ad;color:#fff;border-color:#5144ad}

#screen label[hidden]{display:none}

/* Compact step layout, retaining existing semantics and accessible controls. */
main{max-width:480px;padding:0 16px 24px}header{height:50px;margin-bottom:10px}header strong{font-size:17px}h1{font-size:23px}h2{font-size:20px;margin-bottom:12px}section{padding:16px;margin:12px 0}p{margin:10px 0}.steps{margin:14px 0;font-size:12px}.steps .done{color:var(--purple)}.steps .done b{background:var(--purple)}.home{padding-top:4px}.home .entry{min-height:76px;padding:17px}.entry strong{font-size:18px}.entry small{margin-top:4px}.coupon-summary{background:#f2effb;border-radius:12px;padding:12px;margin-bottom:12px}.coupon-summary>strong{display:block;font-size:18px;margin-bottom:6px}.rules{border:0;padding:0;margin:6px 0 0;font-size:13px;color:var(--purple)}.ba-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eeedf5}.ba-row strong{font-size:16px}.ba-row button,.member-head button{width:auto;border:0;background:none;padding:8px;margin:0;min-width:64px}.banner{padding:10px 12px;margin:12px 0;font-size:14px}.row{font-size:15px;padding:10px 0}.row>b{white-space:nowrap}details{margin:10px 0;padding:10px;font-size:14px}.order-detail{border:0;font-size:12px;color:#74788e;margin-top:12px;padding:4px}.order-detail button{font-size:13px}.bottom-action{position:sticky;bottom:0;background:#fff;padding:8px 0 max(8px,env(safe-area-inset-bottom));z-index:2}.bottom-action button{margin:0}.member-card{padding:12px;margin:10px 0}.member-head{display:flex;justify-content:space-between;align-items:center}.issue-amount{font-size:32px;color:var(--purple);padding:14px;margin:12px 0}.issue-amount small{font-size:14px;color:#25263d}label.consent{font-size:14px;margin:14px 0}.caption{font-size:12px}#entry-records:not(.entry),#refresh-records{font-size:14px}#refresh-records{width:auto;margin-left:auto;border:0;background:none;padding:4px 10px;min-height:36px}button{min-height:44px;padding:11px 14px}#screen>section>h2{margin-top:4px}

.gift-mode-actions,.gift-reason-actions{display:flex;gap:10px;flex-wrap:wrap}.gift-mode-actions button,.gift-reason-actions button{flex:1}.gift-mode-actions [aria-pressed="true"],.gift-reason-actions [aria-pressed="true"]{background:var(--purple,#5144ad);color:white}#gift-no-reason{min-height:84px}

/* Gift-only guided mobile workspace. Other redemption and issuance screens retain their styles. */
body.gift-workspace{background:#f5f6fa;color:#222535}body.gift-workspace main{max-width:480px;padding:0 16px 0;min-height:100dvh;display:flex;flex-direction:column}body.gift-workspace header{margin:0 -16px;padding:0 16px;background:#fff;border-color:#e8e9f0;height:56px;flex-shrink:0}body.gift-workspace header strong{font-size:17px}body.gift-workspace #screen{flex:1;display:flex;flex-direction:column;min-width:0}body.gift-workspace #notice{position:sticky;top:0;z-index:4;background:#fff0f0;padding:12px;border-radius:10px;margin:10px 0}body.gift-workspace .gift-page{display:flex;flex-direction:column;flex:1;min-width:0}body.gift-workspace .gift-content{padding:22px 0;flex:1;min-width:0}body.gift-workspace h1{font-size:23px;margin:0 0 8px;line-height:1.4}body.gift-workspace h2{font-size:16px;line-height:1.5;margin:0}body.gift-workspace p{margin:10px 0}body.gift-workspace .caption{color:#70768b;font-size:13px;line-height:1.6;margin:6px 0 20px}body.gift-workspace small{color:#70768b;font-size:13px;line-height:1.65}body.gift-workspace button{border-color:#e1e3ed;color:#5946bc;border-radius:12px;min-height:48px;margin:12px 0;padding:12px 14px}body.gift-workspace button.primary{background:#5946bc;border-color:#5946bc;color:#fff;font-weight:500}body.gift-workspace input:not([type=checkbox]),body.gift-workspace textarea{border-color:#e1e3ed;background:#fff;border-radius:12px;font-size:16px;margin:8px 0 14px;padding:14px}body.gift-workspace input[type=checkbox]{accent-color:#5946bc}body.gift-workspace label{color:#555d73;font-size:14px}body.gift-workspace section{box-shadow:none;border-color:#e8e9f0;border-radius:16px}body.gift-workspace details{background:transparent;border:0;border-radius:0;padding:0;margin:12px 0;font-size:13px;color:#70768b}body.gift-workspace summary{padding:8px 0;color:#5946bc}body.gift-workspace details details{border-top:1px solid #e8e9f0;padding-top:8px}body.gift-workspace .gift-context{margin:0 -16px;background:#fff;padding:15px 16px;border-bottom:1px solid #e8e9f0}body.gift-workspace .gift-context>strong{font-size:14px;font-weight:500;display:block;line-height:1.6}body.gift-workspace .gift-context>small{margin-top:3px}body.gift-workspace .gift-context>details{margin:3px 0 0}body.gift-workspace .gift-context>details>summary{font-size:12px;padding:5px 0}body.gift-workspace .gift-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 14px;font-size:13px;line-height:1.6;margin:14px 0 0}body.gift-workspace .gift-facts dt{color:#70768b}body.gift-workspace .gift-facts dd{text-align:right;overflow-wrap:anywhere;margin:0}body.gift-workspace .gift-text{width:auto;display:inline-flex;align-items:center;background:transparent;border:0;box-shadow:none;font-size:13px;padding:9px 0;min-height:44px;margin:2px 0;color:#5946bc}body.gift-workspace .gift-footer{position:sticky;bottom:0;z-index:3;background:#fff;margin:0 -16px;padding:14px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e8e9f0}body.gift-workspace .gift-footer>button{margin:0}body.gift-workspace .gift-footer .caption{text-align:center;font-size:12px;margin:9px 0 0}body.gift-workspace .gift-choices{margin:26px 0 24px;display:grid;gap:14px}body.gift-workspace .gift-choices button{display:flex;align-items:center;gap:14px;text-align:left;background:#fff;color:#222535;border:1px solid #e1e3ed;border-radius:16px;padding:20px 16px;margin:0;min-height:92px}body.gift-workspace .gift-choices button strong{display:block;font-size:17px;font-weight:600}body.gift-workspace .gift-choices button small{margin-top:4px}body.gift-workspace .gift-choices button[aria-pressed=true]{background:#eeebfb;border-color:#5946bc}body.gift-workspace .gift-radio{width:21px;height:21px;border:1.5px solid #a1a5b4;border-radius:50%;flex-shrink:0;display:grid;place-items:center}body.gift-workspace [aria-pressed=true]>.gift-radio{border-color:#5946bc}body.gift-workspace [aria-pressed=true]>.gift-radio:after{content:'';width:11px;height:11px;border-radius:50%;background:#5946bc}body.gift-workspace .gift-progress{display:flex;align-items:center;gap:7px;font-size:12px;color:#80869a;margin:0 0 26px}body.gift-workspace .gift-progress span{display:flex;align-items:center;gap:5px;white-space:nowrap}body.gift-workspace .gift-progress b{border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font-size:11px;font-weight:500;background:#e7e9f1}body.gift-workspace .gift-progress [aria-current]{color:#5946bc}body.gift-workspace .gift-progress [aria-current] b{background:#5946bc;color:#fff}body.gift-workspace .gift-progress i{flex:1;height:1px;background:#e1e3ed;min-width:4px}body.gift-workspace .gift-member-option{text-align:left;background:#fff}body.gift-workspace .gift-member-option strong{font-weight:500;font-size:15px;line-height:1.5}body.gift-workspace .gift-member-line{padding:10px 12px;background:#ebf6ef;color:#20735a;border-radius:10px;font-size:13px;margin-bottom:24px}body.gift-workspace .gift-scan{margin-top:22px}body.gift-workspace .gift-search{display:flex;gap:10px;align-items:center;margin:8px 0 20px}body.gift-workspace .gift-search input{flex:1;width:0;margin:0}body.gift-workspace .gift-search button{width:auto;margin:0;flex-shrink:0}body.gift-workspace .gift-product{border-bottom:1px solid #e1e3ed;padding:18px 0;min-width:0}body.gift-workspace .gift-product strong{font-weight:500;font-size:15px;line-height:1.6;overflow-wrap:anywhere}body.gift-workspace .gift-quantity{display:flex;align-items:center;gap:14px;margin-top:12px}body.gift-workspace .gift-quantity button:not(.gift-text){width:44px;min-height:44px;margin:0;padding:6px;font-size:21px;background:#fff;color:#222535}body.gift-workspace .gift-quantity b{min-width:20px;text-align:center;font-weight:500}body.gift-workspace .gift-quantity .gift-text{margin-left:auto;color:#70768b}body.gift-workspace .gift-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px}body.gift-workspace .gift-count{font-size:13px;color:#70768b;margin:24px 0 0}body.gift-workspace .gift-summary{margin:22px 0}body.gift-workspace .gift-list-card h2{font-size:18px;margin-top:12px}body.gift-workspace .gift-list-card p{font-size:14px}body.gift-workspace .gift-list-card .primary{margin-bottom:0}body.gift-workspace .gift-status{display:inline-block;background:#eeebfb;color:#5946bc;border-radius:6px;padding:3px 8px;font-size:12px;line-height:1.6}body.gift-workspace .gift-result{text-align:center;padding:10px 0 22px}body.gift-workspace .gift-result-check{display:grid;place-items:center;margin:0 auto 20px;background:#ebf6ef;color:#20735a;border-radius:50%;width:64px;height:64px;font-size:30px}body.gift-workspace .gift-result .caption{margin-top:10px}body.gift-workspace .gift-history{margin-top:20px}body.gift-workspace .gift-tabs{gap:24px;border-bottom:1px solid #e1e3ed;margin:18px 0 24px}body.gift-workspace .gift-tabs button{flex:0 1 auto;width:auto;background:transparent;border:0;border-radius:0;padding:10px 0 12px;margin:0;color:#70768b}body.gift-workspace .gift-tabs button[aria-pressed=true]{color:#5946bc;background:transparent;border-bottom:2px solid #5946bc}body.gift-workspace label.consent{margin-top:22px}body.gift-workspace #gift-store{border-color:#e1e3ed;font-size:16px}body.gift-workspace .gift-secondary{background:#fff}body.gift-workspace .error{color:#b32132}
body.gift-workspace .gift-result-check.pending{background:#fff7e7;color:#966013}
