@import url('data:text/css,');

:root {
  --ink: #20272b;
  --muted: #6d7e89;
  --forest: #20272b;
  --forest-2: #3b464d;
  --sage: #6d7e89;
  --sage-soft: #e9edef;
  --copper: #d62027;
  --copper-dark: #ad171d;
  --copper-soft: #fbe9ea;
  --cream: #f3f5f6;
  --paper: #ffffff;
  --line: #dce1e4;
  --line-soft: #edf0f1;
  --amber: #c98b2d;
  --amber-soft: #fff4dd;
  --red: #b64747;
  --red-soft: #fbeaea;
  --blue: #6d7e89;
  --shadow: 0 14px 42px rgba(32, 39, 43, 0.1);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }

button, input, textarea, select { font: inherit; }

button { color: inherit; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(214, 32, 39, 0.22);
  outline-offset: 2px;
}

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 250px;
  flex-direction: column;
  padding: 28px 20px 22px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 70%, rgba(214, 32, 39, .12), transparent 30%),
    linear-gradient(170deg, #3b464d, #20272b 75%);
}

.brand { display: flex; align-items: center; justify-content: center; min-height: 62px; color: inherit; text-decoration: none; padding: 10px 13px; border-radius: 10px; background: #fff; }
.official-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.sidebar .official-logo { max-width: 184px; }

.brand-mark { position: relative; width: 38px; height: 40px; flex: 0 0 auto; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 2px solid currentColor; border-radius: 50%; }
.brand-mark::before { inset: 5px 3px 5px 12px; color: var(--copper); }
.brand-mark::after { inset: 11px 10px 11px 17px; color: #f2d4c3; }
.brand-mark span { position: absolute; width: 11px; height: 2px; left: 1px; top: 19px; background: #f2d4c3; }
.brand-mark i { position: absolute; width: 7px; height: 8px; right: 0; top: 16px; border: 2px solid var(--copper); border-left: 0; border-radius: 0 8px 8px 0; }
.brand-name { display: grid; letter-spacing: .18em; font-weight: 760; font-size: 20px; }
.brand-name small { margin-top: 2px; font-size: 7px; font-weight: 600; letter-spacing: .08em; opacity: .58; text-transform: uppercase; }

.case-label { margin: 30px 7px 21px; padding: 15px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.035); }
.case-label span, .case-label small { display: block; color: rgba(255,255,255,.48); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.case-label b { display: block; margin: 6px 0; color: #fff; font-size: 13px; }
.case-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; letter-spacing: 0; }

.stepper { display: grid; gap: 4px; }
.step { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; border: 0; border-radius: 11px; color: rgba(255,255,255,.56); background: transparent; text-align: left; cursor: pointer; transition: .2s ease; }
.step:hover:not(:disabled) { background: rgba(255,255,255,.06); color: #fff; }
.step.active { color: #fff; background: rgba(255,255,255,.09); }
.step.active::before { content: ""; position: absolute; left: -20px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--copper); }
.step:disabled { cursor: not-allowed; opacity: .42; }
.step-index { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; font-size: 10px; font-weight: 700; }
.step.active .step-index { color: #fff; border-color: var(--copper); background: var(--copper); }
.step.done .step-index { color: #c8d1d6; border-color: rgba(200,209,214,.45); }
.step-index svg { width: 14px; height: 14px; }
.step b, .step small { display: block; }
.step b { margin-bottom: 2px; font-size: 12px; font-weight: 650; }
.step small { font-size: 9px; opacity: .56; letter-spacing: .07em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; }
.integration-status { display: flex; gap: 10px; align-items: center; padding: 13px 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.integration-status b, .integration-status small { display: block; }
.integration-status b { font-size: 11px; }
.integration-status small { margin-top: 2px; color: rgba(255,255,255,.45); font-size: 9px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(201,139,45,.12); }
.version { padding: 14px 10px 0; color: rgba(255,255,255,.28); font-size: 9px; letter-spacing: .05em; }

.main { min-height: 100vh; margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: 70px; align-items: center; gap: 18px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255, 254, 250, .94); backdrop-filter: blur(16px); }
.mobile-brand { display: none; }
.mobile-brand .official-logo { width: 118px; }
.environment { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.environment span { padding: 6px 9px; border-radius: 6px; color: var(--copper-dark); background: var(--copper-soft); font-size: 9px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.environment small { color: var(--muted); font-size: 11px; }
.role-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f2f1ec; }
.role-switch button { padding: 6px 14px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 650; cursor: pointer; }
.role-switch button.active { color: var(--forest); background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.icon-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 11px; font-weight: 650; cursor: pointer; }
.icon-button:hover { border-color: #bdc3bf; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: white; background: var(--copper); font-size: 10px; font-weight: 760; }

.content { width: min(1440px, 100%); margin: 0 auto; padding: 34px 42px 110px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 26px; }
.page-header h1 { max-width: 820px; margin: 5px 0 8px; color: var(--forest); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(29px, 3vw, 42px); font-weight: 500; line-height: 1.08; letter-spacing: -.025em; }
.page-header p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.eyebrow, .kicker { color: var(--copper); font-size: 9px; font-weight: 760; letter-spacing: .14em; text-transform: uppercase; }
.page-actions { flex: 0 0 auto; padding-top: 11px; }
.secure-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #d8ded9; border-radius: 999px; color: var(--forest-2); background: #fff; font-size: 10px; font-weight: 650; }
.secure-chip svg { width: 14px; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 2px 8px rgba(20, 34, 31, .025); }
.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.form-card { padding: 28px; }
.section-heading { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 20px; }
.section-heading > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid #dfb59e; border-radius: 50%; color: var(--copper); font-size: 9px; font-weight: 750; }
.section-heading h2, .section-heading p { margin: 0; }
.section-heading h2 { color: var(--forest); font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.section-heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.field { display: grid; gap: 7px; }
.field > span { color: #3d4b47; font-size: 10px; font-weight: 680; letter-spacing: .015em; }
.field > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.field input, .field textarea, .compact-select select { width: 100%; border: 1px solid #d7dad5; border-radius: 9px; color: var(--ink); background: #fff; transition: .18s ease; }
.field input { height: 43px; padding: 0 12px; }
.field textarea { padding: 11px 12px; resize: vertical; line-height: 1.5; }
.field input:hover:not(:read-only), .field textarea:hover, .compact-select select:hover { border-color: #b9c0bc; }
.field input:focus, .field textarea:focus { border-color: var(--copper); outline: 3px solid rgba(201,105,55,.1); }
.field input:read-only { color: #59645f; background: #f5f5f1; cursor: not-allowed; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 44px; }
.input-suffix i { position: absolute; right: 11px; top: 50%; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 700; transform: translateY(-50%); }
.input-suffix.wide input { padding-right: 58px; }
.section-divider { height: 1px; margin: 27px 0; background: var(--line-soft); }

.file-ready { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #c8dcd4; border-radius: 12px; background: #f5faf8; }
.file-icon { display: grid; place-items: center; width: 46px; height: 50px; flex: 0 0 auto; border-radius: 9px; color: var(--copper); background: #fff; box-shadow: 0 3px 12px rgba(20,40,35,.08); }
.file-icon svg { width: 23px; height: 23px; }
.file-icon small { color: var(--muted); font-size: 7px; font-weight: 750; }
.file-meta { min-width: 0; flex: 1; }
.file-meta b, .file-meta span { display: block; }
.file-meta b { overflow: hidden; color: var(--forest); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-meta span { margin: 4px 0 8px; color: var(--muted); font-size: 9px; }
.progress { overflow: hidden; width: 150px; height: 3px; border-radius: 3px; background: #dfe9e5; }
.progress i { display: block; width: 100%; height: 100%; background: var(--sage); }
.text-button { border: 0; color: var(--copper-dark); background: transparent; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dropzone { display: grid; place-items: center; min-height: 180px; padding: 20px; border: 1.5px dashed #bfc7c2; border-radius: 13px; background: #fafbf8; cursor: pointer; transition: .2s ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--copper); background: var(--copper-soft); }
.dropzone b { margin-top: 8px; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.dropzone p { margin: 4px 0 11px; color: var(--muted); font-size: 10px; }
.dropzone u { color: var(--copper); text-decoration: none; }
.drop-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--copper); background: var(--copper-soft); }
.drop-icon svg { width: 20px; height: 20px; }
.link-button { border: 0; color: var(--forest); background: transparent; font-size: 10px; font-weight: 700; text-decoration: underline; cursor: pointer; }

.disclosure { display: flex; gap: 13px; align-items: flex-start; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #d6e0dc; border-radius: 12px; background: #eef5f2; }
.disclosure.compact { margin: 16px 0 0; padding: 11px 13px; }
.disclosure-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; color: var(--forest); background: #dcebe5; }
.disclosure-icon svg { width: 15px; height: 15px; }
.disclosure b, .disclosure p { margin: 0; }
.disclosure b { color: var(--forest); font-size: 10px; }
.disclosure p { margin-top: 3px; color: #5b6b66; font-size: 10px; line-height: 1.5; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 24px -28px -28px; padding: 17px 28px; border-top: 1px solid var(--line-soft); background: #faf9f5; border-radius: 0 0 var(--radius) var(--radius); }
.form-footer > div { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.form-footer small { font-size: 9px; }
.mini-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: white; background: var(--sage); }
.mini-check svg { width: 11px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 730; letter-spacing: .012em; cursor: pointer; transition: .18s ease; }
.button svg { width: 15px; height: 15px; }
.button.primary { color: #fff; background: var(--copper); box-shadow: 0 7px 18px rgba(201,105,55,.18); }
.button.primary:hover:not(:disabled) { background: var(--copper-dark); transform: translateY(-1px); }
.button.secondary { color: #fff; background: var(--forest-2); }
.button.secondary:hover:not(:disabled) { background: var(--forest); }
.button.ghost { border-color: #d6d9d4; color: #43504c; background: #fff; }
.button.ghost:hover:not(:disabled) { border-color: #aeb6b1; }
.button:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }
.button.full { width: 100%; }

.side-info { display: grid; gap: 12px; }
.case-visual { overflow: hidden; min-height: 175px; padding: 19px; border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 80% 0, rgba(207,119,72,.5), transparent 43%), var(--forest-2); }
.case-visual > div:last-child { position: relative; z-index: 1; }
.case-visual span, .case-visual h3, .case-visual p { margin: 0; }
.case-visual span { color: #b7d7cc; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.case-visual h3 { margin: 4px 0; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.case-visual p { color: rgba(255,255,255,.57); font-size: 9px; }
.boiler-mini { position: relative; height: 86px; margin-bottom: 8px; }
.boiler-mini span { position: absolute; left: 56px; top: 16px; width: 130px; height: 60px; border: 2px solid rgba(255,255,255,.63); border-radius: 50%; }
.boiler-mini::before { content: ""; position: absolute; left: 24px; top: 16px; width: 130px; height: 60px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; }
.boiler-mini::after { content: ""; position: absolute; left: 88px; top: 17px; width: 1px; height: 59px; background: rgba(255,255,255,.3); box-shadow: 45px 0 0 rgba(255,255,255,.3); }
.boiler-mini i, .boiler-mini em { position: absolute; top: 44px; width: 28px; height: 2px; background: var(--copper); }
.boiler-mini i { left: 0; }.boiler-mini em { left: 188px; }
.info-card { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.6); }
.info-number { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; color: var(--copper); background: var(--copper-soft); font-size: 8px; font-weight: 750; }
.info-card b, .info-card p { margin: 0; }
.info-card b { font-size: 10px; }
.info-card p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.privacy-note { display: flex; gap: 11px; padding: 15px; border-radius: 12px; color: #d7e8e2; background: var(--forest); }
.privacy-note svg { flex: 0 0 auto; width: 18px; margin-top: 2px; }
.privacy-note p { margin: 0; font-size: 9px; line-height: 1.5; }

.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 760; letter-spacing: .035em; white-space: nowrap; }
.status-badge svg { width: 11px; height: 11px; }
.status-badge.success { color: #276650; background: #e2f0ea; }
.status-badge.warning { color: #87580e; background: var(--amber-soft); }
.status-badge.demo { color: var(--copper-dark); background: var(--copper-soft); }
.status-badge.neutral { color: #64706c; background: #eceeeb; }

.validation-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 20px; margin-bottom: 20px; }
.preview-card, .checks-card, .data-card, .market-card, .inventory-summary, .inventory-card, .cost-stack, .formula-card, .controls-card, .history-card { padding: 22px; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 17px; }
.card-top h2, .card-top p { margin: 0; }
.card-top h2 { margin-top: 4px; color: var(--forest); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }
.tiny-pill, .connector-label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fafaf7; font-size: 8px; font-weight: 700; }
.connector-label svg { width: 13px; height: 13px; }
.blueprint { overflow: hidden; border: 1px solid #dce2df; border-radius: 12px; color: #6c847c; background: #f4f8f6; }
.blueprint > svg { display: block; width: 100%; height: auto; }
.drawing { stroke: #3c7465; stroke-width: 1.6; }
.measure { stroke: #879993; stroke-width: 1; }
.measure text { fill: #71857e; stroke: none; font: 11px ui-monospace, monospace; text-anchor: middle; }
.hotspot circle { fill: var(--copper); stroke: white; stroke-width: 2; }
.hotspot text { fill: white; stroke: none; font: 9px sans-serif; font-weight: 700; text-anchor: middle; }
.preview-bar { display: flex; align-items: center; gap: 15px; padding: 10px 13px; border-top: 1px solid #dce2df; color: #667670; background: white; font-size: 8px; }
.preview-bar span { display: inline-flex; align-items: center; gap: 5px; }
.preview-bar b { margin-left: auto; color: #94a09c; font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.dot.green { background: var(--sage); }.dot.amber { background: var(--amber); }.dot.copper { background: var(--copper); }
.checks-list { display: grid; gap: 7px; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 9px; background: #f7f8f5; }
.check-row > span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; border-radius: 50%; font-size: 9px; font-weight: 800; }
.check-row.pass > span { color: white; background: var(--sage); }.check-row.warning > span { color: white; background: var(--amber); }
.check-row b, .check-row small { display: block; }.check-row b { font-size: 9px; }.check-row small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.check-row svg { width: 12px; height: 12px; }
.warning-box { margin-top: 14px; padding: 13px; border: 1px solid #edd8ad; border-radius: 10px; background: var(--amber-soft); }
.warning-box b, .warning-box p { margin: 0; }.warning-box b { color: #754d0d; font-size: 9px; }.warning-box p { margin-top: 5px; color: #7b6643; font-size: 8px; line-height: 1.45; }
.confirm-line { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: #5e4d2f; font-size: 8px; font-weight: 650; cursor: pointer; }
.confirm-line input { accent-color: var(--copper); }
.inline-edit-note { color: var(--muted); font-size: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 9px 11px; border-bottom: 1px solid var(--line); color: #8a918e; font-size: 8px; font-weight: 720; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 11px; border-bottom: 1px solid var(--line-soft); color: #36433f; font-size: 9px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
td b, td small { display: block; } td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }.subtle { color: var(--muted); font-size: 8px; }
.cell-input { display: flex; align-items: center; width: 90px; border: 1px solid #d8dbd6; border-radius: 7px; background: #fff; }
.cell-input input { width: 58px; padding: 6px 3px 6px 8px; border: 0; background: transparent; font-size: 9px; }.cell-input span { color: var(--muted); font-size: 8px; }
.technical-params { display: grid; grid-template-columns: 1.1fr 1.1fr repeat(3, 1fr); gap: 12px; align-items: stretch; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.metric { display: flex; flex-direction: column; justify-content: center; min-height: 72px; padding: 10px 12px; border-left: 1px solid var(--line-soft); }
.metric span, .metric small { color: var(--muted); font-size: 8px; }.metric b { margin: 4px 0 2px; color: var(--forest); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.metric.highlight { padding-left: 14px; border: 0; border-radius: 10px; background: var(--copper-soft); }.metric.highlight b { color: var(--copper-dark); }
.formula-details { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.formula-details summary { display: flex; justify-content: space-between; color: var(--forest); font-size: 9px; font-weight: 700; cursor: pointer; list-style: none; }
.formula-details summary svg { width: 13px; transform: rotate(90deg); }
.formula-details[open] summary svg { transform: rotate(-90deg); }
.formula-list { display: grid; margin-top: 12px; }
.formula-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 130px 180px; gap: 13px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 8px; }
.formula-row:last-child { border-bottom: 0; }.formula-row b, .formula-row code { display: block; }.formula-row b { font-size: 9px; }.formula-row code { margin-top: 3px; color: var(--muted); background: transparent; font-size: 8px; }.formula-row strong { text-align: right; }.formula-row small { color: var(--muted); }

.sticky-actions { position: sticky; bottom: 16px; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 12px 14px; border: 1px solid rgba(207,210,205,.9); border-radius: 13px; background: rgba(255,254,250,.92); box-shadow: 0 10px 35px rgba(18,35,31,.12); backdrop-filter: blur(14px); }
.sticky-actions > div { display: flex; align-items: center; gap: 12px; }.sticky-actions small { color: var(--muted); font-size: 9px; }

.source-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid #ddd7cf; border-radius: 12px; background: #fffaf4; }
.source-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 8px; color: white; background: var(--copper); font-family: Georgia, serif; font-size: 13px; }
.source-strip > div:nth-child(2) { margin-right: auto; }.source-strip b, .source-strip p { margin: 0; }.source-strip b { font-size: 10px; }.source-strip p { margin-top: 2px; color: var(--muted); font-size: 8px; }
.source-time { display: inline-flex; align-items: center; gap: 6px; color: #6a716f; font-size: 8px; }.source-time i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.mode-toggle { display: flex; align-items: center; gap: 7px; padding-left: 13px; border-left: 1px solid #e4ddd5; cursor: pointer; }.mode-toggle input { display: none; }.mode-toggle > span { position: relative; width: 29px; height: 16px; border-radius: 20px; background: #cdd2ce; }.mode-toggle > span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: .2s; }.mode-toggle input:checked + span { background: var(--copper); }.mode-toggle input:checked + span::after { transform: translateX(13px); }.mode-toggle b { font-size: 8px; }
.market-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, .7fr); gap: 20px; margin-bottom: 20px; }
.market-inputs { display: grid; grid-template-columns: minmax(160px, 1fr) 24px minmax(150px, .8fr) 24px minmax(160px, .8fr); align-items: end; gap: 10px; padding: 15px; border-radius: 11px; background: #f7f7f3; }
.math-symbol { padding-bottom: 13px; color: #87908c; text-align: center; }
.market-result { display: flex; min-height: 61px; flex-direction: column; justify-content: center; padding: 9px 12px; border-left: 2px solid var(--copper); }.market-result span { color: var(--muted); font-size: 8px; }.market-result b { margin-top: 4px; color: var(--copper-dark); font-family: Georgia, serif; font-size: 19px; font-weight: 500; }.market-result small { margin-left: 3px; color: var(--muted); font: 8px Inter, sans-serif; }
.landed-breakdown { display: grid; gap: 0; margin-top: 14px; border: 1px solid var(--line); border-radius: 11px; }
.landed-breakdown > div, .landed-breakdown > label { display: flex; min-height: 39px; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid var(--line-soft); }
.landed-breakdown span { color: #52605c; font-size: 9px; }.landed-breakdown b { font-size: 9px; }
.landed-breakdown label > div { display: flex; align-items: center; gap: 4px; }.landed-breakdown label input { width: 65px; padding: 5px; border: 1px solid #d7dad6; border-radius: 6px; text-align: right; font-size: 9px; }.landed-breakdown label input:read-only { border-color: transparent; color: var(--ink); background: transparent; }
.landed-breakdown .landed-total { min-height: 50px; border-bottom: 0; border-radius: 0 0 10px 10px; background: var(--forest); }.landed-total span { color: rgba(255,255,255,.65); }.landed-total b { color: white; font-family: Georgia, serif; font-size: 19px; font-weight: 500; }.landed-total small { margin-left: 3px; font: 8px Inter, sans-serif; opacity: .6; }
.transparency-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; color: var(--muted); }.transparency-note svg { flex: 0 0 auto; width: 14px; height: 14px; }.transparency-note p { margin: 0; font-size: 8px; line-height: 1.45; }
.allocation-bar { display: flex; overflow: hidden; height: 12px; margin-top: 24px; border-radius: 7px; background: #e5e8e4; }.allocation-bar i { height: 100%; background: var(--sage); }.allocation-bar b { height: 100%; background: var(--copper); }
.bar-legend { display: flex; justify-content: space-between; margin: 8px 0 18px; color: var(--muted); font-size: 8px; }.bar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.inventory-kpis { display: grid; gap: 7px; }.inventory-kpis > div { padding: 11px 12px; border-radius: 9px; background: #f6f7f4; }.inventory-kpis > div.amber { background: var(--amber-soft); }.inventory-kpis span, .inventory-kpis b, .inventory-kpis small { display: block; }.inventory-kpis span { color: var(--muted); font-size: 8px; }.inventory-kpis b { margin: 3px 0; color: var(--forest); font-family: Georgia, serif; font-size: 18px; font-weight: 500; }.inventory-kpis small { color: var(--muted); font-size: 8px; }
.lot-type { display: block; width: max-content; margin-bottom: 3px; padding: 3px 5px; border-radius: 4px; font-size: 7px; font-weight: 760; letter-spacing: .06em; }.lot-type.lot { color: #2d6754; background: #e4f0eb; }.lot-type.remnant { color: #8a5a12; background: var(--amber-soft); }.muted-row { opacity: .47; }.allocated { color: var(--copper-dark); }
.scenario-section, .comparison { margin-top: 26px; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }.section-title h2 { margin: 4px 0 0; color: var(--forest); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.compact-select { display: grid; gap: 5px; }.compact-select span { color: var(--muted); font-size: 8px; }.compact-select select { min-width: 210px; height: 35px; padding: 0 9px; font-size: 9px; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }.policy-card { position: relative; display: flex; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; transition: .2s; }.policy-card:hover { border-color: #bdc6c1; }.policy-card.selected { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(201,105,55,.08); }.policy-card > input { display: none; }.radio-ui { position: relative; width: 17px; height: 17px; flex: 0 0 auto; border: 1px solid #b6bfba; border-radius: 50%; }.policy-card.selected .radio-ui { border: 5px solid var(--copper); }.policy-card > div { min-width: 0; }.policy-head { display: flex; justify-content: space-between; gap: 10px; }.policy-head b { font-size: 10px; }.policy-head span { padding: 3px 5px; border-radius: 4px; color: #2d6754; background: var(--sage-soft); font-size: 7px; font-weight: 700; }.policy-card p { min-height: 25px; margin: 5px 0 12px; color: var(--muted); font-size: 8px; line-height: 1.45; }.policy-card strong, .policy-card small { display: block; }.policy-card strong { color: var(--forest); font-family: Georgia, serif; font-size: 17px; font-weight: 500; }.policy-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.ai-insight { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 15px; border: 1px solid #d2dfda; border-radius: 12px; background: linear-gradient(100deg, #edf5f2, #f7faf8); }.ai-insight > svg { flex: 0 0 auto; color: var(--sage); }.ai-insight span, .ai-insight p { margin: 0; }.ai-insight div span { color: #3f7162; font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }.ai-insight p { margin-top: 4px; color: #50605b; font-size: 9px; line-height: 1.5; }.ai-label { margin-left: auto !important; padding: 4px 6px; border-radius: 5px; color: white; background: var(--sage); font-size: 7px; font-weight: 800; }

.cost-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .58fr); gap: 20px; }
.cost-lines { display: grid; }.cost-line { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(90px, .7fr) 100px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }.cost-line span, .cost-line small { display: block; }.cost-line span { font-size: 9px; font-weight: 640; }.cost-line small { margin-top: 3px; color: var(--muted); font-size: 8px; }.cost-line b { font-size: 10px; text-align: right; }.mini-bar { overflow: hidden; height: 5px; border-radius: 5px; background: #eceeea; }.mini-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--sage), #8ec5b3); }
.cost-lines.simple .cost-line { grid-template-columns: minmax(0, 1fr) auto; min-height: 58px; padding: 12px 0; }.cost-lines.simple .cost-line span { font-size: .9375rem; }.cost-lines.simple .cost-line small { font-size: .75rem; }.cost-lines.simple .cost-line b { font-size: 1rem; }
.cost-subtotal { display: grid; grid-template-columns: 1fr auto; align-items: center; margin: 15px -22px -22px; padding: 16px 22px; border-radius: 0 0 var(--radius) var(--radius); background: #f1f3ef; }.cost-subtotal span { color: var(--muted); font-size: 9px; }.cost-subtotal b { color: var(--forest); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.cost-subtotal small { grid-column: 2; color: var(--muted); font-size: 8px; text-align: right; }
.price-card { overflow: hidden; border-radius: var(--radius); color: white; background: var(--forest); box-shadow: var(--shadow); }.price-card-head { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }.price-card-head span { font-size: 10px; font-weight: 700; }.price-card-head small { color: rgba(255,255,255,.5); font-size: 8px; }.price-total { padding: 17px 20px 0; }.price-total span, .price-total b, .price-total small { display: block; }.price-total span { color: rgba(255,255,255,.52); font-size: 8px; }.price-total b { margin: 4px 0; font-family: Georgia, serif; font-size: 23px; font-weight: 500; }.price-total small { color: rgba(255,255,255,.38); font-size: 7px; }.price-total.grand { margin: 17px 20px 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.11); border-bottom: 1px solid rgba(255,255,255,.11); }.price-total.grand b { color: #f2c1a4; font-size: 29px; }
.margin-row, .floor-row { display: flex; justify-content: space-between; align-items: center; margin: 0 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); }.margin-row span, .floor-row span { color: rgba(255,255,255,.56); font-size: 8px; }.margin-row b, .floor-row b { font-size: 10px; }.floor-row { display: grid; grid-template-columns: 1fr auto; }.floor-row small { grid-column: 2; color: #91c7b6; font-size: 7px; }.price-foot { padding: 15px 20px; color: rgba(255,255,255,.5); font-size: 8px; }.price-foot b { color: white; }
.comparison-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.scenario-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); }.scenario-card.selected { border-color: var(--copper); box-shadow: 0 7px 22px rgba(201,105,55,.08); }.selected-tag { position: absolute; right: 13px; top: -9px; padding: 4px 7px; border-radius: 999px; color: white; background: var(--copper); font-size: 7px; font-weight: 750; }.scenario-title { display: flex; gap: 10px; align-items: flex-start; }.scenario-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 7px; color: var(--copper-dark); background: var(--copper-soft); }.scenario-title h3, .scenario-title p { margin: 0; }.scenario-title h3 { font-size: 11px; }.scenario-title p { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }.scenario-card dl { margin: 16px 0 0; }.scenario-card dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }.scenario-card dt { color: var(--muted); font-size: 8px; }.scenario-card dd { margin: 0; font-size: 9px; font-weight: 700; }.scenario-card .scenario-price { padding-top: 12px; border-bottom: 0; }.scenario-card .scenario-price dd { color: var(--forest); font-family: Georgia, serif; font-size: 17px; font-weight: 500; }.scenario-card footer { margin: 11px -18px -18px; padding: 10px 18px; border-radius: 0 0 12px 12px; color: var(--muted); background: #f7f7f3; font-size: 8px; }.formula-card { margin-top: 20px; }.audit-footer { display: flex; gap: 20px; align-items: center; margin: 14px -22px -22px; padding: 12px 22px; border-radius: 0 0 var(--radius) var(--radius); color: var(--muted); background: #f7f7f3; font-size: 8px; }.audit-footer button { margin-left: auto; }
.pricing-clarity { display: flex; gap: 13px; align-items: flex-start; margin-top: 20px; padding: 18px 20px; border-color: #cfe2db; background: #f2f8f5; }.pricing-clarity > svg { width: 21px; height: 21px; flex: 0 0 auto; color: var(--sage); }.pricing-clarity b { color: var(--forest); font-size: .9375rem; }.pricing-clarity p { margin: 5px 0 0; color: var(--muted); font-size: .8125rem; line-height: 1.55; }

.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); gap: 20px; align-items: start; }.review-grid.single { grid-template-columns: minmax(0, 1fr); }.review-main { display: grid; gap: 18px; }.alert-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.alert-item { display: flex; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.alert-item > span { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 auto; border-radius: 50%; font-size: 9px; font-weight: 800; }.alert-item > span svg { width: 13px; }.alert-item.info > span { color: #39657a; background: #e3eef3; }.alert-item.warning > span { color: #85570f; background: var(--amber-soft); }.alert-item.danger > span { color: var(--red); background: var(--red-soft); }.alert-item b, .alert-item p { margin: 0; }.alert-item b { font-size: 8px; }.alert-item p { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.review-preview { position: sticky; top: 90px; }.review-preview-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }.review-preview-label span, .review-preview-label b { display: block; }.review-preview-label span { color: var(--muted); font-size: .75rem; }.review-preview-label b { margin-top: 2px; color: var(--forest); font-size: .875rem; }.review-preview-label i { padding: 5px 7px; border-radius: 999px; color: var(--copper-dark); background: var(--copper-soft); font-size: .6875rem; font-style: normal; font-weight: 800; letter-spacing: .08em; }.review-sheet { overflow: hidden; padding: 24px; border: 1px solid #d8d6ce; border-radius: 4px; background: #fff; box-shadow: 0 14px 38px rgba(29,39,36,.1); }.review-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 2px solid var(--forest); }.review-sheet-head .official-logo { width: 128px; }.review-sheet-head > div { display: grid; justify-items: end; }.review-sheet-head span { color: var(--copper); font-size: .6875rem; font-weight: 800; letter-spacing: .12em; }.review-sheet-head b { margin-top: 4px; color: var(--ink); font-size: .9375rem; }.review-sheet-customer { display: grid; gap: 3px; padding: 20px 0; border-bottom: 1px solid var(--line); }.review-sheet-customer span { color: var(--muted); font-size: .6875rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }.review-sheet-customer b { color: var(--ink); font-size: 1rem; }.review-sheet-customer small { color: var(--muted); font-size: .75rem; }.review-sheet-line { display: flex; justify-content: space-between; gap: 16px; padding: 21px 0; border-bottom: 1px solid var(--line); }.review-sheet-line b, .review-sheet-line small { display: block; }.review-sheet-line b { font-size: .875rem; }.review-sheet-line small { margin-top: 4px; color: var(--muted); font-size: .75rem; }.review-sheet-line strong { flex: 0 0 auto; font-size: .875rem; }.review-sheet-price { display: grid; gap: 10px; padding: 18px 0; }.review-sheet-price > div { display: flex; justify-content: space-between; gap: 12px; }.review-sheet-price span { color: var(--muted); font-size: .75rem; }.review-sheet-price b { font-size: .875rem; }.review-sheet-price .total { display: grid; grid-template-columns: 1fr auto; align-items: end; padding-top: 14px; border-top: 1px solid var(--forest); }.review-sheet-price .total b { color: var(--forest); font-size: 1.55rem; }.review-sheet-price .total small { grid-column: 2; color: var(--muted); font-size: .6875rem; text-align: right; }.review-sheet-foot { display: flex; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }.review-sheet-foot b { color: var(--ink); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }.slider-field > span { display: flex; justify-content: space-between; }.slider-field > span b { color: var(--copper-dark); }.slider-field input[type="range"] { height: 5px; padding: 0; border: 0; accent-color: var(--copper); }.note-field { margin-top: 21px; padding-top: 19px; border-top: 1px solid var(--line-soft); }.note-field > span { display: flex; justify-content: space-between; }.note-field > span b { color: var(--red); font-size: 8px; }.note-field > span small { color: var(--muted); font-weight: 500; }
.timeline { display: grid; }.timeline > div { display: grid; grid-template-columns: 43px 12px 1fr; gap: 10px; min-height: 49px; }.timeline time { padding-top: 2px; color: var(--muted); font-size: 8px; text-align: right; }.timeline > div > span { position: relative; }.timeline > div > span::before { content: ""; position: absolute; z-index: 1; left: 2px; top: 4px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: #91a09b; box-shadow: 0 0 0 1px #91a09b; }.timeline > div > span::after { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: #d9ddda; }.timeline > div:last-child > span::after { display: none; }.timeline > div.current > span::before { background: var(--copper); box-shadow: 0 0 0 1px var(--copper), 0 0 0 5px var(--copper-soft); }.timeline p { margin: 0; }.timeline p b, .timeline p small { display: block; }.timeline p b { font-size: 9px; }.timeline p small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.approval-panel { position: relative; }.approval-sticky { position: sticky; top: 90px; overflow: hidden; padding: 20px; border-radius: var(--radius); color: white; background: var(--forest); box-shadow: var(--shadow); }.approval-head { display: flex; justify-content: space-between; align-items: center; margin: -20px -20px 0; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }.approval-head span { font-size: 10px; font-weight: 700; }.approval-head small { color: rgba(255,255,255,.44); font-size: 8px; }.approval-product { display: flex; gap: 11px; align-items: center; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.1); }.boiler-tiny { position: relative; width: 46px; height: 30px; flex: 0 0 auto; border: 1.5px solid #eab18f; border-radius: 50%; }.boiler-tiny::before { content: ""; position: absolute; left: -9px; top: -1.5px; width: 44px; height: 30px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 50%; }.approval-product b, .approval-product span { display: block; }.approval-product b { font-size: 9px; }.approval-product span { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 8px; }.approval-values { display: grid; padding: 10px 0; }.approval-values > div { display: flex; justify-content: space-between; padding: 7px 0; }.approval-values span { color: rgba(255,255,255,.5); font-size: 8px; }.approval-values b { font-size: 9px; }.approval-values .total { margin: 5px 0; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }.approval-values .total b { color: #efb28d; font-family: Georgia, serif; font-size: 22px; font-weight: 500; }.approval-checks { margin-bottom: 14px; }.approval-checks p { display: flex; align-items: center; gap: 7px; margin: 6px 0; color: #f0b2b2; font-size: 8px; }.approval-checks p.ok { color: #9dcdbc; }.approval-checks svg { width: 12px; height: 12px; }.approval-sticky .button { margin-top: 8px; }.approval-disclaimer { margin: 13px 2px 0; color: rgba(255,255,255,.38); font-size: 7px; line-height: 1.45; text-align: center; }

.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }.document-preview { position: relative; min-height: 750px; padding: 43px 48px 30px; border: 1px solid #d8d6ce; background: #fff; box-shadow: 0 15px 45px rgba(29,39,36,.1); }.doc-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 26px; border-bottom: 2px solid var(--forest); }.doc-brand .official-logo { width: 150px; }.doc-top > div:last-child { display: grid; justify-items: end; }.doc-top > div:last-child span { color: var(--copper); font-size: 8px; font-weight: 800; letter-spacing: .15em; }.doc-top > div:last-child b { margin: 5px 0; font-family: Georgia, serif; font-size: 17px; }.doc-top > div:last-child small { color: var(--muted); font-size: 8px; }.doc-customer { display: grid; grid-template-columns: 1.4fr .7fr; gap: 30px; padding: 21px 0; border-bottom: 1px solid var(--line); }.doc-customer span { color: #8b918e; font-size: 7px; font-weight: 750; letter-spacing: .1em; }.doc-customer b, .doc-customer p { display: block; margin: 0; }.doc-customer b { margin-top: 5px; font-size: 10px; }.doc-customer p { margin-top: 3px; color: var(--muted); font-size: 8px; }.doc-title { padding: 28px 0 23px; }.doc-title span { color: var(--copper); font-size: 8px; font-weight: 700; }.doc-title h2 { margin: 5px 0; color: var(--forest); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }.doc-title p { margin: 0; color: var(--muted); font-size: 9px; }.doc-table { border-top: 1px solid var(--forest); border-bottom: 1px solid var(--line); }.doc-row { display: grid; grid-template-columns: 1.7fr .35fr .55fr .6fr; gap: 12px; align-items: center; padding: 14px 4px; font-size: 9px; }.doc-row.head { padding: 8px 4px; color: var(--muted); font-size: 7px; font-weight: 700; text-transform: uppercase; }.doc-row > span:not(:first-child) { text-align: right; }.doc-row b, .doc-row small { display: block; }.doc-row small { margin-top: 4px; color: var(--muted); font-size: 8px; }.doc-totals { width: 290px; margin: 15px 0 23px auto; }.doc-totals > div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 9px; }.doc-totals .grand { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-top: 13px; border-top: 1px solid var(--forest); }.doc-totals .grand b { color: var(--forest); font-family: Georgia, serif; font-size: 21px; font-weight: 500; }.doc-totals .grand small { grid-column: 2; color: var(--muted); font-size: 7px; text-align: right; }.doc-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 19px 0; border-top: 1px solid var(--line); }.doc-conditions b { font-size: 8px; }.doc-conditions p { margin: 5px 0 0; color: var(--muted); font-size: 8px; line-height: 1.55; }.doc-footer { position: absolute; left: 48px; right: 48px; bottom: 28px; display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); color: #999f9c; font-size: 7px; }.draft-watermark { position: absolute; left: 50%; top: 52%; color: rgba(182,71,71,.09); font-size: 90px; font-weight: 850; letter-spacing: .15em; transform: translate(-50%,-50%) rotate(-28deg); }
.delivery-panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; }.success-seal { display: grid; place-items: center; width: 51px; height: 51px; margin: 0 auto 12px; border: 1px solid #b9d7cc; border-radius: 50%; color: white; background: var(--sage); box-shadow: 0 0 0 7px var(--sage-soft); }.success-seal svg { width: 24px; height: 24px; }.delivery-panel h2 { margin: 17px 0 6px; color: var(--forest); font-family: Georgia, serif; font-size: 20px; font-weight: 500; }.delivery-panel > p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }.delivery-meta { margin: 20px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.delivery-meta > div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 8px; }.delivery-meta > div:last-child { border: 0; }.delivery-meta span { color: var(--muted); }.green-text { color: #34715c; }.delivery-panel .button { margin-top: 9px; }.erp-warning { display: flex; gap: 9px; align-items: flex-start; margin-top: 17px; padding: 11px; border-radius: 9px; color: #66583e; background: var(--amber-soft); text-align: left; }.erp-warning > svg { flex: 0 0 auto; width: 17px; }.erp-warning b, .erp-warning p { margin: 0; }.erp-warning b { font-size: 8px; }.erp-warning p { margin-top: 3px; font-size: 7px; line-height: 1.4; }.text-button.center { display: block; margin: 15px auto 0; }
.client-landing { display: grid; grid-template-rows: 72px minmax(0, 1fr) 42px; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; color: var(--ink); background: #f3f5f6; }
.landing-header { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 24px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid var(--line); background: #fff; }
.landing-logo { display: block; width: 230px; text-decoration: none; }
.landing-contact { display: flex; align-items: baseline; gap: 10px; font-size: 11px; }
.landing-contact span { color: var(--muted); }
.landing-contact a { color: var(--copper); font-weight: 750; text-decoration: none; }
.landing-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.landing-main { display: grid; grid-template-columns: minmax(360px, .78fr) minmax(520px, 1.22fr); gap: 18px; width: min(1180px, calc(100% - 56px)); min-height: 0; height: 100%; margin: 0 auto; padding: 10px 0; align-items: stretch; }
.landing-intro { position: relative; overflow: hidden; display: flex; height: 100%; min-height: 0; flex-direction: column; justify-content: center; padding: 34px 46px; border-radius: 6px; color: white; background: var(--copper); isolation: isolate; }
.landing-intro::before, .landing-intro::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.landing-intro::before { width: 470px; height: 190px; right: -235px; top: 64px; box-shadow: -54px 0 0 -1px transparent, -54px 0 0 0 rgba(255,255,255,.1); }
.landing-intro::after { width: 360px; height: 140px; left: -245px; bottom: 86px; }
.landing-eyebrow { margin-bottom: 22px; color: rgba(255,255,255,.74); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.landing-intro h1 { max-width: 520px; margin: 0; font-size: clamp(44px, 5.5vw, 70px); font-weight: 760; line-height: .98; letter-spacing: -.052em; }
.landing-intro > p { max-width: 430px; margin: 18px 0 24px; color: rgba(255,255,255,.82); font-size: 13px; line-height: 1.55; }
.landing-steps { display: grid; gap: 0; margin-top: 2px; border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
.landing-steps > div { display: flex; gap: 13px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.landing-steps > div:last-child { border: 0; }
.landing-steps > div > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; font-size: 8px; font-weight: 800; }
.landing-steps p, .landing-steps b, .landing-steps small { margin: 0; }
.landing-steps b, .landing-steps small { display: block; }.landing-steps b { font-size: 11px; }.landing-steps small { margin-top: 2px; color: rgba(255,255,255,.62); font-size: 9px; }
.landing-trust { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: rgba(255,255,255,.9); }
.landing-trust > svg { width: 20px; height: 20px; flex: 0 0 auto; }
.landing-trust b, .landing-trust small { display: block; }.landing-trust b { font-size: 9px; }.landing-trust small { margin-top: 2px; color: rgba(255,255,255,.58); font-size: 8px; }
.landing-form-panel { display: flex; height: 100%; min-height: 0; flex-direction: column; justify-content: center; padding: 20px 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 18px 46px rgba(32,39,43,.07); }
.landing-form-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 12px; }
.landing-form-head span:first-child { color: var(--copper); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.landing-form-head h2 { margin: 5px 0 0; font-size: 27px; font-weight: 720; letter-spacing: -.025em; }
.demo-label { padding: 5px 7px; border: 1px solid #efc7c9; border-radius: 4px; color: var(--copper-dark); background: var(--copper-soft); font-size: 7px !important; letter-spacing: .08em !important; }
.landing-fields { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(130px, .7fr); gap: 9px 15px; }
.landing-fields .field > span, .landing-notes > span { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.landing-fields .field input { height: 40px; }
.landing-upload-label { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 6px; }
.landing-upload-label span { color: #3d474c; font-size: 9px; font-weight: 680; letter-spacing: .05em; text-transform: uppercase; }
.landing-upload-label small { color: var(--muted); font-size: 8px; }
.landing-file-ready { display: flex; align-items: center; gap: 13px; min-height: 66px; padding: 8px 12px; border: 1px solid #d8dee1; border-left: 3px solid var(--copper); border-radius: 7px; background: #f8f9f9; }
.landing-file-ready .file-icon { width: 41px; height: 44px; border: 1px solid var(--line); box-shadow: none; }
.landing-file-ready .file-meta { flex: 1; }.landing-file-ready .file-meta span { margin-bottom: 0; }.landing-file-ready .status-badge.success { color: #43525a; background: #e8ecee; }
.landing-dropzone { display: flex; min-height: 94px; align-items: center; gap: 15px; padding: 17px; border: 1px dashed #aeb9bf; border-radius: 7px; background: #f8f9f9; cursor: pointer; transition: .18s ease; }
.landing-dropzone:hover, .landing-dropzone.dragging { border-color: var(--copper); background: var(--copper-soft); }
.landing-dropzone > div { flex: 1; }.landing-dropzone b { font-size: 10px; }.landing-dropzone p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }.landing-dropzone u { color: var(--copper); text-decoration: none; font-weight: 700; }
.landing-notes { margin-top: 8px; }.landing-notes > span { display: flex; justify-content: space-between; }.landing-notes > span small { color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.landing-notes textarea { min-height: 54px; padding-top: 8px; padding-bottom: 8px; }
.landing-demo-note { display: flex; gap: 7px; align-items: flex-start; margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.35; }.landing-demo-note svg { width: 13px; height: 13px; flex: 0 0 auto; }.landing-demo-note b { color: #4d5a61; }
.landing-submit { width: 100%; min-height: 44px; margin-top: 8px; border-radius: 5px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; box-shadow: none; }
.landing-consent { margin: 7px 10px 0; color: #8a969d; font-size: 7px; line-height: 1.3; text-align: center; }
.landing-footer { display: flex; height: 100%; min-height: 0; align-items: center; justify-content: center; gap: 24px; padding: 0 28px; color: #8a969d; background: #fff; border-top: 1px solid var(--line); font-size: 8px; }

.thank-you-page { display: grid; grid-template-rows: 72px minmax(0, 1fr) 42px; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; background: #f3f5f6; }
.thank-you-header { height: 100%; }
.thank-you-main { display: grid; grid-template-columns: 1fr; width: min(760px, calc(100% - 56px)); min-height: 0; height: 100%; margin: 0 auto; padding: 10px 0; }
.thank-you-card { position: relative; overflow: hidden; display: flex; height: 100%; min-height: 0; flex-direction: column; justify-content: center; align-items: center; padding: 50px 70px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: center; box-shadow: 0 18px 46px rgba(32,39,43,.07); }
.thank-you-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--copper); }
.thank-you-seal { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 17px; border-radius: 50%; color: white; background: var(--copper); box-shadow: 0 0 0 8px var(--copper-soft); }
.thank-you-seal svg { width: 27px; height: 27px; }
.thank-you-eyebrow { color: var(--copper); font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.thank-you-card h1 { margin: 8px 0 13px; color: var(--ink); font-size: clamp(38px, 4.2vw, 56px); font-weight: 760; line-height: 1; letter-spacing: -.045em; }
.thank-you-card > p { max-width: 530px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* L’area interna riprende il linguaggio tecnico rosso/grigio del sito OVAM. */
.page-header h1, .section-heading h2, .card-top h2, .section-title h2,
.metric b, .market-result b, .inventory-kpis b, .policy-card strong,
.price-total b, .scenario-card .scenario-price dd, .doc-title h2,
.delivery-panel h2, .cost-subtotal b, .approval-values .total b {
  font-family: inherit;
  font-weight: 700;
}
.page-header h1 { letter-spacing: -.04em; }
.button.primary { box-shadow: 0 7px 18px rgba(214,32,39,.16); }
.disclosure { border-color: #d7dfe3; background: #eef1f2; }
.disclosure-icon { background: #dce2e5; }
.blueprint { color: #6d7e89; background: #f4f6f7; }
.drawing { stroke: #6d7e89; }
.ai-insight { border-color: #d7dfe3; background: linear-gradient(100deg, #eef1f2, #f8f9f9); }
.ai-insight > svg, .ai-insight div span { color: #5d6d76; }
.ai-label { background: #6d7e89; }
.toast { position: fixed; z-index: 50; right: 25px; bottom: 24px; display: flex; gap: 9px; align-items: center; max-width: 360px; padding: 13px 16px; border-radius: 6px; color: white; background: var(--forest); box-shadow: 0 12px 38px rgba(0,0,0,.2); font-size: 9px; animation: toast-in .28s ease-out; }.toast svg { width: 16px; color: #d6dde0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* Portale B2B privato */
.login-page { display: grid; grid-template-columns: minmax(430px, 1.05fr) minmax(420px, .95fr); min-height: 100vh; background: #fff; }
.login-page.admin-login { grid-template-columns: 1fr; background: #f4f6f7; }
.admin-login .login-panel { min-height: 100vh; }
.login-story { position: relative; overflow: hidden; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; padding: 52px 7vw 45px; color: #fff; background: linear-gradient(145deg, #d62027 0%, #ad171d 100%); isolation: isolate; }
.login-story::before, .login-story::after { content: ""; position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.login-story::before { width: 720px; height: 340px; right: -420px; top: 10%; box-shadow: -85px 0 0 -1px transparent, -85px 0 0 0 rgba(255,255,255,.08); }
.login-story::after { width: 550px; height: 250px; left: -340px; bottom: 7%; }
.login-brand { width: 220px; padding: 12px 16px; border-radius: 9px; background: #fff; }
.login-story-copy { max-width: 610px; }
.login-story-copy > span { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.login-story-copy h1 { margin: 15px 0 20px; font-size: clamp(42px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
.login-story-copy p { max-width: 530px; margin: 0; font-size: 14px; line-height: 1.65; opacity: .78; }
.login-story-foot { font-size: 9px; letter-spacing: .08em; opacity: .55; text-transform: uppercase; }
.login-panel { display: grid; place-items: center; padding: 45px; background: #f4f6f7; }
.login-card { width: min(410px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgba(32,39,43,.1); }
.login-lock { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 23px; border-radius: 50%; color: var(--copper); background: var(--copper-soft); }
.login-lock svg { width: 20px; height: 20px; }
.login-eyebrow { color: var(--copper); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-card h2 { margin: 7px 0 8px; font-size: 31px; letter-spacing: -.035em; }
.login-card > p { margin: 0 0 25px; color: var(--muted); font-size: 11px; }
.login-card .field { margin-top: 14px; }.login-card .field input { height: 46px; }
.login-submit { width: 100%; margin-top: 22px; }
.login-error { margin-top: 13px; padding: 10px; border-radius: 7px; color: var(--red); background: var(--red-soft); font-size: 9px; }
.demo-credentials { display: flex; justify-content: space-between; margin-top: 18px; padding: 10px 12px; border-radius: 8px; color: var(--muted); background: #f3f5f6; font-size: 9px; }
.demo-credentials b { color: var(--ink); }.login-card > a { display: block; margin-top: 18px; color: var(--copper); font-size: 9px; font-weight: 700; text-align: center; text-decoration: none; }

.customer-portal { min-height: 100vh; color: var(--ink); background: #f3f5f6; }
.portal-header { position: sticky; top: 0; z-index: 30; display: flex; height: 76px; align-items: center; gap: 38px; padding: 0 max(28px, calc((100vw - 1360px) / 2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.portal-logo { width: 190px; flex: 0 0 auto; }.portal-nav { display: flex; height: 100%; gap: 28px; }
.portal-nav button { position: relative; border: 0; color: var(--muted); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; }
.portal-nav button.active { color: var(--ink); }.portal-nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--copper); }
.portal-user-area { display: flex; align-items: center; gap: 14px; margin-left: auto; }.portal-market-chip { display: grid; grid-template-columns: 34px auto auto; gap: 10px; align-items: center; min-width: 245px; padding: 8px 10px; border: 1px solid #dde2e4; border-radius: 12px; background: linear-gradient(145deg, #fff, #f5f7f7); box-shadow: 0 5px 16px rgba(32,39,43,.06); }
.portal-market-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--copper); background: var(--copper-soft); }.portal-market-icon svg { width: 17px; height: 17px; }
.portal-market-data, .portal-market-data > span, .portal-market-data b, .portal-market-data small { display: block; }.portal-market-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }.portal-market-data b { margin-top: 1px; color: var(--ink); font-size: 15px; line-height: 1.2; }.portal-market-data b em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; }.portal-market-data small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.2; }
.portal-market-live { display: inline-flex; gap: 5px; align-items: center; align-self: start; padding: 4px 7px; border-radius: 999px; color: #34755d; background: #e4f1ec; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.portal-market-live i { width: 6px; height: 6px; border-radius: 50%; background: #4b9578; box-shadow: 0 0 0 3px rgba(75,149,120,.12); }.portal-market-chip.pending .portal-market-live { color: #85570f; background: var(--amber-soft); }.portal-market-chip.pending .portal-market-live i { background: var(--amber); box-shadow: none; }
.portal-user { display: flex; gap: 9px; align-items: center; }.portal-user > span, .admin-user > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--copper); font-size: 9px; font-weight: 800; }
.portal-user b, .portal-user small, .admin-user b, .admin-user small { display: block; }.portal-user b, .admin-user b { font-size: 9px; }.portal-user small, .admin-user small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.portal-icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; }.portal-icon-button svg { width: 15px; height: 15px; }
.portal-main { width: min(1360px, calc(100% - 56px)); margin: 0 auto; padding: 35px 0 120px; }
.portal-welcome { position: relative; overflow: hidden; display: flex; min-height: 215px; align-items: center; justify-content: space-between; gap: 40px; padding: 36px 48px; border-radius: 17px; color: #fff; background: linear-gradient(115deg, #252d32, #3e4a51); }
.portal-welcome::after { content: ""; position: absolute; right: -170px; width: 500px; height: 220px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: -55px 0 0 -1px transparent, -55px 0 0 0 rgba(255,255,255,.05); }
.portal-welcome > div:first-child { position: relative; z-index: 1; }.portal-welcome > div:first-child > span, .portal-page-title > span { color: #f2858a; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.portal-welcome h1 { margin: 9px 0 11px; font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; }.portal-welcome > div:first-child p { max-width: 640px; margin: 0; color: rgba(255,255,255,.64); font-size: 11px; line-height: 1.6; }
.market-proof { position: relative; z-index: 1; min-width: 245px; padding: 21px 23px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.07); backdrop-filter: blur(8px); }.market-proof > span { color: rgba(255,255,255,.55); font-size: 8px; }.market-proof > b { display: block; margin: 6px 0; font-size: 28px; }.market-proof > b small { margin-left: 4px; font-size: 9px; opacity: .5; }.market-proof p { display: flex; gap: 5px; align-items: center; margin: 0; color: #f6c18a; font-size: 8px; }.market-proof.approved p { color: #9ed6c0; }.market-proof svg { width: 11px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 25px; align-items: start; margin-top: 30px; }.catalog-products { min-width: 0; }.portal-section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 14px; }.portal-section-head span { color: var(--copper); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.portal-section-head h2 { margin: 4px 0 0; font-size: 23px; }.portal-section-head > small { color: var(--muted); font-size: 8px; }
.catalog-layout-direct { margin-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.product-card { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; text-align: left; transition: .2s ease; }.product-card:hover { border-color: #bbc3c7; transform: translateY(-2px); box-shadow: 0 10px 27px rgba(32,39,43,.08); }.product-card.selected { border-color: var(--copper); box-shadow: 0 0 0 2px rgba(214,32,39,.07); }.product-card.selected::before { content: ""; position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: 4px; background: var(--copper); }.product-select { position: relative; display: grid; grid-template-columns: 142px 1fr; width: 100%; min-height: 174px; padding: 0; border: 0; color: inherit; background: #fff; text-align: left; cursor: pointer; }
.product-media { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 174px; background: #fff; }.product-media img { width: 100%; height: 100%; object-fit: contain; }.product-media img.wide-source { width: 265%; max-width: none; height: 100%; object-fit: cover; object-position: left center; transform: translateX(1%); }
.product-copy { align-self: start; padding: 23px 14px 0 18px; }.product-copy small, .product-copy b, .product-copy em { display: block; }.product-copy small { color: var(--copper); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.product-copy b { margin: 7px 0 5px; font-size: 13px; line-height: 1.25; }.product-copy em { color: var(--muted); font-size: 8px; font-style: normal; }
.product-price { position: absolute; left: 160px; bottom: 18px; display: flex; align-items: baseline; gap: 3px; }.product-price b { font-size: 15px; }.product-price small { color: var(--muted); font-size: 7px; }.product-price > b:only-child { color: var(--amber); font-size: 9px; }.product-arrow { position: absolute; right: 13px; bottom: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--muted); background: #f1f3f4; }.product-card.selected .product-arrow { color: #fff; background: var(--copper); }.product-arrow svg { width: 13px; }
.product-card-docs { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-soft); }.product-card-docs button { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 4px; padding: 9px 4px; border: 0; border-right: 1px solid var(--line-soft); color: var(--muted); background: #fafbfb; font-size: 7px; font-weight: 750; cursor: pointer; }.product-card-docs button:last-child { border-right: 0; }.product-card-docs button:hover { color: var(--copper); background: var(--copper-soft); }.product-card-docs svg { width: 11px; height: 11px; }
.order-configurator { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 13px 38px rgba(32,39,43,.08); }.configurator-top { display: flex; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid var(--line); }.configurator-top span { font-size: 10px; font-weight: 750; }.configurator-top small { color: var(--muted); font-size: 8px; }.configurator-product { display: flex; gap: 13px; align-items: center; margin: 17px 20px 0; }.configurator-thumb { overflow: hidden; display: grid !important; place-items: center; width: 78px; height: 66px; flex: 0 0 auto; border-radius: 8px; background: #fff; }.configurator-thumb img { width: 100%; height: 100%; object-fit: contain; }.configurator-thumb img.wide-source { width: 260%; max-width: none; object-fit: cover; object-position: left center; }.configurator-product b, .configurator-product > div span { display: block; }.configurator-product b { font-size: 11px; }.configurator-product > div span { margin-top: 4px; color: var(--muted); font-size: 8px; }.configurator-description { margin: 13px 20px 18px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.quantity-control { display: grid; gap: 8px; margin: 0 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.quantity-control > span { font-size: 8px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }.quantity-control > div { display: grid; grid-template-columns: 38px 1fr 38px; height: 42px; border: 1px solid var(--line); border-radius: 8px; }.quantity-control button, .quantity-control input { border: 0; background: transparent; text-align: center; }.quantity-control button { color: var(--copper); font-size: 18px; cursor: pointer; }.quantity-control input { min-width: 0; font-weight: 800; }.quantity-control > small { color: var(--muted); font-size: 7px; }
.discount-note { margin: 13px 20px 0; padding: 8px; border-radius: 6px; color: #2f7158; background: #e5f2ed; font-size: 8px; text-align: center; }.price-calculation { display: grid; gap: 7px; margin: 16px 20px; }.price-calculation > div { display: flex; justify-content: space-between; }.price-calculation span { color: var(--muted); font-size: 8px; }.price-calculation b { font-size: 9px; }.order-total { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; color: #fff; background: var(--forest); }.order-total span, .order-total small { display: block; }.order-total span { color: rgba(255,255,255,.65); font-size: 8px; }.order-total small { margin-top: 2px; font-size: 7px; opacity: .55; }.order-total > b { font-size: 23px; }.order-confirm { width: calc(100% - 40px) !important; margin: 17px 20px 0; }.erp-connector-note { display: flex; gap: 7px; margin: 12px 20px 18px; color: var(--muted); font-size: 7px; line-height: 1.45; }.erp-connector-note svg { flex: 0 0 auto; width: 13px; }.price-waiting { display: flex; gap: 10px; margin: 17px 20px; padding: 13px; border-radius: 9px; color: #74551f; background: var(--amber-soft); }.price-waiting > span { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--amber); font-size: 9px; font-weight: 800; }.price-waiting b, .price-waiting p { margin: 0; }.price-waiting b { font-size: 8px; }.price-waiting p { margin-top: 4px; font-size: 7px; line-height: 1.45; }
.order-success-card { padding: 34px 28px; text-align: center; }.order-success-card .success-seal { width: 49px; height: 49px; margin-bottom: 18px; }.order-success-card > small { color: var(--copper); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }.order-success-card h2 { margin: 7px 0 13px; font-size: 24px; }.order-success-card > p { color: var(--muted); font-size: 9px; line-height: 1.5; }.order-success-card > div { display: flex; justify-content: space-between; margin: 20px 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.order-success-card > div span { color: var(--muted); font-size: 8px; }.order-success-card > div b { font-size: 18px; }.order-success-card .order-sync { display: flex; justify-content: center; gap: 6px; color: #317259; }.order-success-card .order-sync svg { width: 13px; }
.quote-fab { position: fixed; z-index: 32; right: 25px; bottom: 23px; display: flex; align-items: center; gap: 11px; padding: 11px 14px 11px 11px; border: 0; border-radius: 13px; color: #fff; background: var(--copper); box-shadow: 0 14px 35px rgba(173,23,29,.3); cursor: pointer; }.quote-fab > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: rgba(255,255,255,.15); }.quote-fab > span svg { width: 18px; }.quote-fab div { text-align: left; }.quote-fab b, .quote-fab small { display: block; }.quote-fab b { font-size: 9px; }.quote-fab small { margin-top: 3px; color: rgba(255,255,255,.72); font-size: 7px; }.quote-fab > svg { width: 13px; }
.quote-modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 25px; background: rgba(20,26,29,.68); backdrop-filter: blur(8px); animation: modal-in .2s ease; }.quote-modal { position: relative; overflow-y: auto; width: min(650px, 100%); max-height: calc(100vh - 50px); padding: 34px; border-radius: 16px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }.modal-close { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; color: var(--muted); background: #f1f3f4; cursor: pointer; }.modal-close svg { width: 14px; }.modal-intro > span { color: var(--copper); font-size: 8px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }.modal-intro h2 { margin: 6px 0; font-size: 28px; }.modal-intro p { margin: 0 0 22px; color: var(--muted); font-size: 10px; }.modal-form-grid { display: grid; grid-template-columns: 1.6fr .7fr; gap: 13px; }.modal-upload-label { display: flex; justify-content: space-between; margin: 17px 0 7px; font-size: 9px; font-weight: 700; }.modal-upload-label small { color: var(--muted); font-weight: 400; }.modal-notes { margin-top: 14px; }.modal-notes > span { display: flex; justify-content: space-between; }.modal-notes > span small { color: var(--muted); font-weight: 400; }.modal-submit { margin-top: 17px; }.modal-thank-you { padding: 45px 30px; text-align: center; }.modal-thank-you > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; color: #fff; background: var(--copper); }.modal-thank-you > span svg { width: 26px; }.modal-thank-you > small { color: var(--copper); font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.modal-thank-you h2 { margin: 8px auto 12px; max-width: 430px; font-size: 32px; line-height: 1.05; }.modal-thank-you p { max-width: 440px; margin: 0 auto 22px; color: var(--muted); font-size: 10px; line-height: 1.6; }@keyframes modal-in { from { opacity: 0; } }

.portal-page-title { padding: 20px 0 28px; }.portal-page-title h1 { margin: 6px 0 8px; font-size: 38px; letter-spacing: -.04em; }.portal-page-title p { margin: 0; color: var(--muted); font-size: 11px; }.document-library { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }.document-product { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.document-product-head { display: flex; gap: 18px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }.document-product-head img { width: 120px; height: 92px; object-fit: contain; }.document-product-head img.wide-source { object-fit: cover; object-position: 8% center; }.document-product-head small, .document-product-head h2, .document-product-head span { display: block; }.document-product-head small { color: var(--copper); font-size: 8px; font-weight: 800; }.document-product-head h2 { margin: 5px 0; font-size: 15px; }.document-product-head span { color: var(--muted); font-size: 8px; }.document-links { display: grid; grid-template-columns: 1fr 1fr; }.document-links button { display: flex; gap: 9px; align-items: center; padding: 13px 16px; border: 0; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; text-align: left; cursor: pointer; }.document-links button:hover { background: #f7f8f8; }.document-links button > svg { width: 15px; color: var(--copper); }.document-links b, .document-links small { display: block; }.document-links b { font-size: 8px; }.document-links small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.history-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }.history-summary > div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.history-summary span, .history-summary b { display: block; }.history-summary span { color: var(--muted); font-size: 8px; }.history-summary b { margin-top: 7px; font-size: 24px; }.portal-history-table { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.portal-table-row { display: grid; grid-template-columns: .8fr .7fr 1.7fr .6fr .8fr 1.1fr; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 9px; }.portal-table-row.head { color: var(--muted); background: #f6f7f7; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.portal-table-row:last-child { border: 0; }.portal-table-row span b, .portal-table-row span small { display: block; }.portal-table-row span small { margin-top: 3px; color: var(--muted); font-size: 7px; }.order-status { display: inline-flex; padding: 5px 7px; border-radius: 999px; color: #85570f; background: var(--amber-soft); font-size: 7px; font-style: normal; font-weight: 750; }.order-status.delivered { color: #317259; background: #e4f1ec; }
.orders-empty { display: grid; place-items: center; min-height: 210px; padding: 35px; color: var(--muted); text-align: center; }.orders-empty svg { width: 30px; margin-bottom: 12px; color: var(--copper); }.orders-empty b { color: var(--ink); font-size: 1rem; }.orders-empty span { margin-top: 5px; font-size: .8125rem; }

.admin-sidebar { padding-bottom: 18px; }.admin-company { margin: 25px 7px 17px; padding: 0 4px; }.admin-company span, .admin-company b, .admin-company small { display: block; }.admin-company span { color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }.admin-company b { margin: 5px 0 3px; font-size: 14px; }.admin-company small { color: rgba(255,255,255,.45); font-size: 8px; }.admin-main-nav { display: grid; gap: 5px; }.admin-main-nav > button { display: flex; gap: 11px; align-items: center; width: 100%; padding: 11px; border: 0; border-radius: 9px; color: rgba(255,255,255,.6); background: transparent; text-align: left; cursor: pointer; }.admin-main-nav > button:hover, .admin-main-nav > button.active { color: #fff; background: rgba(255,255,255,.09); }.admin-main-nav > button > svg { width: 18px; height: 18px; flex: 0 0 auto; }.admin-main-nav b, .admin-main-nav small { display: block; }.admin-main-nav b { font-size: 10px; }.admin-main-nav small { margin-top: 3px; font-size: 7px; opacity: .53; }.admin-quote-steps { overflow-y: auto; margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.1); }.admin-quote-steps > span { display: block; margin: 0 10px 7px; color: rgba(255,255,255,.38); font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }.admin-quote-steps .step { padding-top: 7px; padding-bottom: 7px; }.admin-quote-steps .step-index { width: 25px; height: 25px; }.admin-logout { display: flex; gap: 8px; align-items: center; margin-top: auto; padding: 11px; border: 0; border-top: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.5); background: transparent; font-size: 8px; cursor: pointer; }.admin-logout svg { width: 15px; }.admin-user { display: flex; gap: 9px; align-items: center; }.admin-user > span { width: 32px; height: 32px; }.admin-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }.admin-kpis > div { position: relative; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.admin-kpis > div > span, .admin-kpis > div > b, .admin-kpis > div > small { display: block; }.admin-kpis > div > span { color: var(--muted); font-size: 8px; }.admin-kpis > div > b { margin: 6px 0 2px; font-size: 24px; }.admin-kpis > div > b small { margin-left: 3px; color: var(--muted); font-size: 9px; }.admin-kpis > div > small { color: var(--muted); font-size: 7px; }.admin-kpis i { position: absolute; right: 15px; top: 15px; padding: 5px 7px; border-radius: 999px; color: #85570f; background: var(--amber-soft); font-size: 7px; font-style: normal; }.admin-kpis i.ok { color: #317259; background: #e4f1ec; }.admin-commerce-grid { display: grid; grid-template-columns: minmax(0, 1fr); }.pricing-approval-card, .admin-price-table { padding: 22px; }.pricing-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 17px; border-radius: 10px; background: #f5f6f6; }.pricing-editor > div:last-child { display: flex; flex-direction: column; justify-content: center; }.pricing-editor > div > span, .pricing-editor > div > b, .pricing-editor > div > small { display: block; }.pricing-editor > div > span { color: var(--muted); font-size: 8px; }.pricing-editor > div > b { margin: 5px 0 3px; font-size: 11px; }.pricing-editor > div > small { color: var(--muted); font-size: 7px; }.approval-state { display: flex; gap: 11px; align-items: center; margin-top: 14px; padding: 13px; border-radius: 9px; background: var(--amber-soft); }.approval-state.approved { background: #e5f2ed; }.approval-state > span { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; border-radius: 50%; color: #fff; background: var(--amber); font-size: 9px; font-weight: 800; }.approval-state.approved > span { background: #4b9578; }.approval-state svg { width: 13px; }.approval-state b, .approval-state p { margin: 0; }.approval-state b { font-size: 9px; }.approval-state p { margin-top: 3px; color: var(--muted); font-size: 8px; }.admin-price-table { margin-top: 19px; }.admin-orders-list { display: grid; gap: 10px; }.admin-order-row { display: grid; grid-template-columns: 1.8fr .7fr .7fr 1fr auto; gap: 20px; align-items: center; padding: 17px 19px; }.admin-order-row > div > span, .admin-order-row > div > b, .admin-order-row > div > small { display: block; }.admin-order-row > div > span, .admin-order-row > div > small { color: var(--muted); font-size: 8px; }.admin-order-row > div > b { margin: 4px 0; font-size: 10px; }

/* Passaggio di leggibilità: caratteri più grandi, contrasto e target più comodi. */
:root { --muted: #5d6b74; }
.portal-nav button { font-size: 12px; }
.portal-user b { font-size: 11px; }.portal-user small { font-size: 9px; }
.portal-section-head { margin-bottom: 18px; }.portal-section-head span { font-size: 10px; }.portal-section-head h2 { font-size: 28px; }.portal-section-head > small { font-size: 10px; }
.product-select { grid-template-columns: 160px 1fr; min-height: 194px; }.product-media { min-height: 194px; }
.product-copy { padding: 27px 18px 0 21px; }.product-copy small { font-size: 9px; }.product-copy b { margin-top: 9px; font-size: 16px; line-height: 1.3; }.product-copy em { margin-top: 6px; font-size: 10px; }
.product-price { left: 181px; bottom: 22px; }.product-price b { font-size: 19px; }.product-price small { font-size: 9px; }.product-price > b:only-child { font-size: 11px; }
.product-arrow { right: 16px; bottom: 17px; width: 34px; height: 34px; }.product-arrow svg { width: 15px; }
.product-card-docs button { min-height: 40px; gap: 6px; padding: 10px 5px; font-size: 9px; }.product-card-docs svg { width: 13px; height: 13px; }
.configurator-top { padding: 20px 22px; }.configurator-top span { font-size: 13px; }.configurator-top small { font-size: 10px; }
.configurator-product { margin-top: 20px; }.configurator-product b { font-size: 14px; line-height: 1.3; }.configurator-product > div span { margin-top: 5px; font-size: 10px; }
.configurator-description { margin-top: 16px; font-size: 10.5px; line-height: 1.65; }
.quantity-control > span { font-size: 10px; }.quantity-control input { font-size: 16px; }.quantity-control > small { font-size: 9px; }
.price-calculation { gap: 9px; }.price-calculation span { font-size: 10px; }.price-calculation b { font-size: 11px; }
.order-total span { font-size: 10px; }.order-total small { font-size: 8px; }.order-total > b { font-size: 27px; }
.order-confirm { min-height: 48px; font-size: 12px; }.erp-connector-note { font-size: 9px; line-height: 1.55; }
.quote-fab { padding: 13px 17px 13px 13px; }.quote-fab b { font-size: 11px; }.quote-fab small { font-size: 9px; }
.portal-page-title > span { font-size: 10px; }.portal-page-title h1 { font-size: 42px; }.portal-page-title p { font-size: 13px; }
.document-product-head small { font-size: 10px; }.document-product-head h2 { font-size: 18px; }.document-product-head span { font-size: 10px; }
.document-links b { font-size: 10px; }.document-links small { font-size: 9px; }
.history-summary span { font-size: 10px; }.history-summary b { font-size: 28px; }.portal-table-row { font-size: 11px; }.portal-table-row.head { font-size: 9px; }.portal-table-row span small { font-size: 9px; }.order-status { font-size: 9px; }
.login-eyebrow { font-size: 10px; }.login-card h2 { font-size: 34px; }.login-card > p { font-size: 13px; }.login-card .field > span { font-size: 11px; }.login-card .field input { font-size: 13px; }.login-submit { min-height: 48px; font-size: 11px; }.demo-credentials, .login-card > a { font-size: 10px; }
.admin-company span { font-size: 9px; }.admin-company b { font-size: 16px; }.admin-company small { font-size: 9px; }
.admin-main-nav b { font-size: 12px; }.admin-main-nav small { font-size: 9px; }.admin-logout { font-size: 10px; }
.admin-portal-shell .page-header p { font-size: 14px; }.admin-portal-shell .eyebrow, .admin-portal-shell .kicker { font-size: 10px; }.admin-portal-shell .card-top h2 { font-size: 22px; }
.admin-kpis > div > span { font-size: 10px; }.admin-kpis > div > b { font-size: 28px; }.admin-kpis > div > small, .admin-kpis i { font-size: 9px; }
.admin-portal-shell .field > span { font-size: 11px; }.admin-portal-shell .field input, .admin-portal-shell .field textarea { font-size: 12px; }
.pricing-editor > div > span { font-size: 10px; }.pricing-editor > div > b { font-size: 13px; }.pricing-editor > div > small { font-size: 9px; }
.approval-state b { font-size: 11px; }.approval-state p { font-size: 10px; }
.admin-portal-shell th { font-size: 9px; }.admin-portal-shell td { font-size: 11px; }.admin-portal-shell td small { font-size: 9px; }.admin-portal-shell .status-badge, .admin-portal-shell .tiny-pill { font-size: 9px; }
.admin-order-row > div > span, .admin-order-row > div > small { font-size: 10px; }.admin-order-row > div > b { font-size: 12px; }
.ai-market-search { margin-top: 14px; padding: 15px; border: 1px solid #dce2e5; border-radius: 11px; background: #fbfcfc; }.ai-market-search.error { border-color: #ecc8ca; background: #fff8f8; }
.ai-market-search-head { display: flex; gap: 11px; align-items: center; }.ai-market-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 9px; color: var(--copper); background: var(--copper-soft); }.ai-market-icon svg { width: 17px; }.ai-market-search-head > div { min-width: 0; flex: 1; }.ai-market-search-head b { display: block; font-size: 12px; }.ai-market-search-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.ai-search-button { flex: 0 0 auto; min-width: 132px; }
.ai-market-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 8px; color: #92282c; background: #f9e6e7; font-size: 10px; line-height: 1.45; }
.ai-market-result { display: grid; grid-template-columns: .7fr 1.3fr; gap: 15px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line-soft); }.ai-market-result span, .ai-market-result b, .ai-market-result small { display: block; }.ai-market-result span { color: var(--muted); font-size: 9px; }.ai-market-result b { margin-top: 4px; font-size: 12px; line-height: 1.35; }.ai-market-result > div:first-child > b { color: var(--copper); font-size: 20px; }.ai-market-result b small { display: inline; margin-left: 3px; color: var(--muted); font-size: 9px; }.ai-market-result > div:last-child > small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ai-market-sources { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 11px; }.ai-market-sources span { color: var(--muted); font-size: 9px; }.ai-market-sources a { padding: 5px 7px; border-radius: 999px; color: #49575f; background: #eef1f2; font-size: 9px; text-decoration: none; }.ai-market-sources a:hover { color: var(--copper); background: var(--copper-soft); }
.search-spinner { width: 13px; height: 13px; border: 2px solid #d8dcde; border-top-color: var(--copper); border-radius: 50%; animation: search-spin .75s linear infinite; }@keyframes search-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .portal-header { gap: 18px; }.portal-nav { gap: 14px; }.portal-user > div, .portal-market-chip { display: none; }
  .catalog-layout { grid-template-columns: 1fr 320px; }.product-grid { grid-template-columns: 1fr; }
  .admin-commerce-grid { grid-template-columns: 1fr; }.document-library { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .login-page { grid-template-columns: 1fr; }.login-story { min-height: 330px; padding: 35px; }.login-story-copy h1 { font-size: 40px; }.login-story-foot { display: none; }.login-panel { padding: 25px 16px; }
  .portal-header { height: auto; min-height: 68px; flex-wrap: wrap; padding: 12px 18px; }.portal-logo { width: 145px; }.portal-nav { order: 3; width: 100%; height: 42px; justify-content: space-between; }.portal-nav button { flex: 1; }.portal-market-chip, .portal-user { display: none; }
  .portal-main { width: calc(100% - 28px); padding-top: 18px; }.portal-welcome { align-items: flex-start; flex-direction: column; padding: 30px; }.market-proof { width: 100%; }.catalog-layout { grid-template-columns: 1fr; }.order-configurator { position: static; }.product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }.product-select { grid-template-columns: 1fr; }.product-media { min-height: 160px; }.product-copy { padding-bottom: 58px; }.product-price { left: 18px; }.quote-fab { right: 14px; bottom: 14px; }.quote-fab div { display: none; }
  .portal-table-row { grid-template-columns: .8fr 1.5fr .7fr .9fr; }.portal-table-row > :nth-child(2), .portal-table-row > :nth-child(4) { display: none; }.history-summary { grid-template-columns: 1fr; }
  .admin-kpis { grid-template-columns: 1fr; }.admin-order-row { grid-template-columns: 1fr 1fr; }.admin-order-row > div:first-child { grid-column: span 2; }.admin-order-row .button { grid-column: span 2; }.ai-market-search-head { align-items: flex-start; flex-wrap: wrap; }.ai-search-button { width: 100%; }.ai-market-result { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .login-story { min-height: 285px; padding: 27px 23px; }.login-brand { width: 165px; }.login-story-copy h1 { font-size: 33px; }.login-story-copy p { font-size: 11px; }.login-card { padding: 29px 23px; }
  .portal-welcome { padding: 25px 22px; }.portal-welcome h1 { font-size: 34px; }.product-grid { grid-template-columns: 1fr; }.product-select { grid-template-columns: 120px 1fr; }.product-media { min-height: 168px; }.product-copy { padding-bottom: 48px; }.product-price { left: 138px; }.document-links { grid-template-columns: 1fr; }.document-product-head img { width: 85px; }.modal-form-grid { grid-template-columns: 1fr; }.modal-form-grid .span-2 { grid-column: auto; }.quote-modal { padding: 28px 20px; }.portal-page-title h1 { font-size: 31px; }
  .pricing-editor { grid-template-columns: 1fr; }.pricing-actions { flex-direction: column; }.admin-order-row { grid-template-columns: 1fr; }.admin-order-row > div:first-child, .admin-order-row .button { grid-column: auto; }
}

@media (max-width: 1120px) {
  .landing-main { grid-template-columns: minmax(310px, .72fr) minmax(470px, 1.28fr); width: min(100% - 36px, 1000px); }
  .landing-intro { padding: 30px 34px; }.landing-form-panel { padding: 22px 34px; }
  .sidebar { width: 216px; padding-left: 14px; padding-right: 14px; }
  .main { margin-left: 216px; }
  .content { padding-left: 27px; padding-right: 27px; }
  .admin-quote-request-card { grid-template-columns: 1fr; }.quote-request-open { width: max-content; }
  .validation-grid, .market-grid, .cost-layout { grid-template-columns: 1fr; }
  .inventory-summary { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .inventory-summary .card-top { grid-column: span 2; }
  .inventory-kpis { grid-template-columns: repeat(3, 1fr); grid-column: span 2; }
  .technical-params { grid-template-columns: repeat(3, 1fr); }.technical-params .field { grid-column: auto; }
  .formula-row { grid-template-columns: 60px minmax(0, 1fr) 120px; }.formula-row small { display: none; }
  .review-grid { grid-template-columns: minmax(0,1fr) 330px; }
}

@media (max-width: 860px) {
  .client-landing { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .thank-you-page { display: block; height: auto; min-height: 100vh; overflow: visible; }
  .landing-header { height: 82px; padding: 0 24px; }.landing-logo { width: 205px; }
  .landing-main { grid-template-columns: 1fr; width: min(100% - 32px, 680px); height: auto; padding: 26px 0; }
  .landing-intro { height: auto; min-height: auto; padding: 40px; }.landing-intro h1 { font-size: 52px; }.landing-intro > p { margin-bottom: 26px; }
  .landing-form-panel { height: auto; min-height: auto; padding: 40px; }.landing-footer { height: auto; min-height: 68px; flex-wrap: wrap; gap: 8px 20px; padding: 14px 24px; }
  .thank-you-main { grid-template-columns: 1fr; width: min(100% - 32px, 680px); height: auto; padding: 26px 0; }
  .thank-you-card { height: auto; min-height: 520px; padding: 45px 40px; }
  .sidebar { position: static; width: 100%; height: auto; padding: 14px 18px; flex-direction: row; align-items: center; }
  .sidebar > .brand, .case-label, .sidebar-foot { display: none; }
  .stepper { display: flex; width: 100%; overflow-x: auto; gap: 7px; }
  .step { min-width: 120px; padding: 7px 9px; background: rgba(255,255,255,.04); }.step.active::before { display: none; }.step-index { width: 25px; height: 25px; }.step b { font-size: 10px; }
  .main { margin-left: 0; }.topbar { top: 0; padding: 0 20px; }.mobile-brand { display: block; margin-right: auto; }.mobile-brand .brand-name { display: none; }.mobile-brand .brand-mark { color: var(--forest); transform: scale(.8); }.environment { display: none; }
  .request-layout, .review-grid, .quote-layout { grid-template-columns: 1fr; }.side-info { grid-template-columns: repeat(3, 1fr); }.case-visual, .privacy-note { grid-column: span 3; }.approval-sticky, .review-preview { position: static; }.document-preview { min-height: 680px; }
  .alert-summary, .policy-grid, .comparison-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .landing-header { height: 72px; padding: 0 17px; }.landing-logo { width: 175px; }.landing-contact span { display: none; }.landing-contact a { font-size: 9px; }
  .landing-main { width: calc(100% - 22px); padding: 12px 0 22px; gap: 12px; }
  .landing-intro { padding: 31px 25px; border-radius: 4px; }.landing-intro h1 { font-size: 42px; }.landing-intro > p { margin: 18px 0 25px; font-size: 12px; }.landing-eyebrow { margin-bottom: 15px; }
  .landing-steps { grid-template-columns: repeat(3, 1fr); }.landing-steps > div { display: grid; justify-items: start; gap: 8px; padding: 12px 5px; border-right: 1px solid rgba(255,255,255,.15); border-bottom: 0; }.landing-steps > div:last-child { border-right: 0; }.landing-steps small { display: none; }
  .landing-form-panel { padding: 29px 22px; border-radius: 4px; }.landing-form-head h2 { font-size: 23px; }.landing-fields { grid-template-columns: 1fr; }.landing-fields .span-2 { grid-column: auto; }
  .landing-file-ready { flex-wrap: wrap; }.landing-file-ready .file-meta { min-width: 170px; }.landing-file-ready .status-badge { margin-left: 54px; }.landing-upload-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .landing-footer { display: grid; justify-items: center; padding: 18px; text-align: center; }
  .thank-you-main { width: calc(100% - 22px); padding: 12px 0 22px; gap: 12px; }
  .thank-you-card { min-height: 480px; padding: 36px 22px; }.thank-you-card h1 { font-size: 39px; }
  .content { padding: 24px 15px 90px; }.topbar { height: 60px; gap: 8px; padding: 0 12px; }.role-switch button { padding: 6px 9px; }.icon-button span { display: none; }.avatar { display: none; }
  .page-header { display: block; }.page-actions { margin-top: 13px; }.page-header h1 { font-size: 29px; }
  .form-card, .preview-card, .checks-card, .data-card, .market-card, .inventory-summary, .inventory-card, .cost-stack, .formula-card, .controls-card, .history-card { padding: 17px; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: span 1; }.form-footer { display: grid; margin: 22px -17px -17px; padding: 15px 17px; }.form-footer .button { width: 100%; }
  .side-info { grid-template-columns: 1fr; }.case-visual, .privacy-note { grid-column: span 1; }
  .file-ready { flex-wrap: wrap; }.file-meta { min-width: 150px; }.file-ready .status-badge { margin-left: 59px; }
  .technical-params, .control-grid { grid-template-columns: 1fr; }.technical-params .metric { border-left: 0; border-top: 1px solid var(--line-soft); }.formula-row { grid-template-columns: 54px 1fr; }.formula-row strong { grid-column: 2; text-align: left; }
  .sticky-actions { position: static; align-items: stretch; }.sticky-actions > div { display: grid; flex: 1; }.sticky-actions small { display: none; }.sticky-actions .button { min-width: 0; padding: 0 11px; }
  .source-strip { flex-wrap: wrap; }.source-time { margin-left: 46px; }.mode-toggle { margin-left: 46px; padding-left: 0; border: 0; }.market-inputs { grid-template-columns: 1fr; }.math-symbol { display: none; }.inventory-summary { display: block; }.inventory-summary .card-top { display: flex; }.inventory-kpis { grid-template-columns: 1fr; }.section-title { align-items: stretch; flex-direction: column; }.compact-select select { width: 100%; }
  .cost-line { grid-template-columns: 1fr 80px; }.mini-bar { display: none; }.comparison-grid { grid-template-columns: 1fr; }.audit-footer { flex-wrap: wrap; margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
  .document-preview { min-height: 750px; padding: 28px 22px; }.doc-footer { left: 22px; right: 22px; }.doc-customer, .doc-conditions { grid-template-columns: 1fr; gap: 15px; }.doc-row { grid-template-columns: 1fr .22fr .5fr; }.doc-row > span:nth-child(3), .doc-row.head > span:nth-child(3) { display: none; }.doc-totals { width: 100%; }.draft-watermark { font-size: 55px; }
  .toast { left: 15px; right: 15px; bottom: 15px; }
}

@media print {
  .sidebar, .topbar, .page-header, .delivery-panel, .sticky-actions { display: none !important; }
  .main { margin: 0; }.content { padding: 0; }.quote-layout { display: block; }.document-preview { min-height: 100vh; border: 0; box-shadow: none; }
}

/* Scala tipografica accessibile: testo leggibile, reflow fluido e controlli comodi. */
body { font-size: 1rem; line-height: 1.5; }
.customer-portal, .admin-portal-shell, .login-page, .client-landing, .thank-you-page { line-height: 1.5; }
.button { min-height: 44px; padding-inline: 1.125rem; font-size: .875rem; }
.field { gap: .5rem; }.field > span { font-size: .8125rem; }.field > small { font-size: .75rem; }.field input, .field textarea, .compact-select select { min-height: 44px; font-size: 1rem; }.input-suffix i { font-size: .75rem; }
.eyebrow, .kicker { font-size: .75rem; }.page-header p { font-size: .9375rem; }.section-heading h2 { font-size: 1.5rem; }.section-heading p { font-size: .875rem; }
.status-badge, .tiny-pill, .secure-chip { font-size: .75rem; }.text-button, .link-button { min-height: 36px; font-size: .8125rem; }

/* Area cliente */
.portal-header { min-height: 82px; }.portal-nav button { min-height: 44px; font-size: .875rem; }
.portal-market-label { font-size: .6875rem; }.portal-market-data b { font-size: 1rem; }.portal-market-data small { font-size: .6875rem; }.portal-market-live { font-size: .625rem; }
.order-confirm { margin-bottom: 1rem; }
.portal-user > span { width: 40px; height: 40px; font-size: .75rem; }.portal-user b { font-size: .8125rem; }.portal-user small { font-size: .75rem; }
.portal-icon-button { width: 44px; height: 44px; }.portal-icon-button svg { width: 18px; height: 18px; }
.portal-section-head span, .portal-page-title > span { font-size: .75rem; }.portal-section-head h2 { font-size: 2rem; }.portal-section-head > small { font-size: .75rem; }
.product-select { grid-template-columns: 170px 1fr; min-height: 210px; }.product-media { min-height: 210px; }
.product-copy { padding: 1.75rem 1.25rem 0 1.4rem; }.product-copy small { font-size: .75rem; }.product-copy b { margin-top: .55rem; font-size: 1.125rem; line-height: 1.35; }.product-copy em { margin-top: .35rem; font-size: .8125rem; }
.product-price { left: 194px; bottom: 24px; }.product-price b { font-size: 1.5rem; }.product-price small, .product-price > b:only-child { font-size: .75rem; }
.product-arrow { width: 40px; height: 40px; }.product-card-docs button { min-height: 46px; font-size: .75rem; }.product-card-docs svg { width: 15px; height: 15px; }
.configurator-top { padding: 1.25rem 1.4rem; }.configurator-top span { font-size: 1rem; }.configurator-top small { font-size: .75rem; }
.configurator-product b { font-size: 1rem; }.configurator-product > div span { font-size: .8125rem; }.configurator-description { font-size: .875rem; line-height: 1.6; }
.quantity-control > span { font-size: .75rem; }.quantity-control > div { min-height: 46px; }.quantity-control button { min-width: 44px; }.quantity-control input { font-size: 1rem; }.quantity-control > small { font-size: .75rem; }
.discount-note { font-size: .75rem; }.price-calculation span, .price-calculation b { font-size: .8125rem; }.order-total span { font-size: .8125rem; }.order-total small { font-size: .6875rem; }.order-total > b { font-size: 1.75rem; }
.order-confirm { min-height: 48px; font-size: .875rem; }.erp-connector-note { font-size: .75rem; }.price-waiting b { font-size: .8125rem; }.price-waiting p { font-size: .75rem; }
.quote-fab { min-height: 56px; }.quote-fab b { font-size: .875rem; }.quote-fab small { font-size: .75rem; }
.portal-page-title h1 { font-size: clamp(2.125rem, 4vw, 2.75rem); }.portal-page-title p { font-size: .9375rem; }
.document-product-head small, .document-product-head span { font-size: .75rem; }.document-product-head h2 { font-size: 1.25rem; }.document-links button { min-height: 54px; }.document-links b { font-size: .8125rem; }.document-links small { font-size: .75rem; }
.history-summary span { font-size: .8125rem; }.history-summary b { font-size: 2rem; }.portal-table-row { min-height: 52px; font-size: .875rem; }.portal-table-row.head { font-size: .6875rem; }.portal-table-row span small, .order-status { font-size: .75rem; }
.modal-intro > span, .modal-upload-label { font-size: .75rem; }.modal-intro p, .modal-thank-you p { font-size: .875rem; }.modal-thank-you > small { font-size: .75rem; }.modal-close { width: 44px; height: 44px; }

/* Accesso */
.login-eyebrow { font-size: .75rem; }.login-card h2 { font-size: 2.25rem; }.login-card > p { font-size: .9375rem; }.login-card .field > span { font-size: .8125rem; }.login-card .field input { min-height: 48px; font-size: 1rem; }.login-submit { min-height: 48px; font-size: .875rem; }.login-error, .demo-credentials, .login-card > a { font-size: .8125rem; }

/* Area amministrativa */
.admin-company span { font-size: .6875rem; }.admin-company b { font-size: 1.125rem; }.admin-company small { font-size: .75rem; }
.admin-main-nav > button { min-height: 58px; }.admin-main-nav b { font-size: .875rem; }.admin-main-nav small { font-size: .75rem; }.admin-logout { min-height: 48px; font-size: .8125rem; }
.admin-user > span { width: 40px; height: 40px; font-size: .75rem; }.admin-user b { font-size: .8125rem; }.admin-user small { font-size: .75rem; }
.admin-portal-shell .page-header p { font-size: .9375rem; }.admin-portal-shell .eyebrow, .admin-portal-shell .kicker { font-size: .75rem; }.admin-portal-shell .card-top h2 { font-size: 1.625rem; }
.admin-kpis > div > span { font-size: .8125rem; }.admin-kpis > div > b { font-size: 2rem; }.admin-kpis > div > b small, .admin-kpis > div > small, .admin-kpis i { font-size: .75rem; }
.admin-portal-shell .field > span { font-size: .8125rem; }.admin-portal-shell .field input, .admin-portal-shell .field textarea { font-size: 1rem; }
.pricing-editor > div > span { font-size: .8125rem; }.pricing-editor > div > b { font-size: .9375rem; }.pricing-editor > div > small { font-size: .75rem; line-height: 1.45; }
.approval-state { min-height: 58px; }.approval-state b { font-size: .875rem; }.approval-state p { font-size: .75rem; }
.admin-portal-shell th { font-size: .6875rem; }.admin-portal-shell td { font-size: .875rem; }.admin-portal-shell td small { font-size: .75rem; }.admin-portal-shell .status-badge, .admin-portal-shell .tiny-pill { font-size: .6875rem; }
.admin-order-row > div > span, .admin-order-row > div > small { font-size: .75rem; }.admin-order-row > div > b { font-size: .875rem; }
.quote-requests-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.quote-requests-summary > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.quote-requests-summary span, .quote-requests-summary b { display: block; }
.quote-requests-summary span { color: var(--muted); font-size: .8125rem; }
.quote-requests-summary b { margin-top: 4px; color: var(--forest); font-size: 2rem; line-height: 1.2; }
.admin-quote-requests-list { display: grid; gap: 14px; }
.admin-quote-request-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .9fr) auto; gap: 22px; align-items: center; padding: 22px; }
.quote-request-main { min-width: 0; }
.quote-request-heading { display: flex; gap: 18px; justify-content: space-between; align-items: flex-start; }
.quote-request-heading small { display: block; color: var(--copper); font-size: .75rem; font-weight: 750; letter-spacing: .02em; }
.quote-request-heading h2 { margin: 5px 0 4px; color: var(--ink); font-size: 1.2rem; line-height: 1.3; }
.quote-request-heading p { margin: 0; color: var(--muted); font-size: .875rem; }
.quote-request-heading p b { color: var(--ink); }
.quote-request-status { display: inline-flex; flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #85570f; background: var(--amber-soft); font-size: .75rem; font-style: normal; font-weight: 750; }
.quote-request-status.working { color: #245d68; background: #e2f0f2; }
.quote-request-notes { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.quote-request-notes span { color: var(--muted); font-size: .75rem; font-weight: 750; }
.quote-request-notes p { margin: 3px 0 0; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.quote-request-file { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 14px; border: 1px solid #e7d7cd; border-radius: 11px; background: #fdf8f4; }
.quote-file-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 9px; color: var(--copper); background: #fff; box-shadow: 0 4px 14px rgba(73, 40, 25, .08); }
.quote-file-icon svg { width: 21px; height: 21px; }
.quote-request-file > div { min-width: 0; }
.quote-request-file small, .quote-request-file b, .quote-request-file div > span { display: block; }
.quote-request-file small { color: var(--muted); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; }
.quote-request-file b { overflow: hidden; margin: 3px 0; color: var(--ink); font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.quote-request-file div > span { color: var(--muted); font-size: .75rem; }
.quote-request-open { white-space: nowrap; }
.admin-product-list { display: grid; gap: 12px; }
.admin-product-row { display: grid; grid-template-columns: 88px minmax(0, 1.5fr) minmax(100px, .45fr) minmax(115px, .5fr) auto; gap: 18px; align-items: center; padding: 16px 18px; }
.admin-product-image { display: grid; place-items: center; width: 88px; height: 74px; overflow: hidden; border-radius: 10px; background: #f4f1ef; }
.admin-product-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.admin-product-name, .admin-product-metric { min-width: 0; }
.admin-product-name small, .admin-product-name b, .admin-product-name span, .admin-product-metric span, .admin-product-metric b { display: block; }
.admin-product-name small { color: var(--copper); font-size: .75rem; font-weight: 750; }
.admin-product-name b { margin: 4px 0 2px; color: var(--ink); font-size: 1rem; line-height: 1.35; }
.admin-product-name span, .admin-product-metric span { color: var(--muted); font-size: .75rem; }
.admin-product-metric b { margin-top: 4px; color: var(--ink); font-size: .875rem; }
.admin-product-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.admin-product-actions .button { min-height: 40px; }
.admin-product-actions svg, .page-actions .button svg { width: 17px; height: 17px; }
.icon-danger { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #efcfd0; border-radius: 9px; color: #a32d32; background: #fff7f7; cursor: pointer; }
.icon-danger:hover { color: #fff; background: #b9363b; border-color: #b9363b; }
.icon-danger svg { width: 18px; height: 18px; }
.product-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(19, 28, 31, .65); backdrop-filter: blur(5px); }
.product-editor-modal { position: relative; width: min(820px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(12, 23, 26, .28); }
.product-editor-head > span { color: var(--copper); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-editor-head h2 { margin: 5px 45px 4px 0; font-size: 1.75rem; line-height: 1.2; }
.product-editor-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.product-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.product-editor-grid .span-2 { grid-column: span 2; }
.product-editor-error { margin-top: 16px; padding: 11px 13px; border-radius: 9px; color: #9a2e33; background: #fbe8e9; font-size: .8125rem; font-weight: 700; }
.product-editor-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.product-delete-modal { width: min(450px, 100%); padding: 34px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 24px 80px rgba(12, 23, 26, .28); }
.delete-modal-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; color: #a32d32; background: #fbe8e9; }
.delete-modal-icon svg { width: 23px; height: 23px; }
.product-delete-modal > small { color: #a32d32; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-delete-modal h2 { margin: 6px 0 8px; font-size: 1.5rem; }
.product-delete-modal p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.product-delete-modal > div { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.button.danger { color: #fff; background: #b9363b; border-color: #b9363b; }
.source-strip b { font-size: .875rem; }.source-strip p, .source-time { font-size: .75rem; }.source-time i { background: #4b9578; }
.market-refresh { min-height: 40px; padding-inline: 13px; white-space: nowrap; }
.market-refresh svg { width: 16px; height: 16px; }
.policy-card.ai-recommended { border-color: #5f9f89; box-shadow: 0 0 0 2px rgba(75, 149, 120, .1); }
.ai-purchase-card { margin-top: 20px; padding: 22px; border-color: #cfded9; background: linear-gradient(120deg, #f5faf8, #fff); }
.ai-purchase-card.error { border-color: #ead2d3; background: linear-gradient(120deg, #fff8f8, #fff); }
.ai-purchase-head { display: flex; gap: 12px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.ai-purchase-head > div { min-width: 0; flex: 1; }.ai-purchase-head > div > span { color: #487565; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ai-purchase-head h2 { margin: 3px 0 0; font-size: 1.4rem; }
.ai-purchase-head .ai-label { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; font-size: .6875rem; }
.ai-purchase-loading, .ai-purchase-empty, .ai-purchase-error { display: flex; gap: 13px; align-items: center; min-height: 92px; padding: 18px 2px; }
.ai-purchase-loading b, .ai-purchase-loading p, .ai-purchase-empty b, .ai-purchase-empty p, .ai-purchase-error b, .ai-purchase-error p { display: block; margin: 0; }
.ai-purchase-loading b, .ai-purchase-empty b, .ai-purchase-error b { font-size: .9375rem; }.ai-purchase-loading p, .ai-purchase-empty p, .ai-purchase-error p { margin-top: 3px; color: var(--muted); font-size: .8125rem; }
.ai-purchase-error b { color: #9a2e33; }
.ai-purchase-result { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 20px; padding: 20px 0; }
.ai-recommendation { padding: 17px; border-radius: 11px; color: #fff; background: var(--forest); }
.ai-recommendation span, .ai-recommendation b, .ai-recommendation small { display: block; }.ai-recommendation span { color: rgba(255,255,255,.6); font-size: .75rem; }.ai-recommendation b { margin: 8px 0 5px; font-size: 1.25rem; line-height: 1.25; }.ai-recommendation small { color: #a9d7c6; font-size: .75rem; text-transform: capitalize; }
.ai-purchase-copy h3 { margin: 0; font-size: 1.125rem; }.ai-purchase-copy p { margin: 5px 0 10px; color: var(--muted); font-size: .875rem; line-height: 1.55; }.ai-purchase-copy ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.ai-risk-note { grid-column: 1 / 3; display: flex; gap: 8px; padding: 11px 13px; border-radius: 9px; color: #77521b; background: var(--amber-soft); font-size: .75rem; }.ai-risk-note b { flex: 0 0 auto; }
.ai-advice-sources { grid-column: 1 / 3; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }.ai-advice-sources > span { color: var(--muted); font-size: .75rem; }.ai-advice-sources a { padding: 5px 8px; border-radius: 999px; color: #3e6257; background: #e8f1ee; font-size: .75rem; text-decoration: none; }
.ai-purchase-actions { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line-soft); }.ai-purchase-actions p { max-width: 540px; margin: 0; color: var(--muted); font-size: .75rem; }.ai-purchase-actions > div { display: flex; gap: 9px; flex: 0 0 auto; }
@media (max-width: 1120px) {
  .admin-quote-request-card { grid-template-columns: 1fr; }
  .quote-request-open { width: max-content; }
  .admin-product-row { grid-template-columns: 80px minmax(0, 1fr) minmax(90px, .4fr); }
  .admin-product-image { width: 80px; grid-row: span 2; }
  .admin-product-actions { grid-column: 2 / 4; justify-content: flex-start; }
  .source-strip { align-items: flex-start; flex-wrap: wrap; }.source-time { margin-left: 46px; }.market-refresh { margin-left: auto; }
  .ai-purchase-result { grid-template-columns: 1fr; }.ai-risk-note, .ai-advice-sources { grid-column: auto; }.ai-purchase-actions { align-items: stretch; flex-direction: column; }.ai-purchase-actions > div { justify-content: flex-end; }
}
.ai-market-search-head b { font-size: .875rem; }.ai-market-search-head p, .ai-market-error { font-size: .75rem; }.ai-market-result span, .ai-market-result > div:last-child > small, .ai-market-sources span, .ai-market-sources a { font-size: .75rem; }.ai-market-result b { font-size: .875rem; }.ai-market-result > div:first-child > b { font-size: 1.5rem; }

@media (max-width: 800px) {
  .portal-nav button { font-size: .8125rem; }.product-grid { grid-template-columns: 1fr; }.product-select { grid-template-columns: 170px 1fr; }.product-media { min-height: 205px; }.product-price { left: 194px; }
  .quote-requests-summary, .admin-quote-request-card { grid-template-columns: 1fr; }
  .admin-product-row { grid-template-columns: 78px minmax(0, 1fr); }.admin-product-image { grid-row: auto; }.admin-product-name { align-self: center; }.admin-product-metric { grid-column: span 1; }.admin-product-actions { grid-column: 1 / 3; }
  .market-refresh { width: 100%; margin-left: 0; }.source-time { margin-left: 46px; }.ai-purchase-actions > div { display: grid; }.ai-purchase-actions .button { width: 100%; }
}

@media (max-width: 520px) {
  .portal-nav { gap: 4px; }.portal-nav button { padding-inline: 6px; font-size: .75rem; }
  .product-select { grid-template-columns: 132px 1fr; min-height: 210px; }.product-media { min-height: 210px; }.product-copy { padding: 1.35rem .8rem 0 1rem; }.product-price { left: 148px; }.product-price b { font-size: 1.25rem; }
  .portal-page-title p { font-size: .875rem; }.admin-portal-shell .card-top { align-items: flex-start; flex-direction: column; gap: 10px; }
  .quote-request-heading { display: grid; }.quote-request-open { width: 100%; }
  .product-editor-modal { padding: 26px 20px; }.product-editor-grid { grid-template-columns: 1fr; }.product-editor-grid .span-2 { grid-column: auto; }.product-editor-actions { flex-direction: column-reverse; }.product-editor-actions .button { width: 100%; }.product-delete-modal > div { flex-direction: column; }
}
