@import url("dealer-tools-theme.css");
:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #657089;
    --line: #dfe5ee;
    --surface: #ffffff;
    --page: #f4f7fb;
    --primary: #2463eb;
    --primary-dark: #184fc7;
    --success: #087a4b;
    --success-bg: #eaf8f1;
    --error: #b42318;
    --error-bg: #fff0ee;
    --warning: #8a5200;
    --warning-bg: #fff6df;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, #e8efff 0, transparent 34%), var(--page);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--primary); font-weight: 650; text-decoration: none; }
a:hover { text-decoration: underline; }
.page-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 18px; }
.auth-card {
    width: min(100%, 620px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(25, 45, 88, .12);
    padding: clamp(24px, 5vw, 42px);
}
.brand-mark {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--primary); color: #fff; font-weight: 800; letter-spacing: -.03em;
}
.brand-link { text-decoration: none; }
.brand-link:hover { text-decoration: none; background: var(--primary-dark); }
.eyebrow { margin: 20px 0 7px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(29px, 5vw, 39px); line-height: 1.08; letter-spacing: -.035em; }
h2 { margin: 0 0 10px; font-size: 23px; }
.subheading { margin: 12px 0 26px; color: var(--muted); line-height: 1.6; }
.form-stack { display: grid; gap: 17px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: #2f3a50; font-size: 14px; font-weight: 750; }
.optional { color: var(--muted); font-weight: 500; }
input {
    width: 100%; border: 1px solid #cbd3df; border-radius: 9px; background: #fff;
    color: var(--ink); font: inherit; padding: 12px 13px; outline: none;
}
textarea {
    width: 100%; border: 1px solid #cbd3df; border-radius: 9px; background: #fff;
    color: var(--ink); font: inherit; padding: 12px 13px; outline: none; resize: vertical;
}
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 99, 235, .14); }
.button {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 46px;
    border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; font: inherit;
    font-weight: 780; cursor: pointer; text-decoration: none;
}
.button:hover { text-decoration: none; }
.button.primary { background: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.button.small { width: auto; min-height: 40px; }
.button.disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.link-row { display: flex; justify-content: space-between; gap: 18px; margin-top: 22px; font-size: 14px; }
.link-row.centered { justify-content: center; }
.alert { margin: 0 0 20px; border-radius: 10px; padding: 13px 15px; line-height: 1.45; font-size: 14px; }
.alert.success { background: var(--success-bg); color: var(--success); border: 1px solid #bde7d1; }
.alert.error { background: var(--error-bg); color: var(--error); border: 1px solid #f3c5bf; }
.alert.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid #edd79d; }
.help-text { margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.help-text.centered { text-align: center; }
.review-list { margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.review-list div { display: grid; grid-template-columns: 125px 1fr; gap: 15px; padding: 12px 15px; border-bottom: 1px solid var(--line); }
.review-list div:last-child { border-bottom: 0; }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.dashboard-shell { width: min(1080px, calc(100% - 36px)); margin: 0 auto; padding: 40px 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.header-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dashboard-header .eyebrow { margin-top: 0; }
.dashboard-header h1 { font-size: clamp(26px, 4vw, 36px); overflow-wrap: anywhere; }
.dashboard-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 14px 35px rgba(25,45,88,.08); }
.dashboard-card p { color: var(--muted); line-height: 1.65; }
.status-pill { display: inline-block; margin-bottom: 17px; padding: 6px 10px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 800; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.tool-card {
    display: flex; gap: 16px; align-items: center; min-height: 118px; padding: 20px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 14px 35px rgba(25,45,88,.08); color: var(--ink); text-decoration: none;
}
.tool-card:hover { border-color: #b9c7dd; transform: translateY(-1px); text-decoration: none; }
.tool-card strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 17px; }
.tool-card small { display: block; color: var(--muted); line-height: 1.45; font-weight: 520; }
.tool-icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center; background: #eaf0ff; color: var(--primary);
}
.tool-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feedback-card { margin-top: 18px; display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 22px; align-items: start; }
.feedback-card .alert { grid-column: 1 / -1; margin: 0; }
.feedback-form { display: grid; gap: 14px; }
.feedback-form .button { width: fit-content; min-width: 170px; }
.section-heading { margin-top: 8px; font-size: 18px; }
.checkbox-grid { display: grid; gap: 10px; margin: 10px 0 18px; }
.checkbox-grid.compact { margin-top: 0; }
.checkbox-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbfd;
}
.checkbox-card input { width: 18px; height: 18px; margin: 2px 0 0; }
.checkbox-card strong { display: block; color: var(--ink); }
.checkbox-card small { display: block; margin-top: 3px; color: var(--muted); font-weight: 520; line-height: 1.4; }
.admin-request-list { display: grid; gap: 16px; margin-top: 18px; }
.admin-request-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); gap: 22px; align-items: start; }
.empty-tools { grid-column: 1 / -1; }
.price-shell { padding-bottom: 70px; }
.price-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 28px;
    color: #fff;
    background: linear-gradient(115deg, #132537, #075b78);
    border-radius: 16px;
    box-shadow: 0 14px 35px rgba(25,45,88,.10);
}
.price-hero-card h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.price-hero-card p { margin: 0; color: #d4e2eb; line-height: 1.6; }
.price-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-metric {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    border-radius: 14px;
}
.price-metric span, .price-metric small { color: #cfe4ee; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.price-metric small { overflow-wrap: anywhere; }
.price-metric strong { margin: 8px 0; font-size: 44px; line-height: 1; }
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; margin-bottom: 18px; }
.price-panel h2 { margin-bottom: 18px; }
.price-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
select {
    width: 100%;
    border: 1px solid #cbd3df;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-weight: 720;
    padding: 12px 13px;
    outline: none;
}
select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36, 99, 235, .14); }
select:disabled { background: #eef3f7; color: #8a96a8; }
.url-submit { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.url-submit div { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 10px; margin-top: 8px; }
.url-submit button { border: 0; border-radius: 9px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.url-submit p { min-height: 18px; margin: 10px 0 0; color: var(--success); font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.run-button { margin-top: 18px; }
.run-button:disabled { opacity: .45; cursor: not-allowed; }
.price-context { margin: 0; border-top: 1px solid var(--line); }
.price-context div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.price-context dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.price-context dd { margin: 0; max-width: 58%; text-align: right; font-weight: 800; }
.report-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.report-heading .eyebrow { margin: 0 0 8px; }
.report-heading p { margin: 0; color: var(--muted); font-weight: 700; }
.report-actions { display: grid; gap: 10px; justify-items: end; }
.report-actions div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.report-actions .button { min-height: 38px; padding: 8px 12px; }
.report-actions .button:disabled { opacity: .45; cursor: not-allowed; }
.report-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: #f8fbfd;
    border: 1px dashed #b8c7d6;
    border-radius: 12px;
    font-weight: 800;
}
.report-empty.positive { color: var(--success); background: var(--success-bg); border-color: #bde7d1; }
.report-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.report-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.report-table th {
    padding: 13px 14px;
    background: #e8eef6;
    color: var(--ink);
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.report-table td { padding: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 750; }
.report-table tbody tr:nth-child(even) { background: #f8fbfd; }
.report-table td strong, .report-table td span { display: block; }
.report-table td span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.report-table .gap { color: var(--error); font-weight: 900; }
.report-table .under { color: var(--success); font-weight: 900; }
.report-table .even { color: var(--muted); font-weight: 900; }

@media (max-width: 600px) {
    .form-grid.two { grid-template-columns: 1fr; }
    .link-row, .dashboard-header { align-items: stretch; flex-direction: column; }
    .header-actions { justify-content: stretch; }
    .header-actions .button { flex: 1 1 150px; }
    .dashboard-header .button { width: 100%; }
    .review-list div { grid-template-columns: 1fr; gap: 4px; }
    .tool-grid { grid-template-columns: 1fr; }
    .admin-request-card { grid-template-columns: 1fr; }
    .feedback-card { grid-template-columns: 1fr; }
    .feedback-form .button { width: 100%; }
    .price-hero-card, .price-metrics, .price-layout, .price-form-grid { grid-template-columns: 1fr; }
    .url-submit div { grid-template-columns: 1fr; }
    .report-heading { flex-direction: column; }
    .report-actions { justify-items: stretch; width: 100%; }
    .report-actions div { justify-content: stretch; }
    .report-actions .button { flex: 1 1 130px; }
}

@media print {
    body { background: #fff; }
    .dashboard-header,
    .price-hero-card,
    .price-layout,
    .feedback-card,
    .report-actions,
    .report-heading .eyebrow { display: none !important; }
    .dashboard-shell { width: 100%; padding: 0; }
    .dashboard-card { border: 0; box-shadow: none; padding: 0; }
    .report-table-wrap { overflow: visible; border: 0; }
    .report-table { min-width: 0; font-size: 11px; }
}
