@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --forest: #19392f;
  --forest-soft: #315f4e;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --peach: #e9a37d;
  --peach-soft: #f8ded0;
  --sage: #b9cbbd;
  --ink: #183028;
  --muted: #6c776f;
  --line: rgba(25, 57, 47, 0.14);
  --danger: #a54434;
  --shadow: 0 24px 70px rgba(31, 52, 43, 0.13);
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); background: linear-gradient(145deg, #f7f0e5 0%, #eef1e8 52%, #f8e8dd 100%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; z-index: 0; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.ambient-one { width: 36vw; height: 36vw; min-width: 320px; min-height: 320px; top: -17vw; right: -8vw; background: rgba(233, 163, 125, 0.36); }
.ambient-two { width: 28vw; height: 28vw; min-width: 260px; min-height: 260px; bottom: -12vw; left: -9vw; background: rgba(116, 154, 130, 0.25); }
.portal-shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 64px; }
.portal-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.portal-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.portal-brand small { display: block; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; }
.portal-brand strong { display: block; margin-top: 2px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; color: var(--paper); background: var(--forest); border-radius: 12px; font-family: var(--display); }
.brand-mark img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.025em; }
h1 { margin: 10px 0 16px; font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: 0.98; }
h2 { margin: 5px 0 12px; font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { margin: 0; font-size: 1.2rem; }
p { line-height: 1.6; }
.kicker, .step-label { margin: 0; color: var(--forest-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; }
.auth-stage { min-height: calc(100vh - 120px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr); gap: clamp(30px, 8vw, 100px); align-items: center; }
.auth-copy { padding: 40px 0; }
.auth-copy > p:not(.kicker) { max-width: 610px; color: var(--muted); font-size: 1.15rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.trust-row span { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 253, 248, 0.48); font-size: 0.78rem; font-weight: 600; }
.auth-card, .content-section, .feature-card { border: 1px solid var(--line); background: rgba(255, 253, 248, 0.86); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.auth-card { border-radius: 22px; padding: clamp(24px, 5vw, 42px); }
.auth-card p:not(.step-label) { color: var(--muted); }
label { display: grid; gap: 8px; margin-top: 18px; color: var(--forest); font-size: 0.83rem; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; color: var(--ink); background: rgba(255, 255, 255, 0.78); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 3px rgba(49, 95, 78, 0.12); }
input:disabled { color: var(--muted); background: rgba(25, 57, 47, 0.05); }
label small { color: var(--muted); font-weight: 400; }
.primary-button, .quiet-button, .danger-button, .text-button, .back-button { border-radius: 9px; padding: 12px 17px; font-weight: 700; border: 1px solid transparent; }
.primary-button { width: 100%; margin-top: 22px; color: white; background: var(--forest); }
.primary-button:hover { background: var(--forest-soft); }
.quiet-button { color: var(--forest); border-color: var(--line); background: rgba(255, 253, 248, 0.7); }
.auth-secondary { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-card label span small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.danger-button { color: white; background: var(--danger); }
.text-button, .back-button { padding: 6px 0; color: var(--forest-soft); background: transparent; }
.feedback { min-height: 22px; margin-top: 16px; color: var(--danger); font-weight: 600; }
.feedback[data-tone="success"] { color: #267051; }
.development-code { padding: 10px 12px; border-radius: 8px; color: var(--forest) !important; background: var(--peach-soft); }
.welcome-strip { display: flex; justify-content: space-between; gap: 20px; align-items: end; padding: 50px 0 28px; }
.welcome-strip h1 { margin-bottom: 0; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.book-button { width: auto; min-width: 170px; margin: 0; }
.portal-nav { position: sticky; top: 12px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin-bottom: 24px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 248, 0.88); box-shadow: 0 12px 32px rgba(31, 52, 43, 0.09); backdrop-filter: blur(16px); }
.nav-item { flex: 1; min-width: max-content; border: 0; border-radius: 8px; padding: 11px 13px; color: var(--muted); background: transparent; font-weight: 700; }
.nav-item.active { color: white; background: var(--forest); }
.portal-view { display: none; }
.portal-view.active { display: block; animation: reveal 280ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.feature-grid, .profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feature-card, .content-section { border-radius: 18px; padding: clamp(20px, 4vw, 30px); }
.next-card { min-height: 250px; color: white; background: var(--forest); }
.next-card .kicker, .next-card .muted { color: rgba(255,255,255,.72); }
.membership-card { min-height: 250px; background: linear-gradient(145deg, #f2c8ae, #f8e4d6); }
.metric-number { margin: 18px 0 4px; font-family: var(--display); font-size: clamp(2rem, 5vw, 3.4rem); }
.content-section { margin-top: 18px; }
.subdued-section { background: rgba(245, 246, 240, 0.78); box-shadow: none; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.section-heading h2 { margin-bottom: 0; }
.appointment-list, .membership-list, .gift-card-list, .session-list { display: grid; gap: 10px; }
.appointment-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.appointment-row:first-child { border-top: 0; }
.date-block { display: grid; text-align: center; border-right: 1px solid var(--line); }
.date-block strong { font-family: var(--display); font-size: 1.8rem; }
.date-block span, .appointment-meta, .muted, .section-note { color: var(--muted); }
.appointment-title { font-weight: 700; }
.appointment-meta { margin-top: 5px; font-size: .88rem; }
.status-pill { display: inline-flex; width: max-content; margin-top: 8px; padding: 5px 8px; border-radius: 6px; color: var(--forest-soft); background: rgba(185, 203, 189, .32); font-size: .72rem; font-weight: 700; text-transform: capitalize; }
.appointment-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cancel-button, .session-button, .calendar-button, .late-button { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: transparent; font-weight: 700; }
.cancel-button, .session-button { color: var(--danger); }
.calendar-button { color: var(--forest); background: rgba(185, 203, 189, .18); }
.late-button { color: #87501f; border-color: rgba(177, 111, 51, .3); background: rgba(233, 163, 125, .18); }
.late-notice-sent { margin-top: 0; color: #87501f; background: rgba(233, 163, 125, .22); }
.empty-state { padding: 28px 0; color: var(--muted); text-align: center; }
.message-compose-section textarea { width: 100%; resize: vertical; }
.message-compose-actions { justify-content: flex-end; }
.customer-message-list, .message-entry-list { display: grid; gap: 12px; }
.customer-message-thread { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.message-thread-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; color: var(--muted); font-size: .82rem; }
.message-entry { width: min(78%, 620px); padding: 12px 14px; border-radius: 12px; }
.message-entry.from-customer { justify-self: end; color: white; background: var(--forest); }
.message-entry.from-business { justify-self: start; background: rgba(185, 203, 189, .26); }
.message-entry span, .message-entry time { display: block; font-size: .72rem; opacity: .72; }
.message-entry p { margin: 5px 0; white-space: pre-wrap; }
.live-refresh-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-size: .78rem; font-weight: 700; }
.live-refresh-indicator::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2c7a58; box-shadow: 0 0 0 4px rgba(44, 122, 88, .12); }
.message-entry-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 11px 0 8px; }
.message-action { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 12px; border: 1px solid var(--forest); border-radius: 8px; color: white; background: var(--forest); font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.message-action.secondary { color: var(--forest); background: white; }
.thread-reply-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.thread-reply-form label > span { display: block; margin-bottom: 7px; color: var(--forest); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.thread-reply-form textarea { width: 100%; min-height: 74px; resize: vertical; border: 1px solid var(--line); border-radius: 9px; padding: 12px; color: var(--ink); background: var(--paper); font: inherit; }
.thread-reply-form textarea:focus { outline: 3px solid rgba(49, 95, 78, .16); border-color: var(--forest-soft); }
.thread-reply-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 9px; }
.thread-reply-actions { display: flex; gap: 8px; }
.thread-reply-feedback { color: var(--muted); font-size: .76rem; }
.thread-reply-feedback[data-tone="success"] { color: #1e5a40; font-weight: 700; }
.thread-reply-feedback[data-tone="error"] { color: var(--danger); font-weight: 700; }
.member-pass { display: grid; grid-template-columns: minmax(0, 1fr) 138px; gap: 24px; padding: 24px; border-radius: 14px; color: white; background: linear-gradient(135deg, #19392f, #315f4e); }
.member-pass img { width: 138px; height: 138px; padding: 7px; border-radius: 10px; background: white; }
.member-code { font-family: monospace; letter-spacing: .08em; }
.membership-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.membership-plan-card { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-left: 5px solid var(--plan-color, var(--forest-soft)); border-radius: 12px; color: var(--ink); background: white; text-align: left; }
.membership-plan-card:hover { transform: translateY(-1px); border-color: var(--forest-soft); }
.membership-plan-card.current { background: rgba(185, 203, 189, .22); }
.membership-plan-card strong { font-family: var(--display); font-size: 1.25rem; }
.membership-plan-card span { color: var(--muted); }
.payment-method-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(185, 203, 189, .16); }
.payment-method-card.needs-attention { border-color: rgba(165, 68, 52, .35); background: rgba(165, 68, 52, .08); }
.payment-method-card.is-empty { background: rgba(25, 57, 47, .04); }
.payment-method-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.payment-method-heading strong, .payment-method-heading span { display: block; }
.payment-health { margin-top: 5px; color: var(--forest-soft); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.needs-attention .payment-health { color: var(--danger); }
.payment-provider { padding: 5px 7px; border-radius: 6px; color: var(--muted); background: rgba(25, 57, 47, .06); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.payment-method-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.payment-method-actions .quiet-button { padding: 9px 12px; }
.payment-remove { color: var(--danger); }
.payment-consent { align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(185, 203, 189, .12); }
.dialog-primary { width: auto; margin-top: 0; }
.gift-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.gift-balance { font-family: var(--display); font-size: 1.6rem; }
.gift-card-link { display: inline-block; margin-top: 12px; }
.gift-purchase-section form { display: grid; gap: 14px; }
.gift-purchase-section textarea { width: 100%; resize: vertical; }
.gift-amount-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.gift-amount-grid button { min-height: 54px; border: 1px solid var(--forest-soft); border-radius: 9px; color: var(--forest); background: rgba(185, 203, 189, .18); font: inherit; font-weight: 800; cursor: pointer; }
.gift-amount-grid button:hover { color: white; background: var(--forest); }
.profile-form fieldset { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.profile-form legend { padding: 0 6px; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; font-weight: 500; }
.check-row input { width: 18px; height: 18px; }
.field-help { margin: 4px 0 10px; color: var(--muted); font-size: .82rem; }
.food-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 12px; }
.session-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.session-row:first-child { border-top: 0; }
.session-row strong, .session-row small { display: block; }
.session-row small { margin-top: 4px; color: var(--muted); }
.customer-qr-card { display: grid; place-items: center; margin-top: 24px; min-height: clamp(400px, 58vw, 660px); padding: clamp(24px, 5vw, 54px); border-radius: 14px; background: #153c31; }
.customer-qr-code { display: grid; place-items: center; width: min(100%, 540px); aspect-ratio: 1; padding: clamp(12px, 2vw, 20px); border-radius: 12px; background: white; }
.customer-qr-code img { display: block; width: 100%; height: 100%; }
.customer-qr-code .qr-unavailable { color: #153c31; font-size: .78rem; text-align: center; }
dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 90px rgba(20, 39, 32, .25); }
dialog::backdrop { background: rgba(18, 34, 29, .52); backdrop-filter: blur(5px); }
.dialog-card { position: relative; padding: 30px; }
.dialog-close { position: absolute; top: 15px; right: 16px; border: 0; color: var(--muted); background: transparent; font-size: 1.8rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.appointment-feedback-dialog { width: min(590px, calc(100% - 28px)); }
.appointment-feedback-card { padding: clamp(28px, 6vw, 48px); text-align: center; }
.appointment-feedback-card h2 { margin: 8px 0 10px; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.08; }
.appointment-feedback-card h3 { margin: 25px 0 12px; }
.feedback-tip-section h3 span { margin-left: 6px; color: var(--muted); font-family: var(--font-sans); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.appointment-feedback-visit { margin: 0; color: var(--muted); }
.feedback-stars { display: flex; justify-content: center; gap: clamp(4px, 2vw, 12px); margin: 25px 0 8px; }
.feedback-stars button { border: 0; padding: 0; color: #d7d4ca; background: transparent; font-size: clamp(2.7rem, 10vw, 4.5rem); line-height: 1; transition: color 140ms ease, transform 140ms ease; }
.feedback-stars button:hover { transform: translateY(-2px); }
.feedback-stars button.selected { color: #d6a935; text-shadow: 0 3px 14px rgba(214, 169, 53, .25); }
.feedback-tip-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feedback-tip-options button { min-height: 56px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest); background: white; font-weight: 800; }
.feedback-tip-options button.selected { border-color: var(--forest); color: white; background: var(--forest); }
.feedback-tip-section.is-disabled h3 { color: #8b918d; }
.feedback-tip-section.is-disabled .feedback-tip-options button,
.feedback-tip-options button:disabled {
  border-color: #d7dad8;
  color: #929895;
  background: #e8eae9;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.feedback-actions { justify-content: space-between; }
.booking-dialog { width: min(880px, calc(100% - 28px)); max-height: min(90vh, 900px); }
.booking-shell { padding: clamp(22px, 4vw, 34px); }
.booking-header { position: relative; display: flex; justify-content: space-between; gap: 20px; padding-right: 32px; }
.booking-header h2 { margin-bottom: 0; }
.booking-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 8px; }
.booking-progress span { padding: 9px 10px; border-bottom: 3px solid var(--line); color: var(--muted); font-size: .73rem; font-weight: 700; text-align: center; }
.booking-progress span.active { border-color: var(--peach); color: var(--forest); }
.booking-feedback { margin: 0; }
.booking-step { display: none; padding-top: 10px; }
.booking-step.active { display: block; animation: reveal 220ms ease both; }
.booking-step-heading { margin-bottom: 18px; }
.booking-step-heading h3 { margin-top: 7px; font-size: clamp(1.45rem, 3vw, 2rem); }
.booking-step-heading p:last-child { margin: 5px 0 0; color: var(--muted); }
.location-field { max-width: 360px; margin-bottom: 18px; }
.service-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; }
.choice-card { display: grid; gap: 6px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; text-align: left; }
.choice-card:hover { border-color: var(--sage); transform: translateY(-1px); }
.choice-card.selected { border-color: var(--forest-soft); background: rgba(185, 203, 189, .24); box-shadow: inset 0 0 0 1px var(--forest-soft); }
.choice-card strong { font-family: var(--display); font-size: 1.15rem; }
.choice-card span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.choice-card .choice-price { color: var(--forest); font-weight: 700; }
.technician-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.technician-avatar { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 10px; color: white; background: var(--forest-soft); font-family: var(--display); }
.booking-slot-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 420px; overflow-y: auto; }
.slot-card { padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; text-align: left; }
.slot-card strong, .slot-card span { display: block; }
.slot-card span { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.slot-card.selected { border-color: var(--forest); color: white; background: var(--forest); }
.slot-card.selected span { color: rgba(255,255,255,.75); }
.booking-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.booking-actions .primary-button { width: auto; min-width: 180px; margin: 0; }
.booking-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.review-item { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(185, 203, 189, .14); }
.review-item span, .review-item strong { display: block; }
.review-item span { margin-bottom: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 760px) {
  .portal-shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .auth-stage { grid-template-columns: 1fr; gap: 6px; align-content: center; }
  .auth-copy { padding: 35px 6px 14px; }
  .auth-copy h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .auth-copy > p:not(.kicker), .trust-row { display: none; }
  .feature-grid, .profile-grid { grid-template-columns: 1fr; }
  .welcome-strip { align-items: center; padding-top: 34px; }
  .book-button { min-width: 0; }
  .portal-nav { overflow-x: auto; }
  .nav-item { flex: 0 0 auto; min-width: 112px; }
  .appointment-row { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .appointment-row > :last-child { grid-column: 2; justify-self: start; }
  .member-pass { grid-template-columns: 1fr; }
  .member-pass img { width: 128px; height: 128px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .customer-qr-card { min-height: 0; padding: 18px; }
  .customer-qr-code { width: 100%; }
  .booking-dialog { width: calc(100% - 12px); max-height: 95vh; }
  .booking-progress { overflow-x: auto; grid-template-columns: repeat(4, minmax(105px, 1fr)); }
  .service-choice-grid, .booking-review, .membership-plan-grid { grid-template-columns: 1fr; }
  .technician-choice-grid, .booking-slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-actions .primary-button { min-width: 0; }
  .thread-reply-footer { align-items: stretch; flex-direction: column; }
  .thread-reply-actions { justify-content: flex-end; }
}
.booking-cafe-section { margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.55); }
.cafe-timing-field { display: grid; gap: 7px; margin: 14px 0; max-width: 420px; }
.cafe-timing-field span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.cafe-timing-field select { width: 100%; }
.portal-cafe-menu { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 9px; margin: 14px 0; }
.portal-cafe-item { display: grid; gap: 5px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-align: left; background: white; }
.portal-cafe-item span { color: var(--muted); font-size: .78rem; }
.portal-cafe-item b { color: var(--accent); }
.food-tag-row { display: flex; flex-wrap: wrap; gap: 4px; }
.food-tag { padding: 2px 5px; border-radius: 4px; color: var(--muted); background: var(--soft); font-size: .66rem; }
.portal-cafe-item.has-warning { border-color: #bc5a3c; background: #fff8f4; }
.cafe-safety-review { margin: 12px 0; padding: 14px; border: 2px solid #bc5a3c; border-radius: 8px; color: #6f2919; background: #fff2eb; }
.cafe-safety-review strong { display: block; }
.cafe-safety-review ul { margin: 8px 0; padding-left: 20px; }
.cafe-safety-review .check-row { align-items: flex-start; font-weight: 700; }
.portal-cafe-cart { display: grid; gap: 6px; margin: 10px 0 16px; }
.portal-cafe-line { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.portal-cafe-line .cafe-quantity { display: flex; align-items: center; gap: 7px; }
.portal-cafe-line button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.cafe-order-summary { margin-top: 7px; color: var(--accent); font-size: .82rem; font-weight: 700; }
.birthday-offer-notice { margin-top: 10px; padding: 10px 12px; border-left: 4px solid #c49a35; background: #fff2c9; color: #694c0a; font-weight: 700; }
.digital-receipt { margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.62); }
.digital-receipt summary { cursor: pointer; font-weight: 800; }
.digital-receipt > div { display: flex; justify-content: space-between; gap: 14px; padding-top: 8px; }
.digital-receipt .receipt-discount { color: #9a3b21; }
.cafe-order-card { width: min(760px,calc(100vw - 30px)); max-height: 90vh; overflow-y: auto; }
#cafe-order-dialog { width: min(760px,calc(100% - 24px)); }
