@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');
:root { --primary: #05375b; --ink: #1a1a2e; --ink-soft: #4d5965; --muted: #6b6b6b; --green: #2e6b3e; --green-dark: #05375b; --mint: #eef2f6; --cream: #f7f5f1; --paper: #ffffff; --line: rgb(5 55 91 / 10%); --danger: #d4183d; --warning: #f0ede8; font-family: "DM Sans", "Avenir Next", system-ui, sans-serif; color: var(--ink); background: var(--cream); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--cream); }
a { color: var(--green-dark); }
button, input, select, textarea { font: inherit; }
.shell { width: min(430px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 20px 32px; background: var(--paper); box-shadow: 0 12px 40px rgb(5 55 91 / 12%); }
.site-header { width: calc(100% + 40px); max-width: 100vw; min-height: 72px; display: flex; align-items: center; margin: 0 -20px 0; padding: 0 20px; background: var(--primary); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; width: 112px; height: 64px; object-fit: contain; object-position: center; }
.page-content { min-width: 0; }
.public-start { background: #032f4a; }
.public-start .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100dvh - 10px); margin: 5px auto; padding: 20px 24px; color: #fff; background: #05375b; border-radius: 0; box-shadow: none; overflow: hidden; }
.public-start .page-content { display: flex; flex: 1; }
.start-page { display: flex; flex: 1; flex-direction: column; width: min(100%, 430px); margin: 0 auto; font-family: "DM Sans", system-ui, sans-serif; }
.start-brand { display: flex; justify-content: center; padding: 12px 0 24px; }
.start-logo { width: min(28rem, 100%); height: auto; object-fit: contain; object-position: center; }
.public-start h1 { color: #fff; font-family: Montserrat, sans-serif; font-size: 1.5rem; font-weight: 300; line-height: 1.35; text-align: center; letter-spacing: .02em; }
.public-start .start-intro { text-align: center; }
.start-warning { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0 0; padding: 16px; text-align: left; background: rgb(251 191 36 / 12%); border: 1px solid rgb(251 191 36 / 25%); border-radius: 16px; }
.start-warning__icon-wrap { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; margin-top: 2px; background: rgb(251 191 36 / 20%); border-radius: 12px; }
.start-warning__icon-wrap svg { width: 20px; height: 20px; color: #fcd34d; stroke: #fcd34d; }
.start-warning__title { margin: 0 0 4px; color: #fcd34d; font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.start-warning__body { margin: 0; color: rgb(255 255 255 / 55%); font-size: 1rem; line-height: 1.6; }
.start-benefits { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 16px; text-align: left; background: rgb(255 255 255 / 10%); border-radius: 16px; }
.start-benefits__row { display: flex; align-items: center; gap: 14px; }
.start-benefits__icon-wrap { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; background: rgb(255 255 255 / 15%); border-radius: 12px; }
.start-benefits__icon-wrap svg { width: 20px; height: 20px; color: #fff; stroke: #fff; }
.start-benefits__text { margin: 0; color: #fff; font-size: 1rem; line-height: 1.35; }
.start-benefits__divider { height: 1px; background: rgb(255 255 255 / 10%); }
.public-start .start-actions { margin-top: auto; padding-top: 24px; }
.public-start .primary-action { padding: 16px; color: #fff; background: #2e6b3e; border-radius: 16px; font-weight: 600; }
.public-start .secondary-action { padding: 8px; color: rgb(255 255 255 / 30%); background: transparent; border: 0; font-size: .875rem; font-weight: 400; }
.public-start .secondary-action:hover { color: rgb(255 255 255 / 50%); background: transparent; }
.customer-cabinet { background: var(--cream); }
.customer-cabinet .shell { width: min(430px, calc(100% - 12px)); min-height: 100vh; padding: 0 20px 72px; }
.cabinet-header { position: relative; display: grid; grid-template-columns: 180px minmax(0, 1fr) 24px; align-items: center; width: calc(100% + 40px); min-height: 180px; margin: 0 -20px 20px; padding: 18px 20px 30px; color: #fff; background: var(--primary); }
.cabinet-brand { display: block; width: 180px; }
.cabinet-brand img { display: block; width: 180px; height: 116px; object-fit: contain; object-position: center; }
.cabinet-greeting { align-self: center; padding: 8px 0 0 8px; font-size: .78rem; line-height: 1.35; }
.cabinet-greeting span { display: block; color: rgb(255 255 255 / 68%); }
.cabinet-greeting strong { display: block; color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.cabinet-phone-hint { margin: 4px 0 0; color: rgb(255 255 255 / 68%); font-size: .7rem; line-height: 1.35; }
.cabinet-exit-form { align-self: start; justify-self: end; }
.cabinet-exit-mark { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: rgb(255 255 255 / 65%); background: transparent; border: 0; font-size: 1.35rem; line-height: 1; }
.cabinet-exit-mark:hover, .cabinet-exit-mark:focus-visible { color: #fff; background: transparent; }
.cabinet-exit-mark svg { display: block; width: 20px; height: 20px; }
.cabinet-lead { position: absolute; bottom: 18px; left: 20px; margin: 0; color: rgb(255 255 255 / 48%); font-size: .72rem; }
.cabinet-page { max-width: 354px; margin: 0 auto; }
.cabinet-warning { margin: 0 0 14px; }
.cabinet-programs { display: grid; gap: 14px; }
.cabinet-program-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.cabinet-program-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--primary); background: var(--mint); border-radius: 50%; font-size: 1.2rem; }
.cabinet-program-icon svg { width: 22px; height: 22px; }
.cabinet-program-copy { min-width: 0; }
.cabinet-program-title-row { display: flex; justify-content: space-between; gap: 8px; }
.cabinet-program-title-row h2 { margin: 0; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.25; }
.cabinet-program-title-row p { margin: 2px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.25; }
.cabinet-count { flex: 0 0 auto; color: var(--green); font-size: 1.05rem; line-height: 1.2; }
.cabinet-dots { display: flex; align-items: center; gap: 5px; margin-top: 11px; }
.cabinet-dots > span { display: grid; place-items: center; width: 24px; height: 24px; color: transparent; background: var(--paper); border: 2px solid #e3e7ec; border-radius: 50%; }
.cabinet-dots > span.is-filled { background: var(--green); border-color: var(--green); }
.cabinet-dots .cabinet-bonus-dot { font-size: .9rem; }
.cabinet-dots .cabinet-bonus-dot:not(.is-filled) { color: #cdd3da; }
.cabinet-history { margin-top: 18px; }
.cabinet-history > h2 { margin: 0 0 12px; color: var(--ink-soft); font-size: .86rem; font-weight: 400; }
.cabinet-history-list { display: grid; gap: 10px; }
.cabinet-history-card { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.cabinet-history-card time { display: block; color: var(--muted); font-size: .68rem; }
.cabinet-history-card.is-reset, .barista-history-card.is-reset { background: #E6EEF4; }
.history-reset-text { margin: .55rem 0 .35rem; color: var(--ink-soft); font-weight: 400; line-height: 1.35; }
.cabinet-history-card .history-reset-text { font-size: .7rem; }
.barista-history-card .history-reset-text { font-size: .72rem; }
.history-clock { font-size: .9rem; }
.cabinet-history-details { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; color: var(--ink-soft); font-size: .7rem; }
.cabinet-history-details svg { width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; }
.cabinet-history-details span:last-of-type { color: var(--green); }
.cabinet-footer { width: calc(100% + 40px); margin: 124px -20px -72px; padding: 20px; border-top: 1px solid var(--line); background: var(--paper); text-align: center; }
.cabinet-footer form { display: block; }
.cabinet-logout { min-height: 44px; padding: 8px 16px; color: var(--ink-soft); background: transparent; font-size: .82rem; font-weight: 400; }
.cabinet-logout svg { width: 16px; height: 16px; margin-right: 5px; vertical-align: -3px; }
.cabinet-logout:hover { color: var(--ink); background: transparent; }
.customer-login { background: var(--cream); }
.customer-login .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 24px; }
.customer-login .page-content { display: flex; flex: 1; flex-direction: column; }
.login-header { position: relative; display: grid; place-items: center; width: calc(100% + 48px); min-height: 140px; margin: 0 -24px; background: var(--primary); }
.login-brand img { display: block; width: 190px; height: 116px; object-fit: contain; }
.login-back { position: absolute; left: 20px; top: 58px; color: #fff; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.login-page { flex: 1; max-width: 354px; width: 100%; margin: 34px auto 0; }
.login-page h1 { margin: 0 0 2px; color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.login-subtitle { margin: 0 0 24px; color: var(--ink-soft); font-size: .75rem; }
.login-form { display: grid; gap: 12px; }
.login-phone-field { position: relative; }
.login-phone-field input { box-sizing: border-box; width: 100%; height: 52px; padding: 0 12px 0 44px; border: 2px solid #e1e5e8; border-radius: 15px; color: var(--ink-soft); font-size: clamp(.72rem, 3.5vw, .85rem); letter-spacing: .01em; }
.login-phone-field input:focus, .login-phone-field input:focus-visible { border-color: var(--primary); outline: none; }
.login-phone-icon { position: absolute; z-index: 1; top: 16px; left: 16px; color: var(--muted); }
.login-phone-icon svg { display: block; width: 18px; height: 18px; }
.login-phone-error { margin: -5px 0 0; color: var(--danger); font-size: .75rem; }
.login-form .errorlist { margin: -5px 0 0; padding-left: 18px; color: var(--danger); font-size: .75rem; }
.login-submit { min-height: 56px; margin-top: 0; color: var(--ink-soft); background: #f0ede8; border-radius: 15px; font-size: .9rem; font-weight: 400; }
.login-submit:hover { color: var(--ink-soft); background: #e8e4de; }
.login-form:has(.login-phone-field input:valid) .login-submit { color: #fff; background: var(--green); }
.login-form:has(.login-phone-field input:valid) .login-submit:hover { background: var(--green-dark); }
.login-notes { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; counter-reset: login-note; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.login-notes li { position: relative; padding-left: 30px; counter-increment: login-note; }
.login-notes li::before { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 20px; height: 20px; content: counter(login-note); color: var(--primary); background: var(--mint); border-radius: 50%; font-size: .62rem; }
.login-footer { flex: 0 0 76px; width: calc(100% + 48px); margin: 30px -24px 0; border-top: 1px solid var(--line); display: grid; place-items: center; }
.login-footer a { color: var(--ink-soft); font-size: .75rem; text-decoration: none; }
.customer-name { background: var(--cream); }
.customer-name .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 24px 32px; }
.customer-name .page-content { display: flex; flex: 1; flex-direction: column; }
.name-page { display: flex; flex: 1; flex-direction: column; max-width: 354px; width: 100%; margin: 34px auto 0; }
.name-page h1 { margin: 0 0 2px; color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.name-subtitle { margin: 0 0 26px; color: var(--ink-soft); font-size: .75rem; }
.name-form { display: flex; flex: 1; flex-direction: column; gap: 10px; }
.name-form > label:first-of-type { color: var(--primary); font-size: .75rem; font-weight: 500; }
.name-form > input { height: 52px; padding: 0 16px; border: 2px solid #e1e5e8; border-radius: 15px; color: var(--ink-soft); font-size: .85rem; }
.name-form > input:focus, .name-form > input:focus-visible { border-color: var(--primary); outline: none; }
.name-form .errorlist { margin: -4px 0 0; padding-left: 18px; color: var(--danger); font-size: .75rem; }
.name-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 11px; margin-top: 14px; color: var(--ink-soft); font-size: .72rem; font-weight: 400; line-height: 1.45; }
.name-consent input { width: 20px; height: 20px; min-height: 20px; margin: 0; accent-color: var(--green); }
.name-consent a { color: var(--green); text-decoration: underline; }
.name-submit { min-height: 56px; margin-top: auto; color: var(--ink-soft); background: #f0ede8; border-radius: 15px; font-size: .9rem; font-weight: 400; }
.name-form:has(#id_name:valid):has(input[name="offer_consent"]:checked) .name-submit { color: #fff; background: var(--green); }
.name-form:has(#id_name:valid):has(input[name="offer_consent"]:checked) .name-submit:hover { background: var(--green-dark); }
.customer-waiting { background: var(--cream); }
.customer-waiting .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 24px 24px; background: #fff; }
.customer-waiting .page-content { display: flex; flex: 1; flex-direction: column; }
.waiting-header { position: relative; display: flex; align-items: center; flex: 0 0 68px; width: calc(100% + 48px); height: 68px; margin: 0 -24px; background: var(--primary); }
.waiting-back { display: grid; place-items: center; width: 44px; height: 44px; margin-left: 12px; color: #fff; font-size: 1.7rem; line-height: 1; text-decoration: none; }
.waiting-back:focus-visible, .waiting-brand:focus-visible, .waiting-phone:focus-visible, .waiting-call-action:focus-visible { outline: 3px solid #f5d775; outline-offset: 3px; }
.waiting-brand { position: absolute; left: 48px; top: 6px; min-width: 44px; min-height: 44px; }
.waiting-brand img { display: block; width: 96px; height: 56px; object-fit: contain; }
.waiting-page { display: flex; flex: 1; flex-direction: column; max-width: 382px; width: 100%; margin: 32px auto 0; }
.waiting-page > h1, .waiting-page > .error, .waiting-page > p:not(.waiting-countdown):not(.waiting-noscript) { margin-top: 0; }
.waiting-card { padding: 32px 24px 30px; color: #fff; background: var(--primary); border-radius: 24px; text-align: center; }
.waiting-call-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; color: #fff; background: #2e6388; border-radius: 16px; }
.waiting-call-icon svg { width: 29px; height: 29px; }
.waiting-eyebrow { margin: 0 0 10px; color: #8fb3ca; font-size: .67rem; letter-spacing: .1em; line-height: 1.35; }
.waiting-phone { display: block; min-height: 44px; color: #fff; font-family: "DM Sans", sans-serif; font-size: clamp(1.7rem, 7vw, 2rem); font-weight: 400; letter-spacing: .01em; line-height: 1.2; text-decoration: none; }
.waiting-call-action { display: grid; place-items: center; min-height: 56px; margin-top: 18px; color: #fff; background: var(--green); border-radius: 15px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.waiting-call-action:hover { background: var(--green-dark); }
.waiting-instructions { margin: 21px 0 0; color: rgb(255 255 255 / 58%); font-size: .72rem; line-height: 1.65; }
.waiting-countdown { margin: auto 0 0; padding: 40px 0 4px; color: var(--ink-soft); font-size: .7rem; line-height: 1.45; text-align: center; }
.waiting-countdown strong { font-variant-numeric: tabular-nums; font-weight: 500; }
.waiting-noscript { margin: 14px 0 0; color: var(--danger); font-size: .75rem; text-align: center; }
.waiting-page > .error { margin-bottom: 12px; }
.waiting-page > .error + p { margin-bottom: 0; }
.customer-offer { background: var(--cream); }
.customer-offer .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 24px 32px; }
.customer-offer .page-content { display: flex; flex: 1; flex-direction: column; }
.offer-header { flex: 0 0 140px; }
.offer-page { display: flex; flex: 1; flex-direction: column; max-width: 354px; width: 100%; margin: 34px auto 0; }
.offer-page h1 { margin: 0 0 24px; color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.offer-content { color: var(--ink-soft); font-size: .78rem; line-height: 1.6; }
.offer-content p { margin: 0 0 16px; }
.offer-content a, .offer-return { color: var(--green); text-decoration: underline; }
.offer-content a:focus-visible, .offer-return:focus-visible { outline: 3px solid rgb(43 139 127 / 30%); outline-offset: 3px; }
.offer-return { display: inline-block; margin-top: auto; padding-top: 28px; font-size: .8rem; font-weight: 650; }
.auth-page, .customer-page { max-width: 820px; margin: 0 auto; }
.auth-card { max-width: 560px; margin: 6vh auto 0; padding: clamp(22px, 5vw, 42px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 32px rgb(24 61 59 / 7%); }
.verification-card { text-align: center; }
.verification-status { margin: 28px 0 12px; padding: 14px; color: var(--ink-soft); background: var(--mint); border-radius: 12px; }
.countdown { color: var(--muted); }
.customer-heading { margin-bottom: 24px; }
.progress-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.progress-card, .history-panel { min-width: 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgb(24 61 59 / 5%); }
.progress-card-heading { display: flex; align-items: center; gap: 10px; }
.progress-card h2 { margin: 0; font-size: 1.05rem; }
.progress-value { margin: 24px 0 8px; font-size: 2.5rem; line-height: 1; }
.progress-value strong { color: var(--green-dark); }
.progress-value span { color: var(--muted); font-size: 1rem; }
.progress-track { height: 8px; overflow: hidden; background: var(--mint); border-radius: 99px; }
.progress-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.history-panel { margin-top: 18px; }
.history-panel h2 { margin-top: 0; }
.history-list { display: grid; gap: 0; }
.history-row { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.history-row time { flex: 0 0 auto; color: var(--muted); }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.lead { max-width: 620px; color: var(--ink-soft); font-size: 1.08rem; }
.program-list { display: grid; gap: 12px; margin: 28px 0; }
.program-list h2 { margin: 0 0 2px; }
.start-program-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 14px; }
.start-program-card h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.start-program-card p { margin: 4px 0; }
.start-actions { display: grid; gap: 10px; }
.offer-details { margin-top: 18px; color: var(--muted); font-size: .82rem; }
.offer-details summary { color: var(--ink-soft); cursor: pointer; font-weight: 650; }
.page-content > h1, .page-content > h2, .page-content > p, .page-content > form, .page-content > ul, .page-content > section { max-width: 820px; }
.page-header { display: flex; align-items: center; justify-content: center; position: relative; min-height: 48px; margin-bottom: 16px; }
.page-header h1 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin: 0; letter-spacing: -.03em; }
.menu-link, .back-button { position: absolute; left: 0; color: var(--ink); text-decoration: none; font-size: 1.6rem; min-width: 44px; min-height: 44px; display: grid; place-items: center; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); margin: 0 0 10px; }
h2 { font-size: 1.25rem; }
p { line-height: 1.55; }
form { display: grid; gap: 14px; }
label { font-weight: 650; }
input, select, textarea { width: 100%; min-width: 0; min-height: 48px; padding: .75rem .9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
button { min-height: 48px; padding: .75rem 1.1rem; cursor: pointer; color: #fff; background: var(--green); border: 0; border-radius: 10px; font-weight: 700; }
button:hover { background: var(--green-dark); }
button:disabled { opacity: .5; cursor: not-allowed; }
.customer-summary, .program-card, .history-group { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgb(24 61 59 / 5%); }
.customer-summary { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.customer-summary.compact { grid-template-columns: 48px 1fr; }
.customer-summary h2 { margin: 0; font-size: 1.15rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 1.2rem; }
.muted { color: #6d7786; margin: 4px 0 0; }
.history-link, .back-link a { color: #1464d2; }
.history-link { font-weight: 600; }
.section-title { font-size: 1.05rem; margin: 18px 4px 10px; }
.purchase-form { display: grid; gap: 14px; max-width: none; min-width: 0; }
.purchase-form fieldset { min-width: 0; }
.program-card { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; }
.program-card legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 0; }
.program-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); font-size: 1.2rem; }
.program-card label { align-self: center; }
.stepper { display: grid; grid-template-columns: 44px minmax(56px, 80px) 44px; min-height: 44px; }
input[type=number] { width: 100%; border: 1px solid #d4dbe4; text-align: center; }
.stepper button { background: #fff; color: #46536a; border: 1px solid #d4dbe4; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0; }
.stats dd { font-size: 1.25rem; font-weight: 700; margin: 0; }
.primary-action, .secondary-action { display: block; width: 100%; text-align: center; border-radius: 10px; padding: 14px; text-decoration: none; font-weight: 700; }
.primary-action { color: #fff; background: var(--green); }
.secondary-action { background: var(--paper); border: 1px solid var(--line); color: var(--green-dark); }
.notice { background: var(--warning); border: 1px solid #efd47a; border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
.error { color: var(--danger); background: #fff0ef; border: 1px solid #e7aaa6; padding: 12px 14px; border-radius: 10px; }
.empty-state { text-align: center; color: #6d7786; padding: 28px 12px; }
.workspace { display: grid; gap: 16px; }
.workspace-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: start; }
.workspace-heading > div { grid-column: 2; }
.workspace-nav { grid-column: 1; grid-row: 1; display: grid; align-content: start; gap: 8px; position: sticky; top: 24px; }
.workspace-nav a, .workspace-nav button { min-height: 44px; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.workspace-nav a:first-child { color: #fff; background: var(--green); }
.workspace-nav a:not(:first-child) { color: var(--green-dark); background: var(--paper); border: 1px solid var(--line); }
.result-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.result-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px; color: var(--ink); background: var(--mint); border-radius: 10px; text-decoration: none; }
.result-list span { color: var(--muted); }
.workspace h1 { margin-bottom: 0; }
.workspace-actions { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.workspace-actions form { display: contents; }
.workspace-actions button { width: 100%; border-radius: 10px; }
.workspace-statistics { display: grid; gap: 16px; }
.statistics-section { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 8px 24px rgb(24 61 59 / 5%); }
.statistics-section h2 { margin: 0 0 14px; font-size: 1.15rem; }
.statistics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.statistics-grid div { min-width: 0; background: #f7f8fa; border-radius: 10px; padding: 12px 10px; }
.statistics-grid dt { color: #46536a; font-size: .9rem; }
.statistics-grid dd { margin: 6px 0 0; font-size: 1.5rem; font-weight: 700; }
.history-group { margin-bottom: 12px; }
.history-group h2 { font-size: 1rem; margin: 0 0 10px; color: #6d7786; }
.history-item { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #edf0f3; }
.history-item strong { font-size: .95rem; }
.back-link { margin-top: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #e9a83a; outline-offset: 3px; }
@media (min-width: 768px) { .purchase-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .section-title, .primary-action { grid-column: 1 / -1; } }
@media (max-width: 767px) { .customer-summary { grid-template-columns: 48px 1fr; } .history-link { grid-column: 1 / -1; } }
@media (max-width: 767px) { .shell { padding: 0 16px 40px; } .site-header { min-height: 72px; margin-bottom: 24px; } .workspace-actions { grid-template-columns: 1fr; } .statistics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .statistics-grid div:last-child { grid-column: 1 / -1; } }
@media (max-width: 767px) { .progress-grid { grid-template-columns: 1fr; } .history-row { display: grid; gap: 6px; } }
@media (max-width: 767px) { .workspace-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; } .workspace-heading > div, .workspace-nav { grid-column: 1; grid-row: auto; min-width: 0; } .workspace-nav { position: static; } .workspace-nav > * { width: 100%; text-align: center; } }
@media (max-width: 767px) { .page-content, .workspace, .customer-page, .auth-page, .purchase-form, .program-card, .statistics-section { min-width: 0; max-width: 100%; } }
.workspace-page-shell { background: var(--cream); }
.workspace-page-shell .shell { display: flex; flex-direction: column; width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 22px 18px; }
.workspace-page-shell .page-content { display: flex; flex: 1; flex-direction: column; }
.workspace-header { position: relative; display: flex; align-items: center; width: calc(100% + 44px); height: 87px; margin: 0 -22px 20px; padding: 8px 20px; background: var(--primary); }
.workspace-brand img { display: block; width: 104px; height: 72px; object-fit: contain; }
.workspace-customer-form { display: block; margin-left: auto; }
.workspace-customer-link { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; padding: 0; color: rgb(255 255 255 / 65%); background: transparent; border: 0; text-decoration: none; }
.workspace-customer-link:hover { color: #fff; background: transparent; }
.workspace-customer-link svg { width: 20px; height: 20px; }
.workspace-logout-form { position: absolute; right: 8px; top: 8px; }
.workspace-logout { min-height: 28px; padding: 2px 6px; color: transparent; background: transparent; }
.workspace { display: flex; flex: 1; flex-direction: column; max-width: 354px; width: 100%; margin: 0 auto; gap: 0; }
.workspace-heading { display: none; }
.workspace-statistics { display: grid; gap: 16px; }
.statistics-section { padding: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.statistics-section h2 { margin: 0; padding: 13px 16px 11px; color: var(--ink-soft); font-size: .68rem; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; }
.statistics-list { margin: 0; }
.statistics-list > div { display: flex; align-items: center; min-height: 45px; padding: 0 16px; border-top: 1px solid var(--line); }
.statistics-list dt { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink-soft); font-size: .73rem; }
.statistics-list dd { margin: 0 0 0 auto; padding-left: 10px; color: var(--primary); font-size: .92rem; font-weight: 600; }
.statistics-list .is-bonus dd { color: var(--green); }
.statistics-icon { display: inline-grid; place-items: center; width: 17px; color: var(--primary); font-size: 1rem; }
.statistics-icon svg { display: block; width: 17px; height: 17px; }
.statistics-list .is-bonus .statistics-icon { color: var(--green); }
.workspace-actions { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: auto; padding-top: 18px; }
.workspace-actions a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 15px; color: #fff; font-size: .85rem; font-weight: 400; text-decoration: none; }
.workspace-actions a span { font-size: 1.35rem; line-height: 1; }
.workspace-register { background: var(--green); }
.workspace-search { background: var(--primary); }
.barista-login-screen, .barista-flow-screen, .barista-history-screen, .barista-shopping-screen { background: var(--cream); }
.barista-login-screen .shell, .barista-flow-screen .shell, .barista-history-screen .shell, .barista-shopping-screen .shell { width: min(430px, calc(100% - 12px)); min-height: calc(100vh - 10px); margin: 5px auto; padding: 0 24px 20px; }
.barista-login-screen .page-content, .barista-flow-screen .page-content, .barista-history-screen .page-content, .barista-shopping-screen .page-content { display: flex; flex: 1; flex-direction: column; }
.barista-login-header { display: grid; place-items: center; width: calc(100% + 48px); height: 168px; margin: 0 -24px; background: var(--primary); }
.barista-login-header img { display: block; width: 190px; height: 140px; object-fit: contain; }
.barista-login-page { flex: 1; max-width: 344px; width: 100%; margin: 34px auto 0; }
.barista-login-page h1 { margin: 0 0 5px; color: var(--primary); font-family: "DM Sans", sans-serif; font-size: 1.45rem; font-weight: 400; letter-spacing: 0; }
.barista-login-page > p { margin: 0 0 25px; color: var(--ink-soft); font-size: .75rem; }
.barista-login-page form, .barista-form { display: flex; flex-direction: column; gap: 10px; }
.barista-login-page label, .barista-form > label { color: var(--primary); font-size: .75rem; font-weight: 400; }
.barista-login-page input, .barista-form input { min-height: 52px; padding: 0 16px; border: 2px solid #e1e5e8; border-radius: 15px; font-size: .85rem; }
.barista-login-page input:focus, .barista-form input:focus { border-color: var(--primary); outline: none; }
.barista-submit { min-height: 56px; margin-top: 2px; color: var(--ink-soft); background: #f0ede8; border: 0; border-radius: 15px; font-size: .9rem; font-weight: 400; }
.barista-submit:hover { color: var(--ink-soft); background: #e8e4de; }
.barista-form:has(#id_name:valid):has(#id_phone:valid) .barista-submit { color: #fff; background: var(--green); }
.barista-form:has(#id_name:valid):has(#id_phone:valid) .barista-submit:hover { background: var(--green-dark); }
.search-form:has(#id_last4:valid) .barista-submit { color: #fff; background: var(--green); }
.search-form:has(#id_last4:valid) .barista-submit:hover { background: var(--green-dark); }
.barista-login-footer, .barista-flow-footer { flex: 0 0 76px; width: calc(100% + 48px); margin: 30px -24px -20px; border-top: 1px solid var(--line); display: grid; place-items: center; }
.barista-login-footer a, .barista-flow-footer a { color: var(--ink-soft); font-size: .75rem; text-decoration: none; }
.barista-flow-header { display: flex; align-items: center; width: calc(100% + 48px); height: 60px; margin: 0 -24px 26px; padding: 0 20px; color: #fff; background: var(--primary); }
.barista-flow-header a { color: #fff; font-size: 1.6rem; line-height: 1; text-decoration: none; }
.barista-flow-header h1 { margin: 0 0 0 24px; color: #fff; font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.barista-form-page, .barista-search-page { flex: 1; max-width: 344px; width: 100%; margin: 0 auto; }
.barista-form-intro { margin: 0 0 24px; color: var(--ink-soft); font-size: .75rem; }
.barista-form > input { margin-bottom: 10px; }
.barista-inline-link { display: block; margin-top: 20px; color: var(--green); font-size: .75rem; text-align: center; text-decoration: none; }
.barista-flow-footer { margin-top: 30px; }
.search-form { gap: 12px; }
.search-form input { letter-spacing: .18em; }
.search-summary { margin: -5px 0 14px; color: var(--ink-soft); font-size: .72rem; line-height: 1.45; }
.search-summary strong { color: var(--primary); font-weight: 400; }
.search-empty { display: grid; gap: 14px; margin-top: 34px; text-align: center; }
.search-empty p { margin: 0; color: var(--primary); font-size: .95rem; }
.search-register-link { display: grid; place-items: center; margin-top: 0; color: #fff; background: var(--green); text-decoration: none; }
.search-register-link:hover { color: #fff; background: var(--green-dark); }
.barista-customer-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.barista-customer-list a { display: flex; align-items: center; gap: 12px; min-height: 78px; padding: 12px 16px; color: var(--primary); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); text-decoration: none; }
.customer-initial { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; color: var(--primary); background: var(--mint); border-radius: 50%; font-size: .85rem; }
.barista-customer-list a > span:nth-child(2) { display: grid; gap: 2px; }
.barista-customer-list strong { font-size: .85rem; font-weight: 400; }
.barista-customer-list small { font-size: .75rem; }
.barista-customer-list b { margin-left: auto; color: var(--muted); font-size: 1.4rem; font-weight: 400; }
.barista-history-header { display: grid; grid-template-rows: 32px 1fr; gap: 18px; width: calc(100% + 48px); height: 142px; margin: 0 -24px 20px; padding: 20px; color: #fff; background: var(--primary); }
.history-header-title { display: flex; align-items: center; gap: 22px; }
.history-header-title a { color: #fff; font-size: 1.6rem; line-height: 1; text-decoration: none; }
.barista-history-header h1 { margin: 0; color: #fff; font-family: "DM Sans", sans-serif; font-size: 1rem; font-weight: 400; letter-spacing: 0; }
.history-header-customer { display: flex; align-items: center; gap: 12px; }
.history-header-customer .customer-initial { color: var(--primary); background: rgb(255 255 255 / 18%); }
.barista-history-header strong, .barista-history-header small { display: block; }
.barista-history-header strong { font-size: 1rem; font-weight: 400; }
.barista-history-header small { color: rgb(255 255 255 / 65%); font-size: .75rem; }
.barista-history-page { flex: 1; max-width: 354px; width: 100%; margin: 0 auto; }
.barista-history-card { margin-bottom: 10px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.barista-history-card time { display: block; padding-bottom: 10px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: .72rem; }
.history-clock-icon { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -3px; color: var(--muted); }
.history-detail { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--ink-soft); font-size: .72rem; }
.history-detail-icon { width: 16px; color: var(--primary); font-size: 1rem; }
.history-detail-icon svg { display: block; width: 16px; height: 16px; }
.history-detail em { color: var(--green); font-style: normal; }
.barista-shopping-page { flex: 1; max-width: 354px; width: 100%; margin: 0 auto; }
.shopping-customer { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 74px; margin-bottom: 18px; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.shopping-customer .customer-initial { color: #fff; background: var(--green); }
.shopping-customer h2 { margin: 0; color: var(--primary); font-size: .85rem; font-weight: 400; }
.shopping-customer p { margin: 2px 0 0; color: var(--ink-soft); font-size: .75rem; }
.shopping-customer a { color: var(--ink-soft); font-size: .68rem; text-decoration: none; }
.shopping-section-title { margin: 0 0 18px 4px; color: var(--ink-soft); font-size: .68rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.barista-purchase-form { display: grid; gap: 14px; }
.shopping-program { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0; min-width: 0; padding: 56px 0 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 3px 8px rgb(24 61 59 / 8%); }
.shopping-program legend { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 10px; width: 100%; height: 56px; margin: 0; padding: 8px 16px; border-bottom: 1px solid var(--line); color: var(--primary); font-size: .85rem; }
.shopping-program-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--green); border-radius: 50%; font-size: 1.3rem; }
.shopping-stepper { position: absolute; top: 11px; right: 16px; display: flex; align-items: center; gap: 8px; }
.shopping-stepper button { min-width: 34px; width: 34px; height: 34px; min-height: 34px; padding: 0; color: var(--green); background: var(--paper); border: 2px solid #e1e5e8; border-radius: 50%; font-size: 1.2rem; font-weight: 400; }
.shopping-stepper button:last-child { color: #fff; background: var(--green); border-color: var(--green); }
.shopping-stepper input { width: 38px; min-height: 38px; padding: 0; border: 0; text-align: center; appearance: textfield; }
.shopping-stepper input:focus, .shopping-stepper input:focus-visible { border: 0; outline: none; box-shadow: none; }
.shopping-stepper input::-webkit-outer-spin-button, .shopping-stepper input::-webkit-inner-spin-button { margin: 0; appearance: none; }
.shopping-program dl { display: grid; grid-template-columns: 1fr auto; grid-column: 1 / -1; margin: 0; }
.shopping-program dt, .shopping-program dd { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .72rem; }
.shopping-program dd { color: var(--primary); text-align: right; }
.purchase-submit { width: 100%; margin-top: 2px; }
.shopping-other { margin-top: 8px; }
