:root {
    --ink: #13211d;
    --muted: #65736d;
    --paper: #f4f2eb;
    --card: #fffef9;
    --line: #dcded5;
    --forest: #0c2721;
    --forest-2: #164037;
    --lime: #b8f552;
    --lime-soft: #ecffd0;
    --orange: #f47d4d;
    --red: #b42318;
    --blue: #2867d6;
    --shadow: 0 22px 70px rgba(18, 40, 33, .10);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hidden { display: none !important; }
.page-glow { position: fixed; z-index: -1; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: .18; }
.page-glow-one { top: -180px; right: -180px; background: var(--lime); }
.page-glow-two { bottom: -260px; left: -200px; background: #75a9ff; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 1.08rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.brand-light { color: #fff; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--lime); color: var(--forest); transform: rotate(-7deg); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.brand-mark span { transform: rotate(7deg); font-size: .95rem; }

.eyebrow { margin: 0 0 8px; color: #4f675f; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-size: .88rem; font-weight: 760; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-large { min-height: 54px; padding-inline: 25px; border-radius: 14px; }
.button-primary { background: var(--forest); color: white; box-shadow: 0 10px 22px rgba(12, 39, 33, .16); }
.button-primary:hover:not(:disabled) { background: var(--forest-2); box-shadow: 0 13px 28px rgba(12,39,33,.22); }
.button-secondary { border-color: #c7cec7; background: white; }
.button-secondary:hover:not(:disabled), .button-ghost:hover:not(:disabled) { border-color: #9ba9a2; background: #f9faf6; }
.button-ghost { border-color: var(--line); background: transparent; }
.full-width { width: 100%; }
.align-right { display: flex; margin: 22px 0 0 auto; }
.text-button { padding: 0; border: 0; background: none; color: #315d52; cursor: pointer; font-size: .83rem; font-weight: 750; text-decoration: underline; text-decoration-color: #a7b8b1; text-underline-offset: 4px; }
.text-button.danger { color: var(--red); }
.inline-link { display: inline-block; margin-top: 12px; }

.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(420px, 1.03fr) minmax(460px, .97fr); background: #eef0e9; }
.auth-visual { position: relative; display: flex; min-height: 100svh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(30px, 5vw, 72px); background: var(--forest); color: white; }
.auth-visual::before { content: ""; position: absolute; width: 540px; height: 540px; right: -130px; top: 16%; border: 1px solid rgba(184,245,82,.20); border-radius: 50%; box-shadow: 0 0 0 80px rgba(184,245,82,.035), 0 0 0 160px rgba(184,245,82,.025); }
.auth-visual::after { content: ""; position: absolute; left: 36%; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent, rgba(255,255,255,.09), transparent); transform: rotate(26deg); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-pitch { max-width: 650px; margin: auto 0; padding: 70px 0; }
.auth-pitch .eyebrow { color: var(--lime); }
.auth-pitch h1 { margin: 0 0 24px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.5rem, 6vw, 6.5rem); font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.auth-pitch h1 em, .hero h1 em { color: var(--lime); font-weight: 500; }
.auth-pitch > p:last-child { max-width: 510px; color: #b9c8c2; font-size: 1.03rem; line-height: 1.7; }
.proof-card { align-self: flex-end; width: min(330px, 90%); padding: 21px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.proof-card .proof-label { display: block; color: #a9bbb4; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.proof-card strong { display: block; margin: 7px 0 13px; color: var(--lime); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.proof-card small { color: #9cafaa; }
.proof-bars { display: flex; align-items: end; gap: 5px; height: 36px; margin-bottom: 10px; }
.proof-bars i { flex: 1; border-radius: 4px 4px 1px 1px; background: #78958b; }
.proof-bars i:nth-child(1), .proof-bars i:nth-child(7) { height: 20%; }
.proof-bars i:nth-child(2), .proof-bars i:nth-child(6) { height: 44%; }
.proof-bars i:nth-child(3), .proof-bars i:nth-child(5) { height: 74%; background: #9ccf65; }
.proof-bars i:nth-child(4) { height: 100%; background: var(--lime); }

.auth-panel { display: grid; place-items: center; padding: 40px; }
.auth-card { position: relative; width: min(440px, 100%); padding: clamp(30px, 4vw, 48px); border: 1px solid rgba(22,64,55,.1); border-radius: 26px; background: rgba(255,254,249,.91); box-shadow: var(--shadow); }
.secure-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: #477065; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6bbd31; box-shadow: 0 0 0 4px rgba(107,189,49,.14); }
.auth-card h2 { margin: 0 0 13px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 27px; color: var(--muted); line-height: 1.65; }
.stack-form { display: grid; gap: 10px; }
.stack-form label, .field-group label { font-size: .77rem; font-weight: 760; }
.stack-form input, .field-group input, .inline-form input { width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid #cad0c9; border-radius: 13px; outline: none; background: #fff; transition: box-shadow .2s, border-color .2s; }
.stack-form input:focus, .field-group input:focus, .inline-form input:focus { border-color: #548377; box-shadow: 0 0 0 4px rgba(84,131,119,.13); }
.stack-form .button { margin-top: 9px; }
.auth-card .text-button { display: block; margin: 22px auto 0; }
.security-note { display: flex; gap: 11px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: #78827e; font-size: .72rem; line-height: 1.5; }
.security-note > span:first-child { color: #63914b; font-size: 1rem; }
.auth-error { position: fixed; right: 24px; bottom: 24px; max-width: 400px; padding: 14px 18px; border: 1px solid #f2b8b5; border-radius: 12px; background: #fff1f0; color: var(--red); box-shadow: var(--shadow); font-size: .82rem; }
.back-button { position: absolute; top: 22px; left: 22px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.code-input { font-size: 1.45rem !important; font-weight: 800; letter-spacing: .25em; text-align: center; }
.dev-code { margin: -10px 0 18px; padding: 10px 13px; border-radius: 10px; background: #fff4cc; color: #69500a; font-family: ui-monospace, monospace; font-size: .78rem; }

.app-shell { min-height: 100vh; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(40,62,53,.11); background: rgba(244,242,235,.88); backdrop-filter: blur(18px); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.credits-chip { display: inline-flex; align-items: center; gap: 8px; height: 37px; padding: 0 13px; border: 1px solid #d2d7cf; border-radius: 999px; background: #fff; cursor: pointer; color: #4f5f59; font-size: .75rem; font-weight: 700; }
.credits-chip span { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--lime); color: var(--forest); font-size: .67rem; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d2d7cf; border-radius: 11px; background: #fff; cursor: pointer; font-size: 1.2rem; }
.user-menu { position: relative; }
.avatar-button { display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: var(--forest); color: var(--lime); cursor: pointer; font-size: .72rem; font-weight: 800; }
.menu-popover { position: absolute; top: 47px; right: 0; width: 190px; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 16px 45px rgba(19,33,29,.16); }
.menu-label { display: block; padding: 9px; color: var(--muted); font-size: .71rem; }
.menu-popover button { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: #f3f5f1; cursor: pointer; text-align: left; font-size: .78rem; font-weight: 700; }

main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 80px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 80px; padding: clamp(52px, 7vw, 90px) 0 48px; }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6vw, 5.65rem); font-weight: 500; letter-spacing: -.065em; line-height: .93; }
.hero h1 em { color: #376d5f; }
.hero-copy { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.privacy-badge { display: flex; align-items: center; gap: 14px; max-width: 340px; margin-bottom: 9px; padding: 15px 17px; border: 1px solid #d4d9d1; border-radius: 15px; background: rgba(255,255,255,.5); }
.privacy-badge > span:first-child { display: grid; flex: 0 0 auto; width: 37px; height: 37px; place-items: center; border-radius: 10px; background: var(--lime-soft); color: #477052; }
.privacy-badge strong, .privacy-badge small { display: block; }
.privacy-badge strong { margin-bottom: 3px; font-size: .75rem; }
.privacy-badge small { color: #78837d; font-size: .67rem; line-height: 1.4; }

.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 27px; padding: 0; border: 1px solid #d9dcd4; border-radius: var(--radius-lg); background: rgba(255,255,255,.5); list-style: none; overflow: hidden; }
.stepper li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 14px 20px; color: #8a928e; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; top: 20px; right: 0; bottom: 20px; width: 1px; background: #d9dcd4; }
.stepper li > span { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border: 1px solid #c4cac4; border-radius: 50%; background: #fff; font-size: .7rem; font-weight: 800; }
.stepper strong, .stepper small { display: block; }
.stepper strong { font-size: .77rem; }
.stepper small { margin-top: 3px; font-size: .65rem; }
.stepper li.active { color: var(--ink); background: #fffef9; }
.stepper li.active > span { border-color: var(--forest); background: var(--forest); color: var(--lime); box-shadow: 0 0 0 5px rgba(12,39,33,.07); }
.stepper li.complete { color: #426157; }
.stepper li.complete > span { border-color: #95cf47; background: var(--lime); color: var(--forest); }
.stepper li.complete > span { font-size: 0; }
.stepper li.complete > span::after { content: "✓"; font-size: .75rem; }

.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; align-items: start; }
.workspace-card { min-height: 600px; border: 1px solid #daddd4; border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow); }
.panel { display: none; padding: clamp(27px, 4vw, 52px); }
.panel.active { display: block; animation: panel-in .28s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } }
.panel-heading, .result-heading { display: flex; justify-content: space-between; gap: 25px; margin-bottom: 31px; }
.panel-heading > div:first-child { max-width: 620px; }
.panel-heading h2, .result-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 500; letter-spacing: -.045em; }
.panel-heading p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.section-number { float: left; margin: 2px 13px 0 0; color: #9aa49e; font-family: ui-monospace, monospace; font-size: .72rem; }
.provider-pill, .selected-item-tag { align-self: start; max-width: 240px; padding: 8px 11px; border: 1px solid #d9dfd7; border-radius: 999px; color: #5f6f69; background: #f7f8f4; font-size: .65rem; font-weight: 700; text-align: center; }
.capture-zone { position: relative; display: flex; min-height: 315px; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 28px; border: 1.5px dashed #abb8b0; border-radius: 20px; background: radial-gradient(circle at 50% 10%, #fff, #f5f6f1); cursor: pointer; text-align: center; }
.capture-zone:hover { border-color: #568274; background: #f8faf5; }
.capture-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.capture-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capture-zone:has(.capture-preview:not(.hidden))::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(7,24,20,.72)); }
.capture-zone:has(.capture-preview:not(.hidden)) > strong, .capture-zone:has(.capture-preview:not(.hidden)) > small, .capture-zone:has(.capture-preview:not(.hidden)) > .button { position: relative; z-index: 2; color: white; transform: translateY(83px); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.capture-zone:has(.capture-preview:not(.hidden)) > .button { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.14); }
.camera-icon { display: grid; width: 70px; height: 70px; place-items: center; margin-bottom: 17px; border-radius: 22px; background: var(--forest); color: var(--lime); box-shadow: 0 10px 24px rgba(12,39,33,.18); font-size: 2rem; }
.capture-zone > strong { margin-bottom: 7px; font-size: 1rem; }
.capture-zone > small { margin-bottom: 20px; color: #78827d; font-size: .72rem; }
.capture-zone .button { pointer-events: none; }
.field-group { display: grid; gap: 9px; margin-top: 21px; }
.field-group label { display: flex; justify-content: space-between; }
.field-group label span { color: #929b96; font-size: .66rem; font-weight: 500; }

.candidate-list { display: grid; gap: 12px; }
.candidate-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 15px; width: 100%; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: left; transition: border .18s, transform .18s, box-shadow .18s; }
.candidate-card:hover { transform: translateY(-1px); border-color: #9bb1a8; box-shadow: 0 8px 22px rgba(24,47,39,.07); }
.candidate-card.selected { border-color: #4c786b; background: #f8fff0; box-shadow: inset 0 0 0 1px #4c786b; }
.candidate-radio { width: 21px; height: 21px; border: 1.5px solid #aab2ae; border-radius: 50%; background: white; }
.candidate-card.selected .candidate-radio { border: 6px solid var(--forest); }
.candidate-body { min-width: 0; }
.candidate-body strong, .candidate-body small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.candidate-body strong { margin-bottom: 5px; font-size: .88rem; }
.candidate-body small { color: var(--muted); font-size: .7rem; }
.confidence-pill { padding: 7px 9px; border-radius: 999px; background: #eef2eb; color: #4e6c61; font-size: .63rem; font-weight: 760; }
.panel-actions { display: flex; justify-content: space-between; gap: 15px; margin-top: 30px; }
.panel-actions.full { grid-column: 1 / -1; }

.valuation-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 18px; }
.valuation-form > label { display: grid; gap: 8px; color: #4d5d57; font-size: .72rem; font-weight: 750; }
.money-input { display: flex; align-items: center; min-height: 50px; overflow: hidden; border: 1px solid #d0d5ce; border-radius: 12px; background: white; }
.money-input:focus-within { border-color: #548377; box-shadow: 0 0 0 4px rgba(84,131,119,.11); }
.money-input b { padding-left: 15px; color: #7b8681; font-size: .79rem; }
.money-input input { width: 100%; min-width: 0; height: 48px; padding: 0 14px 0 8px; border: 0; outline: 0; background: transparent; font-weight: 700; }
.money-input.suffix input { padding-left: 14px; }
.money-input.suffix b { padding: 0 15px 0 0; }
.form-footnote { grid-column: 1 / -1; margin: 5px 0 0; padding: 12px 14px; border-left: 3px solid #a9c778; background: #f4f8eb; color: #6c786f; font-size: .68rem; line-height: 1.55; }

.value-hero { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding: clamp(24px, 4vw, 38px); border-radius: 20px; background: var(--forest); color: #fff; overflow: hidden; }
.value-hero > div:first-child > span, .value-hero small { display: block; color: #a9bcb5; font-size: .72rem; }
.value-hero > div:first-child > strong { display: block; margin: 6px 0 4px; color: var(--lime); font-family: Georgia, serif; font-size: clamp(3.3rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.06em; }
.confidence-ring { display: grid; width: 106px; height: 106px; place-content: center; border: 8px solid rgba(184,245,82,.16); border-top-color: var(--lime); border-right-color: #86b947; border-radius: 50%; text-align: center; transform: rotate(20deg); }
.confidence-ring > * { transform: rotate(-20deg); }
.confidence-ring span { color: var(--lime); font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.confidence-ring small { line-height: 1.2; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.metric-card.accent { border-color: #aacf79; background: var(--lime-soft); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: .67rem; }
.metric-card strong { display: block; margin: 7px 0 4px; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.evidence-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 14px; }
.evidence-header h3 { margin: 0; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.comparable-list { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; }
.comparable-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; background: #fff; }
.comparable-row + .comparable-row { border-top: 1px solid #e6e8e2; }
.comparable-row > div:first-child { min-width: 0; }
.comparable-row strong, .comparable-row small { display: block; }
.comparable-row > div:first-child strong { overflow: hidden; margin-bottom: 4px; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.comparable-row small { color: var(--muted); font-size: .63rem; }
.comparable-price { flex: 0 0 auto; text-align: right; }
.comparable-price strong { font-size: .83rem; }
.rejected-list { margin-top: 12px; opacity: .74; }
.rejected-list .comparable-row { background: #faf8f4; }
.rejected-list .comparable-row > div:first-child small { color: #a04c3c; }
.method-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f0f2ec; color: #6f7b75; font-size: .65rem; line-height: 1.5; }

.sidebar { display: grid; gap: 18px; }
.side-card { padding: 23px; border: 1px solid #dadeD6; border-radius: var(--radius-lg); background: rgba(255,255,255,.62); }
.dark-card { border-color: var(--forest); background: var(--forest); color: white; }
.side-icon { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 22px; border-radius: 11px; background: rgba(184,245,82,.13); color: var(--lime); }
.side-icon.pale { flex: 0 0 auto; margin: 0; background: #edf3ea; color: #497165; }
.side-card .eyebrow { color: #87a49a; }
.side-card h3 { margin: 0 0 17px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; line-height: 1.15; }
.dark-card ul { display: grid; gap: 12px; margin: 0; padding: 17px 0 0; border-top: 1px solid rgba(255,255,255,.12); list-style: none; }
.dark-card li { display: flex; gap: 9px; color: #b8c7c1; font-size: .7rem; line-height: 1.4; }
.dark-card li span { color: var(--lime); }
.side-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.side-card-heading h3 { margin: 0; font-size: 1.15rem; }
.service-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #e0e3dc; }
.service-logo { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-size: .78rem; font-weight: 850; }
.service-logo.ebay { background: #edf1ff; color: #3f65d3; }
.service-logo.lens { background: #fff1e7; color: #d46238; }
.service-logo.pay { background: #eaffdf; color: #397238; }
.service-row > div { min-width: 0; flex: 1; }
.service-row strong, .service-row small { display: block; }
.service-row strong { font-size: .74rem; }
.service-row small { overflow: hidden; margin-top: 2px; color: #7e8984; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.service-row > i { width: 7px; height: 7px; border-radius: 50%; background: #c6cbc7; }
.service-row > i.online { background: #78bc3e; box-shadow: 0 0 0 4px rgba(120,188,62,.12); }
.side-card .full-width { margin-top: 16px; }
.side-quote { padding: 22px; border-left: 3px solid #b3d66d; color: #66746d; font-family: Georgia, serif; font-size: 1rem; font-style: italic; line-height: 1.55; }
.side-quote p { margin: 0; }

footer { display: flex; justify-content: space-between; gap: 20px; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 25px 0 38px; border-top: 1px solid #d7dbd3; color: #818b86; font-size: .67rem; }
footer span:first-child { color: #4f615a; font-weight: 800; }

.modal { width: min(620px, calc(100% - 28px)); max-height: calc(100svh - 36px); padding: 0; border: 1px solid #d6dad3; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 28px 90px rgba(9,27,22,.28); }
.modal::backdrop { background: rgba(8,24,20,.62); backdrop-filter: blur(4px); }
.modal-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 24px 27px 20px; border-bottom: 1px solid var(--line); background: rgba(255,254,249,.94); }
.modal-header h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.modal-header .icon-button { font-size: 1.5rem; }
.settings-section { padding: 24px 27px; }
.settings-section + .settings-section { border-top: 1px solid var(--line); }
.settings-section h3 { margin: 0 0 7px; font-size: .9rem; }
.settings-section p, .modal-intro { color: var(--muted); font-size: .76rem; line-height: 1.6; }
.settings-section code { display: block; overflow-wrap: anywhere; margin: 12px 0 0; padding: 12px; border-radius: 10px; background: #edf1e9; font-size: .8rem; letter-spacing: .12em; }
.success-chip, .status-chip { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: #eef0eb; color: #69736e; font-size: .66rem; font-weight: 800; }
.success-chip { background: #e7f8d2; color: #35691e; }
#totpEnabled { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 15px; }
.inline-form input { min-height: 46px; font-size: 1.1rem; font-weight: 800; letter-spacing: .2em; text-align: center; }
.configuration-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.configuration-row small { color: var(--muted); text-transform: capitalize; }
.modal-intro { margin: 0; padding: 22px 27px 0; }
.payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 22px 27px; }
.payment-grid article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.payment-grid article small { grid-column: 2; margin-top: -8px; color: var(--muted); font-size: .62rem; }
.payment-grid article strong { font-size: .76rem; }
.payment-mark { display: grid; grid-row: span 2; width: 32px; height: 32px; place-items: center; border-radius: 9px; font-weight: 900; }
.payment-mark.paypal { background: #e9f0ff; color: #123e93; }
.payment-mark.venmo { background: #e5f2ff; color: #2183d7; }
.payment-mark.debit { background: #eee9ff; color: #5a4daf; }
.payment-mark.cash { background: #e6ffe7; color: #1da148; }
.payment-mark.chime { background: #dffbf1; color: #145644; }
.info-banner { margin: 0 27px 27px; padding: 14px; border-radius: 11px; background: #fff5dc; color: #725c27; font-size: .68rem; line-height: 1.55; }

.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(390px, calc(100% - 48px)); padding: 14px 17px; border: 1px solid #b8d19b; border-radius: 12px; background: #effadd; color: #315b25; box-shadow: 0 15px 45px rgba(15,36,29,.22); font-size: .77rem; font-weight: 700; }
.toast.error { border-color: #efb2ad; background: #fff0ef; color: var(--red); }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 42svh; padding: 28px; }
    .auth-pitch { padding: 65px 0 18px; }
    .auth-pitch h1 { font-size: clamp(3rem, 11vw, 5.4rem); }
    .auth-pitch > p:last-child, .proof-card { display: none; }
    .auth-panel { min-height: 58svh; padding: 25px; }
    .workspace-grid { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, 1fr); }
    .side-quote { display: none; }
    .hero { align-items: start; flex-direction: column; gap: 24px; }
    .privacy-badge { max-width: 500px; }
}

@media (max-width: 700px) {
    .site-header { min-height: 66px; padding-inline: 16px; }
    .site-header .brand > span:last-child { display: none; }
    main, footer { width: min(100% - 24px, 1240px); }
    .hero { padding: 43px 4px 34px; }
    .hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
    .stepper { grid-template-columns: repeat(4, minmax(60px, 1fr)); }
    .stepper li { justify-content: center; min-height: 58px; padding: 9px; }
    .stepper li > div { display: none; }
    .stepper li:not(:last-child)::after { top: 14px; bottom: 14px; }
    .workspace-card { border-radius: 20px; }
    .panel { padding: 25px 18px; }
    .panel-heading, .result-heading { align-items: start; flex-direction: column; }
    .provider-pill, .selected-item-tag { max-width: 100%; }
    .capture-zone { min-height: 265px; }
    .valuation-form { grid-template-columns: 1fr; }
    .form-footnote, .panel-actions.full { grid-column: auto; }
    .panel-actions { flex-direction: column-reverse; }
    .panel-actions .button { width: 100%; }
    .candidate-card { grid-template-columns: auto minmax(0, 1fr); }
    .confidence-pill { grid-column: 2; justify-self: start; }
    .value-hero { align-items: start; }
    .confidence-ring { width: 82px; height: 82px; border-width: 6px; }
    .metric-grid { grid-template-columns: 1fr; }
    .evidence-header { align-items: start; flex-direction: column; }
    .sidebar { grid-template-columns: 1fr; }
    .side-quote { display: block; }
    .payment-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; }
}

@media (max-width: 480px) {
    .auth-visual { min-height: 35svh; }
    .auth-pitch { padding: 48px 0 0; }
    .auth-pitch h1 { font-size: 2.95rem; }
    .auth-panel { min-height: 65svh; padding: 14px; }
    .auth-card { padding: 29px 22px; border-radius: 21px; }
    .credits-chip { padding-inline: 8px; font-size: 0; }
    .credits-chip span { font-size: .67rem; }
    .privacy-badge { align-items: start; }
    .value-hero > div:first-child > strong { font-size: 3rem; }
    .confidence-ring { display: none; }
    .comparable-row { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

