:root {
  color: #202b2b;
  background: #f2f5f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #202b2b;
  --muted: #65736f;
  --line: #d9e2dd;
  --accent: #166b56;
  --soft: #e6f1eb;
  --amber: #916100;
  --red: #a03e36;
  --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.topbar { padding: 22px 4vw; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #173d34; color: white; }
.eyebrow { margin: 0 0 4px; color: #b8d7ca; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
h2 { margin: 0; font-size: 16px; }
h3 { margin: 0; font-size: 14px; }
.session-card { display: grid; grid-template-columns: auto minmax(170px, 250px) auto; align-items: center; gap: 7px 10px; font-size: 12px; }
.session-card label { grid-column: 1 / -1; color: #d5e5df; }
.session-card input { min-width: 0; }
.session-card .muted { grid-column: 1 / -1; color: #b8d7ca; }
.layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 20px; padding: 22px 4vw 50px; max-width: 1600px; margin: auto; }
.sidebar, .detail-column { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 5px 20px #243a3210; padding: 18px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.search-row { display: flex; gap: 8px; margin: 14px 0; }
input, select, textarea { width: 100%; min-width: 0; color: var(--ink); background: white; border: 1px solid #cbd7d1; border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #8cc3ac; border-color: var(--accent); }
label { display: grid; gap: 5px; color: #53635e; font-size: 12px; font-weight: 600; }
.button { border: 1px solid #cbd7d1; border-radius: 8px; padding: 8px 11px; background: white; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.button:hover { border-color: var(--accent); color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.quiet { background: transparent; }
.product-list { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; max-height: 48vh; overflow: auto; }
.product-list button { width: 100%; text-align: left; border: 0; border-radius: 8px; background: transparent; padding: 10px; color: var(--ink); cursor: pointer; }
.product-list button:hover, .product-list button[aria-current="true"] { background: var(--soft); }
.product-list strong, .product-list small { display: block; }
.product-list small { margin-top: 3px; color: var(--muted); }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary h2 { display: inline-block; }
.form-stack { display: grid; gap: 12px; margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.product-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-title h2 { font-size: 24px; letter-spacing: -.025em; }
.meta-line { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.pill { display: inline-flex; align-items: center; border-radius: 20px; padding: 4px 9px; font-size: 11px; font-weight: 700; background: #edf1ef; color: #4e5e58; }
.pill.good { background: #e2f3e9; color: #166b56; }
.pill.review { background: #fff3d5; color: var(--amber); }
.pill.conflict { background: #fae9e6; color: var(--red); }
.subgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.data-list { display: grid; gap: 0; margin: 0; }
.data-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef2ef; font-size: 12px; }
.data-row:last-child { border-bottom: 0; }
.data-row dt { color: var(--muted); }
.data-row dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.claims { display: grid; gap: 10px; }
.claim-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fbfcfb; }
.claim-head { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.claim-raw { margin: 0 0 7px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); font-size: 12px; }
.claim-actions { display: flex; gap: 7px; margin-top: 10px; }
.claim-actions .reject { color: var(--red); }
.fit-good { color: var(--accent); font-weight: 700; }
.fit-blocked { color: var(--red); font-weight: 700; }
.empty-state { min-height: 210px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: 12px 0 4px; }
.empty-state p { max-width: 340px; margin: 0; font-size: 13px; }
.empty-icon { color: #7aa994; font-size: 36px; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: min(480px, calc(100vw - 40px)); padding: 12px 16px; border-radius: 9px; background: #173d34; color: white; box-shadow: 0 8px 25px #0003; font-size: 13px; }
.toast.error { background: #8f302b; }
@media (max-width: 850px) { .layout { grid-template-columns: 1fr; } .product-list { max-height: 260px; } }
@media (max-width: 560px) { .topbar { align-items: flex-start; flex-direction: column; } .session-card { width: 100%; grid-template-columns: 1fr auto; } .session-card input { grid-column: 1 / 2; } .session-card .muted { grid-column: 1 / -1; } .subgrid, .form-grid, .form-grid.wide { grid-template-columns: 1fr; } .data-row { grid-template-columns: 1fr; gap: 3px; } .product-title { flex-direction: column; } }
