:root { color-scheme: dark; --scrollbar-track:var(--surface-2); --scrollbar-thumb:#55555b; --scrollbar-thumb-hover:#717178; --chart-track:#343438; --bg:#000; --surface:#1c1c1e; --surface-2:#2c2c2e; --text:#f5f5f7; --text-secondary:#a4a4ab; --muted:var(--text-secondary); --line:rgba(255,255,255,.10); --accent-color:#6cb6d9; --accent-hover:#82c5e3; --accent-dark:#4d93b3; --accent:var(--accent-color); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
select option { background:var(--surface); color:var(--text); }
* { box-sizing:border-box; } body { margin:0; background:var(--bg); color:var(--text); font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; } button,input,select { font:inherit; } .app-shell { width:min(100%,680px); min-height:100vh; margin:0 auto; padding:28px 20px 120px; }
h1,h2,p { margin:0; } h1 { font-size:28px; letter-spacing:-.04em; } h2 { font-size:17px; letter-spacing:-.02em; } .page-header { margin-bottom:28px; } .page-header p,.eyebrow { margin-top:6px; color:var(--muted); font-size:14px; } .eyebrow { margin:0 0 5px; font-size:11px; letter-spacing:.12em; }
.hero-total { padding:24px; border-radius:26px; background:var(--surface); } .hero-total p { color:var(--muted); font-size:14px; } .hero-total strong { display:block; margin:7px 0 14px; font-size:42px; line-height:1; letter-spacing:-.055em; } .hero-total div { display:flex; gap:14px; color:var(--muted); font-size:13px; } .hero-total.compact { margin:20px 0 32px; }.annual-summary { display:grid !important; grid-template-columns:1fr auto; align-items:baseline; gap:3px 12px !important; padding:14px; border-radius:17px; background:var(--surface-2); }.annual-summary b { color:var(--text); font-size:22px; letter-spacing:-.03em; }.annual-summary small { grid-column:1/-1; color:var(--muted); }.detail-toggle { margin-top:14px; border:0; padding:0; color:var(--accent-color); background:transparent; font-size:13px; cursor:pointer; }.cost-details { display:grid; gap:12px; margin-top:15px; padding-top:15px; border-top:1px solid var(--line); animation:expand-details .25s ease-out; }.cost-details div { display:flex; justify-content:space-between; color:var(--muted); }.cost-details b { color:var(--text); }.cost-details p { font-size:11px; line-height:1.5; }.cost-details[hidden] { display:none; }
.section { margin-top:34px; } .section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; } .section-heading > a { color:var(--accent); font-size:14px; } .list-panel,.settings-panel { overflow:hidden; border-radius:22px; background:var(--surface); }
.subscription-row { display:flex; align-items:center; min-height:76px; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); } .subscription-row:last-child,.settings-panel > :last-child { border-bottom:0; } .subscription-row:active { background:var(--surface-2); } .category-dot { width:10px; height:10px; flex:0 0 auto; border-radius:50%; background:var(--category-color); } .row-main { min-width:0; flex:1; display:grid; gap:5px; } .row-main strong,.payment-row strong { font-size:15px; font-weight:650; } .row-main span,.row-end small,.payment-row small { overflow:hidden; color:var(--muted); font-size:13px; text-overflow:ellipsis; white-space:nowrap; } .subscription-memo { overflow:hidden; color:var(--text-secondary); font-size:12px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; } .subscription-row b,.payment-row b { font-size:15px; font-weight:650; } .row-end { display:grid; justify-items:end; gap:5px; } .empty { padding:24px 18px; color:var(--muted); text-align:center; }
.fab { position:fixed; z-index:3; right:max(24px,calc((100vw - 640px)/2)); bottom:calc(94px + env(safe-area-inset-bottom, 0px)); display:grid; width:56px; height:56px; place-items:center; border-radius:50%; color:#10191d; background:var(--accent-color); box-shadow:0 10px 22px rgba(0,0,0,.35); transition:background .18s ease,transform .18s ease; } .fab:hover,.fab:active { background:var(--accent-hover); transform:scale(1.04); } .icon { width:21px; height:21px; } .fab .icon { width:26px; height:26px; }
.tab-bar { position:fixed; z-index:5; bottom:calc(14px + env(safe-area-inset-bottom, 0px)); left:16px; right:16px; display:grid; grid-template-columns:repeat(5,1fr); gap:3px; width:min(calc(100% - 32px),648px); margin:auto; padding:6px; border:1px solid var(--line); border-radius:24px; background:rgba(36,36,36,.96); backdrop-filter:blur(18px); } .tab { display:grid; min-height:52px; place-items:center; align-content:center; gap:3px; border-radius:17px; color:var(--muted); font-size:10px; } .tab .icon { width:19px; height:19px; } .tab.active { color:var(--accent); background:#393939; }
.form-header { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; margin-bottom:26px; text-align:center; } .form-header h1 { font-size:18px; } .form-header > a,.icon-action { display:grid; width:44px; height:44px; place-items:center; border:0; border-radius:14px; color:var(--text); background:var(--surface-2); } .icon-action { color:#242424; background:var(--accent); cursor:pointer; }
.form-panel { padding:0 16px; } .form-panel label { display:grid; gap:8px; padding:17px 0; border-bottom:1px solid var(--line); color:var(--muted); font-size:13px; } .form-panel input,.form-panel select { width:100%; padding:12px 13px; border:0; border-radius:14px; outline:0; color:var(--text); background:var(--surface-2); } .primary-button { width:100%; min-height:48px; margin:18px 0; border:0; border-radius:16px; color:#102027; background:var(--accent-color); font-weight:700; cursor:pointer; transition:background .18s ease; } .primary-button:hover { background:var(--accent-hover); } .delete-link { width:100%; margin-top:16px; border:0; color:#ff7b72; background:transparent; font-size:14px; }
.money-entry,.date-entry,.category-entry { display:flex; align-items:center; gap:8px; }.money-entry input { flex:1; }.money-entry select { width:84px; }.amount-shortcuts { display:flex !important; gap:8px !important; }.amount-shortcuts button { min-height:38px; padding:0 14px; border:0; border-radius:12px; color:var(--text); background:var(--surface-2); font-size:13px; }.exchange-note { color:var(--accent-color); }.date-entry { position:relative; }.date-entry button { position:absolute; z-index:1; left:5px; display:grid; width:40px; height:40px; place-items:center; border:0; border-radius:11px; color:var(--accent-color); background:transparent; }.date-entry input { padding-left:48px; cursor:pointer; }.date-entry input::-webkit-calendar-picker-indicator { opacity:0; }.category-entry { justify-content:space-between; }.category-entry select { flex:1; }.category-entry a { flex:0 0 auto; color:var(--accent-color); font-size:12px; }
.calendar-header { display:grid; grid-template-columns:44px 1fr 44px; align-items:center; margin-bottom:23px; text-align:center; } .calendar-header h1 { font-size:19px; } .calendar-header > a { display:grid; width:44px; height:44px; place-items:center; border-radius:14px; background:var(--surface); font-size:28px; line-height:1; }
.calendar { margin:0 -8px; } .weekdays,.calendar-week { display:grid; grid-template-columns:repeat(7,1fr); } .weekdays { padding-bottom:7px; color:var(--muted); font-size:11px; text-align:center; } .weekdays span:first-child { color:#d78383; } .calendar-cell { min-height:66px; padding:2px; } .calendar-day,.outside-day { display:flex; width:100%; min-height:62px; flex-direction:column; align-items:center; padding:7px 1px; border:1px solid transparent; border-radius:14px; font-size:13px; } .outside-day { color:#46464a; } .calendar-day.today { border-color:var(--accent); } .calendar-day.selected { background:var(--surface-2); } .calendar-day b { margin-top:5px; color:var(--accent); font-size:11px; } .payment-dots { display:flex; gap:3px; margin-top:5px; } .payment-dots em { width:4px; height:4px; border-radius:50%; background:var(--category-color); }
.payment-details { margin-top:30px; } .payment-details .section-heading b { color:var(--accent); font-size:14px; } .payment-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:17px; border-bottom:1px solid var(--line); } .payment-row > div { display:grid; gap:7px; } .payment-row > div:last-child { justify-items:end; } .tag { width:max-content; padding:4px 8px; border-radius:99px; color:var(--text); background:color-mix(in srgb,var(--category-color) 20%,transparent); font-size:12px; }
.segmented { display:grid; grid-template-columns:1fr 1fr; padding:4px; border-radius:15px; background:var(--surface); } .segmented a { min-height:40px; display:grid; place-items:center; border-radius:12px; color:var(--muted); font-size:14px; } .segmented a.active { color:#102027; background:var(--accent-color); font-weight:700; }.analytics-list { display:grid; gap:20px; }.analytics-list article > div:first-child { display:flex; justify-content:space-between; margin-bottom:8px; font-size:14px; }.analytics-list span { display:flex; align-items:center; gap:8px; }.bar-track { height:8px; overflow:hidden; border-radius:99px; background:var(--surface-2); }.bar-track i { display:block; height:100%; border-radius:inherit; width:0; transition:width .62s ease-out; }.analytics-page.is-ready .bar-track i { width:var(--bar-width); }.donut-section { display:grid; justify-items:center; gap:22px; margin:4px 0 36px; }.donut-chart { position:relative; display:grid; width:188px; height:188px; place-items:center; border-radius:50%; background:var(--chart-track); }.donut-chart::before { position:absolute; inset:0; border-radius:inherit; background:var(--donut-gradient,var(--chart-track)); content:""; }.donut-chart.is-drawing::before { animation:donut-ring-draw .7s ease-out both; }.donut-chart > div { position:relative; z-index:1; display:grid; width:128px; height:128px; place-content:center; border-radius:50%; background:var(--bg); text-align:center; }.donut-chart span { color:var(--muted); font-size:12px; }.donut-chart b { margin-top:4px; font-size:20px; letter-spacing:-.03em; }.donut-legend { width:100%; display:grid; gap:9px; }.donut-legend-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:10px; color:var(--muted); font-size:13px; }.donut-legend-row > span { display:flex; align-items:center; gap:7px; color:var(--text); }.donut-legend-row b { color:var(--text); font-weight:550; }.donut-legend-row small { min-width:44px; text-align:right; }
.setting-section { margin-top:30px; }.setting-section h2 { margin-bottom:12px; font-size:14px; color:var(--muted); }.settings-panel > a,.settings-panel > span { display:flex; min-height:58px; align-items:center; gap:13px; padding:0 16px; border-bottom:1px solid var(--line); }.settings-panel .icon { color:var(--accent-color); }.settings-panel > * > span { flex:1; font-size:15px; }.settings-panel small,.settings-panel b { margin-left:auto; color:var(--muted); font-size:13px; font-weight:400; }.small-action { padding:9px 13px; border-radius:13px; color:#102027; background:var(--accent-color); font-size:13px; font-weight:700; }.accent-setting i { width:14px; height:14px; border-radius:50%; background:var(--accent-color); }.category-row { display:flex; min-height:62px; align-items:center; gap:12px; padding:0 16px; border-bottom:1px solid var(--line); }.category-row span { flex:1; }.category-row small { color:var(--muted); }.category-row a { color:var(--accent-color); font-size:13px; }
.preference-row { display:grid; grid-template-columns:21px 1fr; gap:13px; padding:14px 16px; border-bottom:1px solid var(--line); }.preference-row > span { font-size:15px; }.preference-options,.color-options { grid-column:1/-1; display:flex; gap:6px; }.preference-options button { flex:1; min-height:34px; border:0; border-radius:10px; color:var(--muted); background:var(--surface-2); font-size:12px; }.preference-options button.active { color:#102027; background:var(--accent-color); font-weight:700; }.color-options { flex-wrap:wrap; gap:8px; }
.color-options button { position:relative; flex:0 0 44px; width:44px; height:44px; padding:5px; border:2px solid transparent; border-radius:50%; background:transparent; cursor:pointer; }
.color-options button::before { content:""; display:block; width:100%; height:100%; border-radius:50%; background:var(--swatch-color); }
.color-options button:focus-visible { outline:2px solid var(--text); outline-offset:2px; }
.color-options button.active { border-color:var(--text); }
@property --ring-reveal { syntax:"<angle>"; initial-value:0deg; inherits:false; } @keyframes expand-details { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:translateY(0); } } @keyframes donut-ring-draw { from { --ring-reveal:0deg; } to { --ring-reveal:360deg; } } .donut-chart.is-drawing::before { -webkit-mask:conic-gradient(from -90deg,#000 0deg var(--ring-reveal),transparent var(--ring-reveal) 360deg); mask:conic-gradient(from -90deg,#000 0deg var(--ring-reveal),transparent var(--ring-reveal) 360deg); } html[data-theme="light"] { color-scheme:light; --scrollbar-thumb:#c3c6cd; --scrollbar-thumb-hover:#a5a9b2; --chart-track:var(--surface-2); --bg:#f4f5f7; --surface:#fff; --surface-2:#e9ebef; --text:#17181b; --text-secondary:#62656c; --line:rgba(0,0,0,.11); } html[data-theme="light"] .tab-bar { background:rgba(255,255,255,.94); } html[data-theme="light"] .donut-chart > div { background:var(--bg); } @media (prefers-color-scheme:light) { html[data-theme="system"] { color-scheme:light; --scrollbar-thumb:#c3c6cd; --scrollbar-thumb-hover:#a5a9b2; --chart-track:var(--surface-2); --bg:#f4f5f7; --surface:#fff; --surface-2:#e9ebef; --text:#17181b; --text-secondary:#62656c; --line:rgba(0,0,0,.11); } } @media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
@media (min-width:700px) { .app-shell { padding-top:42px; }.calendar-cell { min-height:78px; }.calendar-day,.outside-day { min-height:74px; } }

/* Preset controls use the existing theme without changing the page layout. */
.form-panel [data-plan-field][hidden], .service-suggestions[hidden], [data-plan-select][hidden] { display:none !important; }
.service-suggestions { max-height:240px; overflow-y:auto; overscroll-behavior:contain; border-radius:16px; background:var(--surface-2); border:1px solid var(--line); }
.service-option { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:12px 14px; color:var(--text); cursor:pointer; border-bottom:1px solid var(--line); }
.service-option:last-child { border-bottom:0; }
.service-option span { font-size:15px; overflow-wrap:anywhere; }
.service-option small { color:var(--muted); font-size:11px; text-align:right; }
.service-option[aria-selected="true"], .service-option:active { background:var(--surface); box-shadow:inset 3px 0 var(--accent-color); }
.preset-plan-choices { display:flex; flex-wrap:wrap; gap:8px; }
.preset-plan-choices button { min-height:48px; flex:1 1 110px; padding:12px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); color:var(--text); cursor:pointer; font-size:15px; }
.preset-plan-choices button[aria-pressed="true"] { color:var(--accent-color); border-color:var(--accent-color); }
.preset-plan-choices button:focus-visible, [data-service-name]:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
@media (max-width:600px) { .form-panel [data-service-name] { font-size:16px; } }

/* Home payment summary only; shared totals on other screens are untouched. */
.home-payment-card { display:grid; gap:16px; padding:24px 20px; overflow:visible; border-radius:28px; background:var(--surface); color:var(--text); }
.home-header { display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:center; gap:12px; }
.home-header > div { min-width:0; }
.home-header h1 { overflow-wrap:anywhere; }
.home-header .eyebrow { margin-top:0; }
.notification-bell { position:relative; display:grid; place-items:center; width:44px; height:44px; border-radius:50%; color:var(--text); background:var(--surface); }
.notification-bell .icon { width:23px; height:23px; }
.notification-bell:focus-visible, .notifications-header a:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.notification-dot { position:absolute; top:7px; right:7px; width:7px; height:7px; border-radius:50%; background:#e45b62; box-shadow:0 0 0 2px var(--surface); }
.notification-dot[hidden] { display:none; }
.home-payment-card .payment-heading { text-align:left; font-size:16px; font-weight:650; line-height:1.5; }
.home-payment-card .payment-primary { display:block; text-align:left; margin:6px 0 0; color:var(--text); font-size:clamp(36px,11vw,52px); font-weight:780; letter-spacing:-1px; line-height:1.15; font-variant-numeric:tabular-nums; white-space:nowrap; overflow:visible; }
.home-payment-card .payment-secondary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:12px; margin:18px 0 0; padding:0; text-align:left; }
.home-payment-card .payment-secondary > div { min-width:0; }
.home-payment-card .payment-secondary dt { font-size:12px; color:var(--muted); }
.home-payment-card .payment-secondary dd { margin:6px 0 0; font-size:clamp(14px,4vw,20px); font-weight:700; letter-spacing:-.4px; }
.home-payment-card .payment-secondary > div:first-child dd { font-weight:700; }
.home-payment-card .payment-details-toggle { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; margin:-6px auto; padding:0; background:none; border:0; color:var(--accent-color); font-size:14px; cursor:pointer; }
.home-payment-card .payment-details-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.5; transition:transform .2s; }
.home-payment-card .payment-details-toggle[aria-expanded="true"] svg { transform:rotate(180deg); }
.home-payment-card .payment-details-content { padding-top:0; border:0; overflow:visible; animation:expand-details .25s ease-out; }
.home-payment-card [hidden] { display:none; }
.home-payment-card .payment-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:0 0 18px; }
.home-payment-card .payment-metrics div { min-width:0; }
.home-payment-card dt { white-space:nowrap; color:var(--muted); font-size:clamp(10px,2.6vw,12px); line-height:1.5; }
.home-payment-card dd { margin:6px 0 0; white-space:nowrap; color:var(--text); font-size:clamp(12px,3.3vw,18px); font-weight:650; font-variant-numeric:tabular-nums; overflow:visible; }
.home-payment-card .payment-footnote { margin-top:5px; font-size:10px; color:var(--muted); line-height:1.7; }
@media (max-width:360px) { .home-payment-card { padding:22px 20px; } .home-payment-card .payment-metrics { gap:5px; } }
.subscription-row-with-delete { display:flex; align-items:center; border-bottom:1px solid var(--line); }
.subscription-row-with-delete:last-child { border-bottom:0; }
.subscription-row-with-delete > .subscription-row { flex:1; min-width:0; border-bottom:0; padding-right:8px; }
.subscription-row-with-delete .row-end { flex-shrink:0; }
.subscription-delete-form { flex:0 0 auto; margin:0; padding:0 10px 0 0; }
.subscription-delete-button { min-width:44px; min-height:44px; padding:8px; border:0; border-radius:12px; color:var(--text); background:var(--surface-2); font:inherit; font-size:12px; cursor:pointer; }
.subscription-delete-button:hover { color:#ff7b72; }
.subscription-delete-button:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.subscription-delete-button:disabled { opacity:.45; cursor:default; }
.section-heading > .category-add-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:44px; flex-shrink:0; white-space:nowrap; color:#10191d; background:var(--accent-color); }
.category-add-button .icon { width:18px; height:18px; }
.category-add-button:focus-visible { outline:2px solid var(--text); outline-offset:3px; }
.category-edit-link { color:var(--text); min-height:56px; }
.category-edit-link > span { min-width:0; overflow-wrap:anywhere; }
.category-preview { padding:18px; border-radius:16px; background:var(--surface-2); border-left:6px solid var(--category-preview-color); overflow-wrap:anywhere; }
.category-palette { border:0; margin:0; padding:0; min-width:0; }
.category-palette legend { margin-bottom:12px; }
.category-swatches { display:flex; flex-wrap:wrap; gap:12px; }
.category-swatch, .category-custom-color { position:relative; display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border:4px solid var(--surface); border-radius:50%; background:var(--swatch-color); cursor:pointer; }
.category-swatch span { visibility:hidden; color:white; text-shadow:0 1px 3px #000; font-size:20px; }
.category-swatch[aria-pressed="true"], .category-custom-color.selected { outline:2px solid var(--text); outline-offset:2px; }
.category-swatch[aria-pressed="true"] span { visibility:visible; }
.category-custom-color { background:conic-gradient(red,yellow,lime,aqua,blue,magenta,red); }
.form-panel .category-custom-color { padding:0; border:4px solid var(--surface); display:grid; }
.category-custom-color input[type="color"] { position:absolute; inset:0; width:100%; height:100%; padding:0; opacity:0; cursor:pointer; }
.category-swatch:focus-visible, .category-custom-color:focus-within { outline:3px solid var(--accent-color); outline-offset:3px; }
.category-palette small { display:block; margin-top:14px; color:var(--muted); }
.category-secondary-button { margin-top:16px; min-height:44px; padding:12px 16px; border:0; border-radius:12px; background:var(--surface-2); color:var(--text); cursor:pointer; }
.form-panel [data-trial-fields][hidden], .form-panel [data-cancel-fields][hidden] { display:none; }
.status-help { color:var(--muted); font-size:12px; line-height:1.7; margin:10px 0; }
.trial-price-preview { color:var(--text); font-weight:650; margin:12px 0; }
.status-filters { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.status-filters a { display:flex; align-items:center; min-height:44px; padding:8px 12px; border-radius:14px; background:var(--surface); color:var(--muted); font-size:13px; }
.status-filters a[aria-current="page"] { color:var(--text); box-shadow:inset 0 0 0 1px var(--accent-color); }
.subscription-status { display:block; margin-top:6px; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.subscription-status.status-trial, .trial-remaining.soon { color:var(--accent-color); }
.trial-remaining { display:block; margin-top:8px; color:var(--muted); font-size:13px; }
.trial-remaining.urgent { color:#c28b43; font-weight:650; }
.trial-forecast { margin:16px 0; padding:16px; border-radius:16px; background:var(--surface); line-height:1.8; font-size:14px; }
.trial-forecast small { display:block; color:var(--muted); font-size:12px; }
.calendar-day .trial-calendar-marker { color:var(--accent-color); font-size:9px; line-height:1.3; overflow-wrap:anywhere; }
.trial-calendar-detail { border-left:3px solid var(--accent-color); }
.trial-calendar-detail small { display:block; color:var(--muted); font-size:12px; }
.preferences-form fieldset { border:0; padding:16px 0; margin:0; min-width:0; }
.preferences-form .reminder-options { display:flex; flex-wrap:wrap; gap:8px 16px; }
.preferences-form .check-option { display:flex; align-items:center; gap:10px; min-height:44px; color:var(--text); }
.preferences-form input[type="checkbox"] { width:22px; height:22px; flex:0 0 22px; accent-color:var(--accent-color); }
.danger-action { display:inline-flex; align-items:center; min-height:44px; color:var(--muted); text-decoration:underline; }
.tutorial-panel { padding:20px; line-height:1.8; }
.tutorial-panel h2 { margin-top:18px; font-size:18px; }
.setting-disclosure summary { display:flex; align-items:center; gap:13px; padding:0 16px; min-height:58px; cursor:pointer; list-style:none; border-bottom:1px solid var(--line); }
.setting-disclosure summary::-webkit-details-marker { display:none; }
.setting-disclosure summary > span { flex:1; font-size:15px; }
.setting-disclosure summary .icon { flex-shrink:0; }
.setting-disclosure > .preference-options, .setting-disclosure > .color-options { padding:16px; }
.setting-disclosure[open] summary b { transform:rotate(90deg); }
.settings-back-button { display:inline-flex; align-items:center; gap:10px; min-height:48px; padding:12px 18px; margin:0 0 16px; border-radius:14px; background:var(--surface-2); color:var(--text); font-size:15px; font-weight:650; }
.settings-back-button > span { font-size:22px; color:var(--accent-color); }
.settings-back-button:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.resolution-actions { display:flex; flex-wrap:wrap; gap:8px; }
.resolution-actions .category-secondary-button { margin-top:0; }

/* Compact list controls; chip rows scroll within the viewport on phones. */
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.subscription-filters { display:grid; gap:10px; margin-bottom:8px; min-width:0; }
.list-search input { width:100%; min-height:46px; border:1px solid var(--line); border-radius:14px; padding:10px 14px; background:var(--surface); color:var(--text); font-size:16px; }
.filter-chips { min-width:0; margin:0; padding:0; border:0; }
.filter-chips legend, .list-filter-selects label { color:var(--muted); font-size:12px; }
.filter-chips legend { margin-bottom:3px; }
.chip-scroll { display:flex; gap:6px; overflow-x:auto; padding:3px; scrollbar-width:thin; scrollbar-color:var(--scrollbar-thumb) var(--scrollbar-track); }
.chip-scroll::-webkit-scrollbar { height:5px; }
.chip-scroll::-webkit-scrollbar-track { background:var(--scrollbar-track); border-radius:99px; }
.chip-scroll::-webkit-scrollbar-thumb { background:var(--scrollbar-thumb); border-radius:99px; }
.chip-scroll::-webkit-scrollbar-thumb:hover { background:var(--scrollbar-thumb-hover); }
.chip-scroll:hover { scrollbar-color:var(--scrollbar-thumb-hover) var(--scrollbar-track); }
.chip-scroll label { position:relative; flex-shrink:0; cursor:pointer; }
.chip-scroll input { position:absolute; width:1px; height:1px; opacity:0; }
.chip-scroll span { display:flex; align-items:center; min-height:44px; padding:8px 12px; border:1px solid transparent; border-radius:99px; background:var(--surface); color:var(--muted); font-size:13px; white-space:nowrap; }
.chip-scroll input:checked + span { color:var(--accent-color); border-color:var(--accent-color); }
.chip-scroll input:focus-visible + span, .subscription-filters :is(input[type="search"], select):focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.list-filter-selects { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.8fr); gap:10px; }
.list-filter-selects label { display:grid; gap:4px; min-width:0; }
.list-filter-selects select { width:100%; min-width:0; min-height:44px; padding:8px; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--text); font-size:14px; }
.list-sort-help { color:var(--muted); font-size:11px; }
.list-results-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--muted); font-size:12px; }
.list-reset { display:inline-flex; align-items:center; min-height:44px; color:var(--accent-color); font-size:12px; }
#subscription-results[aria-busy="true"] .list-panel { opacity:.6; }

.notifications-header { display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.notifications-header a { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; border-radius:50%; background:var(--surface); }
.notifications-header h1 { font-size:24px; }
.notification-day { margin-bottom:12px; color:var(--muted); font-size:13px; font-weight:500; }
.notification-list { overflow:hidden; border-radius:24px; background:var(--surface); }
.notification-card { display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; padding:20px 16px; border-bottom:1px solid var(--line); }
.notification-card:last-child { border-bottom:0; }
.notification-kind { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:var(--surface-2); color:var(--accent-color); }
.notification-urgent .notification-kind { color:#c28b43; }
.notification-type { color:var(--muted); font-size:11px; }
.notification-card h3 { margin:5px 0 8px; font-size:16px; overflow-wrap:anywhere; }
.notification-card p { font-size:14px; line-height:1.7; overflow-wrap:anywhere; }
.notification-card small { display:block; margin-top:10px; color:var(--muted); font-size:12px; }
.notifications-empty { display:grid; justify-items:center; gap:18px; padding:56px 16px; color:var(--muted); }
.notifications-empty .icon { width:32px; height:32px; }
[data-notification-read] button[hidden] { display:none; }
.service-logo { position:relative; display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border-radius:13px; overflow:hidden; background:var(--surface-2); }
.service-logo .service-logo-fallback { font-size:22px; color:var(--text); }
.service-logo img { position:absolute; inset:0; width:100%; height:100%; padding:7px; object-fit:contain; background:var(--surface-2); opacity:0; }
.service-logo img.is-loaded { opacity:1; }
.service-logo-large { width:52px; height:52px; flex-basis:52px; }
.service-option { gap:12px; }
.service-option > span:not(.service-logo) { flex:1; min-width:0; }
.form-service-identity { display:flex; align-items:center; gap:12px; margin:0 0 18px; overflow-wrap:anywhere; }
.form-service-identity[hidden] { display:none; }
.row-main .category-dot { display:inline-block; width:6px; height:6px; margin-right:5px; vertical-align:middle; }
.subscription-row.service-row { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:8px 10px; }
.service-row .row-main strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-row .row-end b { font-size:14px; }
.subscription-progress { grid-column:2/-1; min-width:0; display:grid; gap:5px; }
.payment-progress-track { height:3px; background:var(--surface-2); border-radius:2px; overflow:hidden; }
.payment-progress-track > span { display:block; height:100%; background:var(--accent-color); }
.subscription-progress > small { color:var(--muted); text-align:right; font-size:11px; }
.cost-breakdown { padding:16px 0; border-bottom:1px solid var(--line); }
.cost-breakdown > summary, .cost-summary > summary { min-height:44px; cursor:pointer; font-size:15px; }
.cost-breakdown > summary > span { color:var(--muted); font-size:12px; margin-left:8px; }
.cost-item-editor { border-radius:14px; background:var(--surface-2); margin:10px 0; padding:0 12px; }
.cost-item-editor > summary { display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:48px; cursor:pointer; }
.cost-item-editor > summary > span { min-width:0; overflow-wrap:anywhere; }
.cost-item-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
.cost-item-fields .cost-wide { grid-column:1/-1; }
.form-panel .cost-item-fields label { padding:10px 0; min-width:0; border:0; }
.cost-item-fields input, .cost-item-fields select { min-width:0; width:100%; }
.cost-item-fields .money-entry input { flex:1; min-width:0; width:0; }
.cost-item-fields .money-entry select { flex:0 0 84px; width:84px; }
[data-payment-method-form] [hidden] { display:none !important; }
.payment-name-display { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.payment-name-display strong { min-width:0; overflow-wrap:anywhere; }
.payment-name-display button { flex-shrink:0; min-height:44px; border:0; background:none; color:var(--accent-color); cursor:pointer; }
.subscription-advanced > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; color:var(--accent-color); }
.form-panel .cost-item-fields input, .form-panel .cost-item-fields select { background:var(--surface); }
.cost-item-fields small { line-height:1.6; }
.cost-remove { min-height:44px; border:0; background:none; color:var(--muted); text-decoration:underline; font-size:13px; }
.cost-summary { padding:16px; border-radius:18px; margin-bottom:16px; background:var(--surface); }
.cost-summary h2 { margin-top:14px; font-size:14px; }
.cost-summary dl { margin:8px 0; }
.cost-summary dl > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:8px 0; font-size:13px; }
.cost-summary dt { overflow-wrap:anywhere; }
.cost-summary dd { margin:0; text-align:right; }
.cost-summary small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
[data-legacy-pricing][hidden] { display:none; }

/* Fixed navigation and the add button share the same safe-area offset. */
.app-shell.has-fab { padding-bottom:calc(172px + env(safe-area-inset-bottom, 0px)); }
.payment-budget-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(88px,1fr); gap:12px; align-items:center; }
.payment-budget-amounts { min-width:0; }
.home-payment-card .payment-heading { font-size:clamp(12px,3.6vw,16px); }
.budget-ring-link { min-width:0; display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; color:var(--accent-color); }
.budget-ring-link:focus-visible { outline:2px solid var(--accent-color); outline-offset:5px; border-radius:16px; }
.budget-ring { position:relative; display:grid; place-items:center; width:clamp(88px,24vw,104px); height:clamp(88px,24vw,104px); }
.budget-ring svg { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke-width:6; }
.budget-track { stroke:var(--surface-2); }
.budget-fill { stroke:currentColor; transform:rotate(-90deg); transform-origin:50% 50%; stroke-linecap:round; }
.budget-ring-value { display:block; width:72%; font-size:24px; font-weight:750; white-space:nowrap; color:var(--text); }
.budget-ring-value small { font-size:11px; font-weight:600; }
.budget-caption { font-size:10px; color:var(--muted); }
.budget-amounts { display:block; width:100%; font-size:11px; line-height:1.5; white-space:nowrap; color:var(--muted); }
.budget-over { color:#c68b49; }
.cancel-guide { padding:22px; }
.cancel-guide ol { padding-left:22px; line-height:1.8; }
.cancel-guide li + li { margin-top:10px; }
.cancel-guide .primary-button { display:block; margin:20px 0; text-align:center; }
.cancel-guide-link { display:block; width:fit-content; padding:12px 0; min-height:44px; color:var(--accent-color); font-size:13px; }
.cost-help { margin:12px 0; color:var(--muted); font-size:12px; }
.cost-help > summary { min-height:44px; display:flex; align-items:center; cursor:pointer; }
.service-logo img[src*="/service-logos/nintendo.com"] { background:#e60012; padding:4px; }
.form-panel[data-budget-form] > label { border-bottom:0; }
.budget-shortcuts button { flex:1; min-width:0; min-height:44px; padding:0 8px; }
.cost-amount-shortcuts button { flex:1; min-width:0; min-height:44px; padding:0 8px; }
.cost-item-editor[hidden] { display:none; }

/* Compact, optional extra costs; only the document scrolls. */
.cost-breakdown [hidden], .preset-cost-notice[hidden] { display:none !important; }
.cost-intro { margin:12px 0 8px; font-size:13px; line-height:1.65; color:var(--muted); }
.cost-common { margin-top:12px; }
.cost-common > small { color:var(--muted); }
.cost-suggestion-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.cost-suggestion-chips button, .preset-cost-notice button { min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--text); font-size:12px; cursor:pointer; }
.cost-preview { margin-top:16px; padding:14px; border-radius:14px; background:var(--surface-2); }
.cost-preview dl { margin:0; display:grid; gap:12px; }
.cost-preview dl > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.cost-preview dt { font-size:13px; }
.cost-preview dd { margin:0; font-size:14px; font-weight:700; overflow-wrap:anywhere; }
.cost-preview small { display:block; color:var(--muted); font-size:10px; font-weight:400; line-height:1.6; }
.cost-preview > small { margin-top:8px; }
.preset-cost-notice { padding:12px; border:1px solid var(--line); border-radius:14px; }
.preset-cost-notice p { margin:0 0 4px; font-size:13px; }
.preset-cost-notice small { color:var(--muted); font-size:11px; line-height:1.6; }
.preset-cost-notice > div { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.cost-item-editor > summary > small { flex-shrink:0; font-size:12px; }
.form-panel .amount-shortcuts button { flex:1; min-width:0; min-height:44px; padding:10px 16px; border:1px solid var(--line); border-radius:13px; background:var(--surface-2); color:var(--text); font-size:13px; cursor:pointer; transition:filter .15s,transform .15s; }
.form-panel .amount-shortcuts button:hover { filter:brightness(1.08); }
.form-panel .amount-shortcuts button:active { filter:brightness(.95); transform:translateY(1px); }
.form-panel .amount-shortcuts button:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.cost-item-editor { background:var(--surface); border:1px solid var(--line); padding:0 10px; margin:8px 0; }
.form-panel .cost-item-fields input,.form-panel .cost-item-fields select { background:var(--surface-2); }
.form-panel .cost-item-fields label { padding:8px 0; }
.subscription-overview { margin:12px 0 20px; padding:18px; border-radius:18px; background:var(--surface); }
.subscription-overview > strong { font-size:28px; overflow-wrap:anywhere; }
.subscription-overview small { font-size:12px; font-weight:400; color:var(--muted); }
.subscription-overview p { font-size:13px; margin:14px 0 4px; }
.subscription-status-action { display:flex; gap:12px; align-items:center; width:100%; min-height:44px; padding:8px 0; border:0; background:none; color:var(--text); text-align:left; cursor:pointer; }
.subscription-status-action span { margin-left:auto; }
.subscription-edit > summary { min-height:48px; margin:16px 0; padding:12px 16px; border-radius:12px; background:var(--surface-2); cursor:pointer; }
.contract-section { padding:18px 0; margin:8px 0 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.contract-section h2 { font-size:17px; margin:0 0 8px; }
.contract-section p { font-size:13px; line-height:1.7; color:var(--muted); overflow-wrap:anywhere; }
.contract-guide-button { display:flex; align-items:center; justify-content:center; text-align:center; min-height:48px; }
.contract-guide-button:hover { filter:brightness(1.08); }
.subscription-other-actions { margin-top:28px; color:var(--muted); font-size:13px; }
.subscription-other-actions > summary { min-height:44px; cursor:pointer; }
.subscription-other-actions .danger-action { display:inline-flex; align-items:center; min-height:44px; color:#d56660; }

.notification-setting-section { margin-bottom:24px; }
.notification-setting-section > h2 { font-size:14px; margin:0 0 10px; color:var(--text); }
.notification-settings-card { padding:20px; border-radius:20px; background:var(--surface); }
.notification-settings-card p { font-size:12px; line-height:1.7; color:var(--text-secondary); margin:6px 0 0; }
.notification-switch-row { display:flex; gap:12px; justify-content:space-between; align-items:center; font-weight:600; }
.notification-switch { position:relative; flex:0 0 56px; width:56px; height:44px; border:0; padding:0; background:transparent; cursor:pointer; }
.notification-switch::before { content:""; position:absolute; inset:6px 0; border-radius:20px; background:var(--surface-2); border:1px solid var(--text-secondary); }
.notification-switch[aria-checked="true"]::before { background:var(--accent-color); border-color:var(--accent-color); }
.notification-switch > span { position:absolute; top:10px; left:4px; width:24px; height:24px; border-radius:50%; background:var(--text); transition:transform .15s; }
.notification-switch[aria-checked="true"] > span { transform:translateX(24px); background:var(--notification-on-accent,#10191d); }
.notification-timing-group + .notification-timing-group { margin-top:22px; padding-top:22px; border-top:1px solid var(--line); }
.notification-timing-group h3 { font-size:15px; margin:0; }
.notification-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.notification-chip { position:relative; flex:1 0 48px; min-width:48px; min-height:44px; padding:10px 4px; border:1px solid var(--text-secondary); border-radius:24px; background:var(--surface-2); color:var(--text-secondary); font-size:12px; font-weight:600; cursor:pointer; }
.notification-chip > span { position:absolute; top:2px; right:6px; font-size:9px; visibility:hidden; }
.notification-chip[aria-pressed="true"] { color:var(--notification-on-accent,#10191d); background:var(--accent-color); border-color:var(--accent-color); }
.notification-chip:not([aria-pressed="true"]) { color:color-mix(in srgb,var(--text-secondary) 80%,var(--text) 20%); }
.notification-chip[aria-pressed="true"] > span { visibility:visible; }
.notification-chip:focus-visible,.notification-switch:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.notification-timings[data-disabled] { opacity:.5; }
.notification-chip:disabled { cursor:default; }
.notification-support-note { font-size:11px; color:var(--text-secondary); line-height:1.7; }
.settings-toast { position:fixed; z-index:20; left:50%; bottom:calc(100px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); max-width:calc(100% - 32px); width:max-content; padding:12px 18px; border:1px solid var(--accent-color); border-radius:14px; background:var(--surface); color:var(--text); font-size:13px; }
.settings-toast button { min-height:44px; margin-left:10px; border:0; background:none; color:var(--accent-color); cursor:pointer; }
.settings-toast[hidden],.settings-toast [hidden] { display:none; }
.about-content { display:grid; gap:20px; }
.about-intro h2 { font-size:21px; line-height:1.6; margin:0 0 12px; }
.about-content p,.about-section p { font-size:13px; line-height:1.8; margin:10px 0; overflow-wrap:anywhere; }
.about-section { padding:20px; border-radius:20px; background:var(--surface); }
.about-section h2 { font-size:16px; margin:0 0 12px; }
.about-section h3 { font-size:14px; margin:16px 0 4px; }
.about-features { list-style:none; margin:0; padding:0; display:grid; gap:18px; }
.about-features li { display:grid; grid-template-columns:22px minmax(0,1fr); gap:12px; align-items:start; }
.about-features .icon { color:var(--accent-color); margin-top:2px; }
.about-features h3 { margin:0; }
.about-features p { margin:4px 0 0; color:var(--text-secondary); font-size:12px; }
.about-link { display:flex; align-items:center; justify-content:space-between; min-height:44px; color:var(--accent-color); font-size:13px; }
.about-development ul { padding-left:18px; margin:0; font-size:12px; line-height:2; color:var(--text-secondary); }

/* Catalogue and inline payment method registration. */
[data-catalog-picker][hidden], [data-registration-fields][hidden], [data-catalog-back][hidden] { display:none !important; }
[data-catalog-picker] { padding:20px 0; }
[data-catalog-picker] h2 { font-size:18px; }
[data-catalog-picker] h3 { margin:18px 0 12px; font-size:14px; }
.catalog-results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.catalog-service { display:flex; align-items:center; gap:8px; min-width:0; padding:12px 8px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); color:var(--text); text-align:left; cursor:pointer; }
.catalog-service > span:last-child { display:grid; gap:5px; min-width:0; }
.catalog-service strong { font-size:13px; overflow-wrap:anywhere; }
.catalog-service small { margin:0; font-size:11px; overflow-wrap:anywhere; }
.catalog-service .service-logo { flex-shrink:0; }
.quick-method-open { min-height:44px; padding:10px 0; border:0; background:transparent; color:var(--accent-color); font-size:13px; cursor:pointer; }
.payment-method-dialog { width:min(440px,calc(100% - 24px)); max-height:calc(100dvh - 32px); margin:auto; padding:20px; border:1px solid var(--line); border-radius:24px; background:var(--surface); color:var(--text); overflow-y:auto; }
.payment-method-dialog::backdrop { background:rgba(0,0,0,.5); }
.payment-method-dialog .form-panel { padding:0; }
.quick-method-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.quick-method-heading h2 { font-size:18px; }
.cancellation-routes { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 24px; }
.cancellation-routes a { flex:1 1 120px; min-width:0; padding:12px; text-align:center; }
.cancellation-routes a[aria-current] { border-color:var(--accent-color); color:var(--accent-color); }
.cancel-guide .cancellation-link-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:52px; line-height:1.2; text-align:center; padding:12px; margin:20px 0 24px; }
.cancel-guide .cancellation-link-button span { flex:0 1 auto; min-width:0; overflow-wrap:anywhere; }
.cancellation-link-button svg { width:18px; height:18px; flex-shrink:0; }
.cancellation-notes { margin-top:0; }
.catalog-service:focus-visible, .quick-method-open:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
@media(max-width:360px) { .catalog-results { grid-template-columns:minmax(0,1fr); } }

/* Calendar event colors describe timing, separately from category dots. */
[data-event-type="payment"] { --event-color:var(--accent-color); }
[data-event-type="trial_end"] { --event-color:#b493ec; }
[data-event-type="cancel"] { --event-color:#e38c8c; }
[data-event-type="one_time_cost"] { --event-color:#dfaa6b; }
.currency-warning { margin:0 0 18px; padding:14px; background:var(--surface-2); border-radius:14px; color:var(--text); font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.currency-warning a { display:inline-block; text-decoration:underline; }
.currency-updates { margin-top:16px; font-size:12px; color:var(--text-secondary); overflow-wrap:anywhere; }
.calendar-page { min-width:0; padding-bottom:env(safe-area-inset-bottom,0px); }
.calendar-page .calendar-header { margin-bottom:16px; }
.calendar-month-summary { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.calendar-month-summary > div { display:grid; gap:5px; min-width:0; }
.calendar-month-summary span { font-size:14px; color:var(--text-secondary); }
.calendar-month-summary strong { font-size:28px; letter-spacing:-.5px; }
.calendar-month-summary small { font-size:11px; color:var(--text-secondary); }
.calendar-today { flex:none; display:grid; place-items:center; padding:0 15px; min-height:44px; border:1px solid var(--line); border-radius:14px; background:var(--surface); font-size:13px; }
.calendar-filters { display:flex; gap:8px; overflow-x:auto; padding:2px 0 12px; margin-bottom:8px; scrollbar-width:none; }
.calendar-filters::-webkit-scrollbar { display:none; }
.calendar-filter { flex:none; display:flex; align-items:center; gap:6px; min-height:40px; padding:8px 12px; background:var(--surface); border:1px solid var(--line); border-radius:99px; font-size:12px; color:var(--text); }
.calendar-filter[aria-current] { border-color:var(--accent-color); box-shadow:inset 0 0 0 1px var(--accent-color); background:var(--surface-2); font-weight:700; }
.calendar-page .calendar { margin:0 -6px; touch-action:pan-y pinch-zoom; }
.calendar-page .calendar-week,.calendar-page .weekdays { grid-template-columns:repeat(7,minmax(0,1fr)); }
.calendar-page .calendar-cell { min-width:0; padding:2px; }
.calendar-page .calendar-day { min-height:68px; min-width:0; gap:2px; }
.calendar-day.selected { border-color:var(--accent-color); }
.calendar-day.today > span:first-child { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
.calendar-page .calendar-cell-amount { max-width:100%; min-width:0; font-size:10px; letter-spacing:-.3px; margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text); }
.calendar-event-dots { display:flex; align-items:center; gap:3px; margin-top:3px; min-height:7px; }
.event-dot { display:inline-block; width:6px; height:6px; border-radius:50%; flex:none; background:var(--event-color); }
.calendar-event-dots small { font-size:8px; color:var(--text-secondary); }
.calendar-legend { margin:10px 0; font-size:11px; line-height:1.6; color:var(--text-secondary); }
.calendar-details { margin-top:22px; }
.calendar-detail-heading { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.calendar-detail-heading h2 small { font-size:12px; font-weight:400; color:var(--text-secondary); margin-left:6px; }
.calendar-detail-heading > b { font-size:14px; overflow-wrap:anywhere; }
.calendar-event { padding:16px; border-bottom:1px solid var(--line); }
.calendar-event:last-child { border-bottom:0; }
.calendar-event-service { display:flex; align-items:center; gap:10px; min-width:0; }
.calendar-event-service strong { flex:1; min-width:0; font-size:15px; overflow-wrap:anywhere; }
.calendar-event-service > span:last-child { color:var(--text-secondary); }
.calendar-event-body { display:grid; gap:9px; margin:10px 0 0 54px; font-size:13px; line-height:1.5; min-width:0; }
.event-badge { width:max-content; max-width:100%; color:var(--text); border-left:3px solid var(--event-color); padding:2px 7px; font-size:11px; background:var(--surface-2); border-radius:3px; }
.calendar-event-price { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 12px; }
.calendar-event-price b,.calendar-event-body p { overflow-wrap:anywhere; }
.calendar-event-body small { color:var(--text-secondary); }
.calendar-category { display:flex; align-items:center; gap:5px; color:var(--text-secondary); font-size:11px; }
.calendar-category .category-dot { width:6px; height:6px; }
.calendar-details .empty { padding:20px 12px; font-size:13px; }
.calendar-page a:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
@media (max-width:360px) { .calendar-event { padding:12px; } .calendar-event-body { margin-left:0; } .calendar-page .calendar-cell { padding:1px; } }

/* Four short, server-rendered pages also work without JavaScript. */
.app-shell.onboarding-shell { padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px)); }
.onboarding { display:flex; flex-direction:column; min-height:calc(100svh - 64px - env(safe-area-inset-bottom,0px)); }
.onboarding-header { display:flex; align-items:center; justify-content:space-between; color:var(--text-secondary); font-size:13px; }
.onboarding-header button { border:0; background:none; color:var(--text); min-height:44px; padding:10px; font-size:13px; cursor:pointer; }
.onboarding-content { display:grid; align-content:center; justify-items:center; flex:1; gap:24px; padding:32px 0; text-align:center; }
.onboarding-icon { display:grid; place-items:center; width:96px; height:96px; border-radius:28px; background:var(--surface); color:var(--accent-color); }
.onboarding-icon .icon { width:48px; height:48px; }
.onboarding-content h1 { font-size:clamp(22px,6vw,28px); line-height:1.5; letter-spacing:-.03em; }
.onboarding-content p { max-width:340px; font-size:15px; line-height:1.8; }
.onboarding-content .onboarding-detail { color:var(--text-secondary); font-size:13px; }
.onboarding-pages { display:flex; align-items:center; justify-content:center; }
.onboarding-pages a { display:grid; place-items:center; width:44px; height:44px; }
.onboarding-pages span { width:8px; height:8px; border-radius:99px; background:var(--surface-2); border:1px solid var(--text-secondary); }
.onboarding-pages [aria-current] span { background:var(--accent-color); border-color:var(--accent-color); width:20px; }
.onboarding-next { display:flex; align-items:center; justify-content:center; }
.onboarding-back { display:grid; place-items:center; min-height:44px; color:var(--text-secondary); font-size:13px; }
.onboarding a:focus-visible,.onboarding button:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.home-first-subscription { padding:20px; margin-bottom:20px; border-radius:22px; background:var(--surface); text-align:center; }
.home-first-subscription h2 { font-size:16px; line-height:1.6; }

/* Confirmation screens share the existing shell, cards and theme tokens. */
.app-shell.confirmation-shell { padding-top:calc(24px + env(safe-area-inset-top,0px)); padding-bottom:calc(120px + env(safe-area-inset-bottom,0px)); }
.confirmation-header { margin-bottom:24px; }
.confirmation-header h1 { display:flex; align-items:center; gap:10px; font-size:28px; line-height:1.4; letter-spacing:-.03em; }
.confirmation-header h1 .icon { flex:none; width:24px; height:24px; color:var(--accent-color); }
.confirmation-header p { margin-top:10px; font-size:16px; line-height:1.7; overflow-wrap:anywhere; }
.confirmation-card { display:grid; gap:16px; width:100%; max-width:680px; margin:0 auto; padding:22px; border-radius:24px; overflow:visible; }
.confirmation-card h2 { font-size:19px; line-height:1.6; overflow-wrap:anywhere; }
.confirmation-card p { font-size:14px; line-height:1.8; margin:0; overflow-wrap:anywhere; }
.confirmation-card .status-help { color:var(--text-secondary); font-size:13px; }
.confirmation-card label { min-width:0; padding:0; border:0; line-height:1.6; }
.confirmation-card input { min-width:0; max-width:100%; font-size:16px; }
.confirmation-actions { display:grid; gap:12px; margin-top:8px; }
.confirmation-actions > a,.confirmation-actions > button { display:flex; align-items:center; justify-content:center; width:100%; min-height:52px; margin:0; padding:12px 16px; border-radius:14px; text-align:center; line-height:1.4; font-size:15px; font-weight:650; overflow-wrap:anywhere; }
.confirmation-actions .button-danger { color:#ce514d; background:transparent; border:1px solid currentColor; cursor:pointer; }
.confirmation-actions .button-danger:disabled { opacity:.45; cursor:not-allowed; }
.confirmation-actions .button-danger:not(:disabled):hover { background:color-mix(in srgb,#ce514d 12%,transparent); }
.confirmation-actions .button-danger:not(:disabled):active { background:color-mix(in srgb,#ce514d 20%,transparent); }
.confirmation-actions > :focus-visible,.confirmation-card input:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.confirmation-actions .button-danger:focus-visible { outline-color:currentColor; }
.confirmation-shell .settings-back-button { max-width:100%; font-size:14px; }
.confirmation-shell .settings-back-button .icon { flex:none; }

/* Historical plans: compact charts with equivalent text details. */
.analytics-history-page { min-width:0; padding-bottom:env(safe-area-inset-bottom,0px); }
.analytics-overview { padding:22px; border-radius:24px; background:var(--surface); }
.analytics-main-amount { display:block; font-size:clamp(28px,9vw,40px); margin:12px 0; overflow-wrap:anywhere; }
.analytics-comparison { display:flex; gap:8px 16px; flex-wrap:wrap; font-size:13px; line-height:1.6; }
.analytics-current-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0 0; }
.analytics-current-totals dt { color:var(--text-secondary); font-size:12px; }
.analytics-current-totals dd { margin:6px 0 0; font-size:17px; font-weight:650; overflow-wrap:anywhere; }
.analytics-range { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:20px 0 12px; }
.analytics-range a { display:grid; place-items:center; min-height:44px; border:1px solid var(--line); border-radius:14px; background:var(--surface); font-size:14px; }
.analytics-range [aria-current] { border-color:var(--accent-color); box-shadow:inset 0 0 0 1px var(--accent-color); font-weight:700; }
.analytics-note { margin:14px 0; font-size:12px; line-height:1.7; color:var(--text-secondary); }
.analytics-chart-section { margin-top:26px; }
.analytics-chart-section > p { margin:8px 0 12px; color:var(--text-secondary); font-size:12px; line-height:1.7; }
[data-history-chart] { min-width:0; margin-top:16px; }
[data-history-chart] svg { width:100%; height:auto; display:block; overflow:visible; }
.history-grid { stroke:var(--line); stroke-width:1; }
.history-line { fill:none; stroke:var(--accent-color); stroke-width:2.5; vector-effect:non-scaling-stroke; stroke-dasharray:1; animation:history-draw .6s ease-out; }
.history-hit { fill:transparent; }
.history-point { fill:var(--text); stroke:var(--accent-color); stroke-width:2; }
.history-bar { fill:var(--accent-color); transform-origin:center bottom; transform-box:fill-box; animation:history-grow .5s ease-out; }
.history-axis { display:flex; justify-content:space-between; font-size:12px; color:var(--text-secondary); margin:2px 0; }
.history-scale { color:var(--text-secondary); font-size:12px; line-height:1.5; margin-top:6px; overflow-wrap:anywhere; }
.analytics-history-page .donut-section { margin:18px 0; }
.analytics-history-page .donut-legend-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:5px 12px; }
.analytics-history-page .donut-legend-row > span { overflow-wrap:anywhere; min-width:0; }
.analytics-history-page .donut-legend-row b { text-align:right; overflow-wrap:anywhere; }
.analytics-history-page .donut-legend-row small { grid-column:2; }
.analytics-history-page .donut-chart b { max-width:116px; font-size:17px; }
.analytics-history-list { margin-top:12px; }
.analytics-history-list a { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; padding:14px 0; min-height:52px; border-bottom:1px solid var(--line); font-size:14px; }
.analytics-history-list small { display:block; color:var(--text-secondary); font-size:12px; margin-top:6px; line-height:1.6; }
.analytics-history-list b,.analytics-history-list span { overflow-wrap:anywhere; }
.analytics-history-list summary { cursor:pointer; padding:16px 0; }
.analytics-month-detail { margin-top:24px; padding:20px; border:1px solid var(--line); border-radius:22px; background:var(--surface); scroll-margin-top:24px; }
.analytics-month-detail p { margin:10px 0; line-height:1.6; }
.analytics-month-detail small { color:var(--text-secondary); font-size:12px; }
.analytics-month-detail ul { list-style:none; padding:0; margin:12px 0; }
.analytics-month-detail li { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); flex-wrap:wrap; font-size:14px; }
.analytics-month-detail li > div { min-width:0; display:grid; gap:5px; overflow-wrap:anywhere; }
.analytics-month-detail li span { color:var(--text-secondary); font-size:12px; }
.analytics-month-detail > a { display:flex; justify-content:center; align-items:center; min-height:48px; text-align:center; }
.analytics-history-page a:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
@keyframes history-draw { from { stroke-dashoffset:1; } to { stroke-dashoffset:0; } }
@keyframes history-grow { from { transform:scaleY(0); } to { transform:scaleY(1); } }
@media (prefers-reduced-motion:reduce) { .history-line,.history-bar,.analytics-history-page .donut-chart::before { animation:none !important; transition:none !important; } }

.analytics-page > .category-secondary-button, .analytics-history-page > .category-secondary-button { display:flex; align-items:center; justify-content:center; min-height:48px; margin:0 0 20px; text-align:center; }

.analytics-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.analytics-header > div { min-width:0; }
.analytics-history-button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:44px; padding:10px 18px; border-radius:12px; background:var(--surface-2); color:var(--accent-color); font-size:14px; font-weight:600; }
.analytics-history-button:hover { background:var(--surface); }
.analytics-history-button:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.analytics-back-link { display:inline-flex; align-items:center; min-height:44px; margin-bottom:16px; color:var(--accent-color); }


.analytics-header > .analytics-history-entry { flex:0 1 180px; display:flex; flex-direction:column; align-items:flex-end; gap:6px; text-align:right; }
.analytics-history-entry > small { max-width:100%; color:var(--muted); font-size:11px; line-height:1.5; overflow-wrap:anywhere; }
.analytics-history-entry .analytics-history-button { white-space:nowrap; }

/* Safe-area padding is applied once per shell, including standalone iOS. */
.app-shell { padding-top:calc(28px + env(safe-area-inset-top,0px)); padding-left:max(20px,env(safe-area-inset-left,0px)); padding-right:max(20px,env(safe-area-inset-right,0px)); padding-bottom:calc(120px + env(safe-area-inset-bottom,0px)); }
.app-shell.has-fab { padding-bottom:calc(172px + env(safe-area-inset-bottom,0px)); }
.app-shell.confirmation-shell { padding-top:calc(24px + env(safe-area-inset-top,0px)); }
.app-shell.onboarding-shell { padding-top:calc(20px + env(safe-area-inset-top,0px)); padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
.tab-bar { left:max(16px,env(safe-area-inset-left,0px)); right:max(16px,env(safe-area-inset-right,0px)); width:min(calc(100% - max(16px,env(safe-area-inset-left,0px)) - max(16px,env(safe-area-inset-right,0px))),648px); }
.fab { right:max(24px,env(safe-area-inset-right,0px),calc((100vw - 640px)/2)); }
.pwa-notice { position:fixed; z-index:30; top:calc(12px + env(safe-area-inset-top,0px)); left:max(16px,env(safe-area-inset-left,0px)); right:max(16px,env(safe-area-inset-right,0px)); max-width:640px; margin:auto; padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--text); }
.pwa-notice[hidden],#pwa-install[hidden] { display:none; }
.pwa-notice small { display:block; margin:8px 0; color:var(--muted); line-height:1.5; }
.pwa-notice > div { display:flex; gap:8px; }
.pwa-notice button { min-height:44px; padding:8px 18px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--text); cursor:pointer; }
.pwa-notice [data-pwa-update] { border-color:var(--accent-color); color:var(--accent-color); }
.pwa-install-settings { padding:20px; border-radius:22px; background:var(--surface); }
.pwa-install-settings summary { min-height:44px; cursor:pointer; }
.pwa-install-settings p { font-size:13px; line-height:1.7; }
@media (display-mode: standalone) { .app-shell { min-height:100svh; } }

/* List-only spacing: keep the home payment rows and all calculations unchanged. */
#subscription-results .subscription-row.service-row {
  grid-template-columns:44px minmax(0,1fr) auto;
  padding:22px 16px;
  column-gap:14px;
  row-gap:10px;
}
#subscription-results .service-logo { width:44px; height:44px; flex-basis:44px; border-radius:13px; }
#subscription-results .row-main { gap:8px; }
#subscription-results .row-end { align-self:center; min-width:0; max-width:clamp(72px,25vw,112px); gap:8px; }
#subscription-results .row-end b { max-width:100%; white-space:nowrap; font-variant-numeric:tabular-nums; }
#subscription-results .row-end small { max-width:100%; }
#subscription-results .subscription-progress { gap:9px; }
#subscription-results .subscription-row-with-delete { border-bottom-color:color-mix(in srgb,var(--text) 7%,transparent); }
@media (min-width:375px) {
  #subscription-results .subscription-row.service-row { grid-template-columns:44px minmax(0,1fr) auto; padding-inline:18px; column-gap:16px; }
}

.home-next-payments .subscription-row { padding-right:20px; }

.auth-form { padding:8px 20px; } .auth-link { display:block; margin-top:24px; line-height:1.8; } .auth-link a { color:var(--accent-color); }

.auth-form .remember-login { display:flex; align-items:center; gap:10px; min-height:44px; }
.auth-form .remember-login input { width:20px; height:20px; margin:0; flex:0 0 20px; accent-color:var(--accent-color); }

.legal-links { display:flex; flex-wrap:wrap; gap:12px 18px; margin:24px 0; font-size:13px; }
.account-delete-link { color:var(--danger, #d65c65); display:inline-block; padding:12px 0; }
.public-info { padding-top:calc(24px + env(safe-area-inset-top)); padding-bottom:calc(32px + env(safe-area-inset-bottom)); overflow-wrap:anywhere; }
.public-info .form-panel { gap:16px; }

.settings-panel > .settings-action { display:flex; align-items:center; gap:13px; width:100%; min-height:64px; padding:12px 16px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); text-align:left; font:inherit; }
.settings-action span { min-width:0; }.settings-action small { display:block; margin-top:5px; font-size:12px; }
.settings-action:disabled { opacity:.65; cursor:not-allowed; }
.settings-panel > a { padding-top:12px; padding-bottom:12px; }
.settings-panel .icon { flex:0 0 22px; }.settings-panel > a > span { min-width:0; overflow-wrap:anywhere; }
.settings-panel .icon:last-child:not(:first-child) { width:18px; flex-basis:18px; color:var(--text-secondary); }
.community-toast { position:fixed; bottom:calc(90px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); max-width:calc(100% - 32px); padding:12px 18px; border-radius:14px; background:var(--surface-2); color:var(--text); border:1px solid var(--accent-color); z-index:100; }

.subscriptions-header { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.subscriptions-header > div { min-width:0; }
.subscriptions-header > .category-secondary-button { margin:0; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:10px 12px; font-size:13px; white-space:nowrap; }
.subscriptions-header .icon { width:18px; height:18px; flex-shrink:0; }

.legal-document { max-width:700px; margin:0 auto; line-height:1.85; overflow-wrap:anywhere; }
.legal-toc { padding:16px 20px; }.legal-toc summary { min-height:32px; cursor:pointer; }
.legal-toc ol { list-style:none; padding:0; }.legal-toc a { display:block; padding:6px 0; font-size:14px; }
.legal-article { margin:30px 0; scroll-margin-top:24px; }.legal-article h2,.notice-card h2 { font-size:18px; line-height:1.6; margin-bottom:12px; }
.legal-article ol { padding-left:1.6em; }.legal-article li { padding-left:4px; margin-bottom:12px; }
.legal-top-link { display:block; margin-top:16px; font-size:13px; }
.notice-card { padding:22px; margin-bottom:18px; }.notice-card > .icon { color:var(--accent-color); margin-bottom:12px; }
.setting-subtext { display:block; margin-top:5px; line-height:1.5; }

.brand-icon { border-radius:22%; object-fit:contain; }
.app-icon-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.app-icon-choice { display:grid; justify-items:center; gap:8px; padding:16px 8px; border:2px solid transparent; border-radius:18px; background:var(--surface); color:var(--text); min-width:0; }
.app-icon-choice img { max-width:100%; border-radius:22%; }
.app-icon-choice[aria-pressed="true"] { border-color:var(--accent); }
.app-icon-choice:disabled { opacity:.5; }
@media(min-width:390px) { .app-icon-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Decorative mascot: normal flow, no animation or interaction overlay. */
.subumaru-mascot { display:block; width:76px; height:76px; object-fit:contain; flex-shrink:0; pointer-events:none; user-select:none; }
.subumaru-mascot--tiny { width:44px; height:44px; }
.subumaru-mascot--medium { width:96px; height:96px; }
.home-mascot-title { display:flex; align-items:center; gap:10px; }
.mascot-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; align-items:center; }
.mascot-heading > img { grid-column:2; grid-row:1 / span 2; }
.mascot-heading > h1,.mascot-heading > p { grid-column:1; }
.notifications-empty .subumaru-mascot { margin:0 auto 12px; }
.about-mascot { float:right; margin:0 0 8px 14px; }
.about-intro::after { content:""; display:block; clear:both; }
@media(max-width:360px) { .mascot-heading .subumaru-mascot { width:60px; height:60px; } .home-mascot-title { gap:6px; } }

/* Payment-date guidance stays separate from financial totals. */
.payment-date-banner { margin-top:24px; padding:14px 16px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.payment-date-banner-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.payment-date-banner-row > div, .payment-date-banner-row > strong { min-width:0; overflow-wrap:anywhere; }
.payment-date-banner strong { font-size:14px; }
.payment-date-banner-label,.payment-date-hint { color:var(--muted); font-size:12px; line-height:1.5; }
.payment-date-banner-label { margin-bottom:4px; }
.payment-date-hint { margin-top:8px; }
.payment-date-cta { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:44px; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--text); font-size:14px; font-weight:600; text-align:center; }
.payment-date-cta:hover { border-color:var(--accent-color); }
.payment-date-cta:focus-visible { outline:2px solid var(--accent-color); outline-offset:3px; }
.notification-date-cta { margin-top:14px; border-color:var(--accent-color); }
.payment-date-banner summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; font-size:14px; cursor:pointer; }
.payment-date-banner summary::-webkit-details-marker { display:none; }
.payment-date-review { font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.payment-date-pending-list { display:grid; gap:10px; padding-top:12px; }
.catalog-more { width:100%; min-height:44px; margin-bottom:16px; }

.notification-time-input { display:block; width:min(100%,180px); min-height:48px; margin:12px 0; padding:10px 14px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--text); font:inherit; }
.public-info > .form-panel { padding:28px 22px; display:flex; flex-direction:column; gap:18px; }
.public-info > .form-panel p { line-height:1.85; overflow-wrap:anywhere; }
.public-info > .form-panel h2 { margin-top:12px; margin-bottom:2px; }
.public-info > .form-panel > .primary-button { margin:6px 0; text-align:center; }
.public-info > .form-panel details { padding:8px 0; }
.public-info > .form-panel details p { margin-top:12px; }
.public-info > .form-panel > a[href^="mailto:"] { margin-top:4px; overflow-wrap:anywhere; }
.public-info .confirmation-header { margin-bottom:26px; }
.cancellation-routes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.cancellation-routes > a { display:flex; flex-direction:column; justify-content:center; align-items:center; min-width:0; min-height:64px; padding:12px 8px; line-height:1.5; word-break:normal; overflow-wrap:normal; text-align:center; }
.contract-channel-name { white-space:nowrap; }
.cancel-guide ol { padding-left:24px; line-height:1.85; word-break:normal; overflow-wrap:break-word; }
.cancel-guide li { padding-left:6px; margin:12px 0; }
.cost-breakdown > h2 { display:flex; gap:8px; align-items:baseline; }
.cost-breakdown > h2 span { font-size:12px; color:var(--muted); font-weight:400; }
.cost-breakdown [data-add-cost] { margin-top:12px; width:100%; min-height:44px; }
.cost-item-editor { min-width:0; }
.cost-item-fields input,.cost-item-fields select { min-width:0; max-width:100%; }

/* Decorative, transparent variants: reserved space, never overlay amounts or charts. */
.mascot-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.mascot-section-heading h2 { min-width:0; }
.notifications-header > .subumaru-mascot { margin-left:auto; }

/* v1.0.1: shared mobile insets, native controls and explicit focus visibility. */
/* Registration steps stay in document flow, above the existing nav clearance. */
.registration-progress { margin:16px 0; }
.registration-progress p { color:var(--accent-color); font-size:14px; margin-bottom:8px; }
.registration-step-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.registration-progress progress { display:block; width:100%; height:3px; margin-bottom:8px; border:0; border-radius:3px; overflow:hidden; appearance:none; background:var(--line); accent-color:var(--accent-color); }
.registration-progress progress::-webkit-progress-bar { background:var(--line); }
.registration-progress progress::-webkit-progress-value { background:var(--accent-color); }
.registration-progress progress::-moz-progress-bar { background:var(--accent-color); }
.registration-step-nav button { min-width:0; min-height:44px; padding:6px 0; border:0; border-radius:6px; background:transparent; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:5px; font-size:12px; white-space:nowrap; }
.registration-step-nav button[aria-current="step"] { color:var(--accent-color); font-weight:700; }
.registration-step-nav button[data-state="complete"] { color:var(--text); }
.registration-step-nav button[data-state="current"] .step-number { background:var(--accent-color); border-color:var(--accent-color); color:var(--bg); }
.step-number { display:inline-grid; place-items:center; width:22px; height:22px; border:1px solid currentColor; border-radius:50%; }
.registration-step-nav button:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.registration-step { min-width:0; padding-block:16px; }
.registration-step > h2 { font-size:18px; margin-bottom:12px; }
.registration-step > h2:focus-visible { outline:2px solid var(--accent-color); outline-offset:4px; }
.registration-actions { display:flex; gap:12px; padding-block:16px; }
.registration-actions button { flex:1; min-width:0; min-height:48px; margin:0; }
.registration-step[hidden], .registration-actions button[hidden], .form-header [form="subscription-form"][hidden] { display:none; }
.registration-review { display:grid; gap:6px; margin-top:16px; padding:14px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); overflow-wrap:anywhere; font-size:13px; }
.registration-review strong { font-size:15px; }
.payment-date-choice { min-width:0; margin:16px 0; padding:0; border:0; }
.payment-date-choice legend { font-size:14px; margin-bottom:8px; }
.payment-date-choice button { min-height:44px; width:100%; }
.payment-date-choice button[aria-pressed="true"] { border-color:var(--accent-color); color:var(--accent-color); background:color-mix(in srgb,var(--accent-color) 9%,var(--surface)); }
.payment-date-choice button[aria-pressed="true"]::after { content:' ✓'; }
.registration-reselect { min-height:44px; margin-top:12px; padding:8px 12px; color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:10px; }
.registration-reselect[hidden] { display:none; }
.form-panel [data-payment-date-input][hidden] { display:none; }
[data-subscription-form] .preset-plan-choices button { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding-right:30px; }
[data-subscription-form] .preset-plan-choices { display:grid; grid-template-columns:minmax(0,1fr); }
[data-subscription-form] .preset-plan-choices button { width:100%; min-width:0; text-align:left; }
[data-subscription-form] .plan-name { min-width:0; text-align:left; line-height:1.4; display:block; overflow:visible; overflow-wrap:anywhere; }
.payment-date-group { display:grid; gap:10px; min-width:0; padding:17px 0; }
.form-panel .payment-date-group > label { padding:0; border:0; min-width:0; grid-template-columns:minmax(0,1fr); }
.payment-date-group .payment-date-choice { margin:0; }
.payment-date-choice [data-payment-date-later] { display:flex; align-items:center; justify-content:center; gap:8px; }
.payment-date-error { margin-top:8px; color:var(--text); font-size:13px; }
.payment-date-error[hidden] { display:none; }
[data-subscription-form] .plan-name small { display:block; font-size:12px; color:var(--muted); }
[data-subscription-form] .plan-price { text-align:right; font-variant-numeric:tabular-nums; font-size:13px; white-space:nowrap; }
[data-subscription-form] .preset-plan-choices button[aria-pressed="true"] { background:color-mix(in srgb,var(--accent-color) 9%,var(--surface)); }
[data-subscription-form] .preset-plan-choices .plan-selection-check { content:'✓'; position:absolute; right:8px; top:12px; color:var(--accent-color); }
.list-search-actions { display:flex; align-items:center; gap:8px; }
.compact-filter-layout { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:8px; }
.compact-filter-layout .list-filter-panel { margin:0; }
.compact-filter-layout .list-filter-panel[open], .compact-filter-layout .list-active-filters { grid-column:1/-1; }
.list-search-actions .list-search { flex:1; min-width:0; }
.list-filter-panel { margin-top:8px; padding:0 12px; border:1px solid var(--line); border-radius:12px; background:var(--surface); }
.list-filter-panel > summary { display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; font-size:14px; }
.filter-count { padding:2px 7px; border-radius:20px; background:var(--surface-2); color:var(--accent-color); }
.list-filter-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; }
.list-filter-panel select { width:100%; min-width:0; max-width:100%; min-height:44px; font-size:16px; }
.list-filter-actions a, .list-active-filters a { color:var(--accent-color); display:inline-flex; align-items:center; min-height:44px; }
.list-active-filters { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.subscription-meta { display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:11px; }
.subscription-meta .subscription-status { margin:0; padding:2px 5px; font-size:11px; }
.compact-service-row { padding-block:12px; gap:10px; }
.compact-service-row .row-main { gap:4px; min-width:0; }
.compact-service-row .row-end { max-width:40%; font-variant-numeric:tabular-nums; }
.subscriptions-header .category-secondary-button { font-size:12px; background:transparent; border:0; }
/* Reference-led list layout, scoped away from Home and registration. */
.subscription-list-shell { background:var(--surface); border-radius:28px 28px 0 0; }
.subscription-list-shell .subscriptions-header { align-items:center; margin-bottom:18px; }
.subscription-list-shell .subscriptions-header .category-secondary-button { border:1px solid var(--line); border-radius:24px; min-height:44px; padding:8px 12px; color:var(--muted); }
.subscription-list-shell .list-search input { border-radius:24px; background:transparent; }
.subscription-list-shell .list-search-actions { position:relative; }
.subscription-list-shell .list-search input { padding-right:48px; }
.list-search-submit { position:absolute; right:2px; top:1px; display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--muted); }
.list-search-submit:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.subscription-list-shell .list-filter-panel { border-radius:24px; background:transparent; }
.subscription-list-shell .list-filter-panel[open] { border-radius:16px; padding-bottom:8px; }
.subscription-list-shell .list-results-heading { color:var(--muted); font-size:12px; margin:16px 0; }
.subscription-list-shell .list-panel { display:grid; gap:12px; padding:0; border:0; background:transparent; overflow:visible; }
#subscription-results .subscription-row-with-delete { border:0; }
#subscription-results .subscription-row.compact-service-row { grid-template-columns:44px minmax(0,1fr) auto 10px; column-gap:10px; row-gap:6px; min-height:94px; padding:16px 14px; border:0; border-radius:20px; background:color-mix(in srgb,var(--bg) 75%,var(--surface)); }
#subscription-results .compact-service-row .row-main { gap:4px; }
#subscription-results .compact-service-row .row-main strong { font-size:15px; }
#subscription-results .compact-service-row .subscription-meta { gap:4px; flex-wrap:nowrap; }
#subscription-results .compact-service-row .subscription-meta > span:first-child { min-width:0; overflow:hidden; text-overflow:ellipsis; }
#subscription-results .compact-service-row .subscription-status { flex-shrink:0; background:transparent; padding:0; border:0; }
#subscription-results .compact-service-row .list-payment-date { color:var(--muted); font-size:12px; }
#subscription-results .compact-service-row .row-end { gap:4px; max-width:clamp(70px,23vw,112px); }
#subscription-results .compact-service-row .row-end b { font-size:21px; line-height:1.15; }
#subscription-results .compact-service-row .row-end small { font-size:12px; }
.list-card-chevron { color:var(--muted); font-size:24px; }
#subscription-results .compact-service-row .subscription-progress { grid-column:2/4; gap:4px; }
@media(max-width:350px) {
  #subscription-results .subscription-row.compact-service-row { grid-template-columns:36px minmax(0,1fr) auto 8px; gap:6px; padding:14px 10px; }
  #subscription-results .compact-service-row .service-logo { width:36px; height:36px; }
  .subscription-list-shell .subscriptions-header .category-secondary-button { padding:6px 8px; font-size:11px; }
}
@media(min-width:601px) { [data-editing="0"] .catalog-results { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:600px) {
  [data-editing="0"] .catalog-results { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  [data-editing="0"] .catalog-service { flex-direction:column; justify-content:center; gap:6px; padding:8px 4px; height:96px; border-radius:10px; text-align:center; border-color:transparent; }
  [data-editing="0"] .catalog-service .service-logo { width:36px; height:36px; border-radius:8px; font-size:16px; }
  [data-editing="0"] .catalog-service strong { font-size:12px; line-height:1.4; word-break:normal; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
  [data-editing="0"] .catalog-service small { display:none; }
  [data-subscription-form] .preset-plan-choices { display:grid; grid-template-columns:minmax(0,1fr); }
  [data-subscription-form] .preset-plan-choices button { width:100%; min-width:0; text-align:left; padding:12px 30px 12px 12px; line-height:1.5; overflow-wrap:anywhere; }
}
@media(max-width:350px) { [data-editing="0"] .catalog-results { grid-template-columns:repeat(2,minmax(0,1fr)); } .list-filter-selects { grid-template-columns:minmax(0,1fr); } }
.registration-actions button[type="submit"] { flex:3; }
.cost-item-editor > summary { flex-wrap:wrap; }
.cost-item-editor > summary > [data-cost-title] { flex:1 1 70px; }
.cost-item-editor > summary > .cost-remove { display:inline-flex; align-items:center; justify-content:center; gap:4px; flex:0 0 auto; min-width:68px; min-height:44px; color:var(--text); border:1px solid var(--line); border-radius:10px; text-decoration:none; }
.cost-remove .icon { width:16px; height:16px; }
/* Include controls outside form-panel; keep user zoom and larger inherited text. */
input, select, textarea { font-size:max(16px,1em); }
.list-filter-selects select, .notification-time-input { font-size:max(16px,1em); }
.auth-form label:not(.remember-login) { grid-template-columns:minmax(0,1fr); }
.auth-form input:not([type="checkbox"]):not([type="hidden"]) { width:100%; min-width:0; max-width:100%; font-size:max(16px,1em); }
:root { --safe-top:env(safe-area-inset-top,0px); --safe-bottom:env(safe-area-inset-bottom,0px); --nav-clearance:calc(120px + var(--safe-bottom)); }
html { scroll-padding-top:calc(16px + var(--safe-top)); scroll-padding-bottom:var(--nav-clearance); }
.app-shell { min-height:100svh; padding-top:calc(28px + var(--safe-top)); padding-bottom:var(--nav-clearance); }
.app-shell.has-fab { padding-bottom:calc(172px + var(--safe-bottom)); }
.app-shell.onboarding-shell { padding-top:calc(24px + var(--safe-top)); }
.form-panel, .form-panel label, .form-panel fieldset, .form-panel details,
.money-entry, .date-entry, .category-entry { min-width:0; max-width:100%; }
.form-panel input, .form-panel select, .form-panel textarea { min-width:0; max-width:100%; box-sizing:border-box; font-size:16px; }
.form-panel input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), .form-panel select { min-height:48px; }
.money-entry input, .category-entry select { flex:1 1 0; }
input[type="date"] { display:block; width:100%; min-width:0; max-width:100%; min-inline-size:0; box-sizing:border-box; text-align:left; }
input[type="date"]::-webkit-date-and-time-value { min-width:0; text-align:left; }
input[type="date"]::-webkit-datetime-edit { min-width:0; padding:0; }
.date-entry input { flex:1 1 0; width:0; }
/* Constrain the grid track as well as the native date control's flex basis. */
[data-trial-fields], [data-cancel-fields] { min-width:0; max-width:100%; }
.form-panel .status-date-label { grid-template-columns:minmax(0,1fr); }
.date-entry { width:100%; }
.date-entry-native input { padding-inline:13px; }
.date-entry-native input::-webkit-calendar-picker-indicator { opacity:1; }
.date-entry button { width:44px; height:44px; }
.form-panel :is(input, select, textarea):focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }
.form-panel :is(input, select, textarea) { scroll-margin-block:16px; }
.form-panel .amount-shortcuts button, .quick-method-open, .category-secondary-button { min-height:44px; }
.form-section-title { padding-top:18px; }
.contract-status-field { margin:16px 0; padding:0; border:0; }
.contract-status-field legend { margin-bottom:10px; color:var(--muted); font-size:13px; }
.contract-status-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.form-panel .contract-status-grid label { position:relative; display:block; padding:0; border:0; cursor:pointer; }
.contract-status-grid input[type="radio"] { position:absolute; width:1px; height:1px; margin:0; padding:0; opacity:0; }
.contract-status-grid span { display:flex; align-items:center; justify-content:center; min-height:48px; padding:10px 6px; border:1px solid var(--line); border-radius:12px; background:var(--surface-2); color:var(--text); font-size:14px; }
.contract-status-grid input:checked + span { border:2px solid var(--accent-color); padding:9px 5px; color:var(--accent-color); font-weight:700; }
.contract-status-grid input:focus-visible + span { outline:2px solid var(--accent-color); outline-offset:3px; }
.keyboard-open .tab-bar, .keyboard-open .fab { visibility:hidden; pointer-events:none; }
@media (max-width:430px) {
  .app-shell { padding-inline:max(16px,env(safe-area-inset-left,0px)) max(16px,env(safe-area-inset-right,0px)); }
  .page-header, .form-header { margin-bottom:20px; }
  .section { margin-top:28px; }
  .category-entry { flex-wrap:wrap; }
  .category-entry a { display:inline-flex; align-items:center; min-height:44px; }
}
.subscription-plan-name { display:block; min-width:0; max-width:100%; overflow-wrap:anywhere; white-space:normal; color:var(--muted); font-size:13px; line-height:1.4; }
.form-service-identity > div, .payment-date-banner-row > div { min-width:0; }
.registration-review strong { overflow-wrap:anywhere; }

.plan-selection-check[hidden] { display:none; }
.sandbox-identity { padding:8px 12px; font-size:12px; overflow-wrap:anywhere; color:var(--text); background:var(--surface-2); }
/* Phase 3: optional name editing and compact, wrapping filter feedback. */
.plan-name-editor { min-width:0; margin:8px 0 12px; }
.plan-name-editor > summary { min-height:44px; padding:10px 0; cursor:pointer; color:var(--muted); }
.plan-name-editor > label { min-width:0; margin-top:8px; }
.plan-name-editor input { width:100%; min-width:0; max-width:100%; box-sizing:border-box; font-size:16px; }
.plan-name-editor > summary:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.list-active-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.list-active-filters > span { min-width:0; overflow-wrap:anywhere; flex:1 1 180px; }
.list-active-filters > a, .list-reset { display:inline-flex; align-items:center; min-height:44px; }
.home-first-subscription [data-first-use-hint] p { line-height:1.6; margin:8px 0; }
@media (max-width:430px) {
  .compact-service-row .row-main, .compact-service-row .row-end { min-width:0; }
  #subscription-results .compact-service-row .subscription-meta { flex-wrap:wrap; overflow-wrap:anywhere; }
  #subscription-results .compact-service-row .subscription-meta > span { white-space:normal; overflow:visible; }
  #subscription-results .compact-service-row .row-main strong { overflow-wrap:anywhere; }
  #subscription-results .compact-service-row .row-end small { white-space:normal; overflow-wrap:anywhere; }
}
/* Compact list and lightweight welcome card; no fixed overlays. */
.home-header > div { min-width:0; }
.home-header .eyebrow { font-size:11px; letter-spacing:.16em; line-height:1.4; margin:0 0 4px; }
.home-header .notification-bell { flex-shrink:0; }
.empty-state-cta { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:12px 16px; text-align:center; line-height:1.5; box-sizing:border-box; }
.first-subscription-card { position:relative; text-align:left; padding:20px; }
.first-subscription-card[hidden] { display:none; }
.first-subscription-card h2 { padding-right:36px; }
.first-hint-close { position:absolute; top:4px; right:4px; width:44px; height:44px; padding:0; border:0; background:transparent; color:var(--muted); font-size:24px; cursor:pointer; }
.first-hint-conversation { display:flex; align-items:center; gap:12px; margin-top:12px; }
.first-hint-mascot { flex:0 0 80px; width:80px; height:80px; display:grid; place-items:center; }
.first-hint-mascot img { width:100%; height:100%; object-fit:contain; }
.first-hint-mascot img[hidden] { display:none; }
.first-hint-mascot [data-hint-image-fallback] { font-size:32px; }
.first-subscription-card .first-hint-bubble { position:relative; min-width:0; margin:0; padding:12px 14px; border-radius:18px; background:var(--surface-2); color:var(--text); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.first-hint-bubble::before { content:''; position:absolute; left:-7px; top:24px; border-top:7px solid transparent; border-bottom:7px solid transparent; border-right:8px solid var(--surface-2); }
.first-subscription-card .empty-state-cta { margin-bottom:0; }
#subscription-results .compact-service-row .subscription-status { width:fit-content; white-space:normal; color:var(--text); background:var(--surface-2); padding:3px 7px; border-radius:6px; font-size:11px; }
#subscription-results .compact-service-row .list-payment-footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding-top:6px; color:var(--muted); font-size:12px; }
#subscription-results .compact-service-row .list-payment-date { display:flex; align-items:center; gap:5px; min-width:0; }
.list-payment-date .icon { width:16px; height:16px; flex-shrink:0; }
.list-payment-remaining { flex-shrink:0; }
@media(max-width:350px) {
  .first-subscription-card { padding:16px; }
  .first-hint-mascot { flex-basis:56px; width:56px; height:64px; }
  .first-hint-conversation { gap:10px; }
  .first-subscription-card .first-hint-bubble { padding:12px; }
  #subscription-results .compact-service-row .row-end { max-width:100px; }
  #subscription-results .compact-service-row .row-end b { font-size:18px; }
}

/* Official Koban poses: decorative images retain a stable layout on load failure. */
.koban-form-title { display:flex; align-items:center; justify-content:center; gap:6px; min-width:0; }
.koban-form-title .subumaru-mascot { width:36px; height:36px; }
.payment-date-choice > .subumaru-mascot { display:inline-block; vertical-align:middle; margin-right:6px; }
.empty > .subumaru-mascot { margin:0 auto 12px; }
.koban-first-success { display:flex; align-items:center; justify-content:center; gap:12px; margin:12px 0 20px; }
.koban-first-success p { margin:0; color:var(--text); font-weight:600; }
.koban-save-feedback { display:flex; align-items:center; gap:12px; margin:0 0 16px; padding:10px 12px; background:var(--surface); color:var(--text); border:1px solid var(--accent-color); border-radius:16px; }
.koban-save-feedback .subumaru-mascot { width:64px; height:64px; }
.koban-save-feedback p { flex:1; min-width:0; margin:0; overflow-wrap:anywhere; }
.koban-save-feedback button { flex-shrink:0; width:44px; min-height:44px; background:transparent; border:1px solid var(--border); border-radius:12px; color:var(--text); cursor:pointer; font-size:24px; }
.koban-save-feedback[hidden],.koban-save-feedback button[hidden] { display:none; }
@media(max-width:360px) { .koban-save-feedback { gap:8px; } .koban-save-feedback .subumaru-mascot { width:48px; height:48px; } }

.registration-step-nav[data-step-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.registration-step-nav button[hidden] { display:none; }

/* Japanese typography: phrase-aware wrapping with safe overflow fallback. */
body { line-break:strict; word-break:normal; overflow-wrap:anywhere; }
@supports (word-break:auto-phrase) {
  body,
  .cancellation-routes > a,
  .cancel-guide ol,
  [data-editing="0"] .catalog-service strong { word-break:auto-phrase; }
}
.registration-draft { padding:20px; margin:16px 0; }
.registration-draft[hidden] { display:none; }
.registration-draft h2 { margin-bottom:12px; }
.registration-draft p { line-height:1.6; }
.registration-draft .registration-actions { flex-wrap:wrap; }
.registration-draft .registration-actions button { flex:1 1 140px; min-height:44px; margin:0; }
.registration-draft-info { margin:12px 0; }

/* Shared login and registration branding. */
.page-header.auth-header { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-bottom:24px; }
.auth-header .brand-icon { display:block; width:72px; height:72px; margin-bottom:4px; flex:none; }
.auth-header .eyebrow { margin:0; font-size:14px; letter-spacing:.04em; }
.auth-header h1 { margin:0; font-size:clamp(24px,6.5vw,28px); line-height:1.4; }
.auth-header .auth-tagline { margin:0; line-height:1.6; }

/* Catalog cards: three equal mobile columns, including 320px devices. */
[data-editing="0"] .catalog-service { flex-direction:column; justify-content:flex-start; align-items:center; gap:10px; min-width:0; height:132px; padding:12px 6px; text-align:center; }
[data-editing="0"] .catalog-service > span { min-width:0; max-width:100%; }
[data-editing="0"] .catalog-service .service-logo { width:52px; height:52px; flex:0 0 52px; }
[data-editing="0"] .catalog-service .service-logo img { object-fit:contain; padding:4px; }
[data-editing="0"] .catalog-service strong { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; line-height:1.4; overflow-wrap:anywhere; }
[data-editing="0"] .catalog-service small { display:none; }
[data-editing="0"] [data-catalog-picker] { padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)); }
@media(max-width:600px) {
 [data-editing="0"] .catalog-results { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 [data-editing="0"] .catalog-service { height:128px; }
}

/* Preserve the supplied white Discord symbol on both light and dark themes. */
.service-logo img[src*="/service-logos/local/catalog_91?"] { background:#232428; padding:8px; object-fit:contain; }
[data-editing="0"] .catalog-service .service-logo img[src*="/service-logos/local/catalog_91?"] { background:#232428; padding:8px; }
[data-editing="0"] .catalog-service:focus-visible { outline:2px solid var(--accent-color); outline-offset:2px; }

/* Keep catalog content out of display cutouts and above the fixed navigation. */
.app-shell:has([data-catalog-picker]) { padding-top:calc(28px + env(safe-area-inset-top,0px)); padding-bottom:calc(120px + env(safe-area-inset-bottom,0px)); }

/* v1.1 final UI: neutral service initials and responsive brand character. */
.service-logo .service-logo-fallback { font-size:16px; font-weight:750; line-height:1; letter-spacing:-.02em; font-family:system-ui,sans-serif; }
.home-mascot-title .subumaru-mascot,
.mascot-section-heading .subumaru-mascot--tiny { width:66px; height:66px; }
.home-mascot-title > span { min-width:0; }
.home-mascot-title { margin-block:4px; }
.mascot-section-heading { min-height:66px; }
@media(max-width:430px) {
 .home-mascot-title .subumaru-mascot,
 .mascot-section-heading .subumaru-mascot--tiny { width:60px; height:60px; }
 .home-mascot-title { gap:6px; }
 .home-header { gap:8px; }
 .mascot-section-heading { min-height:60px; }
}

/* Keep each conversion label within its column on narrow Home cards. */
@media (max-width:430px) {
  .home-payment-card .payment-secondary { grid-template-columns:1fr; gap:10px; }
  .home-payment-card .payment-secondary dd { margin-top:2px; }
}

/* Shared Web/TWA presentation refinements; preserve hidden control semantics. */
.registration-review[hidden], [data-install-section][hidden], .ui-native-select[hidden] { display:none !important; }
.ui-help { color:var(--muted); font-size:13px; line-height:1.6; margin-top:8px; }
.ui-help summary { color:var(--accent-color); cursor:pointer; padding:8px 0; }
.ui-select-trigger { width:100%; min-height:48px; border:1px solid var(--line); border-radius:14px; padding:12px; background:var(--surface-2); color:var(--text); text-align:left; }
.ui-sheet { width:min(480px,calc(100% - 24px)); max-height:85dvh; overflow:auto; border:1px solid var(--line); border-radius:22px; padding:24px; color:var(--text); background:var(--surface); }
.ui-sheet::backdrop { background:rgba(0,0,0,.55); }
.ui-sheet h2 { margin:0 60px 20px 0; }.ui-sheet-close { position:absolute; right:16px; top:16px; }
.ui-sheet button { min-height:44px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); color:var(--text); padding:8px; cursor:pointer; }
.ui-sheet button[aria-pressed="true"] { background:var(--accent-color);color:#102027;font-weight:700; }
.ui-sheet button:disabled { opacity:.4;cursor:default; }
.ui-category-list { display:grid;gap:8px; }.ui-category-option { display:flex;justify-content:space-between;text-align:left;padding:14px !important; }
@media(max-width:600px) { .ui-sheet { width:100%;max-width:100%;margin:auto 0 0;max-height:85dvh;border-radius:22px 22px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom)); } }

.ui-sheet { overflow:hidden; }
.ui-category-list { max-height:calc(85dvh - 115px);overflow-y:auto;overscroll-behavior:contain; }

.ui-category-label { display:flex;align-items:center;gap:12px;min-width:0; }
.ui-category-icon { width:28px;flex:0 0 28px;text-align:center;font-size:22px;line-height:1.3; }
