/* Original application components informed by VibePrompt's dashboard shell,
   usage-meter, table and stepper patterns. References live in docs/V2_STATUS.md.
   No remote fonts, runtime CSS or inline styles are required. */
:root {
  color-scheme: light;
  --ui-bg: #f7f8fb;
  --ui-surface: #fff;
  --ui-ink: #1a2438;
  --ui-muted: #5f6d84;
  --ui-line: #e5e9f1;
  --ui-accent: #315ce7;
  --ui-accent-hover: #2449c7;
  --ui-accent-soft: #edf2ff;
  --ui-green: #237457;
  --ui-green-soft: #edf8f2;
  --ui-amber: #8d6216;
  --ui-amber-soft: #fff7e6;
  --ui-radius: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ui-ink);
  background: var(--ui-bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--ui-bg); color: var(--ui-ink); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
a { color: var(--ui-accent); text-decoration: none; }
a:hover { color: var(--ui-accent-hover); }
button, summary, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #7d9afa; outline-offset: 3px; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 690; line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; }
h3 { font-size: 16px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; padding: 12px 20px; border-radius: 10px; background: var(--ui-ink); color: white; }
.skip-link:focus { top: 16px; color: white; }
.app-header { background: var(--ui-surface); border-bottom: 1px solid var(--ui-line); }
.header-inner { max-width: 1256px; margin: auto; padding: 19px 28px; min-height: 88px; }
.brand { color: var(--ui-ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ui-ink); }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #1c2b50; color: #fff; box-shadow: 0 3px 7px #12254d16; }
.brand-mark .icon { width: 27px; height: 27px; }
.brand-wordmark { font-size: 23px; font-weight: 750; line-height: 1.1; letter-spacing: -.06em; }
.brand-tagline { display: block; margin-top: 5px; color: var(--ui-muted); font-size: 10px; line-height: 1.3; font-weight: 450; letter-spacing: .025em; }
.main-nav { margin: 0 auto; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border-radius: 9px; color: #647088; font-weight: 550; }
.nav-link .icon { width: 17px; height: 17px; }
.nav-link:hover { color: var(--ui-ink); background: #f5f7fb; }
.nav-link.is-active { background: var(--ui-accent-soft); color: var(--ui-accent); }
.account-menu { position: relative; min-width: 195px; }
.account-menu summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary > .icon { width: 15px; color: #8993a5; margin-left: auto; }
.account-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; border: 3px solid white; background: #e8eefb; color: #49628f; font-weight: 650; box-shadow: 0 0 0 1px var(--ui-line); }
.account-identity { min-width: 0; }
.account-identity strong { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.account-identity > span { display: block; color: var(--ui-muted); font-size: 11px; }
.account-popover { position: absolute; right: 0; top: calc(100% + 16px); min-width: 250px; max-width: min(320px, calc(100vw - 36px)); z-index: 20; border: 1px solid var(--ui-line); border-radius: 12px; padding: 14px; background: white; box-shadow: 0 16px 40px #1724421a; }
.account-email { font-size: 12px; color: var(--ui-muted); padding: 4px 6px 12px; overflow-wrap: anywhere; }
.account-popover > a { display: flex; align-items: center; justify-content: space-between; padding: 9px 6px; color: var(--ui-ink); font-size: 13px; border-top: 1px solid var(--ui-line); }
.signout-button { width: 100%; text-align: left; padding: 9px 6px; cursor: pointer; background: none; border: 0; color: var(--ui-muted); font-size: 13px; }
.signout-button:hover { color: var(--ui-accent); }
.app-main { flex: 1; width: 100%; max-width: 1256px; margin: auto; padding: 42px 28px 58px; }
.app-main:focus { outline: none; }
.page-heading { margin-bottom: 29px; }
.eyebrow { color: var(--ui-muted); font-size: 10px; letter-spacing: .15em; font-weight: 650; line-height: 1.5; margin-bottom: 9px; }
.page-description { color: var(--ui-muted); line-height: 1.7; margin-top: 10px; font-size: 14px; }
.create-action { margin-top: 15px; }
.btn { min-height: 43px; height: auto; display: inline-flex; gap: 8px; align-items: center; justify-content: center; flex-shrink: 0; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; background: #f1f4f9; color: #3d4a63; font-family: inherit; font-size: 12px; line-height: 1.5; font-weight: 600; text-align: center; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { color: #fff; background: var(--ui-accent); border-color: var(--ui-accent); box-shadow: 0 3px 6px #315ce719; }
.btn-primary:hover { color: #fff; background: var(--ui-accent-hover); border-color: var(--ui-accent-hover); }
.btn-secondary { color: #42516b; background: white; border-color: #dce2ed; box-shadow: 0 1px 2px #19294404; }
.btn-secondary:hover { color: var(--ui-ink); background: #f7f9fd; border-color: #bdc8dd; }
.btn-quiet, .btn-ghost { background: transparent; color: var(--ui-muted); }
.btn-quiet:hover, .btn-ghost:hover { background: #eff3fa; color: var(--ui-ink); }
.btn-sm { min-height: 35px; padding: 7px 11px; font-size: 11px; }
.btn-error { background: #fff2f2; border-color: #f1cdcd; color: #a53f45; }
.btn-error:hover { background: #fce5e6; color: #8d2931; }
.btn:disabled { cursor: not-allowed; opacity: .5; pointer-events: none; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.btn[aria-busy="true"]::after { content: ""; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .8s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.overview-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 34px; }
.overview-card { min-width: 0; padding: 20px 23px 17px; background: white; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); box-shadow: 0 2px 3px #26375a02; }
.metric-label { color: var(--ui-muted); font-size: 12px; font-weight: 500; }
.metric-label > .icon { color: #9ba8c0; width: 18px; height: 18px; }
.metric-value { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 14px; font-size: 31px; line-height: 1.25; font-weight: 650; letter-spacing: -.05em; }
.metric-value > span { font-size: 17px; color: #9aa5b6; font-weight: 450; letter-spacing: -.025em; }
.metric-value > .metric-tag { background: var(--ui-accent-soft); padding: 3px 8px; border-radius: 6px; color: #4964a3; font-size: 10px; font-weight: 500; letter-spacing: 0; margin-left: 4px; vertical-align: middle; }
.usage-progress { display: block; appearance: none; width: 100%; height: 5px; border: 0; border-radius: 6px; overflow: hidden; background: #edf1f7; color: var(--ui-accent); accent-color: var(--ui-accent); }
.usage-progress::-webkit-progress-bar { background: #edf1f7; border-radius: 6px; }
.usage-progress::-webkit-progress-value { border-radius: 6px; background: var(--ui-accent); }
.usage-progress::-moz-progress-bar { background: var(--ui-accent); border-radius: 6px; }
.usage-progress.meter-full { color: #c38a28; accent-color: #c38a28; }
.usage-progress.meter-full::-webkit-progress-value, .usage-progress.meter-full::-moz-progress-bar { background: #c38a28; }
.metric-rule { height: 5px; }
.metric-footnote { margin-top: 12px; color: var(--ui-muted); font-size: 11px; line-height: 1.6; }
.plan-overview { background: #1e2c4c; border-color: #1e2c4c; color: white; position: relative; overflow: hidden; }
.plan-overview::after { position: absolute; width: 150px; height: 150px; border: 1px solid #ffffff0b; border-radius: 50%; right: -35px; top: -40px; content: ""; pointer-events: none; }
.plan-overview .metric-label { color: #bbc8e2; }
.plan-overview .metric-value { margin-bottom: 5px; }
.plan-overview .metric-footnote { color: #aab8d5; margin-top: 13px; }
.plan-symbol { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #8295bd5c; border-radius: 6px; font-size: 12px; font-weight: 600; color: #bacbee; }
.plan-details-link { display: grid; place-items: center; width: 31px; height: 31px; background: #ffffff0b; border: 1px solid #ffffff1c; border-radius: 50%; color: #dbe5fc; }
.plan-details-link:hover { background: #ffffff1c; color: white; }
.plan-details-link .icon { width: 16px; height: 16px; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.list-heading h2 { font-size: 17px; }
.list-hint { color: #929cb0; font-size: 11px; }
.count-chip { display: inline-flex; align-items: center; justify-content: center; padding: 2px 8px; background: #e9edf4; color: #7a879d; border-radius: 6px; font-size: 11px; min-width: 24px; font-weight: 500; }
.alert-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.alert-card { padding: 22px 22px 17px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: white; min-width: 0; box-shadow: 0 3px 7px #26375a03; transition: border-color .18s, box-shadow .18s; }
.alert-card:hover { border-color: #cbd5eb; box-shadow: 0 7px 20px #26375a07; }
.alert-emblem, .source-option-icon, .subtle-icon, .channel-choice-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #e0e7fb; background: #f1f5ff; color: #6681cd; border-radius: 11px; flex: 0 0 auto; }
.alert-emblem .icon { width: 23px; height: 23px; }
.alert-paused .alert-emblem { background: #f3f5f8; color: #8a96ab; border-color: #e8ebf0; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 550; line-height: 1.4; white-space: nowrap; }
.status-badge > .icon { width: 12px; height: 12px; }
.status-running { background: var(--ui-green-soft); color: var(--ui-green); }
.status-paused { background: #f1f3f7; color: var(--ui-muted); }
.status-pending { background: var(--ui-amber-soft); color: var(--ui-amber); }
.status-dot { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.alert-card h3 { font-size: 16px; margin: 19px 0 6px; line-height: 1.5; min-height: 24px; overflow-wrap: anywhere; }
.alert-card h3 a { color: var(--ui-ink); }
.alert-card h3 a:hover { color: var(--ui-accent); }
.alert-category { font-size: 11px; color: var(--ui-muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.alert-price { margin: 23px 0 18px; }
.alert-price > span { display: block; color: var(--ui-muted); font-size: 10px; margin-bottom: 4px; }
.alert-price > strong { font-size: 23px; font-weight: 650; letter-spacing: -.04em; }
.alert-price small { font-size: 11px; color: #7e8a9e; font-weight: 450; letter-spacing: 0; }
.alert-meta { color: var(--ui-muted); font-size: 10px; margin-bottom: 16px; }
.alert-meta > span, .alert-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--ui-muted); }
.alert-meta .icon { width: 13px; height: 13px; }
.alert-meta a:hover { color: var(--ui-accent); }
.alert-card-actions { border-top: 1px solid #edf0f5; padding-top: 14px; }
.alert-card-actions > a { flex: 1; justify-content: space-between; min-height: 36px; font-size: 11px; }
.alert-card-actions button { min-height: 36px; padding: 7px 9px; font-size: 11px; }
.panel { padding: 27px; background: white; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); margin-bottom: 22px; box-shadow: 0 3px 7px #26375a02; }
.panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 26px; }
.panel-heading h2 { font-size: 18px; line-height: 1.45; }
.panel-heading p { margin-top: 5px; color: var(--ui-muted); font-size: 12px; line-height: 1.6; }
.panel-heading .count-chip { margin-left: auto; }
.section-index { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--ui-line); border-radius: 8px; background: #f8f9fc; color: var(--ui-muted); font-size: 10px; flex-shrink: 0; }
.empty-state { text-align: center; padding: 52px 26px; display: flex; flex-direction: column; align-items: center; }
.empty-state h2 { font-size: 23px; margin: 8px 0; }
.empty-state h3 { font-size: 18px; margin: 9px 0; }
.empty-state > p:not(.eyebrow) { max-width: 430px; color: var(--ui-muted); font-size: 13px; line-height: 1.8; }
.empty-state > .btn { margin-top: 23px; }
.empty-icon { display: grid; place-items: center; background: #f0f4ff; color: #6c89d8; border-radius: 15px; width: 57px; height: 57px; margin-bottom: 10px; }
.empty-icon .icon { width: 27px; height: 27px; }
.dashboard-empty { grid-column: 1/-1; padding: 45px 25px; }
.empty-fine-print { color: var(--ui-muted); font-size: 10px; margin-top: 18px; }
.empty-illustration { position: relative; display: grid; place-items: center; width: 95px; height: 95px; background: #eff3ff; border-radius: 50%; margin-bottom: 28px; color: #6a86cf; }
.empty-illustration > .icon { width: 48px; height: 48px; }
.radar-orbit { width: 120px; height: 120px; position: absolute; border: 1px dashed #dae2f6; border-radius: 50%; }
.radar-pip { position: absolute; right: 0; top: 10px; width: 13px; height: 13px; border: 3px solid var(--ui-bg); border-radius: 50%; background: #6989df; }
.app-footer { width: 100%; max-width: 1256px; margin: 0 auto; padding: 20px 28px 27px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ui-muted); font-size: 10px; }
.app-footer > div { display: flex; align-items: center; gap: 14px; }
.footer-brand { color: #6d7b92; font-weight: 650; font-size: 12px; letter-spacing: -.035em; }
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ui-muted); font-size: 11px; margin-bottom: 19px; }
.back-link .icon { width: 14px; height: 14px; }
.creation-main { max-width: 1140px; }
.creation-main .page-heading { margin-bottom: 27px; }
.creation-steps { list-style: none; padding: 0 0 29px; margin: 0 0 28px; border-bottom: 1px solid var(--ui-line); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.creation-steps li { display: flex; align-items: center; gap: 11px; position: relative; color: #a0a9b9; }
.creation-steps li:not(:last-child)::after { content: ""; width: 30%; height: 1px; position: absolute; right: 14px; top: 19px; background: #e0e5ef; }
.step-number { width: 37px; height: 37px; display: grid; place-items: center; background: #f0f2f7; color: var(--ui-muted); border: 1px solid #e2e7f0; border-radius: 50%; font-size: 12px; flex-shrink: 0; }
.step-number > .icon { width: 17px; height: 17px; }
.creation-steps small { display: block; font-size: 8px; letter-spacing: .08em; margin-bottom: 2px; }
.creation-steps strong { font-size: 11px; font-weight: 550; }
.creation-steps .step-current { color: #3d5fab; }
.step-current .step-number { background: var(--ui-accent); color: white; border-color: var(--ui-accent); box-shadow: 0 0 0 5px #eaf0ff; }
.creation-steps .step-complete { color: #7586a7; }
.step-complete .step-number { background: #edf3ff; color: var(--ui-accent); border-color: #dfe8fb; }
.creation-grid, .settings-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 25px; align-items: start; }
.creation-grid > div { min-width: 0; }
.source-panel { padding: 28px; }
.source-options { display: grid; gap: 10px; }
.source-option { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--ui-line); border-radius: 11px; }
.source-option > div { min-width: 0; }
.source-option strong { display: block; font-size: 12px; font-weight: 600; }
.source-option > div > span { display: block; font-size: 10px; margin-top: 2px; color: var(--ui-muted); }
.source-selected { border-color: #99b0ed; background: #f7f9ff; box-shadow: 0 0 0 2px #eef2ff; }
.source-selected .source-option-icon { background: #edf2ff; color: #6883c4; border-color: #dce5fa; }
.source-radio { margin-left: auto; background: var(--ui-accent); border-radius: 50%; display: grid; place-items: center; width: 17px; height: 17px; color: white; flex-shrink: 0; }
.source-radio > .icon { width: 11px; height: 11px; }
.source-unavailable { background: #fcfcfe; color: #a0a9b8; }
.source-unavailable .source-option-icon { background: #f5f6f9; border-color: #ecf0f5; color: #abb5c6; }
.coming-soon { margin-left: auto; padding: 3px 7px; border-radius: 5px; background: #eff2f7; color: #939eb0; font-size: 8px; white-space: nowrap; }
.field { margin: 22px 0; }
.field > label, .field-label, legend { display: block; color: #4a5871; font-size: 12px; font-weight: 550; }
.field > label { margin-bottom: 8px; }
.field > .field-help:first-of-type { margin: 12px 0 10px; }
.source-url-field { margin-top: 28px; margin-bottom: 25px; }
.field-help { color: var(--ui-muted); font-size: 10px; line-height: 1.8; margin-top: 8px; }
.optional { display: inline-block; padding: 2px 6px; border-radius: 4px; margin-left: 6px; font-size: 8px; color: var(--ui-muted); background: #f3f5f8; font-weight: 400; vertical-align: middle; }
.input, .select, .textarea, .panel input:not([type="checkbox"]):not([type="hidden"]) { font-family: inherit; display: block; width: 100%; max-width: none; min-width: 0; border: 1px solid #dfe5ef; border-radius: 8px; background: white; padding: 11px 13px; color: #40516d; font-size: 12px; height: 45px; line-height: 1.5; box-shadow: 0 1px 2px #26375a02; transition: border-color .15s; }
.input::placeholder, .panel input::placeholder, .textarea::placeholder { color: #a5afbf; }
.input:focus, .select:focus, .textarea:focus, .panel input:focus { border-color: #89a2e7; outline: 3px solid #eaf0ff; outline-offset: 0; }
.textarea { height: auto; min-height: 130px; resize: vertical; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; top: 14px; left: 13px; width: 16px; height: 16px; color: #a0acc2; pointer-events: none; }
.panel .input-icon > input:not([type="checkbox"]):not([type="hidden"]) { padding-left: 39px; }
.input-suffix { position: relative; }
.panel .input-suffix > input { padding-right: 52px; }
.input-suffix > span { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--ui-muted); }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-top: 21px; margin-top: 24px; border-top: 1px solid #edf0f5; }
.form-actions .back-link { margin-bottom: 0; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; color: var(--ui-muted); font-size: 9px; line-height: 1.7; }
.privacy-note .icon { width: 13px; height: 13px; }
.creation-aside .panel { padding: 25px; }
.aside-emblem { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 21px; background: #edf2ff; color: #6f88ca; }
.aside-emblem .icon { width: 26px; height: 26px; }
.how-it-works h2 { font-size: 23px; letter-spacing: -.045em; line-height: 1.35; margin-bottom: 12px; max-width: 210px; }
.how-it-works > p, .settings-aside p { font-size: 11px; color: var(--ui-muted); line-height: 1.9; }
.benefit-list { padding: 24px 0 0; list-style: none; display: grid; gap: 21px; }
.benefit-list > li { display: flex; gap: 9px; align-items: flex-start; }
.benefit-list > li > span { width: 17px; height: 17px; background: #edf5f1; color: #75a18a; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.benefit-list > li > span .icon { width: 11px; height: 11px; }
.benefit-list strong { font-size: 10px; font-weight: 550; color: #5c6c85; }
.benefit-list p { font-size: 10px; line-height: 1.8; color: var(--ui-muted); margin-top: 4px; }
.aside-plan { padding: 2px 7px 10px; }
.aside-plan strong { color: #6e7e99; font-size: 12px; font-weight: 550; }
.aside-plan .badge { font-size: 9px; }
.aside-plan > p { color: var(--ui-muted); font-size: 10px; margin: 9px 0 12px; }
.aside-plan > span { display: block; font-size: 9px; color: var(--ui-muted); margin-top: 9px; }
.badge, .filter-chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #e6eaf2; border-radius: 6px; background: #f6f8fc; color: var(--ui-muted); font-size: 9px; line-height: 1.5; padding: 4px 7px; white-space: nowrap; height: auto; }
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.help-disclosure { padding: 0 5px; color: var(--ui-muted); font-size: 11px; }
.help-disclosure summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; padding: 2px 0; }
.help-disclosure summary .icon { width: 13px; height: 13px; }
.help-disclosure p { margin-top: 10px; font-size: 11px; line-height: 1.8; color: var(--ui-muted); }
.selected-source { padding-bottom: 24px; margin-bottom: 25px; border-bottom: 1px solid var(--ui-line); display: flex; align-items: center; gap: 12px; }
.selected-source > div { min-width: 0; }
.selected-source .eyebrow { font-size: 8px; margin-bottom: 3px; }
.selected-source strong { font-size: 12px; display: block; overflow-wrap: anywhere; }
.selected-source > div > a { display: block; color: #93a0b6; font-size: 9px; margin-top: 3px; }
.selected-source > div > a .icon { width: 10px; height: 10px; }
.selected-source > .text-link { margin-left: auto; font-size: 10px; }
.channel-choices { margin: 25px 0 12px; padding: 0; border: none; min-width: 0; }
.channel-choices > .field-help { margin-top: 4px; margin-bottom: 13px; }
.channel-choice { display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid #e0e6f1; border-radius: 9px; margin-top: 9px; cursor: pointer; background: #fcfdff; }
.channel-choice:has(input:checked) { background: #f5f8ff; border-color: #a5b8eb; box-shadow: 0 0 0 1px #f0f3fd; }
/* Native channel controls retain the shared form styling. */
.panel input[type="checkbox"] { appearance: auto; accent-color: var(--ui-accent); width: 16px; height: 16px; min-width: 16px; border-radius: 4px; margin: 0; cursor: pointer; }
.channel-choice-icon { width: 30px; height: 30px; border: 0; background: #f0f4fb; color: #8a9ebc; border-radius: 8px; }
.channel-choice-icon .icon { width: 17px; height: 17px; }
.channel-choice-copy { flex: 1; min-width: 0; }
.channel-choice-copy > strong, .channel-copy > strong { display: block; overflow-wrap: anywhere; font-size: 11px; font-weight: 550; }
.channel-choice-copy > span, .channel-copy > span { display: block; font-size: 9px; color: var(--ui-muted); margin-top: 3px; }
.verified-tick { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #e8f2ed; color: #6fa18a; }
.verified-tick .icon { width: 11px; height: 11px; }
.review-summary { margin: 0; }
.review-summary > div { display: grid; grid-template-columns: 160px minmax(0,1fr); padding: 17px 0; border-bottom: 1px solid #edf0f5; gap: 12px; }
.review-summary dt { display: flex; align-items: flex-start; gap: 7px; font-size: 10px; color: var(--ui-muted); }
.review-summary dt .icon { width: 15px; height: 15px; }
.review-summary dd { min-width: 0; margin: 0; font-size: 12px; color: #526582; font-weight: 550; overflow-wrap: anywhere; }
.review-summary dd > span { display: block; }
.review-summary dd .review-secondary { font-size: 10px; margin-top: 4px; color: var(--ui-muted); font-weight: 400; }
.review-filters { padding: 21px 0; }
.review-filters .field-label { font-size: 10px; color: var(--ui-muted); }
.review-actions { display: flex; flex-direction: column; align-items: stretch; gap: 13px; padding-top: 23px; margin-top: 23px; border-top: 1px solid var(--ui-line); }
.review-actions > .btn { align-self: flex-start; margin-left: -10px; }
.review-actions > div { justify-content: flex-end; }
.notice { display: flex; gap: 11px; padding: 15px 17px; border-radius: 10px; margin-bottom: 20px; font-size: 12px; border: 1px solid transparent; }
.notice > .icon { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.notice strong { font-size: 12px; display: block; font-weight: 600; }
.notice p { font-size: 11px; line-height: 1.8; margin: 3px 0 0; }
.notice a { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.notice a .icon { width: 13px; height: 13px; }
.notice-warning { background: #fff9ec; border-color: #f2e6cc; color: #927139; }
.notice-subtle { background: #f7f9fe; border-color: #eaf0fa; color: var(--ui-muted); }
.notice-subtle p { margin: 0; font-size: 10px; line-height: 1.9; }
.preview-panel { padding-bottom: 9px; }
.preview-panel .panel-heading { margin-bottom: 14px; }
.preview-offer { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; gap: 12px; padding: 18px 0; border-top: 1px solid #edf0f5; align-items: start; }
.product-emblem { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #e7ebf3; border-radius: 9px; background: #f7f9fd; color: #a2b0c7; flex-shrink: 0; }
.product-emblem .icon { width: 20px; height: 20px; }
.preview-offer a { font-size: 11px; line-height: 1.7; color: #526582; font-weight: 550; }
.preview-offer a .icon { width: 12px; height: 12px; margin-left: 3px; }
.preview-offer p { font-size: 10px; color: var(--ui-muted); margin-top: 3px; }
.preview-offer > strong { font-size: 12px; color: #61728f; white-space: nowrap; padding-top: 3px; }
.preview-offer > strong > small { font-size: 8px; font-weight: 400; color: var(--ui-muted); }
.budget-badge { display: inline-flex; font-size: 8px; padding: 2px 6px; line-height: 1.5; border-radius: 4px; color: #815d1e; background: #fff8e9; margin-top: 5px; white-space: nowrap; }
.empty-inline { padding: 26px 10px 35px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-inline p { color: var(--ui-muted); font-size: 11px; margin-top: 7px; max-width: 320px; line-height: 1.8; }
.detail-summary-grid { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 45px; align-items: start; }
.detail-source-label { margin: 14px 0 4px; font-weight: 550; color: #5e708e; font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; }
.text-link > .icon { width: 13px; height: 13px; }
.source { overflow-wrap: anywhere; }
.detail-metric > span { display: block; color: var(--ui-muted); font-size: 10px; margin-bottom: 7px; }
.detail-metric > strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.detail-metric strong > small { color: var(--ui-muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.detail-metric > small { display: block; font-size: 9px; color: var(--ui-muted); margin-top: 5px; }
.edit-preferences { margin-top: 22px; border-top: 1px solid var(--ui-line); padding-top: 15px; }
.edit-preferences > summary { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; border: 1px solid #cbd5f1; border-radius: 10px; background: #f3f5ff; color: #3547a4; cursor: pointer; list-style: none; transition: background .15s, border-color .15s; }
.edit-preferences > summary::-webkit-details-marker { display: none; }
.edit-preferences > summary:hover { background: #e9edff; border-color: #9baae0; }
.edit-preferences > summary:focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 3px; }
.edit-preferences > summary > .icon { width: 20px; height: 20px; flex-shrink: 0; }
.edit-preferences-copy { display: grid; gap: 3px; }
.edit-preferences-copy > strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
.edit-preferences-copy > span { color: #52618a; font-size: 12px; line-height: 1.5; }
.edit-preferences > summary > .icon:last-child { margin-left: auto; }
.edit-preferences[open] > summary > .icon:last-child { transform: rotate(180deg); }
.edit-preferences > form { max-width: 610px; padding-top: 20px; }
.history-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--ui-line); margin-top: 29px; }
.history-tab { display: inline-flex; align-items: center; gap: 7px; padding: 13px 2px; color: var(--ui-muted); font-size: 12px; position: relative; }
.history-tab > .icon { width: 15px; height: 15px; }
.history-tab.is-active { color: #315ce7; font-weight: 550; }
.history-tab.is-active::after { content: ""; height: 2px; background: #5b7cd0; position: absolute; left: 0; right: 0; bottom: -1px; border-radius: 2px; }
.history-intro { margin: 25px 0 17px; }
.history-intro h2 { font-size: 16px; }
.history-intro p { margin-top: 6px; font-size: 11px; color: var(--ui-muted); line-height: 1.8; }
.history-panel { padding: 0; overflow: hidden; }
.offer-table { border-collapse: collapse; width: 100%; text-align: left; }
.offer-table th { padding: 14px 20px; font-size: 8px; color: var(--ui-muted); font-weight: 500; letter-spacing: .07em; background: #fcfdff; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
.offer-table td { border-bottom: 1px solid #edf0f5; padding: 21px 20px; vertical-align: middle; }
.offer-table tr:last-child td { border-bottom: 0; }
.offer-product { display: flex; align-items: flex-start; gap: 13px; }
.offer-product > div { min-width: 0; }
.offer-product a { font-size: 12px; font-weight: 550; line-height: 1.7; color: #5c6f8d; }
.offer-product a:hover { color: var(--ui-accent); }
.offer-product p { color: var(--ui-muted); font-size: 10px; margin-top: 4px; line-height: 1.7; }
.offer-price { white-space: nowrap; }
.offer-price strong { color: #62728c; font-weight: 550; font-size: 12px; }
.offer-price small { color: var(--ui-muted); font-size: 8px; font-weight: 400; }
.offer-price .budget-badge { display: table; }
.offer-time { color: var(--ui-muted); font-size: 10px; min-width: 165px; }
.offer-external a { color: #a5b1c5; }
.offer-external .icon { width: 16px; height: 16px; }
.mobile-label { display: none; }
.pagination { display: flex; justify-content: flex-end; margin-top: 20px; }
.danger-zone { border-top: 1px solid var(--ui-line); margin-top: 42px; padding-top: 16px; color: #a8b0be; font-size: 10px; }
.settings-layout .panel-heading { align-items: center; }
.settings-channel { display: flex; gap: 12px; align-items: center; padding: 17px 0; border-top: 1px solid #edf0f5; flex-wrap: wrap; }
.settings-channel > .channel-copy { flex: 1; min-width: 120px; }
.settings-channel > form { width: 100%; margin-left: 42px; }
.settings-channel .status-badge { font-size: 9px; }
.add-channel-form { border-top: 1px solid var(--ui-line); margin-top: 4px; padding-top: 3px; }
.add-channel-form > .btn { margin-top: -4px; }
.settings-aside h2 { font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.settings-aside p + p { margin-top: 15px; }
.plans-section { scroll-margin-top: 30px; margin-top: 25px; }
.plans-section .list-heading { align-items: end; margin-bottom: 19px; }
.plans-section .list-heading > p { font-size: 10px; color: var(--ui-muted); max-width: 230px; text-align: right; }
.plans-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.plan-tile { border: 1px solid var(--ui-line); border-radius: 13px; background: white; padding: 21px; min-width: 0; display: flex; flex-direction: column; }
.plan-tile h3 { font-size: 15px; }
.plan-persona { color: var(--ui-muted); font-size: 11px; line-height: 1.4; margin-top: 9px; min-height: 3em; }
.plan-current { border-color: #a7b9ec; box-shadow: 0 0 0 2px #eef2ff; }
.plan-current .filter-chip { color: #7891cb; background: #f1f5ff; border: 0; font-size: 8px; padding: 3px 5px; }
.plan-price { color: #536581; font-weight: 650; font-size: 22px; letter-spacing: -.04em; margin: 18px 0; line-height: 1.4; }
.plan-price small { display: block; font-size: 9px; color: var(--ui-muted); font-weight: 400; letter-spacing: 0; margin-top: 3px; }
.plan-price .plan-currency { display: inline; font-size: 0.55em; margin: 0; }
.plan-price .plan-duration { display: block; }
.plan-tile-features { border-top: 1px solid #edf0f5; padding-top: 15px; display: grid; gap: 10px; margin-top: auto; }
.plan-tile-features p { display: flex; gap: 7px; align-items: center; color: var(--ui-muted); font-size: 10px; }
.plan-tile-features .icon { width: 13px; height: 13px; color: #9eb0d0; }
.verification-panel { max-width: 600px; padding: 34px; }
.verification-panel > p { font-size: 13px; color: var(--ui-muted); margin: 14px 0 24px; }
/* Existing administrator operations reuse the same surface/form system. */
.admin-nav { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 25px; }
.admin-nav .btn { border: 1px solid var(--ui-line); background: white; color: #8391a9; font-size: 10px; }
.admin-nav .btn:hover { border-color: #b8c9ef; color: var(--ui-accent); }
.panel > form > label { display: block; margin-top: 17px; margin-bottom: 17px; color: #6d7c96; font-size: 11px; }
.panel > form > label > .input, .panel > form > label > .select, .panel > form > label > .textarea { margin-top: 7px; }
.check { display: flex !important; align-items: center; gap: 9px; }
.panel > p { font-size: 12px; color: var(--ui-muted); margin-top: 9px; margin-bottom: 15px; line-height: 1.8; }
.panel pre { font-family: ui-monospace,SFMono-Regular,monospace; white-space: pre; font-size: 10px; color: var(--ui-muted); overflow: auto; max-height: 65vh; }
.panel > details { margin-top: 15px; color: var(--ui-muted); font-size: 11px; }
.panel summary { cursor: pointer; }
.panel > details > p { font-size: 10px; margin: 10px 0; }
.panel > form > input:not([type="hidden"]), .panel > form > textarea { margin: 10px 0; }
@media (max-width: 1050px) {
  .alert-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .creation-grid, .settings-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; }
  .creation-steps li:not(:last-child)::after { width: 20%; }
  .plans-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .header-inner { flex-wrap: wrap; padding: 16px 22px 10px; gap: 15px; }
  .brand { flex: 1; }
  .main-nav { order: 3; width: 100%; padding-top: 8px; border-top: 1px solid #eff2f7; gap: 7px; }
  .main-nav .nav-link { flex: 1; min-height: 39px; font-size: 12px; }
  .account-menu { min-width: 150px; }
  .account-identity strong { max-width: 110px; }
  .creation-grid, .settings-layout { grid-template-columns: minmax(0,1fr); }
  .creation-aside { display: grid; grid-template-columns: minmax(0,1fr); }
  .creation-aside .how-it-works { display: none; }
  .aside-plan { padding: 8px 4px 0; max-width: none; }
  .creation-steps li:not(:last-child)::after { width: 20%; right: 20px; }
  .detail-summary-grid { gap: 25px; grid-template-columns: minmax(0,1fr) auto; }
  .detail-summary-grid > div:first-child { grid-column: 1/-1; }
  .settings-aside { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 13px; }
  .header-inner { padding: 15px 20px 9px; gap: 15px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 10px; }
  .brand-mark .icon { width: 24px; height: 24px; }
  .brand-wordmark { font-size: 21px; }
  .brand-tagline { font-size: 8px; }
  .account-menu { min-width: 0; }
  .account-identity { display: none; }
  .account-menu summary { gap: 5px; }
  .account-menu summary > .icon { margin-left: 3px; }
  .account-avatar { width: 30px; height: 30px; font-size: 11px; }
  .app-main { padding: 27px 20px 37px; }
  .page-heading { margin-bottom: 23px; flex-wrap: wrap; }
  .page-heading h1 { font-size: 29px; }
  .page-description { font-size: 12px; line-height: 1.8; max-width: 300px; }
  .create-action { margin-top: 0; width: 100%; }
  .eyebrow { font-size: 8px; margin-bottom: 8px; }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 27px; }
  .overview-card { padding: 15px 14px 13px; border-radius: 12px; }
  .metric-label { font-size: 10px; }
  .metric-label > .icon { width: 14px; height: 14px; }
  .metric-value { font-size: 25px; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
  .metric-value > span { font-size: 13px; }
  .metric-value > .metric-tag { margin-left: 0; font-size: 8px; padding: 2px 5px; }
  .metric-footnote { font-size: 9px; line-height: 1.8; }
  .plan-overview { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 0 16px; align-items: center; }
  .plan-overview > .metric-label { grid-column: 1; }
  .plan-overview > .metric-label > .plan-symbol { display: none; }
  .plan-overview > div:nth-child(2) { grid-column: 2; grid-row: 1/3; }
  .plan-overview .metric-value { margin: 0; font-size: 21px; }
  .plan-overview .metric-footnote { margin-top: 5px; }
  .plan-details-link { width: 27px; height: 27px; }
  .list-hint { display: none; }
  .list-heading { margin-bottom: 15px; }
  .list-heading h2 { font-size: 16px; }
  .alert-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .alert-card { padding: 21px 21px 17px; border-radius: 13px; }
  .alert-card h3 { font-size: 17px; }
  .alert-category { font-size: 11px; }
  .alert-price { margin-top: 22px; }
  .alert-price > strong { font-size: 25px; }
  .alert-meta { font-size: 10px; }
  .alert-card-actions .btn { min-height: 42px; }
  .app-footer { flex-direction: column; align-items: flex-start; padding: 17px 20px 24px; gap: 10px; font-size: 9px; }
  .app-footer > div { gap: 11px; }
  .panel { padding: 21px; border-radius: 13px; }
  .panel-heading { gap: 10px; margin-bottom: 22px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 11px; }
  .section-index { width: 25px; height: 25px; font-size: 9px; }
  .creation-steps { padding-bottom: 23px; margin-bottom: 24px; gap: 5px; }
  .creation-steps li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .creation-steps li:not(:last-child)::after { top: 16px; width: calc(100% - 50px); left: 40px; right: auto; }
  .step-number { width: 31px; height: 31px; font-size: 11px; }
  .step-current .step-number { box-shadow: 0 0 0 4px #eaf0ff; }
  .creation-steps small { font-size: 7px; }
  .creation-steps strong { font-size: 9px; }
  .source-option { gap: 9px; padding: 12px 10px; }
  .source-option-icon { width: 32px; height: 32px; border-radius: 9px; }
  .source-option-icon .icon { width: 17px; height: 17px; }
  .source-option strong { font-size: 11px; }
  .source-option > div > span { font-size: 9px; }
  .coming-soon { padding: 3px 5px; font-size: 7px; }
  .field > label, legend { font-size: 11px; }
  .field-help { font-size: 10px; }
  .input, .select, .textarea, .panel input:not([type="checkbox"]):not([type="hidden"]) { font-size: 16px; height: 47px; padding-top: 10px; padding-bottom: 10px; }
  .input::placeholder, .panel input::placeholder { font-size: 12px; }
  .input-icon > .icon { top: 15px; }
  .input-suffix > span { top: 15px; }
  .form-actions { flex-wrap: wrap; padding-top: 17px; gap: 15px; }
  .form-actions > .btn { width: 100%; }
  .form-actions .privacy-note { order: 2; font-size: 9px; }
  .form-actions.wizard-enhancement { flex-direction: column-reverse; align-items: stretch; }
  .form-actions.wizard-enhancement > .back-link { align-self: center; }
  .selected-source { gap: 9px; }
  .selected-source strong { font-size: 11px; }
  .selected-source > .text-link { font-size: 9px; }
  .channel-choice { gap: 8px; padding: 12px 10px; }
  .channel-choice > .channel-choice-icon { display: none; }
  .channel-choice-copy > strong { font-size: 10px; }
  .channel-choice-copy > span { font-size: 8px; }
  .review-summary > div { grid-template-columns: minmax(0,1fr); padding: 14px 0; gap: 7px; }
  .review-summary dt { font-size: 10px; }
  .review-summary dd { font-size: 12px; padding-left: 22px; }
  .review-actions > div { flex-direction: column-reverse; align-items: stretch; width: 100%; }
  .review-actions > .btn { align-self: center; }
  .review-actions > div > .btn { width: 100%; }
  .preview-offer { grid-template-columns: 31px minmax(0,1fr); gap: 9px; }
  .preview-offer > strong { grid-column: 2; padding-top: 0; }
  .product-emblem { width: 31px; height: 31px; border-radius: 8px; }
  .preview-offer a { font-size: 11px; }
  .detail-summary-grid { gap: 25px 15px; }
  .detail-metric > strong { font-size: 23px; }
  .detail-metric > span { font-size: 9px; }
  .detail-metric > small { font-size: 8px; }
  .detail-source-label { font-size: 13px; }
  .page-heading > form { width: 100%; }
  .page-heading > form > .btn { width: 100%; }
  .history-tabs { margin-top: 24px; gap: 22px; }
  .history-tab { font-size: 12px; }
  .history-intro h2 { font-size: 15px; }
  .history-intro p { font-size: 10px; }
  .history-panel { padding: 0; }
  .offer-table, .offer-table tbody { display: block; }
  .offer-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .offer-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 19px; border-bottom: 1px solid var(--ui-line); gap: 15px; }
  .offer-table tr:last-child { border-bottom: 0; }
  .offer-table td { display: block; padding: 0; border: 0; }
  .offer-table td:first-child { grid-column: 1/-1; }
  .offer-product { gap: 10px; }
  .offer-product a { font-size: 12px; }
  .offer-product p { font-size: 10px; }
  .offer-price { grid-column: 1; margin-left: 41px; }
  .offer-price strong { font-size: 14px; }
  .offer-price small { font-size: 9px; }
  .offer-time { grid-column: 1; min-width: 0; margin-left: 41px; margin-top: 0; font-size: 10px; }
  .mobile-label { display: block; font-size: 8px; color: #9eaabd; font-weight: 400; margin-bottom: 3px; }
  .offer-external { grid-column: 2; grid-row: 2; align-self: center; }
  .offer-external > a { padding: 8px; display: inline-flex; }
  .empty-state { padding: 37px 20px; }
  .empty-state h2 { font-size: 21px; }
  .empty-state h3 { font-size: 17px; }
  .empty-state > p:not(.eyebrow) { font-size: 11px; }
  .empty-fine-print { font-size: 9px; }
  .dashboard-empty .eyebrow { font-size: 8px; }
  .dashboard-empty > .btn { width: 100%; }
  .settings-channel { gap: 10px; }
  .settings-channel > .channel-copy { min-width: 100px; }
  .channel-copy > strong { font-size: 10px; }
  .settings-channel .status-badge { font-size: 8px; }
  .settings-channel > form { margin-left: 0; }
  .settings-channel > form > .btn { min-height: 40px; width: 100%; }
  .plans-section .list-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .plans-section .list-heading > p { max-width: none; text-align: left; }
  .plans-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .plan-tile { padding: 20px; }
  .plan-persona { min-height: 0; }
  .plan-tile-features p { font-size: 10px; }
  .plan-current .filter-chip { font-size: 9px; }
  .admin-nav { gap: 6px; }
  .admin-nav .btn { min-height: 38px; font-size: 9px; }
  .panel pre { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Readability and touch-target baseline for the application, including mobile. */
.field-help, .panel-heading p, .metric-footnote, .alert-category, .alert-meta,
.help-disclosure, .help-disclosure p, .settings-aside p, .how-it-works > p,
.benefit-list p, .aside-plan > p, .history-intro p, .offer-product p,
.settings-channel .channel-copy > span, .preview-offer p { font-size:12px; }
.alert-card h3 { font-size:17px; }
.field > label, legend, .channel-choice-copy > strong, .channel-copy > strong,
.benefit-list strong, .offer-product a, .preview-offer a, .review-summary dd,
.source-option strong { font-size:13px; }
.review-summary dt, .source-option > div > span, .channel-choice-copy > span,
.channel-copy > span, .plan-tile-features p, .plan-price small, .offer-time,
.selected-source > div > a, .selected-source > .text-link { font-size:11px; }
.status-badge, .filter-chip, .badge, .budget-badge, .coming-soon,
.empty-fine-print, .metric-value > .metric-tag { font-size:10px; }
.nav-link, .account-menu summary { min-height:44px; }
.metric-footnote { min-height:20px; }
@media(max-width:600px){
  .main-nav .nav-link { min-height:44px; }
  .metric-value { font-size:25px; }
  .metric-value > .metric-tag { font-size:9px; }
  .metric-footnote { font-size:11px; }
  .field-help, .panel-heading p, .history-intro p, .offer-product p,
  .preview-offer p, .source-option > div > span { font-size:11px; }
  .field > label, legend, .source-option strong, .review-summary dd,
  .offer-product a, .preview-offer a { font-size:12px; }
  .channel-choice-copy > strong, .channel-copy > strong { font-size:11px; }
  .coming-soon { font-size:9px; }
  .channel-choice { padding:14px 10px; }
  .btn, .btn-sm, .admin-nav .btn { min-height:44px; }
}

/* Informational copy remains comfortably readable on narrow screens. */
.notice-subtle p, .history-intro p, .preview-offer p, .help-disclosure p { font-size:12px; }
@media(max-width:600px){.notice-subtle p,.history-intro p,.preview-offer p,.help-disclosure p{font-size:12px}.budget-badge{font-size:10px}}
/* User-defined names and external filter labels must not widen the page. */
.filter-chip { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.brand-wordmark, .metric-value, .plan-price, .detail-source-label,
.offer-product a, .preview-offer a { min-width:0; overflow-wrap:anywhere; }

/* A quieter version of the original visual system. */
.header-inner { max-width:1180px; min-height:82px; }
.app-main { max-width:1180px; padding-top:36px; }
.account-identity > span { display:none; }
.account-menu { min-width:0; }
.account-identity strong { max-width:120px; }
.page-heading { align-items:center; margin-bottom:28px; }
.page-heading h1 { font-size:30px; }
.create-action { margin-top:0; }
.compact-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:30px; }
.compact-overview .overview-card { padding:21px 24px; min-height:135px; }
.compact-overview .metric-label { display:flex; align-items:center; justify-content:space-between; }
.compact-overview .metric-value { margin-top:15px; font-size:30px; }
.compact-overview .usage-progress { margin-top:14px; }
.plan-value { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.alert-card { padding:25px; }
.alert-card h3 { margin-top:18px; }
.alert-price { margin-top:22px; }
.alert-price > strong { font-size:26px; }
.alert-meta { justify-content:flex-end; margin-top:8px; }
.alert-card-actions { padding-top:18px; }
.dashboard-empty { grid-column:1/-1; padding:50px 24px; }
.dashboard-empty h2 { font-size:23px; margin-top:18px; }
.minimal-form { max-width:700px; margin:0 auto; }
.creation-main { max-width:960px; }
.creation-main > .page-heading,.creation-main > .back-link,.creation-main > .notice { max-width:700px; margin-left:auto; margin-right:auto; }
.creation-progress { display:flex; gap:30px; max-width:700px; margin:0 auto 24px; padding:0; list-style:none; }
.creation-progress li { display:flex; align-items:center; gap:9px; color:var(--ui-muted); font-size:13px; }
.creation-progress li > span { display:grid; place-items:center; width:27px; height:27px; border:1px solid var(--ui-line); border-radius:50%; background:#fff; font-size:12px; }
.creation-progress li[aria-current] { color:var(--ui-accent); font-weight:600; }
.creation-progress li[aria-current] > span { background:var(--ui-accent); color:#fff; border-color:var(--ui-accent); }
.source-panel,.preferences-panel { padding:32px; }
.source-intro { display:flex; align-items:center; gap:14px; margin-bottom:26px; }
.source-intro h2 { font-size:19px; }
.source-intro p { color:var(--ui-muted); font-size:13px; margin-top:4px; }
.source-panel .field { margin-top:0; }
.source-unavailable-message { font-size:13px; color:var(--ui-amber); margin:16px 0; }
.form-actions { margin-top:26px; padding-top:0; border:0; }
.selected-source { margin-bottom:24px; padding-bottom:22px; }
.selected-source strong { font-size:14px; }
.field { margin-top:22px; }
.channel-choice-copy > span { display:none; }
.channel-choices .field-help { margin-bottom:10px; }
.review-actions { justify-content:space-between; border:0; padding-top:8px; margin-top:26px; gap:12px; }
.preview-panel { margin-top:24px; }
.preview-offer { grid-template-columns:minmax(0,1fr) auto; }
.settings-layout { display:block; max-width:760px; }
.settings-layout .panel { padding:28px; }
.plans-section { margin-top:28px; }
.plans-section > h2 { font-size:15px; font-weight:600; padding:14px 0; }
.plans-grid { margin-top:16px; }
.history-note { font-size:12px; color:var(--ui-muted); margin:20px 0; }
@media(max-width:600px){
 .header-inner { padding:16px 20px 10px; }
 .app-main { padding-top:28px; }
 .page-heading { flex-wrap:nowrap; align-items:center; gap:12px; }
 .page-heading h1 { font-size:26px; }
 .create-action { width:auto; font-size:12px; white-space:nowrap; }
 .compact-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:24px; }
 .compact-overview .overview-card { padding:17px; min-height:117px; }
 .compact-overview .metric-value { font-size:27px; margin-top:12px; }
 .compact-overview .plan-overview { display:flex; justify-content:space-between; gap:16px; min-height:70px; }
 .compact-overview .plan-overview .metric-value { font-size:21px; margin:0; }
 .compact-overview .plan-value { gap:14px; }
 .alert-grid { grid-template-columns:minmax(0,1fr); }
 .source-panel,.preferences-panel { padding:23px; }
 .form-actions { flex-wrap:nowrap; }
 .form-actions > .btn { width:auto; }
 .review-actions { flex-direction:row; flex-wrap:wrap; }
 .review-actions > .btn { flex:1; align-self:auto; white-space:nowrap; font-size:12px; }
 .preview-offer > strong { grid-column:1; }
 .plans-grid { grid-template-columns:minmax(0,1fr); }
}

/* Supporting context, with the original visual richness and shorter copy. */
.page-description { font-size:14px; margin-top:9px; }
.compact-overview .overview-card { min-height:166px; }
.compact-overview .metric-footnote { margin-top:12px; font-size:12px; min-height:0; }
.compact-overview .plan-overview { display:block; }
.alert-meta { justify-content:space-between; }
.creation-main { max-width:1180px; }
.creation-main > .page-heading,.creation-main > .back-link,.creation-main > .notice,.creation-progress { max-width:none; }
.creation-workspace { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:26px; align-items:start; }
.creation-workspace .minimal-form { width:100%; max-width:none; }
.creation-context .panel { padding:25px; }
.creation-context h2 { font-size:20px; }
.context-benefits { list-style:none; padding:0; margin:22px 0 0; display:grid; gap:17px; }
.context-benefits li { display:flex; align-items:flex-start; gap:9px; font-size:13px; line-height:1.6; color:var(--ui-muted); }
.context-benefits .icon { width:16px; height:16px; color:var(--ui-green); margin-top:3px; }
.context-plan { padding:23px 8px; }
.context-plan > div { display:flex; justify-content:space-between; gap:12px; align-items:center; font-size:13px; }
.context-plan > div > span { color:var(--ui-muted); font-size:12px; }
.context-plan p { display:flex; align-items:center; gap:7px; color:var(--ui-muted); margin:12px 0; font-size:13px; }
.context-plan .icon { width:16px; height:16px; }
.context-plan > a { font-size:13px; }
.settings-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; max-width:none; align-items:start; }
.settings-plan h2 { margin-bottom:16px; }
.settings-plan .settings-plan-value { font-size:28px; color:var(--ui-ink); font-weight:650; }
.settings-plan-value > span { font-size:13px; color:var(--ui-muted); font-weight:400; }
.settings-plan .text-link { font-size:13px; }
.app-footer { max-width:1180px; width:100%; margin:auto auto 0; padding:25px 28px; border-top:1px solid var(--ui-line); font-size:12px; gap:20px; }
.app-footer > div { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-brand { color:var(--ui-ink); font-size:16px; font-weight:700; letter-spacing:-.04em; }
.footer-links a { color:var(--ui-muted); }
.footer-links a:hover { color:var(--ui-accent); }
.footer-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px 16px; }
.legal-page { width:min(100%,760px); margin:0 auto 64px; color:var(--ui-ink); font-size:15px; line-height:1.75; }
.legal-page p,.legal-page ul { margin:0 0 18px; }
.legal-page h2 { margin:32px 0 10px; font-size:20px; line-height:1.35; }
.legal-page ul { padding-left:22px; }
.legal-page li { margin:0 0 10px; }
.legal-page a { color:var(--ui-accent); text-decoration:underline; text-underline-offset:3px; }
.legal-updated { color:var(--ui-muted); font-size:12px; }
.legal-details { border:1px solid var(--ui-line); border-radius:16px; overflow:hidden; margin:16px 0 26px; }
.legal-details > div { display:grid; grid-template-columns:190px minmax(0,1fr); gap:16px; padding:11px 16px; }
.legal-details > div + div { border-top:1px solid var(--ui-line); }
.legal-details dt { font-weight:650; }
.legal-details dd { margin:0; overflow-wrap:anywhere; }
.legal-table-wrap { overflow-x:auto; margin:16px 0 24px; }
.legal-table { width:100%; border-collapse:collapse; text-align:left; }
.legal-table th,.legal-table td { border:1px solid var(--ui-line); padding:10px 12px; vertical-align:top; }
@media(max-width:900px){
 .creation-workspace,.settings-layout { grid-template-columns:minmax(0,1fr); }
 .creation-context { display:none; }
 .settings-plan { max-width:none; }
}
@media(max-width:600px){
 .page-description { font-size:13px; max-width:250px; }
 .compact-overview .overview-card { min-height:146px; }
 .compact-overview .metric-footnote { font-size:11px; line-height:1.6; }
 .compact-overview .plan-overview { display:grid; grid-template-columns:minmax(0,1fr) auto; min-height:95px; gap:6px 12px; }
 .compact-overview .plan-overview .metric-footnote { grid-column:1/-1; margin:0; }
 .compact-overview .plan-overview > .plan-value { grid-column:2; grid-row:1; }
 .app-footer { padding:22px 20px; align-items:flex-start; }
 .app-footer .footer-links { gap:14px; }
 .legal-details > div { grid-template-columns:1fr; gap:2px; }
}

/* Shared public and signed-in discovery homepage. */
.discovery-main { padding-top:28px; }
.discovery-hero { display:grid; grid-template-columns:1.25fr 1fr; gap:64px; align-items:center; padding:48px 58px; border:1px solid #dce5f0; border-radius:24px; background:radial-gradient(ellipse at 12% 100%,#dfeafa,transparent 65%),#edf2f8; }
.discovery-kicker { font-size:10px; font-weight:700; letter-spacing:.13em; color:#526883; }
.discovery-hero h1 { font-size:clamp(36px,4.3vw,56px); letter-spacing:-.055em; line-height:1.08; margin:18px 0; color:#182a46; }
.discovery-hero h1 span { color:#315ce7; }
.discovery-hero-copy > p:not(.discovery-kicker) { font-size:15px; color:#586a82; max-width:380px; line-height:1.8; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }
.hero-notes { display:flex; gap:18px; flex-wrap:wrap; margin-top:23px; color:#526883; font-size:11px; }
.hero-notes span { display:inline-flex; align-items:center; gap:6px; }
.hero-notes .icon { width:14px; height:14px; }
.hero-find { display:block; min-width:0; padding:20px; border:1px solid #e6ebf1; background:#fff; border-radius:18px; color:var(--ui-ink); box-shadow:0 14px 35px #223c6310; transform:rotate(2deg); }
.hero-find:hover { color:var(--ui-ink); border-color:#b5c5e4; }
.hero-find-top { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:9px; font-weight:700; letter-spacing:.12em; color:#637089; }
.deal-discount { display:inline-block; padding:5px 9px; border-radius:6px; background:#eaf5ed; color:#22643b; font-size:12px; font-weight:750; letter-spacing:0; }
.hero-product-image { height:205px; display:grid; place-items:center; margin:8px 0; }
.hero-product-image img { width:100%; height:100%; max-height:205px; object-fit:contain; }
.hero-product-image > .icon { width:85px; height:85px; color:#8ca2bf; }
.hero-product-copy > span { color:var(--ui-muted); font-size:10px; }
.hero-product-copy h2 { font-size:14px; margin:5px 0 12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-product-bottom { display:flex; align-items:center; justify-content:space-between; }
.hero-product-prices { display:flex; flex-direction:column; }
.hero-product-bottom strong, .deal-prices strong { color:#14532d; }
.hero-product-bottom strong { font-size:23px; letter-spacing:-.04em; }
.hero-product-bottom small { font-size:11px; letter-spacing:0; }
.round-arrow { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#edf2ff; color:#315ce7; }
.hero-watch-art { position:relative; min-height:300px; display:grid; place-items:center; }
.watch-orbit { position:absolute; width:230px; height:230px; border:1px solid #c6d5e9; border-radius:50%; }
.orbit-two { width:300px; height:300px; border-style:dashed; }
.watch-center { display:grid; place-items:center; width:150px; height:150px; border-radius:50%; background:#dce6f6; color:#315ce7; }
.watch-center .icon { width:80px; height:80px; }
.watch-caption { position:absolute; bottom:-12px; font-size:11px; color:#526883; }
.discovery-section,.home-watchlist { margin-top:50px; scroll-margin-top:25px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:22px; }
.section-heading h2 { font-size:27px; line-height:1.25; letter-spacing:-.045em; margin-top:7px; }
.section-heading p:not(.discovery-kicker) { margin-top:8px; color:var(--ui-muted); font-size:12px; }
.deal-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.deal-card { display:flex; flex-direction:column; min-width:0; border:1px solid #e3e7ee; border-radius:14px; background:white; overflow:hidden; }
.deal-card:hover { border-color:#bdcbe0; box-shadow:0 6px 20px #1c2b5008; }
.deal-image { height:200px; position:relative; display:flex; align-items:center; justify-content:center; padding:23px; border-bottom:1px solid #f0f2f6; }
.deal-image img { width:100%; height:100%; object-fit:contain; }
.deal-image .deal-discount { position:absolute; top:12px; left:12px; }
.deal-image-placeholder { display:flex; flex-direction:column; gap:10px; align-items:center; color:#8391a5; font-size:10px; }
.deal-image-placeholder .icon { width:50px; height:50px; }
.deal-copy { display:flex; flex-direction:column; flex:1; padding:16px; }
.deal-category-label { color:#6b778b; font-size:10px; }
.deal-copy h3 { font-size:13px; line-height:1.6; margin:6px 0 15px; }
.deal-copy h3 a { color:#24354e; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.deal-prices { display:flex; flex-direction:column; margin-top:auto; }
.deal-reference { color:#768196; font-size:10px; margin-bottom:3px; }
.deal-reference s { margin-left:3px; }
.deal-prices strong { font-size:22px; letter-spacing:-.04em; line-height:1.4; }
.deal-prices small { font-size:10px; font-weight:550; letter-spacing:0; }
.deal-condition-note,.deal-condition { color:#69758a; font-size:10px; margin-top:8px; }
.deal-condition summary { cursor:pointer; }
.deal-condition p { max-height:130px; overflow:auto; margin-top:8px; overflow-wrap:anywhere; }
.deal-shop-link { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid #edf0f5; margin-top:15px; padding-top:13px; font-size:11px; font-weight:600; }
.deal-shop-link .icon { width:14px; height:14px; }
.discovery-price-note { font-size:10px; color:var(--ui-muted); margin-top:14px; }
.discovery-categories { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:12px; }
.discovery-category { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px 12px; border:1px solid #e2e7f0; border-radius:13px; background:#fff; text-align:center; color:var(--ui-ink); }
.discovery-category:hover,.discovery-category.is-selected { border-color:#91a7e2; background:#f1f5ff; }
.category-image { display:grid; place-items:center; width:76px; height:76px; border-radius:50%; overflow:hidden; background:white; margin-bottom:14px; }
.category-image img { width:62px; height:62px; object-fit:contain; }
.category-image .icon { color:#8197ba; width:30px; height:30px; }
.discovery-category strong { font-size:12px; line-height:1.5; }
.discovery-category > span:last-child { display:flex; align-items:center; gap:5px; margin-top:5px; color:#71809a; font-size:10px; }
.discovery-category .icon { width:13px; height:13px; }
.category-empty { padding:24px; border:1px dashed #cdd6e5; border-radius:12px; color:var(--ui-muted); }
.section-symbol { display:grid; place-items:center; width:40px; height:40px; background:#edf2ff; border-radius:12px; color:#315ce7; }
.discovery-alert-banner { display:flex; align-items:center; gap:25px; margin-top:55px; border:1px solid #dce5f0; border-radius:18px; background:#eaf0fa; padding:32px; }
.discovery-alert-banner h2 { font-size:25px; margin:5px 0 8px; }
.discovery-alert-banner p:not(.discovery-kicker) { color:#5b6c85; font-size:12px; max-width:520px; }
.discovery-alert-banner > .btn { margin-left:auto; }
.banner-radar { display:grid; place-items:center; width:68px; height:68px; border-radius:18px; background:#dbe5fa; color:#315ce7; flex-shrink:0; }
.banner-radar .icon { width:32px; height:32px; }
.discovery-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:50px; }
.discovery-steps article > span { font-size:12px; font-weight:650; color:#315ce7; display:block; border-top:1px solid #dce3ee; padding-top:18px; margin-bottom:14px; }
.discovery-steps h3 { font-size:15px; margin-bottom:8px; }
.discovery-steps p { color:#68768e; font-size:12px; line-height:1.8; }
.discovery-how { padding-bottom:20px; }
.home-alert-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.home-alert { display:flex; align-items:center; gap:12px; padding:17px; background:#fff; border:1px solid #e2e7f0; border-radius:12px; color:var(--ui-ink); min-width:0; }
.home-alert > span:nth-child(2) { min-width:0; flex:1; }
.home-alert strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.home-alert small { display:block; margin-top:3px; font-size:10px; color:var(--ui-muted); }
.home-alert-icon { color:#627eac; }
.home-alert .status-badge { font-size:9px; padding:3px 6px; }
.home-alert-empty { grid-column:1/-1; color:var(--ui-muted); padding:22px; background:white; border:1px solid var(--ui-line); border-radius:12px; }
.discovery-pagination { display:flex; justify-content:center; align-items:center; gap:18px; margin-top:22px; color:var(--ui-muted); font-size:12px; }
.discovery-empty { padding:45px 20px; text-align:center; border:1px dashed #cdd6e5; border-radius:15px; background:#fff; }
.discovery-empty .empty-icon { margin:0 auto 15px; }
.discovery-empty p { color:var(--ui-muted); max-width:470px; margin:10px auto 20px; }
.footer-disclaimer { font-size:10px; color:#718097; max-width:450px; margin-top:7px; }
.discovery-snapshot-note { margin:8px 0 18px; color:var(--ui-muted); font-size:12px; line-height:1.5; }
.cookie-notice { position:fixed; z-index:30; left:50%; bottom:16px; transform:translateX(-50%); width:min(720px,calc(100vw - 28px)); display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border:1px solid var(--ui-line); border-radius:14px; background:var(--ui-surface); color:var(--ui-ink); box-shadow:0 12px 36px #17244224; font-size:13px; line-height:1.55; }
.cookie-notice p { margin:0; }
.cookie-notice a { color:var(--ui-accent); text-decoration:underline; text-underline-offset:2px; }
.cookie-notice-accept { flex:none; border:1px solid var(--ui-line); border-radius:9px; padding:8px 12px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.cookie-notice-accept:hover { background:var(--ui-bg); }
@media(max-width:600px) { .cookie-notice { bottom:10px; align-items:flex-start; gap:10px; padding:12px; font-size:12px; } }
@media(min-width:801px) { .header-inner > .main-nav { margin:0; }.header-inner > .discovery-nav { margin-left:auto; } }
@media(max-width:1050px) { .discovery-hero { padding:35px;gap:35px; }.header-inner .nav-link { padding:9px 10px; }.header-inner .account-menu { min-width:0; }.header-inner .account-identity { display:none; }.home-alert-grid { grid-template-columns:1fr; } }
@media(max-width:800px) { .discovery-hero { grid-template-columns:1.2fr 1fr; gap:25px; padding:28px; }.discovery-hero h1 { font-size:38px; }.hero-product-image { height:150px; }.hero-product-image img { max-height:150px; }.deal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.discovery-alert-banner { flex-wrap:wrap; }.discovery-alert-banner > .btn { margin-left:0; }.discovery-steps { gap:25px; }.main-nav.discovery-nav { border-top:0; padding-top:0; } }
@media(max-width:600px) { .discovery-main { padding-top:18px; }.discovery-hero { grid-template-columns:1fr; padding:28px 23px; border-radius:18px; gap:28px; }.discovery-hero h1 { font-size:41px; }.discovery-hero-copy > p:not(.discovery-kicker) { font-size:13px; }.hero-find { transform:none; }.hero-product-image { height:170px; }.hero-product-image img { max-height:170px; }.returning-hero .hero-find { display:none; }.hero-watch-art { display:none; }.hero-notes { gap:10px; font-size:10px; }.discovery-section,.home-watchlist { margin-top:35px; }.section-heading { flex-wrap:wrap; gap:12px; }.section-heading h2 { font-size:24px; }.deal-grid { gap:10px; }.deal-image { height:155px; padding:16px; }.deal-image .deal-discount { top:8px;left:8px; font-size:10px;padding:3px 6px; }.deal-copy { padding:12px; }.deal-copy h3 { font-size:12px; }.deal-prices strong { font-size:19px; }.deal-reference { font-size:9px; }.discovery-categories { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.discovery-category { padding:16px 10px; }.discovery-alert-banner { padding:24px; gap:18px; }.discovery-alert-banner h2 { font-size:23px; }.banner-radar { width:44px;height:44px; border-radius:12px; }.banner-radar .icon { width:24px;height:24px; }.discovery-steps { grid-template-columns:1fr; gap:22px; }.discovery-kicker { font-size:9px; }.home-watchlist .text-link { font-size:11px; }.footer-disclaimer { max-width:290px; } }
@media(max-width:360px) { .deal-grid { grid-template-columns:1fr; }.hero-actions { flex-direction:column; }.discovery-hero h1 { font-size:35px; } }
.image-fallback { display:grid; place-items:center; color:#8197ba; }
.image-fallback > .icon { width:48px; height:48px; }
.category-image .image-fallback > .icon { width:27px; height:27px; }
[data-product-image] img:not([hidden]) ~ .image-fallback { display:none; }
.returning-hero { padding:30px 45px; }
.returning-hero h1 { font-size:42px; }
.returning-hero .hero-product-image,.returning-hero .hero-product-image img { height:125px; }
@media(max-width:600px) { .returning-hero { padding:25px 23px; }.returning-hero h1 { font-size:35px; } }
@media(max-width:800px) { .header-inner .discovery-nav { overflow-x:auto; justify-content:flex-start; gap:2px; }.discovery-nav .nav-link { flex:0 0 auto; min-width:0; padding:8px 9px; font-size:11px; gap:5px; } }

.price-history{padding:24px;display:grid;gap:20px;min-width:0}.price-history h2{font-size:1.4rem;font-weight:700}.price-history-chart{display:block;width:100%;height:auto;color:#337264}.price-history-chart text{font-size:13px;fill:currentColor}.price-history-table{overflow-x:auto}.price-history-table table{min-width:680px}.price-history figure p{font-size:.85rem}

.discovery-search { margin:28px 0 0; }
.discovery-search label { display:block; font-weight:650; margin-bottom:10px; }
.discovery-search-controls { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.discovery-search-controls .input { flex:1 1 260px; min-width:0; width:100%; }
.discovery-search > p { margin-top:8px; color:var(--ui-muted); font-size:12px; }
@media(max-width:600px) { .discovery-search-controls .input { flex-basis:100%; }.discovery-search-controls .btn { width:100%; } }

.alert-limit-banner { background: #fff9ec; border-bottom: 1px solid #f2e6cc; color: #795b28; }
.alert-limit-banner-inner { max-width: 1180px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alert-limit-banner strong { font-size: 13px; font-weight: 600; }
.alert-limit-banner p { margin: 3px 0 0; font-size: 12px; }
@media (max-width: 600px) { .alert-limit-banner-inner { padding: 14px 20px; flex-wrap: wrap; } }

.plan-action { margin-top: 18px; }
.plan-action .btn { width: 100%; }

.admin-users-table { overflow-x: auto; }
.admin-users-table table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-users-table th, .admin-users-table td { padding: 1rem; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.admin-users-table td > form { margin-top: .5rem; }
.admin-users-table details form { min-width: 260px; padding: 1rem 0; }
.impersonation-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
