:root {
    color-scheme: light;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #182a3a;
    background: #f2f5f8;
    --nav: #102536;
    --text: #182a3a;
    --muted: #526777;
    --line: #dce5eb;
    --paper: #fff;
    --soft: #f4f7f9;
    --accent: #08776c;
    --accent-hover: #066359;
    --tint: #e3f4ef;
    --danger: #a32d3c;
    --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
:where(button, input, select, textarea) { font: inherit; }
:where(button, a, input, select, textarea, summary):focus-visible {
    outline: 2px solid #159185;
    outline-offset: 3px;
}
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 620;
    line-height: 1.35;
    cursor: pointer;
}
button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.secondary {
    background: #fff;
    border-color: #d1dce4;
    color: #2a4154;
}
button.secondary:hover:not(:disabled) { background: #f0f6f7; border-color: #a9c9ce; }
button.compact { padding: 5px 10px; min-height: 30px; font-size: 12px; white-space: nowrap; }
button.danger { color: var(--danger); border-color: #e7bac0; background: #fff; }
button.danger:hover:not(:disabled) { background: #fff0f2; border-color: #d698a0; }
button:disabled { cursor: not-allowed; opacity: .55; }
label { min-width: 0; display: grid; gap: 7px; color: #364c5e; font-weight: 550; }
input, select, textarea {
    color: var(--text);
    background: #fff;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #cbd8e2;
    border-radius: 8px;
    line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #63798a; }
input[type="checkbox"] { width: 17px; min-height: 17px; margin: 0; accent-color: var(--accent); }
input[type="file"] { font-size: 13px; }
input[type="file"]::file-selector-button {
    background: var(--soft);
    border: 0;
    border-radius: 4px;
    color: #233f52;
    font: inherit;
    margin-right: 8px;
    padding: 2px 6px;
}
textarea { min-height: 90px; resize: vertical; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
h1 { font-size: clamp(27px, 3vw, 34px); font-weight: 750; line-height: 1.22; letter-spacing: -.025em; }
h2 { font-size: 19px; line-height: 1.35; font-weight: 720; }
h3 { font-size: 15px; line-height: 1.45; font-weight: 690; }
h4 { font-size: 13px; }
p { line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; }

.brand-mark {
    --mark-color: #80e9d6;
    display: inline-block;
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    color: var(--mark-color);
    background: #19776b38;
    border: 1px solid #53af9d68;
    border-radius: 11px;
}
.brand-mark::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 3px;
    inset: 10px auto auto 9px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 6px currentColor, 0 12px currentColor;
}
.brand-mark::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    inset: 10px 8px auto auto;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 6px currentColor, 0 12px currentColor;
}
.signin {
    display: grid;
    grid-template-columns: 1.08fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
    background: #fff;
}
.signin-cover {
    display: flex;
    align-items: center;
    padding: clamp(42px, 7vw, 112px);
    color: #fff;
    background:
        linear-gradient(105deg, #0b1e2bea 10%, #0a2234be 47%, #0b20364d 100%),
        url("/assets/server-aisle.webp") center 58% / cover,
        #102536;
}
.signin-brand { max-width: 490px; }
.signin-brand .brand-mark { margin-bottom: 28px; width: 44px; height: 44px; }
.signin-brand .brand-mark::before { inset: 13px auto auto 12px; }
.signin-brand .brand-mark::after { inset: 13px 11px auto auto; }
.signin-title { font-size: clamp(40px, 5vw, 72px); line-height: 1.12; font-weight: 760; letter-spacing: -.045em; }
.signin-brand p { margin-top: 22px; color: #c7dbe4; font-size: clamp(14px, 1.7vw, 19px); }
.signin-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 86px); }
.login { width: 100%; max-width: 376px; }
.login h1 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 30px; }
.login label { margin: 17px 0 7px; }
.login input { min-height: 50px; padding: 11px 13px; }
.login-submit { width: 100%; min-height: 50px; margin-top: 24px; font-weight: 700; }
.password-control { position: relative; }
.password-control input { padding-right: 65px; }
.text-button {
    border: 0;
    background: transparent;
    color: var(--accent);
    min-height: 30px;
    padding: 4px 8px;
}
.password-control .text-button { position: absolute; right: 8px; top: 10px; }
button.text-button:hover:not(:disabled) { background: var(--tint); color: var(--accent-hover); }
.login-error { margin-top: 12px; padding: 9px 11px; border-radius: 7px; background: #fff0f2; color: var(--danger); }

.workspace { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    padding: 23px 14px 16px;
    background: var(--nav);
    color: #f8fbfd;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; margin: 0 3px 24px; padding: 0 0 21px; border-bottom: 1px solid #2b4152; }
.sidebar-brand strong { font-size: 14px; letter-spacing: .005em; }
#tabs { display: grid; gap: 4px; }
#tabs button {
    width: 100%;
    justify-content: flex-start;
    gap: 11px;
    padding: 10px 12px;
    min-height: 44px;
    border-color: transparent;
    background: transparent;
    color: #bfd0dc;
    text-align: left;
    font-weight: 550;
    white-space: nowrap;
}
#tabs button:hover, #tabs button:focus-visible { color: #fff; background: #1b3546; }
#tabs button[aria-current="page"] {
    color: #caf6eb;
    background: #1a484a;
    border-color: #32696a;
    font-weight: 700;
}
.nav-icon { position: relative; width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; }
.nav-icon--market {
    background: linear-gradient(currentColor, currentColor) 2px 8px / 2px 6px no-repeat,
        linear-gradient(currentColor, currentColor) 7px 4px / 2px 10px no-repeat,
        linear-gradient(currentColor, currentColor) 12px 1px / 2px 13px no-repeat;
    border-bottom: 1px solid currentColor;
}
.nav-icon--skus::before, .nav-icon--skus::after {
    content: ""; position: absolute; top: 2px; height: 2px; border-radius: 1px;
    background: currentColor; box-shadow: 0 5px currentColor, 0 10px currentColor;
}
.nav-icon--skus::before { left: 1px; width: 3px; }
.nav-icon--skus::after { left: 6px; width: 9px; }
.nav-icon--inquiry { border: 1.5px solid currentColor; border-radius: 4px; }
.nav-icon--inquiry::after {
    content: ""; position: absolute; inset: 4px 3px auto; height: 1px; background: currentColor; box-shadow: 0 4px;
}
.nav-icon--history { border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon--history::after {
    content: ""; position: absolute; top: 2px; left: 5px; width: 4px; height: 6px; border-left: 1.5px solid; border-bottom: 1.5px solid;
}
.nav-icon--pricing { border: 1.5px solid currentColor; border-radius: 4px; }
.nav-icon--pricing::after {
    content: ""; position: absolute; inset: 3px 3px; border-block: 1.5px solid; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
}
.session {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    padding: 11px 6px 5px;
    border-top: 1px solid #34495a;
    min-width: 0;
}
.avatar {
    display: grid;
    place-items: center;
    border-radius: 9px;
    flex: 0 0 32px;
    height: 32px;
    background: #28445b;
    color: #d8edf5;
    font-weight: 700;
}
.session-info { display: grid; min-width: 0; line-height: 1.4; gap: 2px; }
.session-info strong { font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.session-info span { color: #aac0ce; font-size: 11px; }
button.session-exit {
    margin-left: auto;
    min-height: 33px;
    padding: 4px 7px;
    background: transparent;
    border-color: #456072;
    font-size: 12px;
    color: #d9e6ed;
    white-space: nowrap;
}
button.session-exit:hover { background: #27465a; border-color: #648196; }
.workspace-body { min-width: 0; }
.workspace-header {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px clamp(18px, 3.2vw, 48px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    color: #4b6175;
    font-weight: 600;
}
.workspace-date { color: #4b6175; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.view { max-width: 1550px; min-width: 0; margin: auto; padding: 30px clamp(18px, 3.2vw, 48px) 60px; }
.view:focus { outline: none; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-bottom: 22px;
}
.page-heading { display: grid; gap: 6px; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card {
    min-width: 0;
    margin: 0 0 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 1px 2px #152a3d08;
}
.card > h2, .card > h3 { margin-bottom: 13px; }
.card > p + p { margin-top: 8px; }
.card-heading, .section-head, .quote-section-head, .quote-overview-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap;
}
.card-heading p, .section-head p, .quote-overview-head p { margin-top: 4px; }
.card-heading + *, .section-head + *, .quote-section-head + * { margin-top: 14px; }
.grid { display: grid; gap: 12px 15px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.sku-editor-fields { display: contents; }
#new-sku label:has(input[name="name"]) { grid-column: 1 / -1; }
.grid + button, .grid + .form-note { margin-top: 14px; }
.field-with-help { display: grid; min-width: 0; gap: 7px; }
.field-help { position: relative; display: flex; align-items: center; gap: 6px; }
.field-help-button {
    width: 20px; min-height: 20px; flex: none; padding: 0; border-radius: 50%;
    border-color: #b9d6d0; background: var(--tint); color: var(--accent-hover);
    font-size: 12px; font-weight: 700; cursor: help;
}
.field-help-button:hover:not(:disabled), .field-help-button:focus-visible {
    border-color: var(--accent); background: var(--accent); color: #fff;
}
.field-help-text {
    position: absolute; z-index: 2; inset-block-start: 100%; inset-inline-start: 0;
    width: min(100%, 320px); padding: 9px 11px; border-radius: 8px;
    background: var(--nav); color: #fff; font-size: 13px; line-height: 1.6;
    box-shadow: 0 4px 14px #18314932; overflow-wrap: anywhere;
}
.bar { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.bar label { min-width: 130px; }
.bar label:has(input[name="query"]) { flex: 1; min-width: min(100%, 230px); }
details > summary { display: list-item; cursor: pointer; font-weight: 680; color: #264456; }
details > summary::marker { color: var(--accent); }
details[open] > summary { margin-bottom: 14px; }
details.card summary { padding: 1px 0; }
.scroll { overflow: auto; max-width: 100%; border-radius: 9px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 13px; }
th, td { padding: 10px 11px; border-bottom: 1px solid #e9eff2; }
th { white-space: nowrap; background: #edf3f5; color: #3c5568; font-weight: 650; }
td { color: #253e50; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8fbfc; }
td input, td select { min-width: 86px; }
.card .scroll + button, .card table + button { margin-top: 12px; }
.muted + .scroll { margin-top: 10px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: 10px; margin-bottom: 15px; }
.metric {
    display: grid; gap: 5px; min-width: 0; padding: 15px 17px; border-radius: 11px;
    border: 1px solid var(--line); background: #fff;
}
.metric span, .quote-metric span { color: var(--muted); font-size: 13px; }
.metric strong { font-size: 26px; line-height: 1.2; font-weight: 730; font-variant-numeric: tabular-nums; }
.metric:first-child strong { color: var(--accent); }
.market-lookup label:has(input[type="search"]) { flex: 1 1 165px; min-width: 0; }
.market-lookup label:has(select) { flex: 2 1 245px; min-width: 0; }
.market-lookup select { min-width: 0; }
.sku-count { color: var(--muted); font-size: 13px; margin: 12px 0 8px; }
.table-note { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.sku-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.sku-filters button { min-height: 40px; white-space: nowrap; }
.sku-table .sku-model-column { width: 58%; }
.sku-table td { overflow-wrap: anywhere; }
.sku-table th:last-child { width: 1%; }
.sku-table td:last-child { white-space: nowrap; }
.config-source-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-top: 12px; }
.config-source-actions label { flex: 1 1 250px; }
.config-hint { margin-top: 6px; font-size: 12px; }
#config-recognition-status, #config-price-result > p, #config-warnings { margin-top: 10px; }
#config-estimate { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
#config-warnings { padding-inline-start: 29px; }
.config-machine-count { width: min(100%, 120px); }
.config-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.config-line {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) 80px 64px 106px; gap: 8px 12px; align-items: end;
    padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.config-description { align-self: center; overflow-wrap: anywhere; }
.config-line label { font-size: 12px; }
.config-price-total { color: var(--accent-hover); font-size: 22px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.market-table td:nth-child(2), .market-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.market-table .amount, .market-table th:nth-child(2) { text-align: right; white-space: nowrap; }
.market-table td:last-child { white-space: nowrap; }
.market-supplier {
    margin-top: 8px; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--line); background: var(--soft); overflow-wrap: anywhere;
}
.market-supplier .scroll { background: #fff; }
.market-overview { font-size: 13px; color: var(--muted); font-weight: 500; margin-inline-start: 10px; }
.form-context, .form-note, .form-alert {
    padding: 9px 12px; background: var(--soft); border: 1px solid var(--line);
    border-radius: 7px; color: #405d70; font-size: 13px;
}
.form-alert { background: #fff5de; border-color: #efd99f; color: #734b0d; }
.form-context + *, .form-note + *, .form-alert + * { margin-top: 10px; }
.market-forms { scroll-margin-top: 18px; }
.market-forms > h2 { margin: 18px 0 9px; }
.status-pill, .quote-status {
    display: inline-flex; gap: 5px; align-items: center; padding: 3px 7px; border-radius: 99px;
    color: #40596b; background: #edf2f5; font-size: 12px; font-weight: 640; white-space: nowrap;
}
.status-pill::before, .quote-status::before {
    content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
}
.status-active, .status-reported, .status-pill[data-tone="success"], .quote-status[data-tone="success"] { color: #07645a; background: #e2f5ed; }
.status-expired, .status-no_active_offer, .status-pill[data-tone="warning"], .quote-status[data-tone="warning"] { color: #754c09; background: #fff2d7; }
.status-withdrawn, .status-out_of_stock { color: #923943; background: #fbe9eb; }
.empty-state, .quote-empty { padding: 24px 14px; text-align: center; border-radius: 10px; color: var(--muted); background: #f5f8fa; }
.empty-state h2, .empty-state h3, .quote-empty h2 { color: var(--text); margin-bottom: 5px; }
.empty-state button, .quote-empty button { margin-top: 10px; }
.inquiry-meta {
    display: flex; flex-wrap: wrap; gap: 12px 20px;
    padding: 12px; border-radius: 8px; background: var(--soft);
}
.inquiry-meta dt { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.inquiry-meta dd { font-weight: 620; overflow-wrap: anywhere; }
.workflow-actions, .pricing-actions, .model-tools, .inquiry-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inquiry-meta + .workflow-actions, .workflow-actions + *, .pricing-actions { margin-top: 10px; }
.pricing-lookup {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(148px, .65fr) auto;
    align-items: end;
    gap: 10px 14px;
}
.pricing-lookup button { min-height: 40px; white-space: nowrap; }
#pricing-search-status { margin-top: 9px; }
#pricing-search-status:empty { display: none; }
.pricing-summary {
    min-width: 0;
    margin-bottom: 14px;
    padding: 17px 20px 20px;
    border: 1px solid #c6dfda;
    border-radius: var(--radius);
    background: #f0f8f6;
}
.pricing-summary-heading { display: grid; gap: 4px; margin-bottom: 14px; overflow-wrap: anywhere; }
.pricing-summary-heading p { color: var(--muted); font-size: 13px; }
.pricing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.pricing-metric {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid #d4e6e2;
    border-radius: 10px;
    background: var(--paper);
    overflow-wrap: anywhere;
}
.pricing-metric span { color: #3d5964; font-size: 13px; font-weight: 600; }
.pricing-metric strong { font-size: clamp(19px, 2.15vw, 27px); line-height: 1.25; font-variant-numeric: tabular-nums; }
.pricing-metric small { color: var(--muted); font-size: 12px; }
.pricing-metric--sale { background: #dcf1ea; border-color: #b8dbd1; }
.pricing-metric--sale strong { color: var(--accent-hover); }
.pricing-columns, .pricing-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 14px;
    margin: 0 0 14px;
}
.pricing-columns { min-inline-size: 0; padding: 0; border: 0; }
.pricing-columns > .card, .pricing-settings > .card { margin-bottom: 0; }
.pricing-card { overflow-wrap: anywhere; }
.pricing-card .card-heading { align-items: center; gap: 7px 10px; }
.pricing-card-note { color: var(--muted); font-size: 13px; }
.pricing-base-form { display: grid; gap: 10px; margin-top: 14px; }
.pricing-base-form > label { width: min(100%, 265px); }
.pricing-base-form .pricing-actions { margin-top: 0; }
.pricing-margin-editor, .pricing-margin-history {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.pricing-margin-editor form { display: grid; gap: 11px; }
.pricing-margin-editor .pricing-actions { margin-top: 0; }
.pricing-rate-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr));
    gap: 10px;
}
#margin-results .scroll { border: 1px solid var(--line); }
#margin-results table { min-width: 390px; }
.pricing-market-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 16px;
    border: 1px solid #c6dfda;
    border-radius: 10px;
    background: #f0f8f6;
}
.pricing-market-reference { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.pricing-market-reference span { color: #3d5964; font-size: 13px; font-weight: 600; }
.pricing-market-reference strong {
    color: var(--accent-hover); font-size: clamp(20px, 2.15vw, 27px); line-height: 1.25;
    font-variant-numeric: tabular-nums;
}
.pricing-market-reference small, .pricing-market-rule { color: var(--muted); font-size: 12px; }
.pricing-market-actions { display: grid; gap: 6px; justify-items: start; }
#pricing-market-action-hint:empty { display: none; }
.pricing-market-picker { width: min(100%, 245px); margin-top: 12px; }
.pricing-market-rule { margin: 10px 0; }
.pricing-market .scroll { border: 1px solid var(--line); }
.pricing-market .scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pricing-market-table { min-width: 660px; font-variant-numeric: tabular-nums; }
.pricing-market-table td { overflow-wrap: anywhere; }
.pricing-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#pricing-settings-title { grid-column: 1 / -1; margin: 4px 0 0; }
.model-list { display: grid; gap: 12px; margin: 13px 0; }
.model {
    border: 1px solid var(--line); border-radius: 11px; background: #f8fafb;
    padding: 12px; display: grid; gap: 10px;
}
.model-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.model-table { min-width: 680px; }
.model-table input, .model-table select { font-size: 12px; min-height: 33px; padding: 5px 7px; }
.model-table th, .model-table td { padding: 6px 7px; }
.model-table input[data-field="description"] { min-width: 144px; }
.model-table select[data-field="skuId"] { min-width: 140px; }
.model-table .field-compact, .model-table .field-compact input { min-width: 56px; width: 68px; }
.field-check, label:has(> input[type="checkbox"]) { display: flex; align-items: start; gap: 9px; margin: 10px 0; }
.version-pill { font-variant-numeric: tabular-nums; }
button.version-pill[aria-pressed="true"] { background: #e3f4ee; border-color: #78b7ad; color: #07584f; }
.history-layout { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1.55fr); align-items: start; gap: 14px; }
.history-search, .history-results, .quote-panel { min-width: 0; }
.history-search .bar label { flex: 1 1 130px; min-width: 0; }
.history-search .bar label:has(input[name="query"]) { flex-basis: 175px; }
.history-search .bar button { min-height: 40px; }
.history-results { min-height: 68px; margin-top: 13px; }
.history-summary { color: var(--muted); margin-bottom: 10px; font-size: 13px; font-variant-numeric: tabular-nums; }
.history-inquiry { border: 1px solid var(--line); padding: 12px; border-radius: 10px; margin-top: 9px; }
.history-inquiry-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.history-inquiry-head > * { min-width: 0; }
.history-inquiry-head h3 { overflow-wrap: anywhere; }
.history-inquiry-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.history-versions { display: grid; gap: 6px; margin-top: 9px; }
button.quote-version {
    min-width: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    padding: 7px 9px; text-align: left; background: #f5f8f9; border-color: #e0e9ed; color: #274255;
    font-size: 12px;
}
button.quote-version:hover, button.quote-version[aria-pressed="true"] { background: #e3f4ee; border-color: #78b7ad; color: #07584f; }
.quote-version-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.quote-version-amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.history-pager { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: 10px; }
.quote-panel { scroll-margin-top: 16px; }
.quote-overview { border-top: 3px solid #168478; }
.quote-overview-head h2 { font-size: clamp(21px, 2.5vw, 26px); overflow-wrap: anywhere; }
.quote-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,146px),1fr)); gap: 7px; margin: 14px 0; }
.quote-metric { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 10px 12px; border-radius: 9px; background: #f0f6f7; }
.quote-metric strong { font-size: 16px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.quote-total { color: #086b60; font-size: 25px; font-weight: 740; font-variant-numeric: tabular-nums; }
.quote-metric strong.quote-total { font-size: 23px; white-space: nowrap; }
.quote-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.quote-pdf-status { color: var(--muted); font-size: 12px; }
.quote-config { margin-bottom: 7px; }
.quote-config details { margin-top: 10px; }
.evidence-log { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.evidence-log > li {
    padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb;
}
.evidence-log .quote-evidence { display: grid; gap: 5px; margin: 0; }
.quote-event-result { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote-evidence code { overflow-wrap: anywhere; }
.quote-evidence { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 10px; }
.quote-admin-details { margin-top: 13px; }
.page-feedback {
    display: flex; align-items: center; gap: 12px; min-height: 110px;
    color: var(--muted); padding: 18px 17px;
}
.page-feedback h1 { font-size: 20px; color: var(--text); }
.page-feedback p { margin-top: 4px; }
.spinner { width: 15px; height: 15px; border: 2px solid #bfded8; border-top-color: var(--accent); border-radius: 50%; animation: rotate .75s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
#notice {
    z-index: 10; position: fixed; bottom: 18px; right: 18px; max-width: min(510px, calc(100vw - 36px));
    padding: 12px 16px; border-radius: 10px; background: #153649; color: white; overflow-wrap: anywhere;
    box-shadow: 0 5px 20px #18314939;
}
#notice.error { background: #842b39; }

@media (max-width: 1150px) {
    .history-layout { grid-template-columns: minmax(0, 1fr); }
    .pricing-lookup { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .pricing-lookup > button { justify-self: start; }
}
@media (max-width: 900px) {
    .config-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .config-description, .config-line label:first-of-type, .config-line label:last-of-type { grid-column: 1 / -1; }
    .pricing-columns, .pricing-settings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 790px) {
    .workspace { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
        position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px; padding: 11px 14px 10px;
    }
    .sidebar-brand { gap: 8px; margin: 0; padding: 0; border: 0; }
    .sidebar-brand .brand-mark { scale: .84; margin: -2px; }
    .session { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; gap: 7px; }
    .session-info strong { max-width: 92px; }
    .avatar { display: none; }
    #tabs { grid-column: 1/-1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
    #tabs button { width: auto; min-height: 39px; gap: 6px; font-size: 12px; padding: 7px 9px; }
    #tabs .nav-icon { transform: scale(.83); }
    .workspace-header { min-height: 45px; }
    .view { padding-top: 21px; padding-bottom: 50px; }
    .signin { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .signin-cover { padding: 32px clamp(23px, 6vw, 55px); min-height: 190px; }
    .signin-brand .brand-mark { margin-bottom: 9px; }
    .signin-title { font-size: clamp(25px, 6.6vw, 42px); }
    .desktop-break { display: none; }
    .signin-brand p { margin-top: 9px; }
    .signin-panel { align-items: start; padding-top: 42px; }
}
@media (max-width: 475px) {
    .view { padding-inline: 13px; }
    .card { padding: 14px; }
    .page-head { margin-bottom: 15px; }
    .page-actions > button { min-height: 34px; }
    .sidebar-brand strong { font-size: 12px; }
    .sku-filters { grid-template-columns: minmax(0, 1fr) auto; }
    .sku-filters label:first-child { grid-column: 1 / -1; }
    .sku-table .sku-model-column { width: 49%; }
    .sku-table th, .sku-table td { padding-inline: 7px; }
    .sku-id { font-size: 11px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .metric { padding: 10px 11px; }
    .metric strong { font-size: 21px; }
    .history-inquiry-head { flex-wrap: wrap; }
    .quote-metric:last-child { grid-column: 1 / -1; }
    .bar label { flex: 1 1 120px; min-width: 0; }
    .bar > button { flex-shrink: 0; }
    .pricing-lookup { grid-template-columns: minmax(0, 1fr) auto; }
    .pricing-lookup label:first-child, .pricing-lookup label:nth-child(2) { grid-column: 1 / -1; }
    .pricing-summary { padding: 14px; }
    .pricing-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pricing-metric { padding: 10px 11px; }
    .pricing-metric--sale { grid-column: 1 / -1; }
    .pricing-base-form > label { width: 100%; }
}
@media (max-width: 355px) {
    #tabs .nav-icon { display: none; }
    .session-info strong { max-width: 67px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
    .spinner { animation: none; }
}
