:root {
  --ink: #090909;
  --charcoal: #2f302d;
  --muted: #777971;
  --line: #d9d9d2;
  --paper: #f7f7f3;
  --white: #ffffff;
  --stone: #ebeae4;
  --warm: #d5c8b4;
  --gothic: "Noto Sans CJK SC", "Noto Sans CJK JP", "Noto Sans SC", "Noto Sans JP", "Source Han Sans SC", "Source Han Sans JP", "Source Han Sans CN", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: var(--gothic);
  --sans: var(--gothic);
  --serif: var(--gothic);
  --page-max: 1180px;
  --page-pad: clamp(14px, 3.2vw, 34px);
  --screen-y: clamp(18px, 3vw, 34px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app { width: min(var(--page-max), 100%); min-height: 100dvh; margin: 0 auto; background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.wide { width: min(1180px, 100%); padding: 0 24px; }
.top { position: sticky; top: 0; z-index: 30; background: rgba(247,247,243,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 12px var(--page-pad) 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { text-decoration: none; color: inherit; line-height: 1; }
.subbrand-logo { display: inline-flex; align-items: center; gap: 7px; flex: 0 1 auto; min-width: 0; }
.brand-lockup-img { display: block; width: clamp(150px, 24vw, 220px); max-width: calc(100vw - 190px); height: auto; flex: 0 0 auto; }
.brand-core { display: inline-flex; flex-direction: column; min-width: 0; }
.brand-logo-img { display: block; width: 112px; height: auto; flex: 0 0 auto; }
.wordmark { display: block; font-size: 20px; letter-spacing: .22em; font-weight: 700; margin-right: -.22em; }
.tagline { display: block; width: calc(100% + 4.5px); margin-top: 6px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; text-align: justify; text-align-last: justify; text-transform: uppercase; white-space: nowrap; }
.brand-divider { width: 1px; height: 34px; background: var(--ink); opacity: .82; flex: 0 0 auto; }
.subbrand-mark { width: 52px; height: 34px; border: 1px solid var(--ink); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 7px; line-height: 1; letter-spacing: .12em; font-weight: 800; flex: 0 0 auto; }
.subbrand-mark i { display: block; width: 34px; border-top: 1px solid var(--ink); }
.top-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.chip, .icon-btn { min-height: 34px; border: 1px solid var(--line); background: var(--white); padding: 0 8px; font-size: 11px; }
a.chip { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; }
.order-entry { position: relative; }
.order-entry.has-unread::after { content: ""; position: absolute; right: -2px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.contact-line, .contact-line a { text-transform: none !important; color: inherit; }
.chip-link { white-space: nowrap; font-size: 10px; letter-spacing: .04em; padding-inline: 8px; }
.icon-btn { width: 34px; font-size: 18px; padding: 0; }
.menu-panel { position: fixed; left: 50%; top: 74px; transform: translateX(-50%) translateY(-8px); width: min(var(--page-max), 100%); z-index: 25; padding: 0 var(--page-pad) 16px; background: rgba(247,247,243,.96); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.wide-menu { width: min(1180px, 100%); }
.menu-panel.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.menu-panel button { width: 100%; min-height: 52px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font-size: 18px; font-weight: 800; }
.menu-panel button:first-child { border-top: 0; }
.screen { display: none; min-height: calc(100dvh - 74px); padding: var(--screen-y) var(--page-pad) calc(150px + env(safe-area-inset-bottom)); scroll-padding-bottom: calc(120px + env(safe-area-inset-bottom)); }
.screen.active { display: block; }
.kicker { margin: 0 0 14px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin: 0; }
h1 { font-family: var(--serif); font-size: 44px; line-height: 1; font-weight: 400; }
h2 { font-family: var(--serif); font-size: 34px; line-height: 1.06; font-weight: 400; }
h3 { font-size: 20px; line-height: 1.22; font-weight: 800; }
p { color: var(--charcoal); font-size: 15px; line-height: 1.62; }
.hero { margin: calc(-1 * var(--screen-y)) calc(-1 * var(--page-pad)) 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.hero-img { height: 255px; background: var(--stone); }
.hero-copy { padding: 22px 18px 26px; }
.lead { padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.62; font-weight: 700; margin-top: 18px; }
.cta-row, .split, .metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.measure-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cta-row { margin-top: 18px; }
.btn { min-height: 54px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); padding: 0 16px; font-weight: 800; text-align: center; }
.btn:disabled { opacity: .46; cursor: wait; }
.btn.secondary, .btn.light { background: transparent; color: var(--ink); border-color: var(--line); }
.plan-next-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 28px; min-width: 164px; }
.step-back-btn { min-height: 34px; border: 1px solid var(--line); background: var(--white); padding: 0 12px; margin: -2px 0 18px; font-size: 12px; font-weight: 700; }
.section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 86px; }
.section h2 { overflow-wrap: anywhere; }
.hero + .section { padding-top: 56px; }
.flow { display: grid; gap: 12px; margin-top: 18px; }
.flow-card { background: var(--white); border: 1px solid var(--line); min-height: 118px; display: grid; grid-template-columns: 78px 1fr; }
.flow-no { border-right: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 15px; letter-spacing: .14em; }
.flow-card div:last-child { padding: 16px; }
.flow-card p { font-size: 13px; margin-top: 7px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 78%); gap: 14px; overflow-x: auto; margin: 18px calc(-1 * var(--page-pad)) 0; padding: 0 var(--page-pad) 12px; scroll-snap-type: x mandatory; }
.card, .panel, .plan { border: 1px solid var(--line); background: var(--white); text-align: left; padding: 0; overflow: hidden; width: 100%; }
.panel, .plan { padding: 16px; margin-top: 14px; }
.compact-panel { padding: 12px 14px; }
.strong, .selected { border-color: var(--ink); box-shadow: inset 0 -6px 0 var(--warm); }
.card { scroll-snap-align: start; }
.card, .stylist-case-card { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: rgba(9,9,9,.08); }
.card-img { aspect-ratio: 4 / 5; height: auto; background: var(--stone); }
.card-img img { object-fit: contain; object-position: center top; }
.card-body { padding: 16px; }
.card-link { display: block; margin-top: 14px; font-size: 12px; font-weight: 800; }
.stylist-list { display: grid; gap: 18px; justify-items: center; margin-top: 22px; padding-bottom: 12px; }
.stylist-card { width: min(330px, 100%); border: 1px solid var(--line); background: var(--white); text-align: left; padding: 0; overflow: hidden; }
.stylist-card-main { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; }
.stylist-card .card-img { height: 360px; background: var(--stone); }
.stylist-card .card-img img { object-fit: cover; object-position: center center; }
.stylist-card .card-body { padding: 16px; }
.stylist-card p { font-size: 13px; }
.stylist-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 16px 16px; }
.designate-btn, .favorite-btn { width: 100%; min-height: 46px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-weight: 800; }
.favorite-btn { background: var(--white); color: var(--ink); }
.favorite-btn.active { background: var(--paper); box-shadow: inset 0 -4px 0 var(--line); }
.stylist-designate { width: 100%; margin-top: -4px; }
.meta { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 12px; line-height: 1.4; }
.section-lead { margin-top: 12px; font-size: 13px; color: var(--muted); }
.price { font-size: 34px; font-weight: 800; margin: 12px 0 8px; }
.field { display: grid; gap: 8px; margin: 14px 0; }
label { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.form-hint { margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.65; }
.history-prefill-note { margin-top: -6px; border: 1px solid var(--line); border-left: 4px solid var(--ink); padding: 12px 14px; background: var(--paper); color: var(--charcoal); }
.form-hint strong, .required-mark, .upload b { color: var(--ink); font-weight: 900; }
.intake-panel .field label { display: flex; align-items: center; gap: 4px; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); background: var(--white); border-radius: 0; padding: 12px; color: var(--ink); outline: none; }
textarea { min-height: 104px; resize: vertical; }
.auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.close-auth { width: 42px; height: 42px; border: 0; background: transparent; font-size: 32px; line-height: 1; }
.auth-shell { margin: 8px calc(-1 * var(--page-pad)) 0; border-top: 1px solid var(--line); background: var(--white); }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 0; position: sticky; top: 57px; z-index: 5; background: var(--white); }
.auth-tabs.two-tabs { grid-template-columns: repeat(2, 1fr); position: static; top: auto; }
.auth-tabs button { min-height: 46px; border: 0; border-right: 1px solid var(--line); background: var(--white); font-size: 13px; font-weight: 800; }
.auth-tabs button:last-child { border-right: 0; }
.auth-tabs button.active { background: var(--ink); color: var(--white); }
.auth-pane { display: none; }
.auth-pane.active { display: block; padding: 26px 18px 34px; }
.auth-pane h2 { margin-bottom: 22px; font-size: 32px; line-height: 1.14; }
.auth-rule { height: 2px; background: var(--line); margin: -6px 0 26px; }
.required-note { text-align: right; color: var(--muted); font-size: 12px; margin: -10px 0 16px; }
.form-section-title { margin: 30px 0 12px; font-size: 22px; font-weight: 500; }
.auth-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.auth-note.plain { margin: 0 0 18px; padding: 0; border: 0; }
.auth-divider { margin: 30px 0 0; border-top: 1px solid var(--line); }
.auth-secondary { margin: 0; padding: 28px 0 0; background: transparent; }
.auth-secondary h3 { font-size: 22px; font-weight: 500; }
.auth-secondary p { margin: 16px 0 22px; color: var(--muted); }
.auth-forgot-row { display: flex; justify-content: flex-end; margin: -2px 0 20px; }
.text-link { border: 0; background: transparent; padding: 0 0 2px; border-bottom: 1px solid var(--ink); font-size: 14px; margin: 0; }
.pill-btn { border-radius: 999px; }
.auth-submit { width: 100%; min-height: 58px; margin-top: 4px; border-radius: 0; font-size: 16px; letter-spacing: .08em; }
.auth-submit-secondary { background: var(--stone); color: var(--ink); border-color: var(--ink); }
.auth-submit-secondary:hover, .auth-submit-secondary:focus { background: var(--ink); color: var(--white); }
.password-field { position: relative; }
.password-field input { padding-right: 54px; }
.password-field button { position: absolute; right: 0; bottom: 0; width: 50px; min-height: 48px; border: 0; border-left: 1px solid var(--line); background: transparent; display: grid; place-items: center; color: var(--ink); }
.password-field button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.phone-row-select { grid-template-columns: 180px 1fr; }
.field-hint { margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.code-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; align-items: stretch; }
.code-row .btn { min-height: 48px; padding: 0 10px; font-size: 13px; }
.code-row .btn:disabled { opacity: .45; cursor: not-allowed; }
.inline-status { min-height: 20px; margin-top: 10px; color: #5f7f23; font-size: 13px; line-height: 1.45; }
.auth-status { min-height: 0; margin: 18px 0 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); color: var(--charcoal); display: none; }
.auth-status:not(:empty) { display: block; }
.auth-status[data-type="error"] { border-color: #9b1c1c; color: #7f1717; background: #fff8f6; }
.auth-status[data-type="success"] { border-color: #0d8f4f; color: #0b6d3f; background: #f5fff9; }
.static-field div { min-height: 48px; display: flex; align-items: center; color: var(--charcoal); }
.consent-list { margin: 22px 0; }
.upload-grid, .photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.upload { position: relative; min-height: 170px; border: 1px dashed var(--muted); background: var(--white); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload.has-image { border-style: solid; color: var(--white); }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; z-index: 0; }
.upload.has-image .upload-preview { display: block; }
.upload span { position: relative; z-index: 1; }
.upload.has-image span { text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.plus { font-size: 42px; font-family: var(--serif); }
.compact { margin-top: -4px; }
.notice-box { border: 1px solid var(--ink); background: var(--white); padding: 16px; margin: 18px 0; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 13px 0; color: var(--charcoal); font-family: var(--sans); font-size: 13px; line-height: 1.55; letter-spacing: 0; text-transform: none; }
.compact-check { margin: 18px 0 4px; }
.check-row input { width: 18px; min-height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--ink); }
.field.invalid input, .field.invalid textarea, .field.invalid select, .notice-box.invalid { border-color: #9b1c1c; box-shadow: inset 0 -3px 0 rgba(155,28,28,.15); }
.sealed, .identity-label, .account-file, .account-guest { border: 1px solid var(--line); background: var(--white); padding: 16px; margin-top: 18px; }
#account.is-member > h2 { display: none; }
.sealed { border-color: var(--ink); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.barcode { width: 180px; height: 32px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 8px, transparent 8px 14px); }
.status { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dot { width: 13px; height: 13px; background: var(--ink); margin-top: 5px; }
.dot.todo { background: var(--line); }
.ticket { border: 1px solid var(--line); background: var(--white); padding: 16px; margin-top: 14px; }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ticket-status { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.chat-box { border: 1px solid var(--line); background: var(--paper); min-height: 170px; max-height: 260px; overflow-y: auto; padding: 12px; margin-top: 14px; display: grid; gap: 10px; align-content: start; }
.chat-message { max-width: 86%; border: 1px solid var(--line); background: var(--white); padding: 10px 12px; }
.chat-message.customer { justify-self: end; background: var(--ink); color: var(--white); border-color: var(--ink); }
.chat-message.customer p { color: var(--white); }
.chat-message.admin { justify-self: start; }
.chat-message .meta { margin-top: 6px; font-size: 10px; }
.identity-row { display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.identity-row:last-child { border-bottom: 0; }
.identity-row span, .cell span { color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.identity-row strong { font-size: 17px; }
.readonly { color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 12px; min-height: 46px; }
.account-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-hero { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.account-hero h3 { font-size: 28px; font-weight: 500; }
.account-hero p { margin-top: 12px; color: var(--muted); }
.compact-hero h3 { font-size: 22px; }
#account.is-member { padding-top: 0; }
.account-file[data-account-member] { border: 0 !important; background: transparent !important; padding: 0 !important; margin: 0 calc(-1 * var(--page-pad)) !important; }
#account.is-member > .kicker, #account.is-member > h2 { display: none; }
.account-file.has-panel .member-home-card { display: none; }
.member-home-card { background: #f8f8f5; padding: 22px 28px 34px; min-height: calc(100dvh - 144px); }
.member-profile-head { min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; }
.member-name-line { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.member-name-line h3 { font-size: clamp(32px, 9.6vw, 40px); line-height: 1.06; font-weight: 800; letter-spacing: 0; overflow-wrap: anywhere; }
.member-profile-head p { margin-top: 6px; color: var(--ink); font-family: var(--sans); font-size: 10px; letter-spacing: .04em; font-weight: 500; }
.member-edit-link { width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink); line-height: 1; margin-top: 1px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0; }
.member-edit-link svg { width: 18px; height: 18px; }
.member-tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
.member-tile, .member-link-list button, .member-logout { appearance: none; -webkit-appearance: none; font: inherit; cursor: pointer; }
.member-tile { width: 100%; min-height: 116px; border: 0 !important; border-radius: 0; background: var(--white) !important; color: var(--ink); display: grid; place-items: center; align-content: center; gap: 13px; padding: 18px 10px; text-align: center; }
.member-tile-wide { grid-column: 1 / -1; min-height: 114px; }
.member-tile-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); }
.member-tile-svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.member-tile strong { font-size: 13px; line-height: 1.25; font-weight: 800; letter-spacing: 0; }
.member-tile-icon::before, .member-tile-icon::after { content: none !important; display: none !important; }
.icon-order::before { content: ""; position: absolute; left: 5px; top: 9px; width: 28px; height: 21px; border: 4px solid currentColor; border-radius: 1px; }
.icon-order::after { content: ""; position: absolute; left: 14px; top: 3px; width: 10px; height: 8px; border: 4px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; }
.icon-archive::before { content: ""; position: absolute; left: 5px; top: 8px; width: 28px; height: 18px; border: 4px solid currentColor; border-radius: 50%; }
.icon-archive::after { content: ""; position: absolute; left: 2px; top: 15px; width: 34px; border-top: 4px solid currentColor; box-shadow: 0 8px 0 currentColor; }
.icon-heart { width: 38px; height: 38px; display: grid; place-items: center; }
.icon-heart::before { content: "♥"; position: static; font-family: var(--sans); font-size: 42px; line-height: 1; color: currentColor; }
.icon-heart::after { display: none; }
.member-link-list { margin-top: 54px; background: transparent; }
.member-link-list button { width: 100%; min-height: 48px; border: 0 !important; border-bottom: 1px solid #ededeb !important; border-radius: 0; background: var(--white) !important; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; text-align: left; padding: 0 34px; color: var(--ink); }
.member-link-list button:first-child { border-top: 0; }
.member-link-list button:last-child { border-bottom: 0; }
.member-link-list span { font-size: 11px; font-weight: 500; letter-spacing: 0; }
.member-link-list b { font-size: 18px; font-weight: 400; }
.member-logout { display: block; min-width: 92px; min-height: 32px; margin: 48px auto 0; border: 1px solid var(--ink) !important; background: var(--white) !important; color: var(--ink); border-radius: 5px; padding: 0 18px; font-size: 11px; font-weight: 600; }
.account-panel-detail { margin: 0 calc(-1 * var(--page-pad)); background: #f8f8f5; min-height: calc(100dvh - 144px); padding: 22px 28px 34px; }
.member-detail-panel { border: 0; background: transparent; padding: 0; }
.member-detail-head { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.member-detail-head h3 { font-size: 30px; line-height: 1.12; font-weight: 800; }
.member-back { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); font-size: 24px; line-height: 1; border-radius: 999px; }
.account-order-list, .account-favorite-list { display: grid; gap: 10px; }
.account-order-card, .favorite-stylist-card { border: 0; background: var(--white); padding: 16px; display: grid; gap: 14px; }
.account-order-card.is-cancelled, .order-list-card.is-cancelled { background: #eeeeea; border-color: #deded7; color: #777971; }
.account-order-card.is-cancelled strong, .account-order-card.is-cancelled em, .order-list-card.is-cancelled strong, .order-list-card.is-cancelled em { color: #555751; }
.account-order-card.is-cancelled .account-order-meta, .order-list-card.is-cancelled .order-list-main small { opacity: .72; }
.account-order-card > button:first-child { border: 0; background: transparent; padding: 0; text-align: left; display: grid; gap: 8px; }
.account-order-card span, .account-data-list span, .favorite-stylist-card small { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.account-order-card strong { font-size: 20px; }
.account-order-card em { font-style: normal; font-size: 14px; font-weight: 800; }
.account-order-meta { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.account-order-actions { padding: 0; }
.small-btn.dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.account-data-list { border-top: 0; background: var(--white); padding: 2px 16px; }
.account-data-list div { display: grid; gap: 6px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.account-data-list div:last-child { border-bottom: 0; }
.account-data-list strong { color: var(--charcoal); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.archive-file-card { background: var(--white); border: 1px solid var(--line); padding: 0 16px 16px; }
.archive-file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); }
.archive-file-toolbar span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.archive-edit-trigger { width: 34px; height: 34px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; display: grid; place-items: center; color: var(--ink); font-size: 22px; line-height: 1; }
.archive-edit-trigger svg { width: 15px; height: 15px; stroke-width: 1.7; }
.archive-file-card .account-data-list { padding-inline: 0; }
.archive-file-card .account-edit-form { margin-top: 0; padding: 16px 0 0; }
.archive-edit-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.member-note, .terms-copy p { color: var(--charcoal); font-size: 13px; line-height: 1.75; margin-top: 14px; }
.account-edit-form { margin-top: 16px; background: var(--white); padding: 16px; }
.account-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-mini-grid.triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-secondary-link { width: 100%; margin-top: 10px; }
.terms-copy { background: var(--white); padding: 16px; }
.terms-copy p:first-child { margin-top: 0; }
.profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.account-security-editor { margin-top: 14px; background: var(--white); border: 1px solid var(--line); padding: 16px; display: grid; gap: 12px; }
.account-security-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.account-security-head strong { font-size: 16px; }
.member-back.small { width: 28px; height: 28px; font-size: 18px; border-radius: 999px; }
.account-security-editor .field { margin-top: 0; }
.account-security-editor input, .account-security-editor select { background: #fbfbf8; }
.form-status { min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.inline-fields { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: stretch; }
.inline-fields.phone-fields { grid-template-columns: 92px 1fr; }
.inline-fields .small-btn { min-height: 46px; }
.favorite-stylist-card { grid-template-columns: 1fr auto; align-items: center; }
.favorite-stylist-card > button:first-child { border: 0; background: transparent; padding: 0; display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; text-align: left; }
.favorite-stylist-card img { width: 62px; height: 78px; object-fit: cover; background: var(--stone); }
.favorite-stylist-card strong { display: block; font-size: 16px; margin-bottom: 6px; }
.member-empty { display: grid; gap: 14px; color: var(--muted); font-size: 14px; line-height: 1.7; background: var(--white); padding: 18px; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.is-hidden, [data-account-member].is-hidden, [data-account-guest].is-hidden, [data-stylist-member].is-hidden, [data-stylist-guest].is-hidden, .support-member-panel.is-hidden { display: none; }
.small-btn { border: 1px solid var(--line); background: var(--white); min-height: 38px; padding: 0 12px; font-size: 12px; border-radius: 0; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--white); margin: 18px 0; }
.dashboard-grid .cell { border-bottom: 0; }
.dashboard-grid .cell:nth-child(2n) { border-right: 1px solid var(--line); }
.dashboard-grid .cell:last-child { border-right: 0; }
.status-actions { grid-template-columns: repeat(2, 1fr); }
.status-actions .btn:last-child { grid-column: 1 / -1; }
.client-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--white); margin: 18px 0; }
.cell { min-height: 82px; padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cell:nth-child(2n) { border-right: 0; }
.cell:nth-last-child(-n+2) { border-bottom: 0; }
.cell strong { font-size: 18px; }
.order-list { display: grid; gap: 12px; margin-top: 18px; }
.order-list-card { border: 1px solid var(--line); background: var(--white); }
.order-list-main { width: 100%; border: 0; background: transparent; padding: 16px; text-align: left; display: grid; gap: 8px; }
.order-list-main .meta { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.order-list-main strong { font-size: 20px; line-height: 1.15; }
.order-list-main em { font-style: normal; font-size: 14px; font-weight: 800; }
.order-list-main small { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.order-inline-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 16px 16px; }
.order-inline-actions .small-btn:only-child { grid-column: 1 / -1; }
.order-detail-head { display: flex; gap: 12px; align-items: center; margin-top: 4px; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.order-detail-head h3 { font-size: 26px; line-height: 1.12; overflow-wrap: anywhere; }
.order-actions { display: grid; gap: 10px; margin: -4px 0 18px; }
.order-actions .btn { width: 100%; }
.order-actions p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.danger-btn { border-color: #8f1d1d !important; color: #8f1d1d !important; background: var(--white) !important; }
.payment-state { border-color: var(--ink); }
.payment-state.ready { border-color: var(--line); }
.payment-state.blocked { box-shadow: inset 4px 0 0 #9b1c1c; }
.payment-state p { font-size: 13px; }
.payment-state strong { display: block; margin-bottom: 8px; font-size: 16px; }
.photo { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--stone); }
.timeline { margin-top: 18px; border-top: 1px solid var(--line); }
.progress-steps { display: grid; gap: 8px; margin: 18px 0; }
.progress-step { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--muted); }
.progress-step span { height: 100%; border-right: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.progress-step strong { padding: 0 12px; font-size: 14px; }
.progress-step.done { color: var(--charcoal); background: var(--stone); }
.progress-step.current { border-color: var(--ink); color: var(--ink); box-shadow: inset 4px 0 0 var(--ink); }
.case-modal { position: fixed; inset: 0; z-index: 80; background: rgba(9,9,9,.56); display: none; padding: 18px; overflow-y: auto; }
.case-modal.open { display: block; }
.support-modal { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(9,9,9,.58); padding: 14px; }
.support-modal.open { display: flex; align-items: flex-end; justify-content: center; }
.support-sheet { width: min(620px, 100%); height: min(720px, calc(100dvh - 28px)); background: var(--paper); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; box-shadow: 0 -18px 60px rgba(0,0,0,.22); }
.support-modal-head { min-height: 78px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--white); display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.support-modal-head .kicker { margin-bottom: 7px; }
.support-modal-head h3 { font-size: 18px; }
.support-chat-panel { min-height: 0; overflow-y: auto; padding: 16px; }
.support-close { position: static; flex: 0 0 auto; }
.case-sheet { position: relative; width: min(860px, 100%); margin: 0 auto; background: var(--paper); border: 1px solid var(--line); padding: 20px 16px 28px; }
.case-close { position: sticky; top: 0; float: right; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); font-size: 25px; line-height: 1; z-index: 2; }
.case-info-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--white); margin: 18px 0 22px; clear: both; }
.case-ba { display: grid; gap: 18px; }
.case-ba-panel { border-top: 1px solid var(--ink); padding-top: 12px; }
.case-ba-image { aspect-ratio: 4 / 5; background: var(--stone); border: 1px solid var(--line); overflow: hidden; }
.case-ba-image img { object-fit: contain; object-position: center top; }
.case-note { margin-top: 22px; padding: 16px; border: 1px solid var(--line); background: var(--white); }
.note-stack { display: grid; gap: 12px; margin-top: 12px; }
.note-panel { border: 1px solid var(--line); background: var(--paper); padding: 14px; }
.note-panel span { display: block; margin-bottom: 14px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.note-panel p { white-space: pre-wrap; font-size: 13px; line-height: 1.72; }
.stylist-profile-hero { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--stone); overflow: hidden; margin: 8px 0 18px; clear: both; }
.stylist-sheet > p:not(.kicker) { margin-top: 12px; font-size: 14px; }
.stylist-case-list { display: grid; gap: 12px; margin-top: 20px; }
.stylist-case-list > .kicker { margin-bottom: 0; padding-top: 16px; border-top: 1px solid var(--ink); }
.stylist-case-card { display: grid; grid-template-columns: 92px 1fr; gap: 12px; width: 100%; border: 1px solid var(--line); background: var(--white); padding: 10px; text-align: left; align-items: start; }
.stylist-case-thumb { aspect-ratio: 4 / 5; background: var(--stone); overflow: hidden; }
.stylist-case-card h3 { font-size: 16px; }
.stylist-case-card p { font-size: 12px; line-height: 1.5; margin-top: 6px; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step-no { font-family: var(--mono); letter-spacing: .12em; color: var(--muted); }
.bottom { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(var(--page-max), 100%); height: 70px; background: rgba(247,247,243,.96); backdrop-filter: blur(14px); border: 1px solid var(--line); border-bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 40; }
.bottom button { border: 0; background: transparent; font-size: 11px; line-height: 1.15; padding: 0 6px; overflow-wrap: anywhere; }
.bottom button.active { box-shadow: inset 0 3px 0 var(--ink); font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); width: min(394px, calc(100% - 28px)); background: var(--ink); color: var(--white); padding: 13px 15px; display: none; z-index: 60; font-size: 13px; }
.toast.show { display: block; }
table { width: 100%; border-collapse: collapse; background: var(--white); }
th, td { border: 1px solid var(--line); padding: 11px; text-align: left; vertical-align: top; font-size: 14px; }
th { font-family: var(--mono); color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.admin-shell { max-width: 1180px; margin: 0 auto; padding: 28px; }
.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.admin-login-card { max-width: 560px; }
.admin-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); border: 1px solid var(--line); margin-bottom: 18px; background: var(--white); }
.admin-tab { min-height: 48px; border: 0; border-right: 1px solid var(--line); background: transparent; font-weight: 800; font-size: 13px; }
.admin-tab:last-child { border-right: 0; }
.admin-tab.active { background: var(--ink); color: var(--white); }
.admin-pane { min-height: 360px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.metric-card { min-height: 112px; padding: 18px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; justify-content: space-between; }
.metric-card span { color: var(--muted); font-family: var(--mono); letter-spacing: .12em; font-size: 11px; }
.metric-card strong { font-size: 30px; line-height: 1; }
.ops-queue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ops-task { min-height: 92px; border: 1px solid var(--line); background: var(--paper); padding: 13px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; }
.ops-task span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.ops-task strong { font-size: 22px; }
.ops-task.actionable { border-color: var(--ink); background: var(--white); }
.ops-task small { color: var(--muted); font-size: 11px; }
.admin-helper { margin-top: 12px; color: var(--muted); font-size: 12px; }
.admin-list { display: grid; gap: 14px; }
.admin-card { border: 1px solid var(--line); background: var(--white); padding: 18px; }
.compact-admin-card { padding: 14px 16px; }
.admin-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.admin-card-head h3 { font-size: 20px; line-height: 1.18; overflow-wrap: anywhere; }
.admin-card-head span { color: var(--muted); font-family: var(--mono); letter-spacing: .12em; font-size: 11px; text-align: right; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.admin-filter-grid { grid-template-columns: 160px 180px minmax(220px, 1fr) 120px; align-items: end; }
.admin-search-field input { min-height: 46px; }
.filter-actions { justify-content: end; }
.light-small-btn { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.admin-mini-row { width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.admin-mini-row:last-child { border-bottom: 0; }
.admin-mini-row strong { font-size: 12px; color: var(--muted); text-align: right; }
.conversation-log { display: grid; gap: 10px; max-height: 360px; overflow: auto; padding: 12px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 14px; }
.conversation-card .chat-message { max-width: 88%; padding: 12px; border: 1px solid var(--line); background: var(--white); }
.conversation-card .chat-message.customer { justify-self: end; background: var(--ink); color: var(--white); }
.conversation-card .chat-message strong { display: block; margin-bottom: 6px; font-size: 12px; }
.conversation-card .chat-message p { margin: 0; line-height: 1.55; }
.conversation-card .chat-message small { display: block; margin-top: 8px; font-size: 11px; color: inherit; opacity: .62; }

.desktop-nav { display: none; align-items: center; gap: clamp(18px, 2vw, 34px); margin-inline: auto; }
.desktop-nav button { border: 0; background: transparent; padding: 8px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.desktop-nav button:hover, .desktop-nav button:focus-visible { color: var(--ink); outline: 0; box-shadow: inset 0 -2px 0 var(--ink); }
#home.screen.active { padding-bottom: calc(168px + env(safe-area-inset-bottom)); }
#home .hero { border: 1px solid var(--line); background: var(--white); overflow: hidden; }
#home .hero-img { position: relative; width: 100%; min-height: 360px; aspect-ratio: 4 / 5; overflow: hidden; background: #0b0b0b; }
#home .hero-img img,
#home .hero-img video { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; }
.hero-overlay { position: absolute; inset: auto 0 0; padding: 22px; color: var(--white); background: linear-gradient(0deg, rgba(0,0,0,.74), rgba(0,0,0,0)); }
.hero-overlay strong { display: block; max-width: 420px; margin-top: 10px; color: var(--white); font-size: clamp(30px, 7vw, 58px); line-height: .94; font-weight: 500; text-transform: uppercase; overflow-wrap: normal; }
.hero-overlay span { display: block; margin-top: 12px; color: rgba(255,255,255,.9); font-size: 15px; font-weight: 700; }
#home .hero-copy h1 { font-size: clamp(44px, 9vw, 78px); line-height: .98; font-weight: 500; letter-spacing: 0; overflow-wrap: normal; }
.proof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-left: 0; margin-top: 18px; background: var(--white); }
.proof-grid div { min-height: 76px; padding: 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 8px; }
.proof-grid strong { font-size: clamp(18px, 4vw, 26px); line-height: 1; font-weight: 900; }
.proof-grid span { color: var(--muted); font-size: 11px; line-height: 1.35; font-weight: 700; }
.section-intro { display: grid; gap: 10px; align-content: start; }
.section-intro .kicker, .section-intro .section-lead { margin: 0; }
.plan-stage { display: grid; gap: 14px; margin-top: 18px; }
#planList { display: grid; gap: 12px; }
.plan { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; min-height: 128px; padding: 18px; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.plan > *:not(.plan-radio) { grid-column: 2; }
.plan-radio { grid-column: 1; grid-row: 1 / span 5; width: 20px; height: 20px; border: 1px solid var(--ink); border-radius: 50%; margin-top: 2px; background: var(--white); }
.plan.selected { background: #fbfbf7; box-shadow: inset 0 -5px 0 var(--warm); }
.plan.selected .plan-radio { background: radial-gradient(circle at center, var(--ink) 0 42%, transparent 45%); }
.plan .meta { margin-top: 0; }
.plan h3 { font-size: clamp(18px, 1.9vw, 24px); line-height: 1.12; overflow-wrap: anywhere; }
.plan .price { font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 12px 0 10px; white-space: nowrap; }
.plan p { font-size: 14px; line-height: 1.55; }
.plan .field-hint { display: none; }
.stylist-picker-panel { display: grid; align-content: start; }
.home-stylist-preview { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 32%); grid-template-columns: none; gap: 12px; margin-top: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.home-stylist-card { min-width: 0; border: 1px solid var(--line); background: var(--white); padding: 0; text-align: left; overflow: hidden; }
.home-stylist-card { scroll-snap-align: start; }
.home-stylist-card img { aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: var(--stone); }
.home-stylist-card span { display: block; padding: 13px 13px 4px; font-size: 15px; font-weight: 900; }
.home-stylist-card strong { display: block; min-height: 42px; padding: 0 13px 13px; color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 700; }
.case-preview-section .rail { grid-auto-columns: minmax(250px, 30%); }
.order-summary-bar { position: fixed; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 39; width: min(var(--page-max), 100%); border: 1px solid var(--ink); border-left-color: var(--line); border-right-color: var(--line); background: rgba(247,247,243,.97); backdrop-filter: blur(14px); display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 12px var(--page-pad); transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease; will-change: transform, opacity; }
.order-summary-toggle,
.order-summary-restore { appearance: none; background: rgba(247,247,243,.98); cursor: pointer; display: grid; place-items: center; }
.order-summary-toggle::before,
.order-summary-restore::before { content: ""; position: relative; z-index: 2; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transition: transform .22s ease; }
.order-summary-toggle { position: absolute; top: -23px; left: 50%; width: 52px; height: 26px; transform: translateX(-50%); border: 0; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); border-right: 2px solid var(--ink); border-radius: 52px 52px 0 0; }
.order-summary-toggle::after,
.order-summary-restore::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 68px; height: 3px; background: rgba(247,247,243,.98); transform: translateX(-50%); }
.order-summary-toggle::before { transform: rotate(45deg) translate(-2px, -3px); }
.order-summary-toggle:hover::before { transform: rotate(45deg) translate(1px, 0); }
.order-summary-restore { position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 40; width: 52px; height: 27px; transform: translate(-50%, 16px) scale(.94); opacity: 0; pointer-events: none; border: 0; border-top: 2px solid var(--line); border-left: 2px solid var(--line); border-right: 2px solid var(--line); border-radius: 52px 52px 0 0; transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, border-color .18s ease; }
.order-summary-restore::before { transform: rotate(225deg) translate(-1px, -1px); }
.order-summary-restore:hover { border-color: var(--ink); }
.order-summary-restore:hover::before { transform: rotate(225deg) translate(1px, 1px); }
body.summary-collapsed .order-summary-bar { transform: translate(-50%, calc(100% + 30px)); opacity: 0; pointer-events: none; }
body.summary-collapsed .order-summary-restore { transform: translate(-50%, 0) scale(1); opacity: 1; pointer-events: auto; }
.order-summary-bar span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.order-summary-bar strong { display: block; font-size: 16px; line-height: 1.2; }
.order-summary-bar p { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.order-summary-bar .btn { grid-column: 1 / -1; min-height: 46px; }
body[data-screen="login"] .order-summary-bar,
body[data-screen="pay"] .order-summary-bar,
body[data-screen="orders"] .order-summary-bar,
body[data-screen="support"] .order-summary-bar,
body[data-screen="stylists"] .order-summary-bar,
body[data-screen="account"] .order-summary-bar,
body[data-screen="login"] .order-summary-restore,
body[data-screen="pay"] .order-summary-restore,
body[data-screen="orders"] .order-summary-restore,
body[data-screen="support"] .order-summary-restore,
body[data-screen="stylists"] .order-summary-restore,
body[data-screen="account"] .order-summary-restore { display: none; }

.app *:not(input):not(textarea) { text-transform: uppercase; }
input, textarea { text-transform: none; }
.app .keep-case { text-transform: none; }

.service-page .app * { text-transform: none; }
.service-page .desktop-nav a { text-decoration: none; border: 0; background: transparent; padding: 8px 0; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.service-page .desktop-nav a:hover, .service-page .desktop-nav a:focus-visible { color: var(--ink); outline: 0; box-shadow: inset 0 -2px 0 var(--ink); }
.service-main { padding: var(--screen-y) var(--page-pad) calc(52px + env(safe-area-inset-bottom)); }
.service-hero { margin: calc(-1 * var(--screen-y)) calc(-1 * var(--page-pad)) 0; border-bottom: 1px solid var(--line); background: var(--white); }
.service-hero-media { aspect-ratio: 16 / 10; min-height: 260px; background: var(--stone); overflow: hidden; }
.service-hero-media img { object-position: center center; }
.service-hero-copy { padding: clamp(22px, 4vw, 42px) var(--page-pad); }
.service-hero-copy h1 { max-width: 760px; font-size: clamp(42px, 8vw, 86px); line-height: .98; font-weight: 500; letter-spacing: 0; }
.service-hero-copy .lead { max-width: 760px; margin-top: 24px; padding-top: 22px; font-weight: 700; }
.service-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border: 1px solid var(--line); border-left: 0; background: var(--paper); }
.service-facts div { min-height: 92px; padding: 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.service-facts strong { font-size: clamp(19px, 3vw, 28px); line-height: 1.06; font-weight: 900; }
.service-facts span { color: var(--muted); font-size: 12px; line-height: 1.35; font-weight: 700; }
.service-section { padding: clamp(34px, 5vw, 66px) 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.service-section:first-of-type { border-top: 0; }
.service-section h2 { max-width: 820px; font-size: clamp(32px, 5.8vw, 62px); line-height: 1.04; font-weight: 500; }
.service-plan-grid { display: grid; gap: 14px; margin-top: 24px; }
.service-plan { border: 1px solid var(--line); background: var(--white); padding: clamp(18px, 3vw, 28px); }
.service-plan.selected { border-color: var(--ink); box-shadow: inset 0 -6px 0 var(--warm); }
.service-plan h3 { font-size: clamp(22px, 3vw, 32px); }
.service-plan .price { font-size: clamp(38px, 6vw, 62px); line-height: 1; margin: 18px 0; }
.service-plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-plan li { position: relative; padding-left: 18px; color: var(--charcoal); font-size: 15px; line-height: 1.55; }
.service-plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; border-top: 1px solid var(--ink); }
.service-flow { grid-template-columns: 1fr; }
.service-split { display: grid; gap: 14px; margin-top: 22px; }
.service-split .panel { margin-top: 0; padding: clamp(18px, 3vw, 28px); }
.service-details .identity-row { grid-template-columns: minmax(90px, 140px) 1fr; }
.service-policy a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (min-width: 700px) {
  .top { min-height: 74px; }
  .menu-panel { top: 74px; }
  .menu-panel button { font-size: 16px; }
  .service-hero { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(420px, 1fr); min-height: 560px; }
  .service-hero-media { min-height: 560px; aspect-ratio: auto; }
  .service-hero-copy { display: flex; flex-direction: column; justify-content: center; }
  .service-plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen { padding-bottom: calc(118px + env(safe-area-inset-bottom)); }
  .rail { grid-auto-columns: minmax(280px, 42%); }
  #login.screen.active,
  #intake.screen.active,
  #pay.screen.active,
  #orders.screen.active,
  #support.screen.active {
    max-width: 920px;
    margin-inline: auto;
  }
  #stylists.screen.active,
  #account.screen.active {
    max-width: 1100px;
    margin-inline: auto;
  }
  .auth-shell { margin-inline: 0; border: 1px solid var(--line); }
  .auth-pane.active { padding-inline: clamp(22px, 4vw, 44px); }
  .account-file[data-account-member],
  .account-panel-detail {
    margin-inline: 0 !important;
  }
  .stylist-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: stretch;
  }
  .stylist-card { width: 100%; }
  .support-modal.open { align-items: center; }
  .bottom { height: 64px; }
  .bottom { display: none; }
  .order-summary-bar { bottom: 0; grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 1.2fr) auto; }
  .order-summary-restore { bottom: 12px; }
  .order-summary-bar p, .order-summary-bar .btn { grid-column: auto; }
  .order-summary-bar .btn { min-width: 190px; }
  #home .plan-next-btn { display: none; }
}
@media (min-width: 860px) {

  #home.screen.active {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(420px, 1.18fr);
    column-gap: clamp(24px, 4vw, 56px);
    align-items: start;
  }
  #home .hero {
    grid-column: 1;
    grid-row: 1 / span 2;
    position: sticky;
    top: 90px;
    margin: 0;
    border: 1px solid var(--line);
  }
  #home .start-section {
    grid-column: 2;
    grid-row: 1;
    padding-top: clamp(6px, 1vw, 18px);
    border-top: 0;
  }
  #home .start-section + .section {
    grid-column: 2;
    grid-row: 2;
  }
  #home .section:last-child {
    grid-column: 1 / -1;
  }
  #home .stylist-preview-section {
    grid-column: 2;
    grid-row: 2;
  }
  #home .case-preview-section {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  #home .flow-section {
    grid-column: 1 / -1;
    grid-row: 4;
  }
  .hero + .section { padding-top: 0; }
  #home .hero-img {
    height: auto;
    min-height: 0;
    max-height: min(40vh, 360px);
    aspect-ratio: 16 / 9;
  }
  #home .hero-img video,
  #home .hero-img img {
    position: relative;
    z-index: 1;
    object-fit: contain;
    object-position: center center;
  }
  #home .hero-overlay { z-index: 2; }
  .hero-copy { padding: clamp(20px, 2.8vw, 32px); }
  #home .hero h1 { font-size: clamp(42px, 5.4vw, 70px); }
  h1 { font-size: clamp(44px, 7vw, 72px); }
  h2 { font-size: clamp(34px, 4.4vw, 56px); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail { grid-auto-columns: minmax(280px, 32%); }
}
@media (min-width: 980px) {
  .desktop-nav { display: flex; }
  .top-actions { gap: 8px; }
  .service-page .desktop-nav { display: flex; }
  .service-main { padding-inline: clamp(26px, 3vw, 46px); }
  .service-hero { margin-inline: calc(-1 * clamp(26px, 3vw, 46px)); grid-template-columns: minmax(420px, .82fr) minmax(540px, 1fr); }
  #home.screen.active {
    grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr);
  }
  .start-section #planList {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
  .start-section #planList .plan { margin-top: 0; }
  .plan-stage { margin-top: 24px; }
  .stylist-picker-panel { max-width: none; }
  .stylist-preview-section { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(260px, .55fr) minmax(480px, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
  .case-preview-section { grid-column: 1 / -1; grid-row: 3; }
  .flow-section { grid-column: 1 / -1; grid-row: 4; }
  .start-section .panel { margin-top: 14px; }
  .upload-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .case-ba, .note-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .app { --page-max: min(1500px, calc(100vw - 48px)); }
  #home.screen.active { grid-template-columns: minmax(420px, .72fr) minmax(760px, 1.28fr); }
  #home .hero-img { min-height: 0; max-height: none; aspect-ratio: 16 / 9; }
}
@media (max-width: 820px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tab:nth-child(2n) { border-right: 0; }
  .admin-tab { border-bottom: 1px solid var(--line); }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-form-grid, .admin-filter-grid { grid-template-columns: 1fr; }
  .wide { padding: 0; }
}
@media (max-width: 430px) {
  #home .hero { margin-inline: calc(-1 * var(--page-pad)); border-left: 0; border-right: 0; }
  #home .hero-img { min-height: 300px; }
  .hero-overlay { padding: 18px; }
  .hero-overlay strong { font-size: 34px; }
  #home .hero-copy h1 { font-size: clamp(38px, 10.2vw, 48px); }
  .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-grid div { min-height: 66px; padding: 10px; }
  .proof-grid strong { font-size: 18px; }
  .proof-grid span { font-size: 10px; }
  .home-stylist-preview { grid-auto-columns: minmax(170px, 62%); padding-bottom: 10px; }
  .order-summary-bar,
  .order-summary-restore { display: none; }
  .hero-copy { padding-bottom: 30px; }
  .section { padding: 34px 0; }
  .hero + .section { padding-top: 70px; }
  h2 { font-size: clamp(28px, 8.4vw, 34px); line-height: 1.12; }
  .flow-card { min-height: 124px; grid-template-columns: 64px 1fr; }
  .bottom { height: 74px; padding-bottom: env(safe-area-inset-bottom); }
  .screen { padding-bottom: calc(166px + env(safe-area-inset-bottom)); }
  .code-row { grid-template-columns: 1fr 118px; }
  .phone-row-select { grid-template-columns: 1fr; }
  .measure-grid { grid-template-columns: 1fr; gap: 0; }
  .auth-tabs { top: 57px; }
  .account-file[data-account-member] { margin-inline: calc(-1 * var(--page-pad)); padding: 0; }
  .member-home-card { padding: 22px 28px 32px; }
  .member-profile-head { min-height: 0; }
  .member-name-line h3 { font-size: clamp(34px, 10vw, 44px); }
  .member-tile { min-height: 114px; }
  .member-tile-wide { min-height: 112px; }
  .member-link-list { margin-top: 54px; }
  .member-link-list button { padding-inline: 34px; }
  .member-detail-panel { padding: 0; }
  .account-panel-detail { margin-inline: calc(-1 * var(--page-pad)); padding: 22px 28px 34px; }
  .account-order-meta { display: grid; gap: 5px; }
  .favorite-stylist-card { grid-template-columns: 1fr; }
  .profile-actions { grid-template-columns: 1fr; }
  .account-mini-grid, .account-mini-grid.triple { grid-template-columns: 1fr; gap: 0; }
  .row-actions { justify-content: flex-end; gap: 6px; }
  .small-btn { min-width: 58px; padding-inline: 10px; }
}
