:root{--ink:#153434;--green:#195c54;--mint:#dcefe5;--paper:#f7f7f2;--sun:#f7c96b;--coral:#d9644f;--line:#dce2da;--muted:#64716b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Assistant,Arial,sans-serif;font-size:17px}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;background:#123b3a;color:#fff;padding:32px 20px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{color:#fff;text-decoration:none;font:700 28px Rubik,sans-serif;display:flex;align-items:center;gap:11px;margin:0 10px 54px}.brand-mark{background:var(--sun);color:var(--ink);width:35px;height:35px;border-radius:12px;display:grid;place-items:center;font-size:25px}nav{display:grid;gap:8px}.nav-item{border:0;background:transparent;color:#b8d0ca;text-align:right;font:600 17px Assistant;padding:12px 14px;border-radius:11px;cursor:pointer;display:flex;gap:12px;align-items:center}.nav-item span{font-size:20px;width:19px}.nav-item:hover,.nav-item.active{background:#28675e;color:#fff}.sidebar-note{margin-top:auto;color:#b8d0ca;font-size:13px;padding:12px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#94d5ac;margin-left:7px}main{width:min(1120px,100%);margin-right:250px;padding:35px 54px 70px}.topbar{display:flex;justify-content:space-between;align-items:start;margin-bottom:28px}.eyebrow{margin:0;color:#6e7e76;font:600 13px Rubik,sans-serif;letter-spacing:.02em}.topbar h1,.wallet-header h2,.section-head h2,.search-hero h2{margin:4px 0 0;font:700 32px Rubik,sans-serif;letter-spacing:-1px}.icon-button{border:1px solid var(--line);background:#fff;border-radius:50%;width:43px;height:43px;font-size:23px;color:var(--ink);position:relative;cursor:pointer}.icon-button b{position:absolute;background:var(--coral);color:#fff;font:700 10px Rubik;min-width:16px;padding:3px;border-radius:10px;top:-6px;left:-4px}.balance-hero{background:var(--green);color:white;border-radius:24px;padding:32px 38px;min-height:200px;display:flex;justify-content:space-between;overflow:hidden;position:relative}.balance-hero:after{content:"";position:absolute;width:340px;height:340px;background:#2b756a;border-radius:50%;left:-100px;bottom:-230px}.hero-copy{z-index:1}.hero-copy p{margin:0;color:#b8d9d0;font-weight:600}.amount{display:flex;direction:ltr;align-items:baseline;gap:8px;margin:9px 0}.amount strong{font:700 64px Rubik,sans-serif;letter-spacing:-4px}.amount span{font-size:28px;color:var(--sun);font-weight:bold}.hero-copy small{color:#d4e6e0}.hero-ticket{z-index:1;width:158px;height:122px;background:var(--sun);color:#19423e;border-radius:14px;align-self:center;transform:rotate(-7deg);padding:16px;font:700 18px Rubik;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 14px 25px #0c282633}.hero-ticket b{font-size:38px;text-align:left}.ticket-notch{background:var(--green);height:14px;width:16px;position:absolute;right:-1px;border-radius:8px 0 0 8px}.ticket-notch.top{top:27px}.ticket-notch.bottom{bottom:27px}.quick-actions{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:16px 0 42px}.quick-action{border:1px solid var(--line);background:white;border-radius:13px;padding:16px;font:700 16px Assistant;color:var(--ink);cursor:pointer;display:flex;gap:9px;align-items:center;justify-content:center}.quick-action:first-letter{font-size:22px}.quick-action.primary{border-color:var(--green);background:var(--green);color:white}.section-head,.wallet-header{display:flex;justify-content:space-between;align-items:end;margin:26px 0 16px}.section-head h2,.wallet-header h2{font-size:23px}.section-head.compact{margin-top:36px}.text-button{border:0;background:none;color:var(--green);font:700 15px Assistant;cursor:pointer}.alerts{display:grid;gap:10px}.alert-card{background:#fff;border:1px solid var(--line);border-right:4px solid var(--sun);border-radius:12px;padding:13px 16px;display:flex;align-items:center;justify-content:space-between}.alert-card.expired{border-right-color:var(--coral)}.alert-card h3{margin:0;font-size:16px}.alert-card p{margin:2px 0 0;color:var(--muted);font-size:14px}.voucher-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.voucher-card{background:white;border:1px solid var(--line);border-radius:16px;padding:17px;min-height:178px;display:flex;flex-direction:column;position:relative;overflow:hidden}.voucher-card:after{content:"";position:absolute;width:60px;height:60px;left:-20px;top:-20px;background:var(--mint);border-radius:50%}.voucher-card.giftcard:after{background:#fde5ba}.voucher-card.credit:after{background:#f9d6d1}.voucher-kind{font-size:12px;color:var(--muted);z-index:1}.voucher-card h3{font:700 19px Rubik;margin:9px 0 auto;z-index:1}.voucher-balance{font:700 27px Rubik}.voucher-meta{font-size:13px;color:var(--muted);margin-top:4px}.card-actions{display:flex;gap:7px;margin-top:12px}.card-actions button{border:1px solid var(--line);background:#fff;color:var(--green);font:700 13px Assistant;border-radius:7px;padding:5px 9px;cursor:pointer}.wallet-header{margin-bottom:24px}.add-button{border:0;border-radius:10px;background:var(--green);color:white;padding:11px 17px;font:700 15px Assistant;cursor:pointer}.filters{display:flex;gap:8px;margin-bottom:22px}.filter{border:1px solid var(--line);background:white;border-radius:20px;padding:7px 16px;color:var(--muted);font:600 14px Assistant;cursor:pointer}.filter.active{color:white;background:var(--ink);border-color:var(--ink)}.search-hero{background:#ebf3ed;border-radius:20px;padding:32px;max-width:700px}.search-hero h2{font-size:29px}.search-hero>p:not(.eyebrow){color:var(--muted);margin:12px 0 20px}.search-input{background:#fff;border:1px solid #c5d3c9;border-radius:11px;display:flex;align-items:center;padding:0 13px;gap:10px;font-size:21px}.search-input input{border:0;outline:0;background:transparent;padding:14px 0;width:100%;font:500 16px Assistant}.search-result{margin-top:22px;max-width:700px}.search-result.empty{text-align:center;padding:45px;background:#fff;border:1px dashed #cbd7cd;border-radius:16px;color:var(--muted)}.empty-icon{font-size:30px}.search-result h3{font:700 22px Rubik;margin:8px 0}.match-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:12px}.match-card h3{display:flex;justify-content:space-between}.match-card p{color:var(--muted);margin:5px 0}.match-card strong{color:var(--green)}.activity-list{max-width:720px;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.activity-item{padding:17px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:14px}.activity-item:last-child{border:0}.activity-icon{width:36px;height:36px;border-radius:50%;background:var(--mint);display:grid;place-items:center}.activity-item p{margin:0;color:var(--muted);font-size:14px}.activity-item h3{margin:0;font-size:16px}.activity-item strong{margin-right:auto;color:var(--coral)}.page{display:none}.page.active{display:block}dialog{border:0;border-radius:20px;padding:0;max-width:540px;width:calc(100% - 32px);box-shadow:0 25px 70px #122d2a55}dialog::backdrop{background:#122d2a88}dialog form{padding:28px}.modal-head{display:flex;justify-content:space-between;margin-bottom:22px}.modal-head h2{margin:5px 0;font:700 25px Rubik}.close{border:0;background:#edf1ed;border-radius:50%;width:31px;height:31px;font-size:24px;line-height:1;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-weight:700;font-size:14px;display:grid;gap:6px}input,select{border:1px solid #cfd8d0;border-radius:8px;padding:10px;font:500 16px Assistant;color:var(--ink);background:white}.full{grid-column:span 2}.modal-actions{display:flex;justify-content:flex-start;gap:9px;margin-top:25px}.secondary{border:1px solid var(--line);background:white;border-radius:10px;padding:10px 16px;font:700 15px Assistant;cursor:pointer}.available{background:var(--mint);padding:11px;border-radius:8px}.available strong{color:var(--green)}#toast{position:fixed;bottom:28px;right:50%;transform:translateX(50%) translateY(90px);background:var(--ink);color:white;padding:12px 19px;border-radius:10px;transition:.25s;z-index:3;font-weight:700}#toast.show{transform:translateX(50%) translateY(0)}
@media(max-width:760px){body{font-size:16px}.app-shell{display:block}.sidebar{position:fixed;z-index:10;inset:auto 0 0;width:100%;height:78px;padding:8px 6px calc(8px + env(safe-area-inset-bottom));background:#123b3a;flex-direction:row;align-items:center;box-shadow:0 -8px 24px #102c2b33}.brand,.sidebar-note{display:none}nav{width:100%;height:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.nav-item{font-size:0;min-width:0;padding:5px 1px;display:flex;flex-direction:column;gap:2px;justify-content:center;align-items:center;border-radius:9px}.nav-item span{font-size:19px;line-height:20px;width:auto}.nav-item.active{background:#28675e}.nav-item:after{content:attr(data-label);font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}main{margin:0;padding:22px 15px 108px;width:100%;max-width:none}.topbar{margin-bottom:20px}.topbar h1{font-size:23px}.logout-button{font-size:13px}.balance-hero{min-height:172px;padding:24px 20px;border-radius:18px}.amount strong{font-size:47px}.hero-ticket{width:103px;height:88px;font-size:12px}.hero-ticket b{font-size:26px}.quick-actions{grid-template-columns:1fr 1fr;margin-bottom:30px}.quick-action:last-child{display:none}.quick-action{padding:13px 8px;font-size:14px}.voucher-grid{grid-template-columns:1fr 1fr;gap:10px}.voucher-card{min-height:162px;padding:14px}.voucher-card h3{font-size:16px}.voucher-balance{font-size:22px}.card-actions{flex-wrap:wrap}.card-actions button{padding:4px 6px;font-size:12px}.search-hero{padding:23px 17px;border-radius:16px}.search-hero h2{font-size:24px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.alerts .alert-card{align-items:start}.section-head h2,.wallet-header h2{font-size:21px}}

/* Desktop RTL: the navigation belongs on the right, and content clears it on the left. */
@media(min-width:761px){
  .app-shell{display:block}
  .sidebar{right:0;left:auto}
  .app-shell main{display:block;width:auto;max-width:none;margin:0 250px 0 0;padding:35px clamp(30px,5vw,74px) 70px}
}

.brand-mark{object-fit:contain;padding:3px}.top-actions{display:flex;gap:10px;align-items:center}.logout-button{border:0;background:transparent;color:var(--muted);font:700 14px Assistant;cursor:pointer}.login-screen{position:fixed;z-index:20;inset:0;background:#123b3a;display:grid;place-items:center;padding:20px}.login-screen[hidden]{display:none}.login-card{width:min(410px,100%);background:#f7f7f2;border-radius:22px;padding:34px;display:grid;gap:15px;box-shadow:0 25px 70px #071d1c88}.login-card>img{width:72px;height:72px;object-fit:contain;margin-bottom:4px}.login-card h1{font:700 27px Rubik;margin:0}.login-card>p:not(.eyebrow):not(.login-error){margin:-6px 0 4px;color:var(--muted)}.login-card .add-button{margin-top:8px}.login-error{min-height:18px;margin:0;color:#b54035;font-weight:700;font-size:14px}.icon-credit{color:var(--muted);font-size:11px;text-align:center}.icon-credit a{color:var(--green)}
.settings-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px;max-width:900px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:24px}.settings-card h3{font:700 21px Rubik;margin:7px 0}.settings-card>p:not(.eyebrow){color:var(--muted);margin:0 0 18px}.clubs-list{border-top:1px solid var(--line)}.club-row{display:flex;align-items:center;justify-content:space-between;padding:15px 1px;border-bottom:1px solid var(--line);cursor:pointer}.club-row strong,.club-row small{display:block}.club-row small{font-size:13px;color:var(--muted);margin-top:3px}.club-row input{width:20px;height:20px;accent-color:var(--green)}.backup-button{display:inline-block;text-decoration:none;margin-bottom:16px}.settings-card small{display:block;color:var(--muted);font-size:12px}.voucher-actions{padding:27px;min-width:min(420px,calc(100vw - 30px))}.barcode-empty{background:#f0f3ef;border:1px dashed #c7d0c8;border-radius:12px;padding:22px;text-align:center;color:var(--muted);margin-bottom:15px}.barcode-image{display:block;max-width:100%;max-height:260px;margin:0 auto 16px;border:1px solid var(--line);border-radius:10px}.upload-button{display:block;background:var(--mint);color:var(--green);border-radius:9px;padding:12px;text-align:center;cursor:pointer}.upload-note{font-size:12px;color:var(--muted)}.danger-button{width:100%;border:1px solid #e7b5ae;background:#fff5f3;color:#b54035;border-radius:9px;padding:10px;font:700 14px Assistant;cursor:pointer;margin-top:8px}.merchant-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;gap:13px;align-items:center;margin-bottom:9px}.merchant-card img{width:48px;height:48px;object-fit:contain;border:1px solid #eef1ec;border-radius:9px}.merchant-card span{font-size:12px;color:var(--green);font-weight:700}.merchant-card h3{margin:2px 0;font-size:17px}.merchant-card p{margin:0;color:var(--muted);font-size:13px}
.club-explorer,.category-explorer{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.category-explorer{border-top:1px solid #cadbd0;padding-top:14px}.club-pill,.category-pill{border:1px solid #b8d5c8;background:#fff;border-radius:20px;padding:7px 12px;color:var(--green);font:700 13px Assistant;cursor:pointer}.club-pill.active,.category-pill.active{background:var(--green);color:#fff;border-color:var(--green)}.merchant-logo-fallback{width:48px;height:48px;flex:none;border-radius:9px;background:var(--mint);color:var(--green);font:700 17px Rubik;display:grid;place-items:center}
.load-more{display:block;margin:18px auto;border:1px solid var(--green);border-radius:10px;background:#fff;color:var(--green);padding:10px 18px;font:700 15px Assistant;cursor:pointer}.backup-download{display:block;margin:0 0 12px;text-decoration:none}
.redemption-history{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.history-heading h3{font:700 18px Rubik;margin:4px 0}.redemption-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.redemption-row strong,.redemption-row span{display:block}.redemption-row span,.empty-history{font-size:13px;color:var(--muted);margin:3px 0}.danger-text{color:#b54035}
@media(max-width:760px){.settings-grid{grid-template-columns:1fr}.settings-card{padding:19px}.voucher-actions{min-width:0;width:calc(100vw - 32px)}.merchant-card{padding:11px}}

.backup-topbar{border:1px solid var(--line);background:#fff;border-radius:9px;padding:7px 10px;max-width:235px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.backup-time{margin:15px 0 9px}.restore-button{display:block;text-align:center;margin-top:16px}.offline-bar{position:fixed;top:0;inset-inline:0;z-index:4;background:var(--sun);color:#4a3208;font:700 14px Assistant;text-align:center;padding:9px 14px}body:has(.offline-bar:not([hidden])) .app-shell{padding-top:38px}#restore-note{margin-top:7px;line-height:1.5}.backup-time input{width:100%}.voucher-actions{width:min(960px,calc(100vw - 40px));min-width:0;max-height:calc(100vh - 40px);overflow:auto}.manage-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:26px;align-items:start}.manage-details{background:#f7f9f6;border:1px solid var(--line);padding:19px;border-radius:14px}.manage-details .add-button{margin-top:18px}.manage-side{padding:4px}
@media(max-width:760px){.top-actions{gap:6px}.backup-topbar{display:none}.voucher-actions{width:100vw;height:100dvh;max-height:none;border-radius:0;padding:22px 16px}.manage-layout{grid-template-columns:1fr;gap:18px}.manage-side{padding:0}.history-heading{align-items:start}.redemption-row{align-items:start}}

/* Search is a three-step choice, not a cloud of raw source combinations. */
.filter-step{margin-top:20px;padding-top:16px;border-top:1px solid #c8d9ce}.filter-step-label{display:block;margin-bottom:9px;color:#48655d;font:700 13px Rubik}.club-explorer{margin-top:0}.business-explorer,.food-explorer{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:thin;overscroll-behavior-inline:contain}.business-pill,.food-pill{flex:0 0 auto;border:1px solid #b8d5c8;background:#fff;border-radius:10px;padding:10px 14px;color:var(--green);font:700 15px Assistant;cursor:pointer;white-space:nowrap;box-shadow:0 2px 0 #dcebe2}.business-pill small,.food-pill small{display:inline-block;margin-right:8px;padding-right:8px;border-right:1px solid #d6e4db;color:#759187;font:600 12px Rubik}.business-pill.active,.food-pill.active{background:#123b3a;border-color:#123b3a;color:#fff;box-shadow:none}.business-pill.active small,.food-pill.active small{border-color:#5e9187;color:#d7e9e1}@media(max-width:760px){.filter-step{margin-top:16px;padding-top:13px}.business-explorer,.food-explorer{margin-left:-3px;margin-right:-3px}.business-pill,.food-pill{padding:9px 12px;font-size:14px}}
.merchant-offer{display:inline-block;margin-top:7px;background:#e1f0e7;color:#135849;border-radius:6px;padding:3px 7px;font:700 13px Assistant}.merchant-link{display:block;margin-top:5px;color:var(--green);font:700 13px Assistant;text-decoration:underline}

/* The magnifier is drawn, so it never depends on a font that lacks the glyph. */
.field-icon{width:21px;height:21px;flex:none;fill:none;stroke:#4f6b62;stroke-width:2;stroke-linecap:round}

/* A mouse has no swipe: rows of pills get arrows, and the wheel scrolls them sideways. */
.scroller{position:relative}
.scroll-row{scroll-behavior:smooth}
.scroll-arrow{display:none}
@media(pointer:fine){.scroller.scrollable{display:flex;align-items:center;gap:8px}.scroller.scrollable .scroll-row{flex:1;min-width:0}.scroller.scrollable .scroll-arrow{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--green);font:700 21px Rubik;line-height:1;cursor:pointer;box-shadow:0 2px 7px #12332c1a}.scroller .scroll-arrow[disabled]{opacity:.3;cursor:default}}

/* Results sit in a grid, so a wide screen shows several businesses per row. */
.match-grid,.merchant-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:12px}
.merchant-card,.match-card{margin-bottom:0}
.upload-field{display:grid;gap:7px}
.upload-label{font-weight:700;font-size:14px}
.upload-field small{color:var(--muted);font-weight:500;font-size:12px}

/* On a desktop the pages use the width they have instead of a phone-sized column. */
@media(min-width:1100px){
  .app-shell main{max-width:1560px}
  .search-hero,.search-result{max-width:none}
  .search-input{max-width:660px}
  .activity-list{max-width:1100px}
  .settings-grid{max-width:1300px}
  .voucher-grid{grid-template-columns:repeat(auto-fill,minmax(255px,1fr))}
  .quick-actions{max-width:900px}
}

/* The manage dialog asked for 960px inside a 540px <dialog>, so it spilled out and clipped. */
#voucher-actions{width:min(1040px,calc(100vw - 32px));max-width:min(1040px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:hidden}
.voucher-actions{width:auto;min-width:0;max-height:calc(100vh - 40px);overflow:auto}
dialog{max-height:calc(100vh - 32px)}
dialog form{max-height:calc(100vh - 32px);overflow:auto}
@media(max-width:760px){#voucher-actions{width:100vw;max-width:none;max-height:none;height:100dvh;border-radius:0}.voucher-actions{height:100dvh;max-height:none}.manage-side{order:-1}}

/* Chevron characters are mirrored in RTL, so the arrows are drawn instead. */
.scroll-arrow .chev{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
