:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --surface: #fffefa;
  --wine: #722e43;
  --wine-dark: #5c2033;
  --ink: #36262b;
  --muted: #827378;
  --rose: #efe2e5;
  --line: #e9dde0;
  --radius: 23px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--wine); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #bb8797; outline-offset: 4px; }
button:disabled { cursor: default; opacity: .5; }
.app-shell { width: min(100%, 620px); margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom)); }
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 27px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--wine); }
.brand-mark { fill: currentColor; width: 24px; height: 24px; margin-right: 1px; }
.brand > span { font-size: 34px; line-height: 1; letter-spacing: -2px; font-weight: 760; }
.brand small { font-size: 11px; letter-spacing: 1.5px; margin: 7px 0 0 2px; }
.header-label { color: var(--muted); font-size: 12px; }
#app { outline: 0; min-height: 340px; }
.page { animation: enter .2s ease both; }
.banner { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; display: block; border-radius: var(--radius); background: var(--paper); border: 1px solid rgba(114,46,67,.06); }
.page-intro { margin: 25px 2px 22px; }
.eyebrow { display: block; color: var(--wine); font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 9px; }
h1 { font-size: clamp(25px, 6.4vw, 32px); font-weight: 660; letter-spacing: -1.1px; line-height: 1.12; margin: 0 0 11px; }
h2 { font-size: 19px; font-weight: 640; letter-spacing: -.4px; margin: 0 0 10px; }
p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.back-button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); padding: 0 2px; min-height: 36px; margin: -10px 0 13px; font-size: 12px; }
.back-button svg { width: 16px; height: 16px; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; width: 100%; min-height: 53px; border: 1px solid var(--line); border-radius: 16px; background: transparent; padding: 14px 16px; color: var(--wine); font-size: 14px; font-weight: 610; line-height: 1.35; transition: background .15s, transform .15s; }
.button:hover:not(:disabled) { background: #f0e8e8; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { border-color: var(--wine); color: #fff9f4; background: var(--wine); }
.button-primary:hover:not(:disabled) { background: var(--wine-dark); }
.button-soft { background: var(--rose); border-color: var(--rose); }
.button-plain { min-height: 41px; border-color: transparent; color: var(--muted); font-size: 12px; }
.trial-teaser { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 17px; text-align: left; color: var(--wine); background: #f3e9eb; border: 1px solid #e8d7dd; border-radius: 16px; }
.trial-teaser:hover { background: #eee0e5; }
.trial-gift { flex: 0 0 29px; font-size: 23px; line-height: 1; }
.trial-teaser > span:nth-child(2) { flex: 1; min-width: 0; }
.trial-teaser strong { display: block; font-size: 14px; font-weight: 620; }
.trial-teaser small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.trial-teaser .icon { width: 16px; height: 16px; color: #ac7e8c; }
.trial-summary { padding: 22px; margin: 0 0 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.trial-summary > span { display: block; color: var(--wine); font-size: 12px; }
.trial-summary > strong { display: block; color: var(--wine); font-size: 36px; font-weight: 650; letter-spacing: -1px; margin: 9px 0 7px; }
.trial-summary > small { color: var(--muted); font-size: 12px; }
.icon { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.status-card { padding: 17px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.status-card small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.status-card strong { font-size: 14px; font-weight: 610; }
.status-dot { display: block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; background: #9b8e92; margin-right: 3px; }
.status-dot.active { background: #709078; box-shadow: 0 0 0 5px #edf1e9; }
.status-dot.expired { background: var(--wine); box-shadow: 0 0 0 5px var(--rose); }
.subtle-note { font-size: 12px; line-height: 1.65; text-align: center; padding: 16px 8px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); margin-bottom: 18px; }
.plan-list { display: grid; gap: 10px; margin-bottom: 17px; }
.plan { position: relative; width: 100%; display: flex; text-align: left; align-items: center; gap: 14px; padding: 19px 18px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); transition: border-color .15s, background .15s; }
.plan:hover, .plan:focus-visible { border-color: var(--wine); background: #fcf7f6; }
.plan-copy { flex: 1; }
.plan-name { display: block; font-size: 16px; font-weight: 620; margin-bottom: 5px; }
.plan-caption { display: block; color: var(--muted); font-size: 12px; }
.plan-price { color: var(--wine); font-size: 22px; letter-spacing: -.5px; font-weight: 660; white-space: nowrap; }
.plan-arrow { color: #ac7e8c; width: 18px; }
.payment-summary { display: grid; gap: 0; margin: 0 0 16px; }
.payment-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.payment-summary > div:first-child { padding-top: 0; }
.payment-summary > div:last-child { padding-bottom: 0; border: 0; }
.payment-summary dt { color: var(--muted); font-size: 13px; }
.payment-summary dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 590; text-align: right; overflow-wrap: anywhere; }
.payment-summary .total dd { color: var(--wine); font-size: 29px; letter-spacing: -.8px; }
.steps { padding: 0; margin: 0 0 24px; list-style: none; }
.steps li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: none; padding-bottom: 0; }
.step-number { color: #ae8692; font-size: 12px; font-weight: 600; letter-spacing: 1px; padding-top: 3px; }
.steps strong { display: block; font-size: 15px; font-weight: 630; margin-bottom: 5px; }
.steps p { font-size: 13px; }
.link-list { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.link-row { display: flex; align-items: center; width: 100%; padding: 18px; min-height: 64px; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; gap: 13px; }
.link-row:last-child { border-bottom: 0; }
.link-row:hover { background: #f5eded; }
.link-row > .icon:first-child { color: var(--wine); }
.link-row span { flex: 1; font-size: 14px; font-weight: 530; }
.link-row .row-emoji { flex: 0 0 20px; font-size: 19px; line-height: 1; text-align: center; }
.link-row small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.link-row > .icon:last-child { width: 16px; height: 16px; color: #ad919a; }
.notice { border: 1px solid var(--line); background: #f2e8e9; color: var(--wine); padding: 14px 16px; margin-bottom: 18px; border-radius: 15px; font-size: 13px; line-height: 1.6; }
.notice a { text-decoration: underline; }
.notice strong { font-weight: 640; }
.notice-neutral { background: var(--surface); color: var(--muted); }
.input-label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 9px; }
.text-input { display: block; width: 100%; min-height: 53px; padding: 14px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); margin-bottom: 13px; }
.text-input::placeholder { color: #ab969c; }
.code-box { display: block; font-family: inherit; background: var(--paper); border: 1px dashed #d8bdc5; color: var(--wine); font-size: 13px; padding: 16px; border-radius: 14px; overflow-wrap: anywhere; margin: 18px 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stat { padding: 19px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.stat strong { display: block; color: var(--wine); font-size: 25px; font-weight: 640; margin-bottom: 5px; }
.stat span { font-size: 11px; color: var(--muted); }
.loading { min-height: 250px; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.loading-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--wine); animation: pulse 1.1s infinite alternate; }
.app-footer { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #a29398; font-size: 10px; padding: 30px 0 5px; }
.app-footer-brand { display: flex; gap: 9px; justify-content: center; }
.app-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; font-size: 11px; }
.app-footer-links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; z-index: 20; bottom: max(26px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 40px); background: #4e2532; color: #fff8f4; border-radius: 15px; box-shadow: 0 9px 30px #48213022; padding: 14px 20px; font-size: 13px; line-height: 1.5; text-align: center; }
.preview-banner { color: var(--wine); padding: 16px; margin-bottom: 24px; border: 1px dashed #c8a7b1; border-radius: 17px; }
.preview-banner > strong { display: block; font-size: 12px; font-weight: 650; }
.preview-banner > span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.preview-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 0; }
.preview-nav button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--wine); font-size: 10px; background: var(--surface); }
.preview-nav button[aria-current="page"] { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.noscript { text-align: center; padding: 30px; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
@media (min-width: 640px) { .app-shell { padding-top: 38px; padding-bottom: 34px; } .app-header { padding-bottom: 32px; } .banner { border-radius: 26px; } }
@media (max-width: 360px) { .app-shell { padding-left: 16px; padding-right: 16px; } .button { font-size: 13px; padding: 13px 12px; } .brand > span { font-size: 31px; } .plan { padding: 17px 14px; gap: 10px; } .plan-price { font-size: 20px; } .panel { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Account screens share the quiet BELLE palette and generous touch targets. */
.app-shell { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.app-header { padding-bottom: 25px; }
.banner-compact { max-height: 180px; object-fit: cover; }
.section-space { margin-top: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 28px 1px 13px; }
.section-heading h2 { margin: 0; font-size: 17px; }
.section-heading .button { width: auto; min-height: 30px; padding: 5px 0; }
.cabinet-welcome { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 2px 25px; }
.cabinet-welcome h1 { max-width: 410px; font-size: clamp(27px, 7vw, 36px); margin-bottom: 7px; }
.cabinet-welcome p { font-size: 13px; }
.welcome-spark { color: var(--wine); font-size: 51px; opacity: .78; font-family: Georgia, serif; }
.overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0; border-radius: 19px; background: #f0e7e7; }
.overview-stats > div { text-align: center; border-right: 1px solid #dfcdd3; padding: 0 4px; }
.overview-stats > div:last-child { border: 0; }
.overview-stats strong { display: block; font-size: 26px; line-height: 1; font-weight: 650; color: var(--wine); }
.overview-stats span { display: block; color: var(--muted); font-size: 10px; line-height: 1.4; margin-top: 7px; }
.refresh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 49px; color: var(--muted); font-size: 10px; }
.refresh-row button { display: flex; align-items: center; gap: 5px; min-height: 40px; background: none; color: var(--wine); border: 0; font-size: 11px; padding: 7px 0 7px 10px; }
.refresh-row .icon { width: 13px; height: 13px; flex-basis: 13px; }
.subscription-list { display: grid; gap: 14px; }
.subscription-card { padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 23px; }
.featured-subscription { background: linear-gradient(115deg, #fffefa, #fbf4f2); border-color: #e2cfd4; box-shadow: 0 7px 24px #56243604; }
.subscription-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; }
.subscription-icon { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 12px; background: var(--rose); color: var(--wine); font-size: 23px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; background: #eef1e8; color: #657650; border-radius: 8px; font-size: 10px; font-weight: 560; line-height: 1; }
.status-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-expiring { background: #f7eddd; color: #9a763e; }
.status-expired, .status-inactive { background: #efe7e7; color: #94767f; }
.subscription-title { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); text-align: left; }
.subscription-title > span { min-width: 0; overflow-wrap: anywhere; font-size: 21px; font-weight: 610; letter-spacing: -.5px; }
.subscription-title small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.subscription-title .icon { color: #b397a0; }
.remaining { display: flex; align-items: baseline; gap: 7px; margin-top: 25px; }
.remaining strong { font-size: 22px; color: var(--wine); font-weight: 620; letter-spacing: -.4px; }
.remaining > span { font-size: 11px; color: var(--muted); }
.subscription-progress { height: 4px; overflow: hidden; background: #eadde0; border-radius: 99px; margin-top: 13px; }
.subscription-progress > span { display: block; height: 100%; background: #a27684; border-radius: inherit; }
.subscription-dates { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 10px; line-height: 1.45; margin-top: 9px; }
.subscription-card .actions-row { margin-top: 22px; }
.subscription-card .button { min-height: 45px; padding: 11px; font-size: 12px; border-radius: 12px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
.quick-grid .link-row { display: block; padding: 17px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.quick-grid .link-row > span:not(.row-emoji) { display: block; margin-top: 12px; font-size: 13px; }
.quick-grid .link-row .row-emoji { display: block; text-align: left; }
.quick-grid .link-row > .icon:last-child { display: none; }
.quick-grid .link-row small { font-size: 10px; line-height: 1.5; }
.empty-state { padding: 33px 23px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.empty-symbol { display: block; color: var(--wine); font-size: 35px; margin-bottom: 18px; }
.empty-state h2 { font-size: 21px; }
.empty-state p { font-size: 13px; }
.empty-state .button { margin-top: 22px; }
.filter-tabs { display: flex; gap: 4px; padding: 5px; background: #eee6e7; border-radius: 13px; margin-bottom: 17px; }
.filter-tabs button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 8px 4px; border: 0; border-radius: 10px; background: none; font-size: 11px; color: var(--muted); }
.filter-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--wine); box-shadow: 0 2px 7px #51223208; }
.filter-tabs span { font-size: 9px; opacity: .75; }
.detail-hero { background: #f0e6e8; border-radius: 22px; padding: 23px; margin-bottom: 17px; }
.detail-remaining { margin-top: 24px; }
.detail-remaining strong { display: block; color: var(--wine); font-size: 34px; font-weight: 650; letter-spacing: -.9px; }
.detail-remaining span { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.detail-hero .subscription-progress { margin-top: 23px; background: #dfcbd1; }
.usage-placeholder { display: flex; gap: 13px; padding: 18px; border: 1px dashed #d9c6cb; border-radius: 17px; }
.usage-placeholder > .icon { margin-top: 2px; color: var(--wine); }
.usage-placeholder strong { font-size: 13px; font-weight: 550; }
.usage-placeholder p { font-size: 12px; margin-top: 5px; }
.identity-card { display: flex; gap: 13px; align-items: center; margin-bottom: 23px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.identity-icon { display: grid; place-items: center; font-size: 24px; width: 45px; height: 45px; border-radius: 15px; background: var(--rose); }
.identity-card strong { display: block; font-size: 14px; overflow-wrap: anywhere; }
.identity-card small { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.setting-panel { padding: 20px; }
.switch-row { display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer; min-height: 40px; }
.switch-row > span:first-child { flex: 1; }
.switch-row strong { display: block; font-size: 13px; font-weight: 570; }
.switch-row small { display: block; color: var(--muted); line-height: 1.5; font-size: 11px; margin-top: 6px; }
.switch-row input { position: absolute; right: 0; width: 44px; height: 30px; opacity: 0; cursor: pointer; margin: 0; }
.switch-track { display: block; pointer-events: none; width: 42px; height: 26px; flex: 0 0 42px; border-radius: 99px; background: #dacfd2; padding: 3px; transition: background .2s; }
.switch-track::after { content: ''; display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px #48213015; transition: transform .2s; }
.switch-row input:checked + .switch-track { background: var(--wine); }
.switch-row input:checked + .switch-track::after { transform: translateX(16px); }
.switch-row input:focus-visible + .switch-track { outline: 3px solid #bb8797; outline-offset: 4px; }
.field-note { font-size: 11px; line-height: 1.5; }
.history-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.history-list li { display: flex; align-items: center; gap: 13px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.history-list li:last-child { border-bottom: 0; }
.history-dot { display: grid; place-items: center; color: #a27f8b; width: 29px; height: 29px; flex: 0 0 29px; background: var(--paper); border-radius: 50%; font-size: 17px; }
.history-list li > div { flex: 1; min-width: 0; }
.history-list strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 550; overflow-wrap: anywhere; }
.history-list small { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.history-link { display: grid; place-items: center; width: 28px; height: 36px; padding: 0; border: 0; color: #b397a0; background: none; }
.plan { display: block; padding: 20px; }
.plan-highlight { background: #f3e9eb; border-color: #d6b8c2; }
.plan-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 13px; }
.plan-name { margin: 0; font-size: 17px; }
.plan-tag { background: #e4cdd5; color: var(--wine); padding: 5px 8px; font-size: 9px; border-radius: 6px; }
.plan-price-row { display: flex; align-items: center; gap: 9px; }
.plan-price { font-size: 30px; }
.plan-price-row s { font-size: 13px; color: #a28d94; font-weight: 400; }
.plan-price-row .icon { margin-left: auto; color: #ac7e8c; }
.plan-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-top: 12px; }
.saving-chip { display: inline-block; color: var(--wine); font-size: 11px; line-height: 1.4; font-weight: 520; background: #f0e3e7; border-radius: 6px; padding: 5px 7px; }
.plan-highlight .saving-chip { background: #e8d6dd; }
.base-price { color: var(--muted); font-size: 11px; line-height: 1.4; padding: 5px 0; }
.plan-bottom .plan-caption { font-size: 10px; }
.renew-target { display: grid; gap: 4px; border-left: 2px solid #c398a6; padding: 3px 13px; margin-bottom: 23px; }
.renew-target > span { font-size: 11px; color: var(--muted); }
.renew-target > strong { font-size: 13px; font-weight: 530; overflow-wrap: anywhere; }
.payment-summary .saving-total dd { color: var(--wine); }
.checkout-panel .payment-summary { margin-bottom: 17px; }
.checkout-date-note { padding-top: 0; padding-bottom: 17px; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4,1fr); width: min(100%,620px); padding: 8px 16px max(9px,env(safe-area-inset-bottom)); border-top: 1px solid #e7d9dd; background: #f8f7f3f5; backdrop-filter: blur(15px); }
.bottom-nav button { display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; min-height: 53px; padding: 5px; border: 0; border-radius: 12px; background: none; color: #a08d94; font-size: 10px; }
.bottom-nav button[aria-current="page"] { color: var(--wine); background: #eee3e6; }
.bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
.preview-banner { margin-bottom: 10px; }
.preview-nav button[aria-pressed="true"] { background: var(--wine); color: var(--paper); border-color: var(--wine); }
form + .button, .actions + .button { margin-top: 12px; }
@media (max-width: 360px) {
  .subscription-card { padding: 18px; }
  .subscription-title > span { font-size: 19px; }
  .plan { padding: 17px; }
  .plan-name { font-size: 16px; }
  .plan-tag { font-size: 8px; padding: 5px 6px; }
  .plan-price { font-size: 28px; }
  .filter-tabs button { font-size: 10px; gap: 3px; }
  .setting-panel { padding: 17px; }
  .switch-row strong { font-size: 12px; }
  .overview-stats span { font-size: 9px; }
  .remaining { flex-wrap: wrap; }
}

/* Browser login and device management share the BELLE cabinet palette. */
.login-panel { margin-top: 22px; }
.verification-code { display:block; color:var(--wine); font-size:clamp(33px,10vw,48px); letter-spacing:.22em; font-variant-numeric:tabular-nums; margin:15px 0 18px; }
.plan-device-line { display:block; font-size:12px; color:var(--muted); margin:3px 0 12px; }
.device-summary { display:flex; gap:16px; align-items:center; justify-content:space-between; padding:21px; background:var(--surface); border:1px solid var(--line); border-radius:20px; margin-top:22px; }
.device-summary strong { display:block; font-size:23px; color:var(--wine); margin-bottom:7px; }
.device-summary .button { width:auto; flex:0 0 auto; }
.device-summary p { font-size:12px; }
.device-list { padding:0; margin:0 0 20px; list-style:none; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.device-list li { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:18px; border-bottom:1px solid var(--line); }
.device-list li:last-child { border-bottom:0; }
.device-list strong { font-size:14px; overflow-wrap:anywhere; }
.device-list small { display:block; color:var(--muted); font-size:11px; margin-top:5px; }
.device-list li > span { font-size:11px; color:var(--muted); }
.device-quote-price { display:block; font-size:32px; color:var(--wine); margin:16px 0; }
.device-quote-price small { font-size:13px; font-weight:400; }
@media(max-width:360px){.device-summary{display:block}.device-summary .button{width:100%;margin-top:15px}}

.device-remove { border:1px solid var(--line); border-radius:10px; background:transparent; color:var(--wine); font-size:11px; padding:10px; flex:0 0 auto; }
.device-remove:hover { background:var(--rose); }

/* Provider-backed invoice; status changes only from authenticated server data. */
.invoice-card { text-align:center; padding:26px 22px; }
.invoice-status { display:inline-flex; align-items:center; gap:7px; font-size:11px; color:var(--wine); border:1px solid var(--line); border-radius:30px; padding:8px 12px; margin-bottom:18px; }
.invoice-status i { width:6px; height:6px; border-radius:50%; background:currentColor; }
.invoice-paid { color:#4d7455; background:#f0f4ed; border-color:#e3ebdf; }
.invoice-canceled { color:var(--muted); }
.invoice-description { color:var(--ink); font-size:14px; overflow-wrap:anywhere; }
.invoice-amount { display:block; font-size:44px; color:var(--wine); letter-spacing:-1.5px; margin:15px 0; }
.invoice-number { display:block; font-size:10px; color:var(--muted); overflow-wrap:anywhere; }
.invoice-expiry { font-size:11px; margin:17px 0 0; }
