:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --surface-soft: #FFFFFF;
  --ink: #111111;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --control-border: #7A848B;
  --navy: #123A4C;
  --navy-pressed: #0B2835;
  --navy-tint: #E6EEF1;
  --danger: #A52A25;
  --warning: #815500;
  --good: #24623D;
  --radius: 10px;
  color: var(--ink);
  background: var(--paper);
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; font-weight: 400; line-height: 1.8; letter-spacing: .02em; font-feature-settings: normal; }
strong, b { font-weight: 700; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, .button, :where(a.primary, a.secondary), summary, .text-link, .text-link-button, .back-link, .auth-links a, .legal-summary a { min-height: 44px; min-width: 44px; }
button, .button, :where(a.primary, a.secondary) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1.5px solid var(--navy); border-radius: var(--radius); color: var(--navy); background: #fff; font-size: 16px; font-weight: 700; cursor: pointer; }
button:disabled { color: var(--muted); background: #F2F4F5; border-color: var(--control-border); opacity: 1; cursor: default; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.primary { color: #fff; background: var(--navy); border-color: var(--navy); }
.primary:not(:disabled):hover, .primary:not(:disabled):active { color: #fff; background: var(--navy-pressed); border-color: var(--navy-pressed); opacity: 1; }
.secondary { color: var(--navy); background: #fff; border-color: var(--navy); }
button:not(.primary):not(.icon-button):not(.text-link-button):not([data-album-filter]):not(:disabled):hover,
button:not(.primary):not(.icon-button):not(.text-link-button):not([data-album-filter]):not(:disabled):active,
.button:not(.primary):hover, .button:not(.primary):active,
.secondary:not(:disabled):hover, .secondary:not(:disabled):active { background: var(--navy-tint); }
.danger, .text-danger, .form-error, .flash.error { color: var(--danger); background: #fff; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button { width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; color: var(--navy); }
.icon-button:hover, .icon-button:active { background: var(--navy-tint); }
h1, h2, h3 { margin: 0 0 12px; letter-spacing: .02em; font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 700; line-height: 1.35; }
h2 { font-size: 18px; font-weight: 700; line-height: 1.45; }
h3 { font-size: 16px; font-weight: 500; line-height: 1.5; }
p { margin: 0 0 14px; }
small, .small { font-size: 13px; font-weight: 400; line-height: 1.7; letter-spacing: .02em; font-feature-settings: normal; }
.muted, time, label small { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 16px; border-right: 1px solid var(--line); }
.brand-link { display: flex; align-items: center; min-height: 56px; margin-bottom: 24px; }
.brand-full { width: 154px; height: auto; }
.brand-symbol, .page-context, .sidebar-toggle { display: none; }
.nav-list { display: grid; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; font-weight: 500; color: var(--muted); }
.nav-item.active { color: var(--navy); font-weight: 700; border-left: 3px solid var(--navy); background: var(--navy-tint); }
.nav-item.active .icon { stroke-width: 2.4; }
.nav-item strong { margin-left: auto; font-size: 13px; letter-spacing: .02em; }
.sidebar-footer { margin-top: auto; }
.account-mini { padding: 16px 12px 0; border-top: 1px solid var(--line); }
.account-mini strong, .account-mini small { display: block; overflow-wrap: anywhere; }
.workspace { min-width: 0; padding: 0 36px 48px; }
.topbar { position: sticky; top: 0; z-index: 12; min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar h1 { margin: 0; }
.topbar h1 span { display: inline-block; white-space: nowrap; }
.topbar-leading, .topbar-actions { display: flex; align-items: center; gap: 12px; }
.credit-pill { display: flex; flex: none; align-items: baseline; gap: 4px; min-height: 44px; font-size: 15px; font-weight: 400; }
.credit-pill strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
.credit-pill small { display: none; }
.mobile-nav { display: none; }
#view { max-width: 1040px; margin: 0 auto; }
.card { background: #fff; border: 0; border-radius: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-title h2 { margin: 0; }
.text-link, .back-link, .auth-links a, .legal-summary a { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 500; }
.text-link:not(:has(.icon))::after { content: "›"; font-size: 18px; line-height: 1; }
.back-link::before { content: "‹"; font-size: 18px; line-height: 1; }
.text-link .icon { display: inline-block; width: 18px; height: 18px; stroke-width: 2; }
.text-link:hover, .back-link:hover, .auth-links a:hover { text-decoration: underline; }
.text-link-button { min-height: 44px; color: var(--navy); background: transparent; border: 0; padding: 10px 0; font-size: 15px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; font-feature-settings: normal; text-decoration: underline; }
.text-link-button:hover, .text-link-button:active { background: var(--navy-tint); }
p a:not(.button):not(.primary):not(.secondary), .registration-agreement a, .confirmation-accept a { color: var(--navy); text-decoration: underline; }
.empty-icon, .settings-row-icon, .settings-chevron, .drop-icon, .quick-create-submit .icon, .topbar-new .icon { display: none; }
.badge, .support-status { display: inline-block; font-size: 13px; color: var(--muted); background: #fff; letter-spacing: .02em; }
.status-failed, .status-cancelled { color: var(--danger); }
.status-delivered, .status-partially_delivered { color: var(--good); }
.flash { position: relative; padding: 12px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.empty-state { padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5; }
.empty-state p { margin: 8px 0 24px; }
label { display: grid; gap: 6px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--control-border); border-radius: var(--radius); background: #fff; font-size: 16px; }
input:focus, select:focus, textarea:focus { border: 2px solid var(--navy); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { appearance: none; position: relative; width: 22px; min-width: 22px; min-height: 22px; height: 22px; padding: 0; margin: 0; border: 1.5px solid var(--control-border); border-radius: 4px; accent-color: var(--navy); flex: none; cursor: pointer; }
input[type=checkbox]:not([role=switch]):checked { background: var(--navy); border-color: var(--navy); }
input[type=checkbox]:not([role=switch])::after { content: ""; position: absolute; top: 2px; left: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
input[type=checkbox]:not([role=switch]):checked::after { opacity: 1; }
input[type=radio] { border-radius: 50%; }
input[type=radio]:checked { border-color: var(--navy); }
input[type=radio]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--navy); }
input[type=checkbox]:focus, input[type=radio]:focus { border: 2px solid var(--navy); }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { min-height: 44px; min-width: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
input[type=range] { appearance: none; min-height: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius); background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: var(--radius); background: var(--control-border); }
input[type=range]::-webkit-slider-thumb { appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin-top: -9px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); }
input[type=range]::-moz-range-track { height: 4px; border-radius: var(--radius); background: var(--control-border); }
input[type=range]::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 22px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); }
.form-stack { display: grid; gap: 18px; }

.form-error { font-size: 13px; padding: 8px 0; letter-spacing: .02em; }
.auth-mode { display: block; }
.auth-mode .sidebar, .auth-mode .mobile-nav { display: none; }
.auth-mode .workspace { padding: 0 20px 32px; }
.auth-layout { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 32px 0; }
.auth-card { width: 100%; max-width: 410px; }
.auth-wordmark { display: inline-flex; min-height: 44px; align-items: center; margin-bottom: 24px; }
.auth-wordmark img { width: 142px; height: auto; }
.segmented, .billing-switch { display: flex; border: 1.5px solid var(--control-border); border-radius: var(--radius); margin-bottom: 24px; }
.segmented button, .billing-switch button { flex: 1; border: 0; border-radius: 8px; color: var(--ink); background: #fff; font-weight: 500; }
.segmented .active, .billing-switch .active { color: var(--navy); background: var(--navy-tint); font-weight: 700; }
.registration-agreement { align-items: flex-start !important; font-size: 13px; letter-spacing: .02em; }
.registration-agreement > input { margin-top: 12px; }
.registration-agreement a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: underline; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; letter-spacing: .02em; }
.home-hero { padding: 20px 0 28px; border-bottom: 1px solid var(--line); }
.pick-actions { display: flex; gap: 12px; }
.pick-button, .camera-button { position: relative; display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 12px 16px; cursor: pointer; }
.camera-button.primary { min-height: 52px; }
.pick-button input, .camera-button input, .file-drop input, .preference-chip input { position: absolute; width: 1px; height: 1px; min-width: 0; min-height: 0; opacity: 0; padding: 0; border: 0; }
.pick-button:focus-within, .camera-button:focus-within, .file-drop:focus-within, .preference-chip:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.runs-left { display: flex; align-items: center; gap: 5px; min-height: 52px; padding-top: 12px; }
.runs-left small { margin-left: auto; }
.active-cases, .home-results, .home-guide { padding: 24px 0; border-bottom: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.case-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.case-main { min-width: 0; }
.case-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px; }
.result-tile { position: relative; display: block; min-width: 0; }
.result-tile img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.home-guide ol, .next-steps ol { padding-left: 22px; }
.home-guide li > span, .next-steps li > span { display: none; }
.home-guide strong, .home-guide small { display: block; }
.quick-create-form { max-width: 720px; margin: auto; }
.quick-create-head { padding: 12px 0; }
.quick-create-head p { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.file-drop { display: flex; position: relative; align-items: center; justify-content: center; min-height: 200px; border: 1.5px solid var(--control-border); border-radius: var(--radius); cursor: pointer; }
.drop-content { display: grid; padding: 20px; text-align: center; }
.drop-content small { color: var(--muted); }
.quick-photo-drop.has-preview { border: 0; }
.quick-photo-drop.has-preview .drop-content { position: absolute; bottom: 0; background: #fff; padding: 8px 12px; font-size: 13px; letter-spacing: .02em; }
.preview-strip { display: grid; width: 100%; grid-template-columns: repeat(var(--count,1),minmax(0,1fr)); gap: 2px; }
.preview-strip[data-count="2"] { --count: 2; }
.preview-strip[data-count="3"] { --count: 3; }
.preview-strip img { display: block; width: 100%; max-height: 440px; aspect-ratio: 3/4; object-fit: contain; }
.photo-expectation { margin: 16px 0; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.photo-expectation p { margin: 4px 0 0; }
.retouch-choice { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.retouch-choice strong, .retouch-choice small { display: block; }
summary { display: flex; align-items: center; cursor: pointer; padding: 12px 0; border-radius: var(--radius); list-style: none; }
summary:hover, summary:active { background: var(--navy-tint); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 12px; color: var(--navy); font-size: 18px; font-weight: 700; }
details[open] > summary::after { content: "−"; }
fieldset { border: 0; margin: 0; padding: 0; }
.preference-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.preference-chip span { display: flex; align-items: center; min-height: 48px; min-width: 44px; padding: 8px 12px; border: 1.5px solid var(--control-border); border-radius: var(--radius); }
.preference-chip:has(input:checked) span { color: var(--navy); border-color: var(--navy); background: var(--navy-tint); }
.preference-chip:hover span { background: var(--navy-tint); }
#target-hint { color: var(--muted); font-size: 13px; margin-top: 10px; letter-spacing: .02em; }
.submit-bar { position: sticky; bottom: 0; background: #fff; padding: 16px 0; border-top: 1px solid var(--line); z-index: 5; }
.quick-create-form .submit-bar { position: static; }
.quick-create-submit { width: 100%; min-height: 52px; }
.cost-line { font-size: 13px; letter-spacing: .02em; }
.cost-short { color: var(--danger); }
.stage-progress { display: flex; list-style: none; padding: 0; margin: 12px 0; gap: 8px; }
.stage-progress li { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.stage-progress li span { display: block; height: 2px; margin-bottom: 6px; background: var(--line); }
.stage-progress .current { color: var(--navy); }
.stage-progress .current span, .stage-progress .done span { background: var(--navy); }
.detail-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.detail-head h2 { margin-bottom: 4px; overflow-wrap: anywhere; }
.detail-head p { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.detail-card { padding: 16px 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.choice-image { position: relative; overflow: hidden; }
.choice-image > img[data-candidate-image] { display: block; width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.compare-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; clip-path: inset(0 calc(100% - var(--reveal,0%)) 0 0); pointer-events: none; }
.compare-label { position: absolute; top: 12px; left: 12px; color: #fff; background: #111; padding: 4px 8px; font-size: 13px; opacity: 0; letter-spacing: .02em; }
.comparing .compare-label { opacity: 1; }
.compare-range { position: absolute; z-index: 5; left: clamp(24px,var(--reveal,50%),calc(100% - 24px)); top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 1px 8px #0006; cursor: ew-resize; font-size: 24px; line-height: 1; }
.compare-range:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.compare-divider { position: absolute; z-index: 4; inset-block: 0; left: var(--reveal,50%); width: 2px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 3px #0008; pointer-events: none; }
.compare-after-label { left: auto; right: 12px; }
.compare-frame:not(.slider-comparing) .compare-after-label { opacity: 0; }
.choice-actions { display: grid; gap: 12px; padding: 14px 0; }
.choice-actions > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.choice-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.choice-selected { position: absolute; top: 12px; right: 12px; background: #fff; padding: 4px 8px; font-size: 13px; letter-spacing: .02em; }
.candidate-feedback { border-top: 1px solid var(--line); }
.feedback-form { display: grid; gap: 14px; padding: 16px 0; }
.feedback-form fieldset label { display: inline-flex; margin-right: 16px; }
.customer-detail-actions { padding-top: 24px; }
.source-preview img { width: min(100%,380px); display: block; }
.source-preview span { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.processing-note { padding: 16px 0; }
.processing-note strong, .processing-note span { display: block; }
.next-steps, .photography-detail, .saved-photography { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.photography-card p { margin: 8px 0; }
.photography-card small, .photography-card dd { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.photography-card dd { margin-left: 0; }
.photography-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 12px 0; }
.photography-actions a, .saved-photography-list a { display: inline-flex; min-height: 44px; align-items: center; }
.credit-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.balance-main span, .balance-main strong, .current-contract span, .current-contract strong, .current-contract small { display: block; }
.balance-main strong { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
.balance-main em { font-size: 15px; font-weight: 400; font-style: normal; line-height: 1.8; margin-left: 6px; }
.balance-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.balance-stats strong { display: block; color: var(--ink); }
.current-contract { font-size: 13px; letter-spacing: .02em; }
.plan-picker { padding: 24px 0; }
.plan-picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-picker-head p { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.billing-switch { min-width: 132px; }
.pricing-context { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; letter-spacing: .02em; }
.plan-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; min-width: 0; border-right: 1px solid var(--line); }
.plan-card:last-child { border-right: 0; }
.plan-card.current { border: 2px solid var(--navy); border-radius: var(--radius); }
.plan-status-badge { display: inline-block; align-self: flex-start; width: fit-content; padding: 2px 8px; border-radius: var(--radius); color: var(--navy); background: var(--navy-tint); font-size: 13px; font-weight: 700; line-height: 1.7; letter-spacing: .02em; }
.plan-badge { font-size: 13px; color: var(--muted); min-height: 22px; letter-spacing: .02em; }
.plan-card h3 { font-size: 16px; margin: 0; }
.plan-price strong { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
.plan-price span { font-size: 15px; font-weight: 400; line-height: 1.8; }
.plan-credit { font-size: 15px; font-weight: 400; }
.plan-credit strong { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
.plan-card p { margin: 0; }
.plan-card small { color: var(--muted); }
.plan-card button { width: 100%; margin-top: auto; }
.billing-disclosure { border-bottom: 1px solid var(--line); }
.billing-disclosure summary { justify-content: space-between; gap: 12px; }
.billing-disclosure small { display: block; color: var(--muted); }
.billing-panel { padding: 12px 0 24px; }
.ledger-list > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; letter-spacing: .02em; }
.settings-disclosure { border-bottom: 1px solid var(--line); }
.settings-disclosure > summary { gap: 12px; min-height: 76px; }
.settings-row-copy { min-width: 0; }
.settings-row-copy strong, .settings-row-copy small { display: block; overflow-wrap: anywhere; }
.settings-row-copy small { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.settings-panel { padding: 0 0 24px; }
.settings-meta-list { margin: 0 0 16px; }
.settings-meta-list > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.settings-meta-list dd { margin: 0; overflow-wrap: anywhere; }
.settings-meta-list dt { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.settings-form { max-width: 620px; }
.notification-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding-block: 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-setting > span:first-child { min-width: 0; }
.notification-setting strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.5; }
.notification-setting:hover, .notification-setting:active { background: var(--navy-tint); }
.notification-toggle { display: flex; flex: none; align-items: center; gap: 10px; }
.notification-toggle small { color: var(--muted); }
.notification-toggle input[role=switch] { appearance: none; position: relative; width: 44px; min-width: 44px; height: 26px; min-height: 26px; padding: 0; border: 1px solid var(--muted); border-radius: 999px; background: var(--muted); cursor: pointer; }
.notification-toggle input[role=switch]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.notification-toggle input[role=switch]:checked { background: var(--navy); border-color: var(--navy); }
.notification-toggle input[role=switch]:checked::after { transform: translateX(18px); }
.notification-toggle input[role=switch]:disabled { opacity: .55; cursor: default; }
.notification-toggle:has(input:checked) small { color: var(--navy); }
.settings-action-row, .account-actions { margin-top: 16px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.account-tool { width: 100%; border-top: 1px solid var(--line); }
.legal-summary > div { display: grid; }
.support-row { display: flex; width: 100%; justify-content: space-between; text-align: left; border: 1.5px solid var(--navy); border-radius: var(--radius); padding: 12px 16px; gap: 12px; }
.support-row::after { content: "›"; color: var(--navy); font-size: 18px; line-height: 1; }
.support-row strong, .support-row small { display: block; overflow-wrap: anywhere; }
.support-row span { min-width: 0; }
.support-thread-head { display: grid; }
.support-messages { padding: 16px 0; }
.support-message { padding: 12px 0; border-bottom: 1px solid var(--line); }
.support-message small { color: var(--muted); }
.support-message p { white-space: pre-wrap; overflow-wrap: anywhere; }
.support-reply { display: grid; gap: 12px; padding-bottom: 20px; }
.integration-state { display: grid; gap: 12px; }
.integration-benefits { padding-left: 20px; }
.integration-copy, .legal-summary p { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.photo-rights-details { border-block: 1px solid var(--line); }
.photo-rights-details > summary, .photo-rights-details p { font-size: 13px; line-height: 1.7; letter-spacing: .02em; }
.photo-rights-details p { margin: 0 0 12px; color: var(--muted); }
.photo-memo-note { margin: 12px 0; color: var(--muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .workspace { padding: 0 16px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 64px; margin-bottom: 12px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 50; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); min-height: 68px; padding: 4px 0 calc(4px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .mobile-nav a { min-width: 44px; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1; letter-spacing: .02em; }
  .mobile-nav .active { color: var(--navy); font-weight: 700; }
  .mobile-nav .active .icon { stroke-width: 2.4; }
  .mobile-new-icon { display: flex; }
  .auth-layout { padding-top: 20px; }
  .auth-wordmark { margin-bottom: 16px; }
  .pick-actions { flex-wrap: wrap; }
  .pick-button { flex: 1; }
  .runs-left { flex-wrap: wrap; }
  .runs-left small { width: 100%; margin: 0; }
  .home-results .result-grid:has(> :nth-child(3)) { margin-inline: -16px; }
  .choice-grid { grid-template-columns: 1fr; }
  .submit-bar { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .plan-picker-head { display: block; }
  .billing-switch { width: 160px; }
  .plan-card { padding: 12px 6px; }
  .plan-card h3 { font-size: 16px; }
  .plan-price strong { font-size: 28px; }
  .plan-price span { display: block; }
  .plan-card small { font-size: 13px; letter-spacing: .02em; }
  .credit-overview { gap: 16px; }
}

.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.gallery-tile { display: block; min-width: 0; overflow: hidden; }
.gallery-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.gallery-caption { display: grid; padding: 8px 0; overflow-wrap: anywhere; font-size: 13px; letter-spacing: .02em; }

/* Photo album and viewer: only the active result is a display-receipt target. */
.album-filters { display: flex; flex-wrap: nowrap; gap: 8px; min-width: 0; max-width: 100%; padding: 5px; overflow-x: auto; overflow-y: hidden; border: 0; border-radius: 0; white-space: nowrap; scrollbar-width: thin; }
.album-filters button { flex: 0 0 auto; min-height: 44px; height: 44px; padding: 4px 0; border: 0; border-radius: var(--radius); color: var(--ink); background: transparent; font-size: 13px; font-weight: 500; line-height: 1; letter-spacing: .02em; font-feature-settings: normal; }
.album-filters button > span { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; height: 36px; padding: 0 12px; border: 1.5px solid var(--control-border); border-radius: var(--radius); color: inherit; background: #fff; font-size: 13px; font-weight: inherit; line-height: 1.7; letter-spacing: .02em; white-space: nowrap; }
.album-filters button[aria-pressed=true] { color: var(--navy); background: transparent; font-weight: 700; }
.album-filters button[aria-pressed=true] > span { border-color: var(--navy); background: var(--navy-tint); }
.album-filters button:hover > span, .album-filters button:active > span { background: var(--navy-tint); }
.album-note { margin: 14px 0; }
.gallery-tile { position: relative; aspect-ratio: 1; }
.placeholder-thumb { display: block; width: 100%; height: 100%; background: var(--line); }
.photo-status-badge { position: absolute; z-index: 1; top: 8px; left: 8px; display: inline-block; max-width: calc(100% - 16px); padding: 4px 8px; border: 1px solid transparent; border-radius: var(--radius); color: var(--navy); background: #fff; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; opacity: 1; box-shadow: none; }
.photo-status-badge.status-unviewed { color: #fff; background: var(--navy); border-color: var(--navy); }
.photo-status-badge.status-working { color: var(--navy); background: #fff; border-color: var(--control-border); }
.photo-status-badge.status-failed { color: var(--danger); background: #fff; border-color: var(--danger); }
.photo-status-badge.status-returned { color: var(--muted); background: #fff; border-color: var(--control-border); }
.tone-working img { opacity: .45; }
.waiting-photo { display: block; width: min(100%,440px); max-height: 440px; object-fit: contain; margin: 20px auto; }
.waiting-screen > button { display: block; margin-top: 24px; }
.viewer-mode .topbar, .viewer-mode .mobile-nav { display: none; }
.viewer-mode .workspace { padding: 0 24px calc(180px + env(safe-area-inset-bottom)); }
.viewer-mode #view { max-width: 760px; }
.viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.viewer-header > span { color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.viewer-menu-panel { display: grid; border-block: 1px solid var(--line); padding: 8px 0; }
.viewer-menu-panel button { justify-content: flex-start; }
.viewer-pages { background: #fff; }
.viewer-page .compare-frame { touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.viewer-page .choice-image > img[data-candidate-image] { height: min(62vh,620px,calc(100vh - 320px)); height: min(62svh,620px,calc(100svh - 320px - env(safe-area-inset-bottom))); aspect-ratio: auto; object-fit: contain; }
.viewer-compare-tools { text-align: center; padding: 0 12px 8px; }
.viewer-compare-tools p { margin: 4px 0 0; font-size: 12px; line-height: 1.5; }
.compare-frame[data-source-visible=true] > img[data-candidate-image] { visibility: hidden; }
.compare-frame[data-source-visible=true] .compare-before { clip-path: none; }
.viewer-controls { text-align: center; padding: 0 16px 16px; }
.beauty-overlay { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; pointer-events:none; }
.compare-frame .compare-before { z-index:2; }
.compare-frame .compare-label { z-index:3; }
.compare-frame[data-source-visible=true] .beauty-overlay { visibility:hidden; }
.beauty-controls { padding:12px 16px; max-width:620px; margin:auto; }
.beauty-controls label { display:block; font-size:15px; }
.beauty-controls output { float:right; font-weight:700; }
.beauty-range { width:100%; min-height:44px; padding:0; accent-color:var(--navy); }
.beauty-controls p { margin:4px 0; font-size:13px; }
.beauty-unavailable { text-align:center; margin:12px; }
.viewer-controls p { margin: 0 0 8px; font-size: 13px; letter-spacing: .02em; }
.viewer-pagination { display: flex; justify-content: center; }
.viewer-pagination button { width: 44px; min-height: 44px; height: 44px; padding: 0; border: 0; }
.viewer-pagination span { width: 6px; height: 6px; border-radius: 50%; background: var(--control-border); }
.viewer-pagination [aria-pressed=true] span { background: var(--navy); }
.viewer-feedback-panel { margin: 16px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.viewer-action-bar { position: fixed; left: 220px; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 12px; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; z-index: 15; }
.viewer-action-bar > * { flex: 1; max-width: 360px; }
.viewer-action-bar .viewer-pagination { flex: 0 0 100%; max-width: none; margin-bottom: 8px; }
.viewer-hpb-note { padding: 0 16px; }
.photo-viewer .next-steps { max-width: 640px; margin: 24px auto 120px; padding: 20px 20px 0; }
.photo-viewer .next-steps h3 { margin: 0 0 16px; }
.photo-viewer .next-steps ol { display: grid; gap: 20px; }
.photo-viewer .next-steps li > div { display: grid; justify-items: start; gap: 10px; }
.photo-viewer .next-steps strong, .photo-viewer .next-steps small { display: block; }
.photo-viewer .next-steps small { color: var(--muted); line-height: 1.7; }
.photo-viewer .next-steps p { margin: 0; }

@media (max-width:720px) {
 .case-gallery { margin-inline: -16px; }
 .viewer-mode .workspace { padding: 0 0 calc(180px + env(safe-area-inset-bottom)); }
 .viewer-header { padding: 0 12px; }
 .viewer-page .choice-image > img[data-candidate-image] { width: 100%; }
 .viewer-action-bar { left: 0; padding-inline: 16px; }
}

.photo-select-sheet { max-width: 460px; margin: 28px auto; display: grid; gap: 16px; }
.photo-select-sheet h2 { margin: 0; }
.photo-select-sheet .camera-button { margin: 0; }
.photo-select-sheet p { margin: 0; }
.photo-select-sheet > a { justify-self: center; }
.received-screen { display: grid; gap: 16px; max-width: 460px; margin: 48px auto; }
.received-screen h2, .received-screen p { margin: 0; }
.received-screen > .text-link { justify-self: center; }
#new-case-back { display: flex; margin: 8px auto 0; }
@media (max-width:720px) { .quick-photo-drop { margin-inline: -16px; width: calc(100% + 32px); } }

.nav-item > span:not(.notification-count) { min-width: 0; }
.notification-count { margin-left: auto; font-size: 13px; color: var(--navy); letter-spacing: .02em; }
.mobile-nav .notification-count { position: absolute; top: 2px; right: 12px; background: #fff; font-size: 13px; letter-spacing: .02em; }
.mobile-nav a { position: relative; }
.topbar-new { display: inline-flex; }
.home-primary { display: none; }
@media (max-width:680px) {
 .topbar-new { display: none; }
 .home-primary { display: flex; width: 100%; min-height: 52px; }
}
.home-progress { padding: 12px 0 24px; border-bottom: 1px solid var(--line); }
.returning-home { padding: 8px 0; border: 0; }
.returning-home .text-link { font-size: 13px; text-decoration: underline; letter-spacing: .02em; }
.in-progress-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.in-progress-strip > a { position: relative; width: 112px; flex: none; }
.progress-photo { position: relative; display: block; width: 112px; height: 112px; overflow: hidden; border-radius: 6px; }
.in-progress-strip img, .in-progress-strip .placeholder-thumb { width: 112px; height: 112px; object-fit: cover; border-radius: 6px; display: block; }
.in-progress-strip .in-progress-title { display: block; color: var(--muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.balance-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--line); }
.balance-row span { font-size: 13px; letter-spacing: .02em; }
.balance-row > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 500; }
.balance-row > span:last-child::after { content: "›"; font-size: 18px; line-height: 1; }
.mypage-balance { margin-bottom: 8px; }
.notification-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notification-row > span { min-width: 0; }
.notification-row strong, .notification-row span > span, .notification-row time { display: block; overflow-wrap: anywhere; }
.notification-row time { font-size: 13px; letter-spacing: .02em; }
.notification-row small { flex: none; color: var(--navy); }
.notification-row::after { content: "›"; color: var(--navy); font-size: 18px; line-height: 1; }
.notification-row.unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--navy); vertical-align: middle; }
.notification-row:not(.unread) strong { font-weight: 500; }
.notifications > .section-title { flex-wrap: wrap; }
.notifications > .section-title p { margin: 0; }
#support-thread { scroll-margin-top: 90px; }


@media (max-width:720px) { .preview-strip img { max-height: none; } }

/* Salon typography: three weights and a single Japanese/Latin family. */
button, .button, :where(a.primary, a.secondary), .pick-button, .camera-button, .preference-chip span {
 font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: .06em; font-feature-settings: "palt";
}
.topbar-leading { min-width: 0; flex: 1; }
.topbar-leading > div { min-width: 0; }
.settings-row-copy strong, .notification-row strong, .support-row strong { font-size: 16px; font-weight: 700; line-height: 1.5; }
.settings-disclosure[data-confirmed=true] .settings-row-copy strong, .support-row[data-confirmed=true] strong { font-weight: 500; }
.settings-row-copy small, .notification-row time, .support-row small { font-size: 13px; font-weight: 400; line-height: 1.7; letter-spacing: .02em; }
.nav-item, .sidebar-footer strong { font-weight: 500; }
.nav-item.active { font-weight: 700; }
.run-count { display: inline-flex; align-items: baseline; gap: 4px; }
.run-count b { font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
.run-count span { font-size: 15px; font-weight: 400; line-height: 1.8; }
.balance-row { padding-block: 12px; }
@media (min-width:721px) { h1 { font-size: 34px; } }
.viewer-feedback-panel { scroll-margin-top: 70px; }
.viewer-feedback-panel a { display: inline-flex; align-items: center; min-height: 44px; }
#refund-request-form select, #refund-request-form textarea { font-size: 16px; }
#refund-ineligible { border-block: 1px solid var(--line); }

/* Billing stays in the customer application; Stripe receives only the payment step. */
.plan-price span small { display: inline; font-size: 13px; }
.billing-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.billing-tools p { margin: 4px 0 0; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.billing-tools > p { flex-basis: 100%; }
.purchase-confirmation { max-width: 760px; margin: 0 auto; }
.purchase-summary { padding: 12px 0 16px; border-bottom: 1px solid var(--line); }
.purchase-summary h2 { margin: 4px 0 8px; }
.purchase-summary > p { margin: 4px 0; }
.confirmation-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.confirmation-price strong { font-size: 32px; letter-spacing: 0; line-height: 1.1; }
.confirmation-price span { color: var(--muted); font-size: 15px; }
.purchase-conditions { margin: 0; font-size: 15px; letter-spacing: .02em; }
.purchase-conditions > div { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.purchase-conditions dt { color: var(--muted); }
.purchase-conditions dd { margin: 0; overflow-wrap: anywhere; }
.confirmation-actions { display: grid; gap: 12px; padding-top: 20px; }
.confirmation-actions p { margin: 0; }
.confirmation-accept { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; letter-spacing: .02em; }
.confirmation-accept input { flex: none; width: 20px; min-height: 20px; margin-top: 3px; }
.confirmation-accept a { text-decoration: underline; }
.payment-result { padding: 16px; margin-bottom: 16px; border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: 8px; }
.payment-result p { margin: 4px 0 0; font-size: 15px; }
.payment-warning { border-left-color: #9e6d22; }
@media (max-width:720px) {
 .credit-overview { padding-block: 12px; gap: 12px; }
 .credit-overview .balance-stats { gap: 12px; grid-column: 1 / -1; order: 3; }
 .credit-overview .current-contract { grid-column: 2; grid-row: 1; }
 .plan-picker { padding-block: 16px; }
 .plan-picker-head h2 { font-size: 18px; }
 .plan-picker-head p { margin-block: 4px 8px; }
 .billing-switch { margin-bottom: 12px; }
 .pricing-context { display: grid; gap: 0; margin-block: 0 12px; }
 .plan-matrix { grid-template-columns: 1fr; }
 .plan-card { display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; align-items: baseline; gap: 8px; padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
 .plan-card:last-child { border-bottom: 0; }
 .plan-card .plan-badge { display: none; }
 .plan-card h3 { grid-column: 1; grid-row: 1; white-space: nowrap; text-align: left; }
 .plan-card .plan-price { grid-column: 2; grid-row: 1; display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
 .plan-price strong { font-size: 28px; }
 .plan-price span { display: block; margin-left: 0; }
 .plan-price span small { display: block; line-height: 1.7; }
 .plan-card .plan-credit { grid-column: 3; grid-row: 1; display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; text-align: right; }
 .plan-credit strong { font-size: 28px; }
 .plan-card > p { display: none; }
 .plan-card > small { grid-column: 1 / 3; grid-row: 2; align-self: center; }
 .plan-card button { grid-column: 3; grid-row: 2; justify-self: end; width: auto; min-width: 88px; margin-top: 0; padding-inline: 10px; white-space: nowrap; }
 .plan-card.current { padding-inline: 12px; border: 2px solid var(--navy); }
 .plan-card.current .plan-status-badge { grid-column: 1 / -1; grid-row: 1; }
 .plan-card.current h3, .plan-card.current .plan-price, .plan-card.current .plan-credit { grid-row: 2; }
 .plan-card.current > small { grid-row: 3; }
 .purchase-summary { padding-block: 8px 12px; }
 .purchase-summary h2 { font-size: 18px; }
 .purchase-summary > p:not(.confirmation-price) { font-size: 13px; }
 .purchase-conditions { font-size: 13px; }
 .purchase-conditions > div { grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding-block: 9px; }
 .confirmation-actions { gap: 10px; padding-top: 14px; }
 .confirmation-actions .small { font-size: 13px; }
}

/* StylePilotから届いた自店写真は、利用者の確認後に通常受付へ進む。 */
.stylepilot-incoming { margin-bottom: 30px; }
.stylepilot-intake-list { display: grid; gap: 18px; }
.stylepilot-intake { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--line, #e5e5e5); }
.stylepilot-intake img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.stylepilot-intake > div { align-self: center; }
.stylepilot-intake p { margin: 0 0 10px; }
.stylepilot-intake button { margin-top: 10px; }
@media (max-width: 600px) {
  .stylepilot-intake { grid-template-columns: 90px minmax(0, 1fr); gap: 14px; }
  .stylepilot-intake strong { font-size: 16px; }
}

.service-notice { margin: 0 0 20px; padding: 16px; background: #fff6df; color: var(--ink); border: 1px solid #e4cb8e; border-radius: 12px; line-height: 1.7; }
.viewer-mode .service-notice { margin: 12px 16px; }

/* Customer surfaces are scoped: the public site keeps its existing palette. */
.customer-app {
  --bg: #F5F7F8;
  --surface: #FFFFFF;
  --ink: #16212A;
  --text-2: #4A5660;
  --text-3: #66727C;
  --navy: #123A4C;
  --navy-50: #EAF0F3;
  --teal-700: #0B6E77;
  --teal-50: #EAF7F8;
  --teal-500: #12BFC7;
  --control-border: #7A848B;
  --line: #E9EDEF;
  --danger: #A52A25;
  --danger-50: #FBEDEC;
  --warning: #7A5200;
  --warning-50: #FBF3E2;
  --good: #1F5E3A;
  --good-50: #EAF5EE;
  --shadow-1: 0 1px 2px rgba(22,33,42,.06), 0 1px 3px rgba(22,33,42,.08);
  --shadow-2: 0 4px 12px rgba(22,33,42,.08), 0 2px 4px rgba(22,33,42,.05);
  --paper: var(--bg);
  --muted: var(--text-3);
  --surface-soft: var(--navy-50);
  --navy-tint: var(--navy-50);
  --radius: 12px;
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
:where(.customer-app) h1, :where(.customer-app) h2, :where(.customer-app) h3,
:where(.customer-app) .card-title {
  letter-spacing: .01em;
  font-feature-settings: "palt";
}
:where(.customer-app) strong, :where(.customer-app) b,
:where(.customer-app) time, :where(.customer-app) input[type=number] {
  font-variant-numeric: tabular-nums;
}
:where(.customer-app) .muted, :where(.customer-app) label small,
:where(.customer-app) .empty-state p, :where(.customer-app) .integration-copy,
:where(.customer-app) .legal-summary p, :where(.customer-app) .photography-card dd {
  color: var(--text-2);
}
:where(.customer-app) time, :where(.customer-app) .small-note {
  color: var(--text-3);
  font-weight: 400;
}
:where(.customer-app) p { margin-bottom: 16px; }
:where(.customer-app) .workspace { padding: 0 24px 48px; }
:where(.customer-app) .sidebar { background: var(--surface); }
:where(.customer-app) .topbar { background: var(--bg); border-bottom: 0; }
:where(.customer-app) button, :where(.customer-app) .button,
:where(.customer-app) :is(a.primary, a.secondary),
:where(.customer-app) .pick-button, :where(.customer-app) .camera-button {
  border-radius: 12px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
:where(.customer-app) button, :where(.customer-app) .button,
:where(.customer-app) :is(a.primary, a.secondary) { padding: 12px 16px; }
:where(.customer-app) .primary { min-height: 52px; }
:where(.customer-app) .secondary { min-height: 48px; }
:where(.customer-app) button:disabled {
  color: var(--text-2);
  background: var(--bg);
}
:where(.customer-app) input:not([type=checkbox]):not([type=radio]),
:where(.customer-app) select, :where(.customer-app) textarea,
:where(.customer-app) .file-drop, :where(.customer-app) .preference-chip span,
:where(.customer-app) .segmented { border-radius: 12px; }
:where(.customer-app) input:not([type=checkbox]):not([type=radio]):not([type=range]),
:where(.customer-app) select, :where(.customer-app) textarea { padding: 12px; line-height: 1.5; }
:where(.customer-app) label { gap: 8px; }
:where(.customer-app) .form-stack { gap: 16px; }
:where(.customer-app) .preference-chip span { border-radius: 999px; }
:where(.customer-app) .segmented button { border-radius: 12px; }
:where(.customer-app) .icon { width: 24px; height: 24px; stroke-width: 1.75; }
:where(.customer-app) .text-link .icon { width: 24px; height: 24px; stroke-width: 1.75; }
:where(.customer-app) button .icon, :where(.customer-app) .button .icon,
:where(.customer-app) a.primary .icon, :where(.customer-app) a.secondary .icon,
:where(.customer-app) .pick-button .icon, :where(.customer-app) .camera-button .icon {
  width: 20px;
  height: 20px;
}
:where(.customer-app) .card,
:where(.customer-app) .notification-list, :where(.customer-app) .settings-group,
:where(.customer-app) .support-list {
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
:where(.customer-app) .card { padding: 24px; }
:where(.customer-app) .card + .card { margin-top: 16px; }
:where(.customer-app) :is(a.card, button.card) {
  position: relative;
  padding-right: 48px;
  text-align: left;
  transition: background-color 160ms ease;
}
:where(.customer-app) :is(a.card, button.card)::after {
  content: "›";
  position: absolute;
  right: 16px;
  top: 50%;
  color: var(--navy);
  font-size: 18px;
  transform: translateY(-50%);
}
:where(.customer-app) :is(a.card, button.card):is(:hover, :active) { background: var(--navy-50); }
:where(.customer-app) .notification-list,
:where(.customer-app) .settings-group, :where(.customer-app) .support-list {
  overflow: hidden;
}
:where(.customer-app) .notification-row, :where(.customer-app) .support-row,
:where(.customer-app) .settings-disclosure > summary {
  position: relative;
  min-height: 56px;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: background-color 160ms ease;
}
:where(.customer-app) .support-row { color: var(--ink); font-weight: 400; }
:where(.customer-app) .notification-row:not(:last-child)::before,
:where(.customer-app) .support-row:not(:last-child)::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 16px;
  height: 1px;
  background: var(--line);
}
:where(.customer-app) .settings-group > .settings-disclosure { border: 0; }
:where(.customer-app) .settings-group > .settings-disclosure:not(:last-child) {
  background-image: linear-gradient(var(--line), var(--line));
  background-position: right bottom;
  background-size: calc(100% - 16px) 1px;
  background-repeat: no-repeat;
}
:where(.customer-app) .notification-row:is(:hover, :active),
:where(.customer-app) .support-row:is(:hover, :active),
:where(.customer-app) .settings-disclosure > summary:is(:hover, :active) {
  background: var(--navy-50);
}
:where(.customer-app) .notification-row:focus-visible,
:where(.customer-app) .support-row:focus-visible,
:where(.customer-app) .settings-disclosure > summary:focus-visible { outline-offset: -3px; }
:where(.customer-app) .notification-row:is(:hover, :active) time,
:where(.customer-app) .support-row:is(:hover, :active) small,
:where(.customer-app) .settings-disclosure > summary:is(:hover, :active) small {
  color: var(--text-2);
}
:where(.customer-app) summary:is(:hover, :active) small,
:where(.customer-app) details[open] > summary small { color: var(--text-2); }
:where(.customer-app) .credit-pill {
  gap: 0;
  align-items: baseline;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--teal-50);
  line-height: 1.5;
  white-space: nowrap;
}
:where(.customer-app) .credit-pill > span:first-child { margin-right: 4px; }
:where(.customer-app) .credit-pill strong { font-size: 18px; }
:where(.customer-app) .credit-pill .runs-unit { font-size: 15px; font-weight: 500; }
:where(.customer-app) .credit-pill:is(:hover, :active) { text-decoration: underline; }
:where(.customer-app) .badge, :where(.customer-app) .support-status,
:where(.customer-app) .photo-status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
:where(.customer-app) .badge, :where(.customer-app) .support-status {
  color: var(--navy);
  background: var(--navy-50);
}
:where(.customer-app) .badge-recommended { color: var(--teal-700); background: var(--teal-50); }
:where(.customer-app) .badge-current { color: #fff; background: var(--navy); }
:where(.customer-app) .badge-danger, :where(.customer-app) .badge.status-failed,
:where(.customer-app) .badge.status-cancelled,
:where(.customer-app) .photo-status-badge.status-failed { color: var(--danger); background: var(--danger-50); }
:where(.customer-app) .badge-warning { color: var(--warning); background: var(--warning-50); }
:where(.customer-app) .badge-good, :where(.customer-app) .badge.status-delivered,
:where(.customer-app) .badge.status-partially_delivered, :where(.customer-app) .support-status.status-resolved {
  color: var(--good);
  background: var(--good-50);
}
:where(.customer-app) .photo-status-badge.status-returned { color: var(--text-3); background: var(--surface); }
:where(.customer-app) .empty-state {
  padding: 48px 24px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text-2);
}
:where(.customer-app) .empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
:where(.customer-app) .empty-icon .icon { stroke: var(--teal-500); }
:where(.customer-app) .empty-state strong { font-weight: 700; }
:where(.customer-app) .loading-state { display: grid; gap: 16px; }
:where(.customer-app) .skeleton {
  display: block;
  border-radius: 12px;
  background: var(--line);
  animation: customer-skeleton 160ms ease-out both;
}
:where(.customer-app) .skeleton-card { display: grid; gap: 16px; padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
:where(.customer-app) .skeleton-photo { width: 100%; aspect-ratio: 3 / 4; }
:where(.customer-app) .skeleton-line { width: 100%; height: 16px; }
:where(.customer-app) .skeleton-line-short { width: 48%; }
:where(.customer-app) .viewer-action-bar, :where(.customer-app) .submit-bar {
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
@keyframes customer-skeleton { from { opacity: .55; } to { opacity: 1; } }
@media (max-width:720px) {
  :where(.customer-app) .workspace { padding: 0 16px calc(92px + env(safe-area-inset-bottom)); }
  :where(.customer-app) .card, :where(.customer-app) .skeleton-card { padding: 16px; }
  :where(.customer-app) .mobile-nav { border: 0; background: var(--surface); box-shadow: var(--shadow-2); }
  :where(.customer-app) .mobile-nav a { color: var(--text-3); font-weight: 500; }
  :where(.customer-app) .mobile-nav a.active { color: var(--navy); font-weight: 700; }
  :where(.customer-app) .mobile-nav .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 8px; border-radius: 999px; stroke-width: 1.75; }
  :where(.customer-app) .mobile-nav .active .icon { background: var(--navy-50); stroke-width: 1.75; }
}
@media (prefers-reduced-motion:reduce) {
  :where(.customer-app) .skeleton { animation: none; }
  :where(.customer-app) button, :where(.customer-app) .button,
  :where(.customer-app) :is(a.primary, a.secondary),
  :where(.customer-app) .pick-button, :where(.customer-app) .camera-button,
  :where(.customer-app) :is(a.card, button.card),
  :where(.customer-app) .notification-row, :where(.customer-app) .support-row,
  :where(.customer-app) .settings-disclosure > summary { transition: none; }
}

/* Prices and quantities continue to come from the product data. */
:where(.customer-app) .premium-pricing { display: grid; gap: 32px; }
:where(.customer-app) .premium-pricing > * { min-width: 0; margin: 0; }
:where(.customer-app) .premium-pricing h2 { margin-bottom: 12px; }
:where(.customer-app) .premium-pricing .credit-overview {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 24px;
  border: 0;
}
:where(.customer-app) .premium-pricing .balance-main > span,
:where(.customer-app) .premium-pricing .current-contract > span {
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 13px;
}
:where(.customer-app) .premium-pricing .balance-main strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: var(--teal-700);
  font-size: 34px;
}
:where(.customer-app) .premium-pricing .balance-main em {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: 500;
}
:where(.customer-app) .premium-pricing .expiry-notice {
  grid-column: 1;
  margin: 0;
  color: var(--warning);
  font-size: 13px;
}
:where(.customer-app) .premium-pricing .current-contract {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
:where(.customer-app) .premium-pricing .current-contract strong { font-size: 16px; font-weight: 500; }
:where(.customer-app) .premium-pricing .current-contract small { margin-top: 8px; color: var(--text-2); }
:where(.customer-app) .premium-pricing .credit-overview > .text-link { grid-column: 1 / -1; justify-self: start; }
:where(.customer-app) .premium-pricing .pricing-context,
:where(.customer-app) .premium-pricing .pricing-explanation {
  display: block;
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 13px;
}
:where(.customer-app) .premium-pricing .pricing-explanation { margin-bottom: 16px; }
:where(.customer-app) .premium-pricing .plan-matrix {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border: 0;
}
:where(.customer-app) .premium-pricing .plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: 24px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
:where(.customer-app) .premium-pricing .plan-card.recommended { border-color: var(--teal-700); }
:where(.customer-app) .premium-pricing .plan-card.current { background: var(--teal-50); }
:where(.customer-app) .premium-pricing .plan-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
:where(.customer-app) .premium-pricing .plan-card h3 { margin: 0; font-size: 18px; font-weight: 700; text-align: left; }
:where(.customer-app) .premium-pricing .plan-audience { display: block; min-height: 44px; color: var(--text-2); font-size: 13px; }
:where(.customer-app) .premium-pricing .plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; margin-top: 4px; white-space: nowrap; }
:where(.customer-app) .premium-pricing .plan-price strong { font-size: 32px; }
:where(.customer-app) .premium-pricing .plan-price > span { display: inline; margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; }
:where(.customer-app) .premium-pricing .plan-price small { display: inline; color: var(--text-2); font-size: 13px; font-weight: 400; }
:where(.customer-app) .premium-pricing .plan-credit { display: flex; align-items: baseline; gap: 0; color: var(--teal-700); text-align: left; }
:where(.customer-app) .premium-pricing .plan-credit strong { font-size: 28px; }
:where(.customer-app) .premium-pricing .plan-credit > span { font-size: 15px; font-weight: 500; }
:where(.customer-app) .premium-pricing .plan-value { display: block; color: var(--text-2); font-size: 13px; }
:where(.customer-app) .premium-pricing .plan-badge,
:where(.customer-app) .premium-pricing .plan-status-badge,
:where(.customer-app) .premium-pricing .plan-bonus {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  min-height: 0;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--teal-700);
  background: var(--teal-50);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
:where(.customer-app) .premium-pricing .plan-status-badge { color: #fff; background: var(--navy); }
:where(.customer-app) .premium-pricing .plan-status-badge.plan-upcoming { color: var(--warning); background: var(--warning-50); }
:where(.customer-app) .premium-pricing .plan-action { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
:where(.customer-app) .premium-pricing .plan-action:empty { display: none; }
:where(.customer-app) .premium-pricing .plan-action button { grid-column: auto; grid-row: auto; justify-self: stretch; width: 100%; min-width: 0; margin: 0; padding-inline: 12px; }
:where(.customer-app) .premium-pricing .plan-action .plan-renewal { color: var(--text-2); font-size: 13px; }
:where(.customer-app) .premium-pricing .plan-action .plan-schedule-note { color: var(--warning); }
:where(.customer-app) .premium-pricing .plan-action .plan-change-date { color: var(--text-3); text-align: center; font-size: 13px; font-weight: 400; }
:where(.customer-app) .premium-pricing .payment-warning { display: block; margin: 0; color: var(--danger); background: transparent; font-size: 13px; }
:where(.customer-app) .premium-pricing .one-time-list { padding-block: 0; }
:where(.customer-app) .premium-pricing .one-time-row {
  display: grid;
  grid-template-columns: minmax(64px, auto) minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-block: 16px;
}
:where(.customer-app) .premium-pricing .one-time-row + .one-time-row { border-top: 1px solid var(--line); }
:where(.customer-app) .premium-pricing .one-time-quantity { display: inline-flex; align-items: baseline; gap: 0; white-space: nowrap; }
:where(.customer-app) .premium-pricing .one-time-quantity strong,
:where(.customer-app) .premium-pricing .one-time-price { font-size: 18px; font-weight: 700; line-height: 1.5; }
:where(.customer-app) .premium-pricing .one-time-quantity > span { font-size: 13px; font-weight: 500; }
:where(.customer-app) .premium-pricing .one-time-price { white-space: nowrap; }
:where(.customer-app) .premium-pricing .one-time-price small { display: block; color: var(--text-3); font-size: 13px; font-weight: 400; }
:where(.customer-app) .premium-pricing .one-time-detail { margin: 0; color: var(--text-2); font-size: 13px; }
:where(.customer-app) .premium-pricing .one-time-row button { min-width: 80px; }
:where(.customer-app) .premium-pricing .plan-comparison > summary,
:where(.customer-app) .premium-pricing .pricing-faq > summary { min-height: 48px; gap: 12px; font-weight: 500; }
:where(.customer-app) .premium-pricing .plan-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 12px;
  margin: 16px 0 0;
  font-size: 13px;
}
:where(.customer-app) .premium-pricing .plan-comparison-grid .comparison-plan-name { min-width: 0; padding: 0 0 12px; color: var(--navy); font-weight: 700; text-align: center; }
:where(.customer-app) .premium-pricing .plan-comparison-grid dt { grid-column: 1 / -1; padding-top: 16px; color: var(--text-2); font-weight: 500; }
:where(.customer-app) .premium-pricing .plan-comparison-grid dd { min-width: 0; margin: 0; padding: 8px 0 12px; border-bottom: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
:where(.customer-app) .premium-pricing .pricing-faq + .pricing-faq { border-top: 1px solid var(--line); }
:where(.customer-app) .premium-pricing .pricing-faq p { margin: 8px 0 16px; color: var(--text-2); font-size: 13px; }
:where(.customer-app) .premium-pricing .billing-disclosure { border: 0; }
:where(.customer-app) .premium-pricing .billing-disclosure > summary { padding-block: 0; min-height: 56px; }
:where(.customer-app) .premium-pricing .billing-tools { display: flex; justify-content: flex-start; border: 0; }
:where(.customer-app) .premium-pricing .billing-tools h2,
:where(.customer-app) .premium-pricing .billing-tools > p { flex-basis: 100%; margin: 0; }
:where(.customer-app) .premium-pricing .billing-tools p { color: var(--text-2); }
:where(.customer-app) .premium-pricing .balance-main > span,
:where(.customer-app) .premium-pricing .current-contract > span,
:where(.customer-app) .premium-pricing .expiry-notice,
:where(.customer-app) .premium-pricing .pricing-context,
:where(.customer-app) .premium-pricing .pricing-explanation,
:where(.customer-app) .premium-pricing .plan-audience,
:where(.customer-app) .premium-pricing .plan-value,
:where(.customer-app) .premium-pricing .plan-action .plan-renewal,
:where(.customer-app) .premium-pricing .payment-warning,
:where(.customer-app) .premium-pricing .one-time-quantity > span,
:where(.customer-app) .premium-pricing .one-time-detail,
:where(.customer-app) .premium-pricing .plan-comparison-grid,
:where(.customer-app) .premium-pricing .pricing-faq p {
  letter-spacing: .02em;
  font-feature-settings: normal;
}
:where(.customer-app) .purchase-confirmation .purchase-summary,
:where(.customer-app) .purchase-confirmation .purchase-conditions,
:where(.customer-app) .purchase-confirmation .confirmation-actions {
  padding: 24px;
  margin-top: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
:where(.customer-app) .purchase-confirmation .purchase-conditions > div:last-child { border-bottom: 0; }
:where(.customer-app) .confirmation-accept a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; vertical-align: middle; }
@media (max-width:720px) {
  :where(.customer-app) .premium-pricing .credit-overview { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  :where(.customer-app) .premium-pricing .current-contract { grid-column: 1; grid-row: auto; }
  :where(.customer-app) .premium-pricing .plan-matrix { grid-template-columns: minmax(0, 1fr); }
  :where(.customer-app) .premium-pricing .plan-card { padding: 16px; }
  :where(.customer-app) .premium-pricing .plan-audience { min-height: 0; }
  :where(.customer-app) .premium-pricing .plan-heading h3,
  :where(.customer-app) .premium-pricing .plan-heading .plan-status-badge { grid-column: auto; grid-row: auto; }
  :where(.customer-app) .premium-pricing .one-time-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto) auto; gap: 8px 12px; }
  :where(.customer-app) .premium-pricing .one-time-row .one-time-detail { grid-column: 1 / 3; grid-row: 2; }
  :where(.customer-app) .premium-pricing .one-time-row button { grid-column: 3; grid-row: 1 / span 2; padding-inline: 12px; }
  :where(.customer-app) .premium-pricing .one-time-price small { font-size: 12px; }
  :where(.customer-app) .premium-pricing .plan-comparison-grid { gap: 0 8px; }
  :where(.customer-app) .premium-pricing .comparison-plan-name { font-size: 12px; }
  :where(.customer-app) .purchase-confirmation .purchase-summary,
  :where(.customer-app) .purchase-confirmation .purchase-conditions,
  :where(.customer-app) .purchase-confirmation .confirmation-actions { padding: 16px; }
}

/* Customer screens use the same surface and spacing hierarchy. */
:where(.customer-app) .home-overview { display: grid; gap: 16px; margin-bottom: 32px; }
:where(.customer-app) .home-balance { display: flex; align-items: baseline; gap: 0; color: var(--teal-700); }
:where(.customer-app) .home-balance b, :where(.customer-app) .home-balance strong { font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: 0; }
:where(.customer-app) .home-balance span { color: inherit; font-size: 15px; font-weight: 500; }
:where(.customer-app) .home-balance > span:first-child { margin-right: 8px; }
:where(.customer-app) .home-overview .home-primary { display: flex; width: 100%; min-height: 52px; }
:where(.customer-app) .home-hero { padding: 0; margin-bottom: 32px; border: 0; }
:where(.customer-app) .home-progress,
:where(.customer-app) .home-results { padding: 0; margin-bottom: 32px; border: 0; }
:where(.customer-app) .in-progress-strip { gap: 12px; padding: 8px; }
:where(.customer-app) .in-progress-strip > a {
  width: 144px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: background-color 160ms ease;
}
:where(.customer-app) .in-progress-strip > a:is(:hover, :active) { background: var(--navy-50); }
:where(.customer-app) .progress-photo,
:where(.customer-app) .in-progress-strip img,
:where(.customer-app) .in-progress-strip .placeholder-thumb { border-radius: 12px; }
:where(.customer-app) .in-progress-strip .photo-status-badge { position: static; max-width: 100%; margin-top: 8px; vertical-align: top; }
:where(.customer-app) .in-progress-strip .in-progress-title { margin-top: 8px; color: var(--text-2); font-weight: 500; }
:where(.customer-app) .home-results .result-grid { gap: 4px; }
:where(.customer-app) .home-results .result-grid:has(> :nth-child(3)) { margin-inline: 0; }
:where(.customer-app) .home-results .result-tile { aspect-ratio: 1; overflow: hidden; border-radius: 12px; }
:where(.customer-app) .album-filters { padding: 8px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
:where(.customer-app) .album-filters button > span { border-radius: 999px; }
:where(.customer-app) .album-note { margin-block: 16px; color: var(--text-2); }
:where(.customer-app) .settings-page { display: grid; gap: 32px; }
:where(.customer-app) .settings-category { min-width: 0; }
:where(.customer-app) .settings-group-title { margin: 0 0 12px; color: var(--text-3); font-size: 13px; font-weight: 400; letter-spacing: .02em; }
:where(.customer-app) .settings-group.card { padding: 0; }
:where(.customer-app) .settings-panel { padding: 0 24px 24px; }
:where(.customer-app) .settings-group .notification-setting { min-height: 76px; padding: 16px; border: 0; }
:where(.customer-app) .notification-setting:is(:hover, :active) small { color: var(--text-2); }
:where(.customer-app) .notification-toggle { gap: 8px; }
:where(.customer-app) .settings-meta-list > div { padding-block: 12px; }
:where(.customer-app) .settings-panel .settings-mini-title { margin: 16px 16px 0; color: var(--text-3); font-weight: 400; }
:where(.customer-app) .settings-panel .support-new .settings-mini-title { margin-left: 0; }
:where(.customer-app) .mypage-balance { padding: 16px 24px; margin-bottom: 32px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
:where(.customer-app) .mypage-balance > span:last-child::after { content: none; }
:where(.customer-app) .run-count { gap: 0; color: var(--teal-700); }
:where(.customer-app) .run-count > span:first-child { margin-right: 8px; }
:where(.customer-app) .run-count b { font-size: 28px; }
:where(.customer-app) .run-count span { color: inherit; font-weight: 500; }
:where(.customer-app) .auth-mode .workspace { padding: 0 24px 32px; }
:where(.customer-app) .auth-layout { align-items: center; padding: 48px 0; }
:where(.customer-app) .auth-content { width: 100%; max-width: 400px; display: grid; gap: 24px; }
:where(.customer-app) .auth-wordmark { justify-self: center; margin: 0; }
:where(.customer-app) .auth-card { max-width: 400px; }
:where(.customer-app) .photo-select-sheet { margin: 32px auto; }
:where(.customer-app) [data-desktop-drop="true"] .photo-select-sheet { max-width: 640px; }
:where(.customer-app) .desktop-photo-drop {
  display: grid; place-content: center; gap: 8px; min-height: 216px; padding: 32px;
  text-align: center; border: 2px dashed var(--control-border); border-radius: 12px;
  background: var(--surface-soft);
}
:where(.customer-app) .desktop-photo-drop strong { font-size: 18px; }
:where(.customer-app) .photo-drop-overlay {
  position: fixed; inset: 12px; z-index: 1000; pointer-events: none;
  display: grid; align-content: center; justify-items: center; gap: 16px; padding: 24px;
  color: var(--navy); background: rgba(255, 255, 255, .96);
  border: 3px dashed var(--navy); border-radius: 16px; text-align: center;
}
:where(.customer-app) .photo-drop-overlay strong { font-size: 26px; }
:where(.customer-app) .quick-create-form > .form-error { max-width: 720px; margin: 16px auto; }

:where(.customer-app) .quick-create-card { margin-block: 32px; }
:where(.customer-app) .quick-create-head { padding: 0; margin-bottom: 16px; }
:where(.customer-app) .quick-create-head p { margin: 0; color: var(--text-2); }
:where(.customer-app) .quick-photo-drop { margin-inline: 0; width: 100%; overflow: hidden; border-radius: 12px; }
:where(.customer-app) .quick-create-card .photo-memo { margin-block: 16px; }
:where(.customer-app) .quick-create-card .finish-preference { margin-block: 16px; }
:where(.customer-app) .quick-create-card .retouch-choice { padding-block: 16px; }
:where(.customer-app) .quick-create-form { padding-bottom: calc(var(--submit-bar-height, 144px) + 24px); }
:where(.customer-app) .quick-create-form .reception-bar {
  position: fixed;
  z-index: 25;
  left: 220px;
  right: 0;
  bottom: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
:where(.customer-app) .quick-create-form .reception-bar > * { width: 100%; max-width: 720px; margin: 0; }
:where(.customer-app) .quick-create-form .reception-bar .cost-line { color: var(--text-2); font-size: 13px; }
:where(.customer-app) .viewer-menu-panel { padding: 8px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); }
:where(.customer-app) .service-notice { margin-bottom: 24px; color: var(--warning); background: var(--warning-50); border: 0; }
:where(.customer-app) .stylepilot-incoming { margin-bottom: 32px; }
:where(.customer-app) .stylepilot-intake-list { gap: 16px; }
:where(.customer-app) .stylepilot-intake { padding: 24px; gap: 24px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
:where(.customer-app) .stylepilot-intake img { border-radius: 12px; }
:where(.customer-app) .stylepilot-intake p { margin-bottom: 12px; }
:where(.customer-app) .stylepilot-intake button { margin-top: 12px; }
@media (max-width:720px) {
  :where(.customer-app) .settings-panel { padding: 0 16px 16px; }
  :where(.customer-app) .mypage-balance { padding: 16px; }
  :where(.customer-app) .auth-mode .workspace { padding-inline: 16px; }
  :where(.customer-app) .quick-create-form .reception-bar { left: 0; bottom: calc(68px + env(safe-area-inset-bottom)); padding: 16px; }
  :where(.customer-app) .stylepilot-intake { padding: 16px; gap: 16px; }
}
@media (prefers-reduced-motion:reduce) {
  :where(.customer-app) .in-progress-strip > a { transition: none; }
}

/* 2026-10-21 プランカードを詰める：金額と回数を1行、単価と特典を1行にしてスマホでの占有を抑える。 */
:where(.customer-app) .premium-pricing .plan-card { gap: 8px; }
:where(.customer-app) .premium-pricing .plan-audience { min-height: 0; margin: -4px 0 0; }
:where(.customer-app) .premium-pricing .plan-figures { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 4px; }
:where(.customer-app) .premium-pricing .plan-figures .plan-price { margin-top: 0; }
:where(.customer-app) .premium-pricing .plan-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
:where(.customer-app) .premium-pricing .plan-meta .plan-value { display: inline; }
:where(.customer-app) .premium-pricing .plan-action { gap: 4px; padding-top: 4px; }

/* 比較表：列の区切り・行の見出し・おすすめ列の色分けで、文字だけの並びにしない。 */
:where(.customer-app) .premium-pricing .plan-compare-wrap { margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
:where(.customer-app) .premium-pricing .plan-compare { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; font-variant-numeric: tabular-nums; }
:where(.customer-app) .premium-pricing .plan-compare thead td { width: 28%; background: var(--bg); }
:where(.customer-app) .premium-pricing .plan-compare thead th { padding: 12px 2px; background: var(--bg); color: var(--navy); font-size: 12px; font-weight: 700; letter-spacing: 0; text-align: center; white-space: nowrap; }
:where(.customer-app) .premium-pricing .plan-compare tbody th { padding: 12px 4px 12px 10px; color: var(--text-2); font-weight: 500; letter-spacing: 0; text-align: left; white-space: nowrap; }
:where(.customer-app) .premium-pricing .plan-compare td { padding: 12px 4px; color: var(--ink); font-weight: 700; text-align: center; overflow-wrap: anywhere; }
:where(.customer-app) .premium-pricing .plan-compare tbody tr > * { border-top: 1px solid var(--line); }
:where(.customer-app) .premium-pricing .plan-compare tr > * + * { border-left: 1px solid var(--line); }
:where(.customer-app) .premium-pricing .plan-compare .is-recommended { background: var(--teal-50); }
:where(.customer-app) .premium-pricing .plan-compare thead th.is-recommended { color: var(--teal-700); }
:where(.customer-app) .premium-pricing .plan-compare-note { margin: 12px 0 0; color: var(--text-2); font-size: 13px; }
@media (max-width: 680px) {
  :where(.customer-app) .premium-pricing .plan-card { padding: 16px; }
}

/* Staff management shares the customer card, action, and typography tokens. */
:where(.customer-app) .settings-staff-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 76px; padding: 16px; text-decoration: none; }
:where(.customer-app) .settings-staff-link > span:first-child { display: grid; gap: 4px; min-width: 0; }
:where(.customer-app) .settings-staff-link strong { color: var(--ink); font-weight: 700; }
:where(.customer-app) .settings-staff-link small { color: var(--text-3); font-size: 13px; letter-spacing: .02em; }
:where(.customer-app) .settings-staff-link:is(:hover,:active) { background: var(--navy-50); }
:where(.customer-app) .settings-staff-link:is(:hover,:active) small { color: var(--text-2); }
:where(.customer-app) .staff-page { display: grid; gap: 24px; }
:where(.customer-app) .staff-page h2 { margin: 0 0 12px; }
:where(.customer-app) .staff-heading > p { margin: 0; }
:where(.customer-app) .staff-capacity { display: grid; gap: 12px; }
:where(.customer-app) .staff-capacity > strong { color: var(--teal-700); font-size: 28px; }
:where(.customer-app) .staff-capacity > strong > span { font-size: 15px; font-weight: 500; }
:where(.customer-app) .staff-capacity > p { margin: 0; }
:where(.customer-app) .staff-capacity-warning { color: var(--warning); }
:where(.customer-app) .staff-page #open-staff-invite { justify-self: start; }
:where(.customer-app) .staff-member-list { padding-block: 0; }
:where(.customer-app) .staff-member,
:where(.customer-app) .staff-invite-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: 16px; padding-block: 24px; }
:where(.customer-app) .staff-member + .staff-member,
:where(.customer-app) .staff-invite-row + .staff-invite-row { border-top: 1px solid var(--line); }
:where(.customer-app) .staff-person,
:where(.customer-app) .staff-usage { display: grid; gap: 4px; min-width: 0; }
:where(.customer-app) .staff-person > span,
:where(.customer-app) .invite-email { overflow-wrap: anywhere; }
:where(.customer-app) .staff-person small,
:where(.customer-app) .staff-usage small,
:where(.customer-app) .staff-page .form-stack > small { font-size: 13px; letter-spacing: .02em; color: var(--text-3); }
:where(.customer-app) .staff-usage > span { font-size: 13px; letter-spacing: .02em; color: var(--text-2); }
:where(.customer-app) .staff-member-edit { grid-column: 1 / -1; }
:where(.customer-app) .staff-member-edit > summary,
:where(.customer-app) .staff-policy > summary { min-height: 48px; }
:where(.customer-app) .staff-member-edit .form-stack,
:where(.customer-app) .staff-policy .form-stack { margin-top: 16px; max-width: 520px; }
/* ラジオの丸だけでなく説明を含む行全体を押せるようにする。 */
:where(.customer-app) .staff-policy-options { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
:where(.customer-app) .staff-policy-options > legend { padding: 0 0 12px; font-size: 15px; font-weight: 500; }
:where(.customer-app) .staff-policy-choice { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 12px; min-height: 76px; min-width: 44px; margin: 0; padding: 12px; border: 1.5px solid var(--control-border); border-radius: 12px; background: var(--surface); cursor: pointer; }
:where(.customer-app) .staff-policy-choice:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
:where(.customer-app) .staff-policy-choice:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
:where(.customer-app) .staff-policy-choice > input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; accent-color: var(--navy); }
:where(.customer-app) .staff-policy-choice > span { display: grid; gap: 4px; min-width: 0; }
:where(.customer-app) .staff-policy-choice strong { color: var(--ink); font-size: 15px; font-weight: 500; }
:where(.customer-app) .staff-policy-choice small { color: var(--text-2); font-size: 13px; font-weight: 400; letter-spacing: .02em; }
:where(.customer-app) .staff-row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
:where(.customer-app) .staff-owner-notice { padding: 12px 16px; border-radius: 12px; color: var(--navy); background: var(--navy-50); }
:where(.customer-app) .premium-pricing .plan-seat-limit { color: var(--text-2); font-size: 13px; letter-spacing: .02em; font-weight: 400; }
:where(.customer-app) .invite-unavailable { display: grid; gap: 16px; }
:where(.customer-app) .invite-unavailable h2,
:where(.customer-app) .invite-unavailable p { margin: 0; }
:where(.customer-app) .invite-unavailable .secondary { justify-self: start; }
@media (max-width: 720px) {
  :where(.customer-app) .staff-page { gap: 24px; }
  :where(.customer-app) .staff-member,
  :where(.customer-app) .staff-invite-row { grid-template-columns: minmax(0,1fr); padding-block: 16px; }
  :where(.customer-app) .staff-row-actions { display: grid; justify-items: start; }
  :where(.customer-app) .staff-page #open-staff-invite { width: 100%; }
}

:where(.customer-app) .invite-consent-detail { white-space: nowrap; }

:where(.customer-app) .child-photo-choice { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; padding: 12px; border: 1px solid var(--control-border); border-radius: 12px; cursor: pointer; }
:where(.customer-app) .child-photo-choice input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; }
:where(.customer-app) .child-photo-choice span { min-width: 0; }
:where(.customer-app) .child-photo-choice strong,
:where(.customer-app) .child-photo-choice small { display: block; }
:where(.customer-app) .child-photo-choice small { margin-top: 4px; line-height: 1.6; }

/* 2026-10-25 回数の返却：仕上がりの下に常設のカード、例つきの申請フォーム、案内ページ。 */
:where(.customer-app) .viewer-header-actions { display: flex; align-items: center; gap: 4px; }
:where(.customer-app) .viewer-header-actions .text-link-button { color: var(--teal-700); font-size: 15px; font-weight: 700; }
:where(.customer-app) .viewer-return { max-width: 640px; margin: 8px auto 0; padding: 0 16px; }
:where(.customer-app) .return-card { display: grid; gap: 8px; padding: 16px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); border-left: 4px solid var(--teal-500); }
:where(.customer-app) .return-card > strong { font-size: 16px; }
:where(.customer-app) .return-card p { margin: 0; color: var(--text-2); line-height: 1.7; }
:where(.customer-app) .return-card p b { color: var(--ink); }
:where(.customer-app) .return-card .return-card-note { color: var(--warning); }
:where(.customer-app) .return-card.return-pending { border-left-color: var(--navy); }
:where(.customer-app) .return-card.return-approved { border-left-color: var(--good); background: var(--good-50); }
:where(.customer-app) .return-card.return-declined { border-left-color: var(--control-border); }
:where(.customer-app) .return-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 4px; }
:where(.customer-app) .return-card-actions .secondary { flex: 0 1 auto; }
:where(.customer-app) .return-expired { max-width: 640px; margin: 8px auto 0; text-align: center; }
:where(.customer-app) .viewer-feedback-panel { max-width: 640px; margin-inline: auto; padding-inline: 16px; }
:where(.customer-app) .return-form-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:where(.customer-app) .return-form-head h2 { margin: 0; }
:where(.customer-app) .return-form fieldset { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
:where(.customer-app) .return-form legend { margin-bottom: 4px; font-weight: 700; }
:where(.customer-app) .return-group-title { margin: 12px 0 0; color: var(--text-3); font-size: 13px; font-weight: 700; }
:where(.customer-app) .feedback-form .return-reason { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; border: 1px solid var(--control-border); border-radius: 10px; background: var(--surface); cursor: pointer; }
:where(.customer-app) .return-reason input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
:where(.customer-app) .return-reason span { min-width: 0; }
:where(.customer-app) .return-reason strong, :where(.customer-app) .return-reason small { display: block; }
:where(.customer-app) .return-reason small { margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
:where(.customer-app) .return-reason:has(input:checked) { border-color: var(--navy); background: var(--navy-50); }
:where(.customer-app) #refund-ineligible.return-ineligible { margin: 0; padding: 12px 14px; border: 0; border-radius: 10px; color: var(--warning); background: var(--warning-50); }
:where(.customer-app) #refund-comment-field > .small { display: block; font-weight: 400; }
:where(.customer-app) .return-guide { display: grid; gap: 24px; max-width: 720px; }
:where(.customer-app) .return-guide-summary { padding: 24px; border-radius: 16px; }
:where(.customer-app) .return-guide-summary h2 { margin-bottom: 16px; }
:where(.customer-app) .return-facts, :where(.customer-app) .return-examples, :where(.customer-app) .return-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
:where(.customer-app) .return-facts li, :where(.customer-app) .return-examples li { display: grid; grid-template-columns: 11em minmax(0,1fr); gap: 4px 16px; }
:where(.customer-app) .return-facts span, :where(.customer-app) .return-examples span { color: var(--text-2); }
:where(.customer-app) .return-guide-warning { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; color: var(--warning); background: var(--warning-50); }
:where(.customer-app) .return-guide-section h2 { margin-bottom: 8px; }
:where(.customer-app) .return-examples li { padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); border-left: 4px solid var(--good); }
:where(.customer-app) .return-examples.ng li { border-left-color: var(--control-border); }
:where(.customer-app) .return-notes li { padding-left: 16px; position: relative; color: var(--text-2); }
:where(.customer-app) .return-notes li::before { content: ""; position: absolute; left: 0; top: .75em; width: 6px; height: 6px; border-radius: 50%; background: var(--control-border); }
@media (max-width:720px) {
  :where(.customer-app) .return-facts li, :where(.customer-app) .return-examples li { grid-template-columns: minmax(0,1fr); }
  :where(.customer-app) .return-guide-summary { padding: 16px; }
}

/* 2026-10-25 PCの受付：写真の右上の×で外し、ドラッグで追加する。スマホは従来どおりタップで選び直す。 */
.preview-item { position: relative; display: block; min-width: 0; }
.preview-remove { display: none; }
.quick-photo-drop.desktop-preview { cursor: default; }
.quick-photo-drop.desktop-preview .preview-item { width: fit-content; max-width: 100%; margin: 0 auto; }
.quick-photo-drop.desktop-preview .preview-item img { width: auto; max-width: 100%; aspect-ratio: auto; }
.quick-photo-drop.desktop-preview .preview-remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(22,33,42,.72); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; }
.quick-photo-drop.desktop-preview .preview-remove:hover, .quick-photo-drop.desktop-preview .preview-remove:focus-visible { background: rgba(22,33,42,.92); }
.quick-photo-drop.desktop-preview .preview-remove .icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.4; fill: none; }

/* 2026-10-25 運営の店舗（回数無制限）の案内。 */
:where(.customer-app) .credit-unlimited-notice { display: grid; gap: 12px; justify-items: start; max-width: 640px; padding: 24px; border-radius: 16px; }
:where(.customer-app) .credit-unlimited-notice p { margin: 0; color: var(--text-2); }

.seat-addon-panel { margin-block: 20px; padding: 20px; color: var(--ink); }
.seat-addon-panel .form-stack { max-width: 520px; margin-block: 16px; }
.seat-addon-panel button, .seat-addon-panel select { min-height: 44px; }
.seat-addon-panel .purchase-conditions { margin-block: 12px; }
.seat-addon-panel [data-seat-confirm] { background: var(--teal-50); padding: 16px; border-radius: 12px; }
.seat-addon-panel [data-seat-confirm] label { display:flex; align-items:center; gap:12px; min-height:44px; }
