:root {
  --ink: #17201b;
  --muted: #6f7972;
  --line: #dfe4df;
  --paper: #f6f7f5;
  --sidebar: #15221b;
  --green: #256544;
  --green-soft: #e8f1eb;
  --shadow: 0 10px 28px rgba(20, 34, 26, .07);
}

body { font-size: 14px; }
.sidebar { width: 224px; padding: 22px 13px 16px; background: var(--sidebar); border: 0; color: #edf3ef; }
.brand { margin: 0 9px 25px; font-size: 18px; letter-spacing: -.03em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: #3d8a63; font-family: inherit; font-size: 14px; font-style: normal; }
.workspace-switcher { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); border-radius: 9px; margin-bottom: 24px; }
.workspace-switcher small, .user-row small { color: #8fa097; }
.avatar { background: #dbeae0; border-radius: 6px; }
.nav-label, .eyebrow { font-family: inherit; font-size: 9px; font-weight: 700; letter-spacing: .09em; }
.nav-label { color: #6f8177; }
.nav-item { height: 38px; border-radius: 7px; color: #aebbb4; font-size: 12px; }
.nav-item span { color: #71847a; font-size: 15px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: #274535; color: #fff; }
.nav-item.active span { color: #a9d3b8; }
.nav-item em { color: #718178; }
.usage { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); }
.usage small, .usage > div:first-child { color: #93a198; }
.user-row { border-color: rgba(255,255,255,.09); }

.topbar { height: 62px; padding: 0 40px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.page { max-width: 1420px; padding: 38px 40px 60px; }
.hero-row h1, .sourcing-header h1, .ops-header h1 { font-size: 34px; letter-spacing: -.04em; }
.serif-dot { font-family: inherit; color: var(--green); font-size: inherit; }
.intro { max-width: 650px; font-size: 13px; line-height: 1.55; }
.button { min-height: 38px; border-radius: 7px; padding: 10px 14px; font-size: 11px; box-shadow: none !important; }
.button.primary { background: #256544; }
.button.ghost { background: #fff; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #4c936b; outline-offset: 2px; }

.brief-composer { margin-top: 26px; border-radius: 10px; padding: 18px; box-shadow: 0 4px 16px rgba(20,34,26,.04); }
.brief-composer textarea { padding: 17px 0 12px; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; }
.step-number { width: 20px; height: 20px; border-radius: 5px; font-family: inherit; font-size: 9px; }
.location-field { min-height: 38px; border-radius: 6px; background: #fafbfa; }
.location-field input, .location-field select { font-size: 11px; }
.source-strip { padding: 18px 2px; }
.source-toggle { height: 48px; min-width: 112px; border-radius: 7px; box-shadow: none; }
.source-logo { width: 25px; height: 25px; border-radius: 6px; font-size: 13px; }
.result-limit { font-size: 9px; color: var(--muted); }
.result-limit select { min-height: 34px; border-color: var(--line); border-radius: 6px; }

.results-area { padding-top: 22px; }
.results-toolbar h2 { font-size: 22px; letter-spacing: -.03em; }
.results-toolbar h2 .live-badge { font-family: inherit; font-weight: 700; letter-spacing: .04em; }
.source-status { padding: 6px 9px; border-radius: 999px; font-family: inherit; font-size: 9px; }
.results-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
.result-grid { gap: 12px; }
.result-card { border-radius: 9px; box-shadow: 0 2px 8px rgba(20,34,26,.025); }
.result-card:hover { transform: none; border-color: #c9d3cb; box-shadow: 0 8px 22px rgba(20,34,26,.07); }
.result-card.selected { border-color: #5f9b76; box-shadow: 0 0 0 2px #d9eadf; }
.result-card.no-image .result-image { height: 44px; background: #f5f7f5; border-bottom: 1px solid #e8ece8; }
.result-card.no-image .result-image::after { display: none; }
.result-card.has-image .result-image { height: 150px; }
.select-card { top: 10px; left: 11px; width: 21px; height: 21px; border-radius: 5px; }
.source-chip { top: 10px; right: 11px; border: 1px solid #e3e8e4; border-radius: 5px; font-family: inherit; font-weight: 600; }
.result-body { padding: 14px 15px 15px; }
.match-score { font-family: inherit; font-size: 9px; font-weight: 600; }
.result-body h3 { min-height: 34px; font-size: 13px; line-height: 1.35; }
.supplier-name { font-size: 10px; line-height: 1.45; }
.result-details { padding-top: 11px; }
.result-details span { font-size: 9px; }
.result-details b { font-size: 11px; }
.result-details small { color: #8b958e; font-weight: 400; }
.result-note:empty { display: none; }
.result-note { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 9px; }
.result-offer { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rfq-drawer { top: 76px; border-radius: 9px; box-shadow: 0 4px 18px rgba(20,34,26,.04); }
.drawer-empty { padding: 28px 12px 22px; }

.metric-card, .ops-kpi, .ops-panel, .activity-card, .next-card { border-radius: 9px; box-shadow: none; }
.metric-grid { gap: 10px; margin: 30px 0 46px; }
.metric-card { padding: 16px; }
.modal { border-radius: 11px; }
.modal h2, .auth-proof h2 { font-family: inherit; }
.field-label { font-family: inherit; font-weight: 600; letter-spacing: .02em; }
.merge-field-panel, .email-preview-panel, .email-preview-card, .campaign-leads { border-radius: 7px; }

@media (max-width: 1100px) {
  .sidebar { width: 200px; }
  .page, .topbar { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 780px) {
  .sidebar { width: 58px; padding: 16px 7px; }
  .main-content { width: calc(100% - 58px); }
  .page { padding: 24px 16px 44px; }
  .topbar { padding: 0 16px; }
  .hero-row h1, .sourcing-header h1, .ops-header h1 { font-size: 29px; }
  .source-strip { gap: 14px; }
  .result-card.no-image .result-image { height: 42px; }
  .rfq-drawer { box-shadow: none; }
}
