:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #16231c;
  background: #f2f4ef;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor:not-allowed; opacity:.68; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, canvas:focus-visible { outline:3px solid #f3a712; outline-offset:3px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 28px 20px 52px; }
header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:34px; }
.brand { font-weight: 800; letter-spacing:-0.03em; font-size: 22px; }
.badge { font-size:12px; padding:6px 9px; border-radius:999px; background:#e5ebe5; color:#3c5143; }
.hero { margin-bottom: 24px; }
h1 { font-size: clamp(36px, 7vw, 74px); line-height:.94; letter-spacing:-.065em; margin: 0 0 14px; max-width: 900px; }
.lead { font-size: 18px; color:#506057; max-width:720px; line-height:1.55; }
.grid { display:grid; grid-template-columns: minmax(320px, .9fr) minmax(380px, 1.1fr); gap:18px; min-width:0; }
.panel { min-width:0; background:white; border:1px solid #dfe5df; border-radius:22px; padding:20px; box-shadow:0 10px 30px rgba(25,45,31,.05); overflow-wrap:anywhere; }
.panel h2 { margin:0 0 5px; font-size:20px; }
.muted { color:#718078; font-size:13px; line-height:1.45; }
.section { border-top:1px solid #edf0ed; margin-top:17px; padding-top:17px; }
.section:first-of-type { border-top:0; margin-top:10px; padding-top:0; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
label { display:block; font-size:13px; font-weight:650; margin:0 0 6px; }
input, select { width:100%; border:1px solid #cfd7d0; border-radius:10px; padding:10px 11px; background:#fff; color:#16231c; }
.field { margin-bottom:11px; }
.end-title { font-size:13px; font-weight:800; color:#3a4b40; margin-bottom:10px; }
.primary { width:100%; border:0; background:#173f2b; color:#fff; border-radius:12px; padding:13px 15px; font-weight:750; margin-top:8px; }
.primary:hover { filter:brightness(1.07); }
.preview-wrap { position:relative; height:440px; border-radius:16px; overflow:hidden; background:linear-gradient(180deg,#eef2ed,#f8faf7); border:1px solid #e1e6e1; touch-action:none; }
.preview-wrap canvas { width:100%; height:100%; display:block; }
.preview-label { pointer-events:none; position:absolute; left:12px; top:12px; background:rgba(255,255,255,.88); border:1px solid #dfe5df; border-radius:9px; padding:7px 9px; font-size:12px; }
.preview-hint { pointer-events:none; position:absolute; right:12px; bottom:12px; color:#68766d; font-size:11px; }
.status { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:13px; }
.status span { font-size:12px; padding:6px 8px; border-radius:8px; background:#edf3ee; }
.actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.actions button { border:1px solid #ccd5cd; background:#fff; color:#23382b; padding:9px 11px; border-radius:10px; font-weight:650; }
.metrics { margin-top:15px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.metric { padding:10px; border-radius:12px; background:#f6f8f5; }
.metric strong { display:block; font-size:16px; }
.metric small { color:#738077; }
.error { margin-top:12px; padding:10px 12px; border-radius:10px; background:#fff0ef; color:#892f27; font-size:13px; }
.note { margin-top:12px; padding:11px 12px; border-radius:10px; background:#f3f5f1; color:#59665e; font-size:12px; line-height:1.5; }
.measure-help { margin-top:10px; display:grid; grid-template-columns:1fr 1fr; gap:8px; font-size:12px; color:#68766d; }
.measure-help > div { background:#f6f8f5; border-radius:10px; padding:9px; }
footer { margin-top:24px; color:#768078; font-size:12px; }
footer a { color:#315d43; }
@media (max-width: 820px) { .grid { grid-template-columns:minmax(0,1fr); } .preview-wrap {height:360px;} }
@media (max-width: 520px) { .row, .metrics, .measure-help { grid-template-columns:1fr; } .shell {padding:20px 12px 40px;} }
.hero-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; max-width:760px; margin-top:18px; }
.hero-stats > div { background:#e8eee8; border:1px solid #d8e1d9; border-radius:14px; padding:12px 14px; }
.hero-stats strong { display:block; font-size:22px; letter-spacing:-.03em; }
.hero-stats span { display:block; margin-top:2px; color:#66746b; font-size:11px; text-transform:uppercase; letter-spacing:.05em; }
.wide-panel { margin-top:18px; }
.panel-head { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.big-count { font-weight:850; font-size:32px; letter-spacing:-.04em; white-space:nowrap; }
.catalog-controls { display:grid; grid-template-columns:160px 160px auto; gap:10px; align-items:end; margin-top:16px; }
.catalog-controls .field { margin:0; }
.catalog-controls button { border:0; border-radius:10px; padding:11px 14px; background:#253b2d; color:#fff; font-weight:700; }
.catalog-results { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:14px; }
.catalog-card { text-align:left; border:1px solid #d9e1da; background:#f8faf7; border-radius:12px; padding:12px; color:#203227; }
.catalog-card:hover { background:#eef4ee; }
.catalog-card strong,.catalog-card span,.catalog-card small { display:block; }
.catalog-card strong { font-size:12px; }
.catalog-card span { font-size:12px; color:#526159; margin-top:6px; line-height:1.35; }
.catalog-card small { margin-top:8px; color:#1f5a3a; font-weight:700; }
.external-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:15px; }
.external-links a { text-decoration:none; color:#224934; border:1px solid #cfd9d1; border-radius:10px; padding:9px 12px; background:#fafcfa; font-size:13px; font-weight:650; }
.integration-note { margin-top:14px; background:#f5f7f3; padding:12px 14px; border-radius:11px; color:#59665e; font-size:12px; line-height:1.5; }
.actions .commerce { background:#173f2b; color:#fff; border-color:#173f2b; }
.quotes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:10px; }
.quote-card { border:1px solid #d8e1da; border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:5px; font-size:12px; }
.quote-card strong { font-size:13px; }
.quote-card a { color:#174c30; font-weight:700; }
.quote-card button { border:0; border-radius:8px; padding:8px 9px; background:#173f2b; color:#fff; font-weight:700; }
.quote-card.disabled { opacity:.65; }
.sku-line { margin-top:12px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 11px; border-radius:10px; background:#f5f8f4; font-size:12px; }
.sku-line a { color:#1d5134; }
@media (max-width: 820px) { .catalog-results { grid-template-columns:1fr 1fr; } .hero-stats { grid-template-columns:1fr; } }
@media (max-width: 520px) { .catalog-controls { grid-template-columns:1fr 1fr; } .catalog-controls button { grid-column:1/-1; } .catalog-results,.quotes { grid-template-columns:1fr; } .panel-head { flex-direction:column; } }
.commerce-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.commerce-card { border:1px solid #d8e1da; border-radius:10px; padding:10px; display:flex; flex-direction:column; gap:6px; text-decoration:none; color:#243a2d; background:#fff; }
.commerce-card strong { font-size:12px; line-height:1.35; }
.commerce-card span { font-weight:750; color:#174c30; }
.commerce-card small { color:#6a756e; }
@media (max-width: 720px) { .commerce-grid { grid-template-columns:1fr; } }
.simple-page { max-width:760px; margin:48px auto; padding:24px; line-height:1.65; }
.simple-page h1 { font-size:clamp(34px,7vw,58px); }
.simple-page a { color:#174c30; }
.button-link { display:inline-block; padding:10px 14px; border-radius:10px; background:#173f2b; color:#fff !important; text-decoration:none; font-weight:750; }
.legal-date { margin-top:36px; color:#718078; font-size:13px; }
