:root {
  --ink: #17211d;
  --muted: #65716b;
  --line: #dbe1dd;
  --paper: #f5f6f2;
  --white: #ffffff;
  --forest: #143f32;
  --forest-deep: #0c2a21;
  --mint: #bde4cd;
  --lime: #d9ed99;
  --amber: #f5c96a;
  --red: #bf4b3f;
  --shadow: 0 18px 50px rgba(20, 63, 50, 0.11);
}

.ai-notice {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--warning, #b7791f);
  border-radius: 0.75rem;
  background: var(--surface, #fff);
  margin-bottom: 1rem;
}

.ai-provider-grid,
.ai-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.ai-review-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-job-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

.ai-job-form label,
.ai-record {
  display: grid;
  gap: 0.35rem;
}

.ai-record {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.ai-record div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .ai-provider-grid,
  .ai-review-grid,
  .ai-job-form {
    grid-template-columns: 1fr;
  }
}

* { box-sizing: border-box; }
html { font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper); }
body { margin: 0; min-height: 100vh; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, .wordmark { font-family: "Aptos Display", "Segoe UI", sans-serif; letter-spacing: -0.035em; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.eyebrow { margin-bottom: 9px; color: #477061; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-light { color: var(--mint); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; }
.muted { color: var(--muted); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--forest-deep); font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.wordmark-light { color: var(--white); }
.wordmark-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 12px 4px 12px 4px; font-family: "Segoe UI", sans-serif; font-size: 11px; letter-spacing: .05em; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 9px; padding: 0 18px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .icon-button:focus-visible, a:focus-visible { outline: 3px solid rgba(102, 169, 133, .38); outline-offset: 2px; }
.button-primary { background: var(--forest); color: var(--white); box-shadow: 0 8px 18px rgba(20, 63, 50, .16); }
.button-primary:hover { background: var(--forest-deep); }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--forest); }
.button-full { width: 100%; }
.icon-button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 20px; }

.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr); }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 6vw, 82px); color: var(--white); background:
  radial-gradient(circle at 75% 28%, rgba(189, 228, 205, .18), transparent 25%),
  radial-gradient(circle at 20% 85%, rgba(217, 237, 153, .12), transparent 28%),
  var(--forest-deep); }
.login-promise { max-width: 680px; }
.login-promise h1 { margin-bottom: 24px; font-size: clamp(44px, 5.5vw, 76px); line-height: 1.02; }
.login-promise > p:last-child { max-width: 600px; color: #b9c8c1; font-size: 17px; line-height: 1.7; }
.trust-line { display: flex; flex-wrap: wrap; gap: 20px; color: #c8d5cf; font-size: 12px; }
.trust-line span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--lime); }
.login-panel { display: grid; place-items: center; padding: 44px; background: var(--white); }
.login-form { width: min(100%, 430px); }
.login-heading { margin-bottom: 34px; }
.login-heading h2 { margin-bottom: 10px; font-size: 38px; }
.login-heading p:last-child { color: var(--muted); }
label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; color: #32423b; font-size: 13px; font-weight: 600; }
label small { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; border: 1px solid #ccd5d0; border-radius: 8px; background: var(--white); color: var(--ink); padding: 12px 13px; transition: border .15s, box-shadow .15s; }
input, select { min-height: 46px; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: #6ea188; box-shadow: 0 0 0 4px rgba(110, 161, 136, .1); }
.form-footnote { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.alert { margin-bottom: 20px; border-radius: 8px; padding: 12px 14px; font-size: 13px; }
.alert-error { border: 1px solid #efd0cc; background: #fff2f0; color: #852d25; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 30px 22px 20px; color: #eaf2ee; background: var(--forest-deep); }
.sidebar nav { display: grid; gap: 6px; margin-top: 64px; }
.nav-link { display: flex; align-items: center; gap: 13px; border-radius: 8px; padding: 11px 12px; color: #9eb2a9; font-size: 13px; font-weight: 600; text-decoration: none; }
.nav-link span { font-size: 9px; letter-spacing: .1em; opacity: .55; }
.nav-link:hover, .nav-link.active { background: rgba(255, 255, 255, .08); color: var(--white); }
.sidebar-note { display: flex; gap: 11px; margin-top: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 13px; }
.sidebar-note strong, .sidebar-user strong { display: block; font-size: 12px; }
.sidebar-note small, .sidebar-user small { display: block; margin-top: 3px; color: #8fa79c; font-size: 10px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217,237,153,.1); }
.sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 18px; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: var(--mint); color: var(--forest-deep); font-weight: 800; }
.workspace { min-width: 0; padding: 44px clamp(28px, 5vw, 76px) 70px; }
.workspace-header { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.workspace-header h1 { margin-bottom: 8px; font-size: clamp(31px, 4vw, 46px); }
.workspace-header > div > p:last-child { margin: 0; color: var(--muted); }
.metrics { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.metric-card { min-height: 142px; border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: rgba(255,255,255,.72); }
.metric-card p { margin-bottom: 15px; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-card strong { display: block; margin-bottom: 9px; font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 34px; letter-spacing: -.04em; }
.metric-card span { color: var(--muted); font-size: 11px; }
.metric-featured { border-color: var(--forest); color: var(--white); background: var(--forest); }
.metric-featured p, .metric-featured span { color: #b8cbc2; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 5px 22px rgba(20,63,50,.04); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 24px 19px; }
.panel-heading h2 { margin: 0; font-size: 21px; }
.search-field { width: min(280px, 40%); margin: 0; }
.search-field input { min-height: 40px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 18px; color: var(--muted); background: #fafbf9; font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { border-bottom: 1px solid #edf0ee; padding: 16px 18px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfa; }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.request-link { font-weight: 700; text-decoration: none; }
.request-link:hover { color: #38705b; }
.country-code { display: inline-grid; min-width: 26px; height: 20px; place-items: center; margin-right: 5px; border-radius: 4px; background: #edf3ef; color: var(--forest); font-size: 9px; font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; background: #eef1ef; color: #4d5a54; font-size: 10px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-draft { background: #f0f1ef; }
.status-submitted, .status-analysing, .status-searching, .status-seller_check, .status-scoring { background: #edf4fa; color: #3a6684; }
.status-awaiting_review { background: #fff6df; color: #8b681b; }
.status-published { background: #e7f4ec; color: #256644; }
.status-closed, .status-cancelled { background: #f8e9e7; color: #91443c; }
.empty-row td { padding: 40px; color: var(--muted); text-align: center; }

.request-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 0; box-shadow: 0 30px 80px rgba(9,31,24,.24); }
.request-dialog::backdrop { background: rgba(6, 24, 18, .62); backdrop-filter: blur(4px); }
.request-form { padding: 28px; }
.dialog-heading { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.dialog-heading h2 { margin-bottom: 6px; font-size: 30px; }
.dialog-heading p:last-child { margin: 0; color: var(--muted); }
.dialog-close { background: #f1f3f1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: span 2; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.form-message { min-height: 30px; padding: 6px 0 12px; color: var(--muted); font-size: 12px; }
.form-message-success { color: #286c49; }
.form-message-error { color: var(--red); }

.results-page { background: #f7f8f5; }
.results-topbar { display: flex; max-width: 1240px; align-items: center; justify-content: space-between; margin: auto; padding: 24px 28px; }
.portal-label { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.results-index, .result-shell { width: min(1180px, calc(100% - 40px)); margin: 70px auto 100px; }
.results-index > h1 { max-width: 800px; margin-bottom: 14px; font-size: clamp(42px, 6vw, 72px); }
.results-index > .lead { max-width: 650px; }
.publication-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.publication-card, .empty-publication { min-height: 240px; border: 1px solid var(--line); border-radius: 13px; padding: 26px; background: var(--white); text-decoration: none; }
.publication-card:hover { border-color: #7ba38f; box-shadow: var(--shadow); }
.publication-card > span { color: #5b7c6d; font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.publication-card h2 { margin: 28px 0 12px; font-size: 22px; }
.publication-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.publication-card strong { display: block; margin-top: 24px; color: var(--forest); font-size: 12px; }
.empty-publication { grid-column: 1 / -1; display: grid; min-height: 220px; place-content: center; text-align: center; }
.empty-publication p { max-width: 540px; color: var(--muted); }
.result-shell { margin-top: 50px; }
.result-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); padding: 30px 0 42px; }
.result-hero h1 { max-width: 820px; margin-bottom: 15px; font-size: clamp(39px, 5vw, 64px); line-height: 1.08; }
.result-hero .lead { margin: 0; }
.result-state { display: grid; justify-items: end; gap: 10px; flex: 0 0 auto; }
.result-state small { color: var(--muted); }
.score-disclaimer { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin: 22px 0 70px; border-left: 3px solid var(--amber); padding: 10px 0 10px 18px; }
.score-disclaimer p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 32px; }
.candidate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.candidate-card { border: 1px solid var(--line); border-radius: 14px; padding: 27px; background: var(--white); box-shadow: 0 6px 24px rgba(20,63,50,.04); }
.candidate-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 23px; }
.candidate-number { color: #648173; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.candidate-head h3 { margin: 8px 0 6px; font-size: 21px; line-height: 1.35; }
.candidate-head p { margin: 0; color: var(--muted); font-size: 12px; }
.score-ring { display: grid; width: 74px; height: 74px; flex: 0 0 auto; place-content: center; border: 5px solid var(--mint); border-radius: 50%; text-align: center; }
.score-ring strong { font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 22px; line-height: 1; }
.score-ring small { margin-top: 3px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.risk-row { display: flex; align-items: center; justify-content: space-between; border-block: 1px solid #e8ece9; padding: 12px 0; color: var(--muted); font-size: 11px; }
.risk { border-radius: 999px; padding: 5px 8px; font-size: 9px; text-transform: capitalize; }
.risk-verified, .risk-low_risk { background: #e6f4ec; color: #256644; }
.risk-review_carefully, .risk-insufficient_information { background: #fff4d9; color: #856313; }
.risk-high_risk { background: #f9e6e3; color: #943d34; }
.candidate-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 17px 0; }
.candidate-facts div { border-bottom: 1px solid #edf0ee; padding: 10px 0; }
.candidate-facts div:nth-child(odd) { padding-right: 12px; }
.candidate-facts dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.candidate-facts dd { margin: 5px 0 0; font-size: 12px; font-weight: 600; }
.requirements { margin-top: 20px; }
.requirements h4, .policy-grid h4 { margin-bottom: 12px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.requirement-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; border-top: 1px solid #edf0ee; padding: 10px 0; }
.requirement-row span, .requirement-row strong { font-size: 11px; }
.requirement-row p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; border-top: 1px solid var(--line); padding-top: 20px; }
.policy-grid p { color: var(--muted); font-size: 11px; line-height: 1.55; }
.rejected-section { margin-top: 74px; }
.rejected-list { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.rejected-list article { display: grid; grid-template-columns: 1fr 1.5fr; gap: 30px; border-bottom: 1px solid var(--line); padding: 19px 22px; }
.rejected-list article:last-child { border: 0; }
.rejected-list strong, .rejected-list span { display: block; }
.rejected-list span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.rejected-list p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.results-footer { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding: 30px max(28px, calc((100% - 1180px) / 2)); color: var(--muted); font-size: 10px; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 480px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 24px; padding: 18px 24px; }
  .sidebar nav { display: none; }
  .sidebar-note { display: none; }
  .sidebar-user { margin: 0 0 0 auto; border: 0; padding: 0; }
  .workspace { padding: 34px 24px 60px; }
  .metrics { grid-template-columns: 1fr; }
  .publication-grid, .candidate-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .login-brand { min-height: 420px; padding: 30px 24px; }
  .login-promise h1 { font-size: 40px; }
  .login-panel { padding: 44px 24px; }
  .workspace-header, .result-hero { align-items: start; flex-direction: column; }
  .workspace-header .button { width: 100%; }
  .sidebar-user > div:nth-child(2) { display: none; }
  .panel-heading { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .request-form { padding: 21px; }
  .dialog-actions { flex-direction: column-reverse; }
  .score-disclaimer { grid-template-columns: 1fr; }
  .result-state { justify-items: start; }
  .candidate-facts, .policy-grid { grid-template-columns: 1fr; }
  .rejected-list article { grid-template-columns: 1fr; gap: 10px; }
  .results-footer { flex-direction: column; }
}

/* ShopMat Platform v0.2 procurement workspace */
.workspace-v2 { background: #f3f5f2; }
.ws-shell { display: grid; min-height: 100vh; grid-template-columns: 258px minmax(0, 1fr); }
.ws-sidebar { position: sticky; top: 0; z-index: 30; display: flex; height: 100vh; flex-direction: column; overflow-y: auto; padding: 24px 17px 17px; color: #e9f0ed; background: #102c24; }
.ws-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.ws-brand .wordmark > span:last-child { display: grid; }
.ws-brand .wordmark strong { line-height: 1; }
.ws-brand .wordmark small { margin-top: 4px; color: #8fa69c; font-family: "Segoe UI", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ws-sidebar-close { display: none; border: 0; background: transparent; color: white; font-size: 24px; }
.ws-nav { display: grid; gap: 2px; margin-top: 33px; }
.ws-nav p { margin: 22px 11px 6px; color: #6f8b7f; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ws-nav a { display: flex; min-height: 39px; align-items: center; gap: 11px; border-radius: 8px; padding: 8px 10px; color: #9db1a8; font-size: 12px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.ws-nav a > span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(255,255,255,.1); border-radius: 6px; font-size: 10px; }
.ws-nav a:hover, .ws-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.ws-nav a.active > span { border-color: #b9ddc7; background: #b9ddc7; color: #102c24; }
.ws-sidebar-user { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; margin-top: auto; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 7px 0; }
.ws-sidebar-user strong, .ws-sidebar-user small { display: block; }
.ws-sidebar-user strong { font-size: 11px; }
.ws-sidebar-user small { margin-top: 3px; color: #789187; font-size: 9px; text-transform: capitalize; }
.ws-main { min-width: 0; }
.ws-topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 68px; align-items: center; justify-content: space-between; border-bottom: 1px solid #dce2de; padding: 0 clamp(22px, 4vw, 55px); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.ws-menu-button { display: none; border: 0; background: transparent; font-size: 22px; }
.ws-topbar-title { display: grid; }
.ws-topbar-title span { color: #7a8781; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ws-topbar-title strong { margin-top: 3px; font-size: 12px; }
.ws-topbar-actions { display: flex; align-items: center; gap: 9px; }
.ws-search { display: flex; width: 220px; min-height: 36px; align-items: center; gap: 8px; border: 1px solid #d9dfdb; border-radius: 8px; padding: 0 9px; color: #738079; background: #fafbf9; font-size: 10px; text-decoration: none; }
.ws-search kbd { margin-left: auto; border: 1px solid #d9dfdb; border-radius: 4px; padding: 2px 5px; background: white; font-family: inherit; font-size: 8px; }
.ws-notification-button { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #d9dfdb; border-radius: 8px; background: white; text-decoration: none; }
.ws-notification-button b { position: absolute; top: -6px; right: -5px; display: grid; min-width: 17px; height: 17px; place-items: center; border: 2px solid white; border-radius: 999px; background: #b6473d; color: white; font-size: 8px; }
.ws-content { padding: 38px clamp(22px, 4vw, 55px) 70px; }
.ws-page-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 27px; }
.ws-page-header h1 { margin-bottom: 7px; font-size: clamp(31px, 4vw, 43px); line-height: 1.1; }
.ws-page-header > div > p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.ws-page-header-compact { align-items: start; margin-bottom: 20px; }
.ws-back { display: inline-block; margin-bottom: 24px; color: #61726a; font-size: 11px; font-weight: 700; text-decoration: none; }
.ws-back:hover { color: var(--forest); }
.ws-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
.ws-metric-card { min-height: 126px; border: 1px solid #dce2de; border-radius: 11px; padding: 18px; background: white; color: var(--ink); text-decoration: none; transition: border .15s, box-shadow .15s, transform .15s; }
a.ws-metric-card:hover { transform: translateY(-1px); border-color: #93b3a2; box-shadow: 0 10px 30px rgba(20,63,50,.07); }
.ws-metric-card > span { display: block; color: #6c7973; font-size: 10px; font-weight: 700; }
.ws-metric-card > strong { display: block; margin: 10px 0 5px; font-family: "Aptos Display", "Segoe UI", sans-serif; font-size: 30px; letter-spacing: -.04em; }
.ws-metric-card > small { color: #8b9691; font-size: 9px; }
.ws-metric-primary { border-color: #1c493b; background: #153a2f; color: white; }
.ws-metric-primary > span, .ws-metric-primary > small { color: #a9c2b7; }
.ws-dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 14px; }
.ws-panel { border: 1px solid #dce2de; border-radius: 11px; background: white; box-shadow: 0 3px 14px rgba(20,63,50,.025); }
.ws-span-2 { grid-column: span 2; }
.ws-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e6eae7; padding: 18px 19px 15px; }
.ws-panel-head h2 { margin: 0; font-size: 17px; }
.ws-panel-head .eyebrow { margin-bottom: 5px; }
.ws-panel-head > a, .ws-side-panel > a { color: #3c725d; font-size: 10px; font-weight: 700; text-decoration: none; }
.ws-request-list > a { display: grid; grid-template-columns: 86px minmax(160px,1fr) auto 55px; align-items: center; gap: 12px; border-bottom: 1px solid #edf0ee; padding: 13px 18px; text-decoration: none; }
.ws-request-list > a:last-child { border-bottom: 0; }
.ws-request-list > a:hover { background: #fafcf9; }
.ws-request-id { color: #597369; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.ws-request-list strong, .ws-request-list small { display: block; }
.ws-request-list strong { font-size: 11px; }
.ws-request-list small { margin-top: 3px; color: #84908a; font-size: 9px; }
.ws-request-list time { color: #84908a; font-size: 9px; text-align: right; }
.ws-empty { display: grid; min-height: 145px; place-content: center; padding: 24px; text-align: center; }
.ws-empty strong { font-size: 14px; }
.ws-empty p { max-width: 460px; margin: 7px auto 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.ws-status-overview { padding: 6px 19px; }
.ws-status-overview > div { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0ee; padding: 10px 0; color: #53615a; font-size: 10px; text-transform: capitalize; }
.ws-status-overview > div:last-child { border: 0; }
.ws-status-overview strong { display: grid; min-width: 24px; height: 22px; place-items: center; border-radius: 6px; background: #edf3ef; color: #1d523f; }
.ws-panel-note { margin: 0; border-top: 1px solid #edf0ee; padding: 12px 19px; color: #84908a; background: #fbfcfb; font-size: 9px; line-height: 1.5; }
.ws-compact-list, .ws-notification-list { padding: 5px 17px; }
.ws-compact-list > a { display: grid; grid-template-columns: 33px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #edf0ee; padding: 11px 0; text-decoration: none; }
.ws-compact-list > a:last-child { border: 0; }
.ws-project-code { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; background: #e6f0ea; color: #246044; font-size: 8px; font-weight: 800; }
.ws-compact-list strong, .ws-compact-list small { display: block; font-size: 10px; }
.ws-compact-list small { margin-top: 2px; color: #84908a; font-size: 8px; }
.ws-activity-list { padding: 8px 19px 12px; }
.ws-activity-list > div { display: flex; gap: 10px; padding: 8px 0; }
.ws-activity-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 4px; border: 2px solid white; border-radius: 50%; background: #66a080; box-shadow: 0 0 0 2px #c7dbd0; }
.ws-activity-list p { margin: 0; }
.ws-activity-list strong, .ws-activity-list small { display: block; font-size: 9px; }
.ws-activity-list small { margin-top: 3px; color: #84908a; font-size: 8px; }
.ws-notification-list > a { display: grid; grid-template-columns: 6px 1fr; gap: 9px; border-bottom: 1px solid #edf0ee; padding: 10px 0; text-decoration: none; }
.ws-notification-list > a > span { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: #c9d1cd; }
.ws-notification-list > a.unread > span { background: #bd7b33; }
.ws-notification-list strong, .ws-notification-list small { display: block; font-size: 9px; }
.ws-notification-list small { margin-top: 3px; color: #84908a; font-size: 8px; line-height: 1.4; }
.ws-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #e4e8e5; padding: 14px 17px; }
.ws-toolbar select, .ws-review-filters select, .ws-review-filters input { width: auto; min-height: 38px; padding: 8px 10px; font-size: 10px; }
.ws-filter-search { display: flex; width: min(390px, 70%); flex-direction: row; align-items: center; gap: 8px; margin: 0; border: 1px solid #d6ddd8; border-radius: 8px; padding: 0 11px; }
.ws-filter-search input { min-height: 38px; border: 0; padding: 0; box-shadow: none; font-size: 11px; }
.ws-filter-search input:focus { box-shadow: none; }
.ws-table th { padding: 11px 17px; }
.ws-table td { padding: 15px 17px; font-size: 11px; }
.ws-table td > a { text-decoration: none; }
.ws-table td strong, .ws-table td small { display: block; }
.ws-table td small { margin-top: 4px; color: #839089; font-size: 9px; }
.priority { display: inline-flex; border-radius: 999px; padding: 5px 8px; background: #eef1ef; color: #55635c; font-size: 9px; font-weight: 700; text-transform: capitalize; }
.priority-high { background: #fff0dc; color: #8a5b1b; }
.priority-urgent { background: #f8e5e2; color: #923e36; }
.priority-low { background: #edf2f5; color: #557080; }
.ws-queue-count { border-radius: 999px; padding: 8px 12px; background: #e4eee8; color: #2b634c; font-size: 11px; font-weight: 800; }

.ws-wizard-layout { display: grid; grid-template-columns: 215px minmax(0, 830px); align-items: start; gap: 18px; }
.ws-stepper { position: sticky; top: 90px; display: grid; gap: 5px; }
.ws-stepper button { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 10px; border: 0; border-radius: 9px; padding: 10px; background: transparent; color: #7b8881; text-align: left; }
.ws-stepper button > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #ced7d1; border-radius: 50%; background: white; font-size: 9px; font-weight: 800; }
.ws-stepper strong, .ws-stepper small { display: block; font-size: 10px; }
.ws-stepper small { margin-top: 3px; color: #919d97; font-size: 8px; }
.ws-stepper button.active { background: white; color: var(--forest); box-shadow: 0 3px 13px rgba(20,63,50,.06); }
.ws-stepper button.active > span { border-color: var(--forest); background: var(--forest); color: white; }
.ws-stepper button.complete > span { border-color: #a8cbb8; background: #dcece3; color: #225f43; }
.ws-wizard { overflow: hidden; }
.ws-form-step { display: none; padding: 30px; }
.ws-form-step.active { display: block; }
.ws-form-heading { margin-bottom: 28px; border-bottom: 1px solid #e5e9e6; padding-bottom: 20px; }
.ws-form-heading h2 { margin-bottom: 8px; font-size: 25px; }
.ws-form-heading p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.ws-wizard .form-grid { gap: 0 16px; }
.ws-wizard label { margin-bottom: 16px; font-size: 11px; }
.ws-wizard input, .ws-wizard select, .ws-wizard textarea { font-size: 11px; }
.ws-wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e2e7e4; padding: 16px 22px; background: #fafbf9; }
.ws-wizard-actions > div { display: flex; gap: 8px; }
.ws-wizard-message { min-height: 26px; padding: 7px 28px; color: #68756e; font-size: 10px; }
.ws-wizard-message.success { color: #286c49; }
.ws-wizard-message.error { color: #a33e35; }
.ws-parser-box { margin-bottom: 24px; border: 1px solid #d9e3dd; border-radius: 9px; padding: 17px; background: #f8fbf9; }
.ws-parser-box label { margin-bottom: 11px; }
.ws-extraction-results { display: grid; gap: 8px; margin-top: 14px; }
.ws-extraction-results > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.ws-extraction-results strong { min-width: 120px; font-size: 9px; text-transform: capitalize; }
.ws-extraction-results span, .ws-chip-group span, .ws-search-plan span { border-radius: 999px; padding: 5px 8px; background: #e5eee9; color: #2c604b; font-size: 9px; }
.ws-spec-builder { margin-bottom: 22px; }
.ws-spec-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 11px; }
.ws-spec-head h3 { margin-bottom: 4px; font-size: 15px; }
.ws-spec-head p { margin: 0; color: #7b8881; font-size: 10px; }
.ws-spec-row { display: grid; grid-template-columns: 1fr 1.4fr 130px 34px; align-items: end; gap: 9px; border-top: 1px solid #e5e9e6; padding: 11px 0 0; }
.ws-spec-row label { margin-bottom: 11px; }
.ws-spec-row > button { width: 32px; height: 42px; margin-bottom: 11px; border: 1px solid #e3d2cf; border-radius: 7px; background: #fff7f5; color: #a04b42; font-size: 16px; }
.ws-approval-check { flex-direction: row; align-items: flex-start; border: 1px solid #d9e3dd; border-radius: 8px; padding: 13px; background: #f8fbf9; }
.ws-approval-check input, .ws-toggle-grid input { width: 16px; min-height: auto; flex: 0 0 auto; margin-top: 1px; }
.ws-search-order { display: flex; align-items: center; gap: 22px; margin-bottom: 21px; border: 1px solid #dce4df; border-radius: 9px; padding: 14px 17px; background: #f8faf8; font-size: 10px; }
.ws-search-order ol { display: flex; gap: 28px; margin: 0; padding-left: 18px; }
.ws-toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws-toggle-grid label { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid #dfe5e1; border-radius: 8px; padding: 13px; }
.ws-toggle-grid strong, .ws-toggle-grid small { display: block; }
.ws-toggle-grid small { margin-top: 4px; color: #84908a; line-height: 1.45; }
.ws-upload-zone { display: grid; min-height: 220px; place-content: center; border: 2px dashed #b9cbc1; border-radius: 11px; padding: 30px; background: #fafcfa; text-align: center; cursor: pointer; }
.ws-upload-zone:hover { border-color: #6e9b84; background: #f6faf7; }
.ws-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ws-upload-zone > span { margin-bottom: 9px; color: #477763; font-size: 28px; }
.ws-upload-zone > strong { font-size: 13px; }
.ws-upload-zone > small { max-width: 490px; margin-top: 7px; color: #7c8982; line-height: 1.55; }
.ws-file-list > div { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid #e5e9e6; padding: 11px; }
.ws-file-list strong, .ws-file-list small { display: block; font-size: 10px; }
.ws-file-list small { margin-top: 3px; color: #7e8b84; font-size: 8px; }
.ws-security-note, .ws-submit-note, .ws-safety-banner { margin-top: 18px; border-left: 3px solid #d0a34f; padding: 9px 14px; background: #fffbf3; }
.ws-security-note strong, .ws-submit-note strong, .ws-security-note p, .ws-submit-note p, .ws-safety-banner strong { font-size: 10px; }
.ws-security-note p, .ws-submit-note p { margin: 4px 0 0; color: #756b56; line-height: 1.55; }
.ws-review-card { border: 1px solid #dce3df; border-radius: 10px; overflow: hidden; }
.ws-review-card > div:first-child { padding: 20px; background: #f6f9f7; }
.ws-review-card > div > span { color: #668074; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.ws-review-card h3, .ws-review-card strong { display: block; margin: 7px 0; font-size: 16px; }
.ws-review-card p { margin: 0; color: #65736c; font-size: 11px; }
.ws-review-card dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 8px 20px 17px; }
.ws-review-card dl > div { border-bottom: 1px solid #edf0ee; padding: 11px 0; }
.ws-review-card dt { color: #84908a; font-size: 8px; text-transform: uppercase; }
.ws-review-card dd { margin: 4px 0 0; font-size: 10px; font-weight: 700; }

.ws-detail-header { align-items: center; }
.ws-detail-actions { display: flex; align-items: center; gap: 8px; }
.ws-timeline { display: grid; grid-template-columns: repeat(9, 1fr); margin: 0 0 20px; border: 1px solid #dce2de; border-radius: 10px; padding: 14px; background: white; }
.ws-timeline > div { position: relative; display: grid; justify-items: center; gap: 5px; color: #9ba49f; text-align: center; }
.ws-timeline > div::before { position: absolute; top: 11px; right: 50%; left: -50%; height: 2px; background: #e0e5e2; content: ""; }
.ws-timeline > div:first-child::before { display: none; }
.ws-timeline span { position: relative; z-index: 1; display: grid; width: 23px; height: 23px; place-items: center; border: 2px solid #d9dfdc; border-radius: 50%; background: white; font-size: 8px; }
.ws-timeline small { font-size: 8px; text-transform: capitalize; }
.ws-timeline .complete { color: #326d54; }
.ws-timeline .complete::before { background: #7eb294; }
.ws-timeline .complete span { border-color: #7eb294; background: #e6f1eb; }
.ws-timeline .current span { border-color: var(--forest); background: var(--forest); color: white; }
.ws-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 15px; }
.ws-detail-main { display: grid; min-width: 0; gap: 15px; }
.ws-detail-side { display: grid; gap: 15px; }
.ws-detail-section { overflow: hidden; }
.ws-definition-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 7px 20px 20px; }
.ws-definition-grid > div { border-bottom: 1px solid #ebefec; padding: 13px 8px 13px 0; }
.ws-definition-grid > div:first-child { grid-column: 1 / -1; }
.ws-definition-grid dt, .ws-side-facts dt { color: #7c8982; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.ws-definition-grid dd, .ws-side-facts dd { margin: 5px 0 0; font-size: 10px; line-height: 1.55; }
.ws-spec-group { padding: 13px 20px 0; }
.ws-spec-group h3 { margin: 0 0 7px; font-size: 11px; }
.ws-spec-group > div { display: grid; grid-template-columns: 1fr 1.5fr 74px; gap: 12px; border-top: 1px solid #ebefec; padding: 10px 0; font-size: 10px; }
.spec-badge { border-radius: 999px; padding: 4px 7px; font-size: 8px; text-align: center; text-transform: capitalize; }
.spec-required { background: #e2efe8; color: #276044; }
.spec-preferred { background: #eaf0f5; color: #43677f; }
.spec-optional { background: #f1f0eb; color: #6b6658; }
.ws-chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 17px 20px 20px; }
.ws-chip-group > strong { margin-right: 7px; font-size: 9px; }
.ws-attachment-list > a { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 12px; border-bottom: 1px solid #ebefec; padding: 13px 20px; text-decoration: none; }
.ws-attachment-list strong, .ws-attachment-list small { display: block; font-size: 10px; }
.ws-attachment-list small { margin-top: 3px; color: #7f8c85; font-size: 8px; }
.ws-attachment-list b { color: #3a715b; font-size: 9px; }
.ws-candidate-rows > a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 45px; align-items: center; gap: 12px; border-bottom: 1px solid #ebefec; padding: 12px 20px; text-decoration: none; }
.ws-candidate-rows strong, .ws-candidate-rows small { display: block; font-size: 10px; }
.ws-candidate-rows small { margin-top: 3px; color: #7f8c85; font-size: 8px; }
.ws-product-placeholder { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; background: linear-gradient(135deg, #e2ebe6, #f6f8f6); color: #789083; font-size: 9px; font-weight: 800; }
.ws-search-plan { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; padding: 18px 20px; }
.ws-search-plan > div { display: flex; align-content: start; flex-wrap: wrap; gap: 5px; }
.ws-search-plan strong { width: 100%; margin-bottom: 5px; font-size: 9px; }
.ws-three-summary { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px; }
.ws-three-summary > div { border-right: 1px solid #e7ebe8; text-align: center; }
.ws-three-summary > div:last-child { border: 0; }
.ws-three-summary strong, .ws-three-summary span { display: block; }
.ws-three-summary strong { font-size: 24px; }
.ws-three-summary span { margin-top: 4px; color: #7c8982; font-size: 9px; }
.ws-publish-state { display: flex; align-items: center; gap: 15px; padding: 0 20px 20px; font-size: 10px; }
.ws-result-editor { border-top: 1px solid #e4e9e6; padding: 18px 20px 20px; }
.ws-result-editor h3 { font-size: 12px; }
.ws-result-options { display: grid; gap: 7px; margin-bottom: 16px; }
.ws-result-options label { flex-direction: row; align-items: flex-start; gap: 9px; margin: 0; border: 1px solid #e0e6e2; border-radius: 8px; padding: 10px; }
.ws-result-options input { width: 15px; min-height: auto; flex: 0 0 auto; }
.ws-result-options strong, .ws-result-options small { display: block; font-size: 9px; }
.ws-result-options small { margin-top: 3px; color: #7e8b84; font-size: 8px; }
.ws-share-controls { display: flex; align-items: end; gap: 9px; margin-top: 12px; }
.ws-share-controls label { margin: 0; }
.ws-share-links { margin-top: 14px; }
.ws-share-links > div { display: flex; align-items: center; gap: 10px; border-top: 1px solid #e7ebe8; padding: 9px 0; font-size: 9px; }
.ws-share-links span { flex: 1; }
.ws-share-links b { color: #627169; }
.ws-share-links button { border: 0; background: transparent; color: #a2443b; font-size: 8px; font-weight: 700; }
.ws-detail-section > p { padding: 18px 20px 0; color: #5d6b64; font-size: 11px; line-height: 1.6; }
.ws-side-panel { padding: 18px; }
.ws-side-panel h2 { margin-bottom: 13px; font-size: 16px; }
.ws-side-facts { margin: 0; }
.ws-side-facts > div { border-bottom: 1px solid #e8ece9; padding: 9px 0; }
.ws-history > div { position: relative; display: flex; gap: 10px; padding: 0 0 14px; }
.ws-history > div > span { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 3px; border-radius: 50%; background: #6da286; box-shadow: 0 0 0 3px #e0ece5; }
.ws-history p { margin: 0; }
.ws-history strong, .ws-history small { display: block; font-size: 9px; }
.ws-history small { margin-top: 3px; color: #87928d; font-size: 8px; }

.ws-project-grid, .ws-seller-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.ws-project-card, .ws-seller-card { border: 1px solid #dce2de; border-radius: 11px; padding: 20px; background: white; text-decoration: none; transition: transform .15s, box-shadow .15s, border .15s; }
.ws-project-card:hover, .ws-seller-card:hover { transform: translateY(-2px); border-color: #8faf9e; box-shadow: 0 12px 35px rgba(20,63,50,.08); }
.ws-project-card-head, .ws-seller-card > div:first-child { display: flex; align-items: center; justify-content: space-between; }
.ws-project-card-head > span, .ws-seller-logo { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 9px; background: #e2eee7; color: #2d654e; font-size: 9px; font-weight: 800; }
.ws-project-card h2, .ws-seller-card h2 { margin: 20px 0 8px; font-size: 18px; }
.ws-project-card > p, .ws-seller-card > p { min-height: 42px; color: #718078; font-size: 10px; line-height: 1.55; }
.ws-project-card dl, .ws-seller-card dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 18px 0; border-block: 1px solid #e7ebe8; padding: 13px 0; }
.ws-project-card dt, .ws-seller-card dt { color: #839089; font-size: 7px; text-transform: uppercase; }
.ws-project-card dd, .ws-seller-card dd { margin: 4px 0 0; font-size: 10px; font-weight: 700; }
.ws-project-card footer, .ws-seller-card footer { display: flex; justify-content: space-between; color: #7b8881; font-size: 8px; }
.ws-project-card footer strong, .ws-seller-card footer strong { color: #3d735d; }
.ws-project-metrics { grid-template-columns: repeat(5, 1fr); }
.ws-modal { width: min(680px, calc(100vw - 32px)); border: 0; border-radius: 12px; padding: 25px; box-shadow: 0 30px 80px rgba(9,31,24,.24); }
.ws-modal::backdrop { background: rgba(5,25,18,.62); backdrop-filter: blur(4px); }

.ws-review-filters { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; border-bottom: 1px solid #e3e8e5; padding: 14px 17px; }
.ws-review-filters label { margin: 0; font-size: 9px; }
.ws-review-filters select, .ws-review-filters input { width: 100%; }
.ws-queue-list > a { display: grid; grid-template-columns: 32px minmax(180px, 1fr) auto auto auto 70px; align-items: center; gap: 12px; border-bottom: 1px solid #e9edea; padding: 13px 17px; text-decoration: none; }
.ws-queue-list > a:hover { background: #fafcfb; }
.ws-queue-list strong, .ws-queue-list small { display: block; font-size: 10px; }
.ws-queue-list small { margin-top: 3px; color: #829088; font-size: 8px; }
.ws-queue-list > a > b { color: #3c725d; font-size: 9px; text-align: right; }
.ws-queue-type { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 7px; background: #e2eee7; color: #2d654e; font-size: 9px; font-weight: 800; }
.ws-type-seller { background: #fff0dc; color: #8b5b1b; }
.ws-type-quotation, .ws-type-rfq { background: #e6edf4; color: #42657e; }

.ws-product-list > a { display: grid; grid-template-columns: 43px minmax(190px,1.5fr) 110px 110px 80px 120px 95px; align-items: center; gap: 12px; border-bottom: 1px solid #e8ece9; padding: 13px 17px; text-decoration: none; }
.ws-product-list > a:hover { background: #fafcfb; }
.ws-product-title strong, .ws-product-title small, .ws-product-list > a > div > small, .ws-product-list > a > div > strong { display: block; font-size: 10px; }
.ws-product-title small, .ws-product-list > a > div > small { margin-bottom: 3px; color: #829088; font-size: 8px; }
.ws-candidate-detail { display: grid; gap: 15px; }
.ws-candidate-hero { display: grid; grid-template-columns: minmax(300px,.8fr) 1.2fr; gap: 28px; padding: 24px; }
.ws-large-placeholder { display: grid; min-height: 280px; place-content: center; border: 1px solid #dce4df; border-radius: 10px; background: linear-gradient(145deg,#e9efeb,#f9faf9); color: #667b70; text-align: center; }
.ws-large-placeholder span, .ws-large-placeholder small { display: block; }
.ws-large-placeholder small { margin-top: 4px; color: #8c9892; font-size: 9px; }
.ws-candidate-hero h2 { margin-bottom: 14px; font-size: 23px; }
.ws-price { border-block: 1px solid #e5e9e6; padding: 14px 0; }
.ws-price strong, .ws-price small { display: block; }
.ws-price strong { font-size: 20px; }
.ws-price small { margin-top: 4px; color: #7d8983; font-size: 9px; }
.ws-score-components { padding: 8px 20px 20px; }
.ws-score-components > div { display: grid; grid-template-columns: 160px 1fr 65px; gap: 7px 12px; border-bottom: 1px solid #e8ece9; padding: 11px 0; }
.ws-score-components span, .ws-score-components strong { font-size: 9px; }
.ws-score-components progress { width: 100%; height: 7px; margin-top: 3px; border: 0; border-radius: 999px; accent-color: #4c8a6c; }
.ws-score-components p { grid-column: 1 / -1; margin: 0; color: #7d8983; font-size: 8px; }
.ws-key-value { margin: 0; padding: 8px 20px 20px; }
.ws-key-value > div { display: grid; grid-template-columns: 1fr 1.5fr; border-bottom: 1px solid #e8ece9; padding: 10px 0; }
.ws-key-value dt { color: #77847e; font-size: 9px; }
.ws-key-value dd { margin: 0; font-size: 10px; font-weight: 700; }
.ws-safety-banner { margin: -8px 0 18px; border-radius: 0 8px 8px 0; }
.ws-risk-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ws-risk-checks li { border-radius: 7px; padding: 8px 10px; background: #edf5f0; color: #31694f; font-size: 9px; }
.ws-risk-checks li.flagged { background: #fae8e5; color: #923e35; }
.ws-evidence-list { display: grid; padding: 11px 20px 20px; }
.ws-evidence-list a { border-bottom: 1px solid #e8ece9; padding: 10px 0; color: #356f58; font-size: 10px; word-break: break-all; }
.ws-settings-note { margin-top: 15px; padding: 20px; }
.ws-settings-note h2 { font-size: 16px; }
.ws-settings-note p { margin: 0; color: #6f7c75; font-size: 11px; line-height: 1.6; }
.ws-user-table select { width: 120px; min-height: 35px; padding: 6px 8px; font-size: 9px; }
.ws-row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.ws-row-actions button { border: 1px solid #d4ddd8; border-radius: 6px; padding: 6px 8px; background: white; color: #315e4b; font-size: 8px; font-weight: 700; }
.ws-row-actions button:hover { border-color: #769a88; background: #f5f9f6; }
.ws-overlay { display: none; }

@media (max-width: 1180px) {
  .ws-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .ws-dashboard-grid { grid-template-columns: 1fr 1fr; }
  .ws-span-2 { grid-column: span 2; }
  .ws-project-grid, .ws-seller-grid { grid-template-columns: repeat(2, 1fr); }
  .ws-project-metrics { grid-template-columns: repeat(3, 1fr); }
  .ws-product-list > a { grid-template-columns: 43px minmax(180px,1fr) 100px 90px 110px; }
  .ws-product-list > a > div:nth-of-type(3), .ws-product-list > a > div:nth-of-type(4) { display: none; }
}

@media (max-width: 900px) {
  .ws-shell { grid-template-columns: 1fr; }
  .ws-sidebar { position: fixed; left: 0; transform: translateX(-105%); width: 270px; transition: transform .2s; }
  .ws-sidebar.open { transform: translateX(0); }
  .ws-sidebar-close, .ws-menu-button { display: block; }
  .ws-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(5,25,18,.55); }
  .ws-overlay.open { display: block; }
  .ws-topbar { padding: 0 22px; }
  .ws-topbar-title { margin-right: auto; margin-left: 13px; }
  .ws-search { width: 38px; justify-content: center; }
  .ws-search span:nth-child(2), .ws-search kbd { display: none; }
  .ws-wizard-layout { grid-template-columns: 1fr; }
  .ws-stepper { position: static; grid-template-columns: repeat(5, 1fr); }
  .ws-stepper button { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ws-stepper button > div { display: none; }
  .ws-detail-grid { grid-template-columns: 1fr; }
  .ws-detail-side { grid-template-columns: 1fr 1fr; }
  .ws-candidate-hero { grid-template-columns: 1fr; }
  .ws-large-placeholder { min-height: 210px; }
}

@media (max-width: 680px) {
  .ws-content { padding: 25px 15px 55px; }
  .ws-page-header { align-items: stretch; flex-direction: column; gap: 16px; }
  .ws-page-header .button { width: 100%; }
  .ws-metric-grid, .ws-project-metrics { grid-template-columns: repeat(2, 1fr); }
  .ws-dashboard-grid { grid-template-columns: 1fr; }
  .ws-span-2 { grid-column: auto; }
  .ws-request-list > a { grid-template-columns: 1fr auto; }
  .ws-request-list .ws-request-id, .ws-request-list time { display: none; }
  .ws-project-grid, .ws-seller-grid { grid-template-columns: 1fr; }
  .ws-toolbar { align-items: stretch; flex-direction: column; }
  .ws-filter-search { width: 100%; }
  .ws-detail-actions { align-items: stretch; flex-direction: column; }
  .ws-timeline { display: flex; overflow-x: auto; justify-content: space-between; }
  .ws-timeline > div { min-width: 62px; }
  .ws-timeline > div::before { display: none; }
  .ws-detail-side { grid-template-columns: 1fr; }
  .ws-definition-grid, .ws-toggle-grid, .ws-review-card dl { grid-template-columns: 1fr; }
  .ws-definition-grid > div:first-child { grid-column: auto; }
  .ws-spec-row { grid-template-columns: 1fr; border: 1px solid #e1e6e3; border-radius: 8px; padding: 12px; }
  .ws-spec-row > button { width: 100%; }
  .ws-search-order, .ws-search-order ol { align-items: start; flex-direction: column; }
  .ws-wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .ws-wizard-actions > div { display: grid; grid-template-columns: 1fr 1fr; }
  .ws-form-step { padding: 21px 17px; }
  .ws-review-filters { grid-template-columns: 1fr 1fr; }
  .ws-queue-list > a { grid-template-columns: 32px 1fr auto; }
  .ws-queue-list .priority, .ws-queue-list .risk, .ws-queue-list .status { display: none; }
  .ws-product-list > a { grid-template-columns: 40px 1fr auto; }
  .ws-product-list > a > div:not(.ws-product-placeholder):not(.ws-product-title), .ws-product-list > a > .risk { display: none; }
  .ws-score-components > div { grid-template-columns: 1fr 60px; }
  .ws-score-components progress { grid-column: 1 / -1; grid-row: 2; }
  .ws-search-plan { grid-template-columns: 1fr; }
}

/* ShopMat Platform v0.2.1 executive UI design system */
:root {
  --sm-font: "Segoe UI", Aptos, Arial, sans-serif;
  --sm-font-display: "Segoe UI Variable Display", "Segoe UI", Aptos, sans-serif;
  --sm-space-1: 4px;
  --sm-space-2: 8px;
  --sm-space-3: 12px;
  --sm-space-4: 16px;
  --sm-space-5: 24px;
  --sm-space-6: 32px;
  --sm-space-7: 48px;
  --sm-radius-sm: 7px;
  --sm-radius: 11px;
  --sm-radius-lg: 16px;
  --sm-shadow: 0 8px 28px rgba(16, 44, 36, .07);
  --sm-shadow-lg: 0 24px 80px rgba(8, 30, 23, .22);
  --sm-bg: #f4f6f4;
  --sm-surface: #fff;
  --sm-surface-raised: #fff;
  --sm-surface-subtle: #f8faf8;
  --sm-text: #17221e;
  --sm-muted: #64716a;
  --sm-border: #dce3df;
  --sm-primary: #174e3b;
  --sm-primary-hover: #0e3d2d;
  --sm-primary-soft: #e1eee7;
  --sm-focus: #2777c7;
  --sm-danger: #a33a32;
  --sm-danger-soft: #f9e7e4;
  --sm-warning: #825f10;
  --sm-warning-soft: #fff2cf;
  --sm-info: #315f7a;
  --sm-info-soft: #e5eef4;
  --sm-success: #236345;
  --sm-success-soft: #e2f1e8;
  --sm-sidebar: #102c24;
  --sm-sidebar-text: #dbe7e1;
}

:root[data-theme="dark"] {
  --sm-bg: #0e1512;
  --sm-surface: #16201c;
  --sm-surface-raised: #1b2823;
  --sm-surface-subtle: #121c18;
  --sm-text: #edf4f0;
  --sm-muted: #a6b4ad;
  --sm-border: #34433c;
  --sm-primary: #85c6a4;
  --sm-primary-hover: #a1d7bb;
  --sm-primary-soft: #253c32;
  --sm-focus: #76b9ff;
  --sm-danger: #f09a91;
  --sm-danger-soft: #472522;
  --sm-warning: #f0cb72;
  --sm-warning-soft: #40351f;
  --sm-info: #a3cee5;
  --sm-info-soft: #243844;
  --sm-success: #8ed0aa;
  --sm-success-soft: #223b2e;
  --sm-sidebar: #09120e;
  --sm-sidebar-text: #e3eee8;
  --sm-shadow: 0 10px 34px rgba(0, 0, 0, .25);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --sm-bg: #0e1512;
    --sm-surface: #16201c;
    --sm-surface-raised: #1b2823;
    --sm-surface-subtle: #121c18;
    --sm-text: #edf4f0;
    --sm-muted: #a6b4ad;
    --sm-border: #34433c;
    --sm-primary: #85c6a4;
    --sm-primary-hover: #a1d7bb;
    --sm-primary-soft: #253c32;
    --sm-focus: #76b9ff;
    --sm-danger: #f09a91;
    --sm-danger-soft: #472522;
    --sm-warning: #f0cb72;
    --sm-warning-soft: #40351f;
    --sm-info: #a3cee5;
    --sm-info-soft: #243844;
    --sm-success: #8ed0aa;
    --sm-success-soft: #223b2e;
    --sm-sidebar: #09120e;
    --sm-sidebar-text: #e3eee8;
  }
}

html { scroll-behavior: smooth; }
.workspace-v21 { overflow-x: hidden; background: var(--sm-bg); color: var(--sm-text); font-family: var(--sm-font); }
.workspace-v21 * { box-sizing: border-box; }
.workspace-v21 :is(a, button, input, select, textarea, summary):focus-visible,
.error-page :is(a, button):focus-visible {
  outline: 3px solid var(--sm-focus);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-160%);
  border-radius: var(--sm-radius-sm); padding: 10px 14px; background: var(--sm-text); color: var(--sm-surface);
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important;
}

.ws-shell { grid-template-columns: 268px minmax(0, 1fr); }
.ws-sidebar { width: 268px; background: var(--sm-sidebar); color: var(--sm-sidebar-text); transition: width .18s ease; }
.ws-sidebar-footer { display: grid; gap: var(--sm-space-3); margin-top: auto; }
.ws-collapse-control {
  display: flex; min-height: 40px; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--sm-radius-sm); padding: 8px 11px; background: transparent; color: #b8c8c0; cursor: pointer;
}
.nav-collapsed.ws-shell { grid-template-columns: 80px minmax(0, 1fr); }
.nav-collapsed .ws-sidebar { width: 80px; padding-inline: 12px; }
.nav-collapsed .ws-brand { justify-content: center; padding: 0; }
.nav-collapsed .ws-brand-name, .nav-collapsed .nav-label, .nav-collapsed .ws-nav p,
.nav-collapsed .nav-badge { display: none; }
.nav-collapsed .ws-nav a { justify-content: center; padding-inline: 0; }
.nav-collapsed .ws-nav a .nav-icon { width: 38px; height: 38px; }
.nav-collapsed .ws-sidebar-user { grid-template-columns: 1fr; justify-items: center; padding-inline: 0; }
.nav-collapsed .ws-collapse-control { justify-content: center; }
.nav-collapsed .ws-collapse-control > span:first-child { transform: rotate(180deg); }
.ws-nav a { position: relative; min-height: 44px; color: #b7c8c0; font-size: 12px; }
.ws-nav a.active { background: rgba(255,255,255,.11); color: #fff; }
.nav-icon { font-family: var(--sm-font); font-weight: 800; }
.nav-badge { margin-left: auto; border-radius: 999px; padding: 2px 7px; background: #d8a449; color: #1e271f; font-size: 9px; }

.ws-topbar {
  height: 72px; border-color: var(--sm-border); padding-inline: clamp(16px, 3.5vw, 52px);
  background: color-mix(in srgb, var(--sm-surface) 94%, transparent); color: var(--sm-text);
}
.ws-topbar-title nav { display: flex; gap: 7px; color: var(--sm-muted); font-size: 9px; }
.ws-topbar-title nav a { color: var(--sm-primary); }
.ws-topbar-title strong { font-size: 13px; }
.environment-badge {
  margin-left: auto; border: 1px solid var(--sm-warning); border-radius: 999px; padding: 4px 8px;
  background: var(--sm-warning-soft); color: var(--sm-warning); font-size: 8px; font-weight: 800; letter-spacing: .08em;
}
.ws-topbar-actions { margin-left: 16px; }
.ws-search { width: min(300px, 25vw); border-color: var(--sm-border); background: var(--sm-surface-subtle); color: var(--sm-muted); }
.ws-search kbd, .command-dialog kbd { border: 1px solid var(--sm-border); border-radius: 4px; padding: 2px 6px; background: var(--sm-surface); color: var(--sm-muted); }
.ws-notification-button { border-color: var(--sm-border); background: var(--sm-surface); color: var(--sm-text); }
.ws-quick-menu, .ws-account-menu { position: relative; }
.ws-quick-menu summary, .ws-account-menu summary { list-style: none; cursor: pointer; }
.ws-quick-menu summary::-webkit-details-marker, .ws-account-menu summary::-webkit-details-marker { display: none; }
.ws-quick-menu > div, .ws-account-menu > div {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: grid; width: 230px;
  border: 1px solid var(--sm-border); border-radius: var(--sm-radius); padding: 8px;
  background: var(--sm-surface-raised); box-shadow: var(--sm-shadow-lg);
}
.ws-quick-menu a, .ws-account-menu button {
  border: 0; border-radius: var(--sm-radius-sm); padding: 10px; background: transparent; color: var(--sm-text);
  font: inherit; font-size: 11px; text-align: left; text-decoration: none;
}
.ws-quick-menu a:hover, .ws-account-menu button:hover { background: var(--sm-primary-soft); }
.ws-account-menu summary { display: grid; place-content: center; }
.ws-account-menu > div { gap: 8px; padding: 14px; }
.ws-account-menu small { color: var(--sm-muted); word-break: break-all; }
.ws-account-menu label { margin: 7px 0 0; }
.ws-account-menu select { width: 100%; margin-top: 4px; }
.session-notice { padding: 10px 24px; background: var(--sm-danger-soft); color: var(--sm-danger); font-size: 12px; text-align: center; }

.ws-content { max-width: 1680px; margin: 0 auto; padding: 38px clamp(16px, 3.5vw, 52px) max(70px, env(safe-area-inset-bottom)); }
.ws-page-header h1 { color: var(--sm-text); font-family: var(--sm-font-display); font-size: clamp(28px, 3vw, 42px); letter-spacing: -.035em; }
.ws-page-header p { color: var(--sm-muted); }
.eyebrow { color: var(--sm-primary); }
.ws-panel, .ws-project-card, .ws-seller-card, .ws-metric-card, .ws-timeline {
  border-color: var(--sm-border); background: var(--sm-surface); color: var(--sm-text); box-shadow: var(--sm-shadow);
}
.ws-panel-head { border-color: var(--sm-border); }
.ws-panel-head a, .ws-back, .ws-empty a { color: var(--sm-primary); font-weight: 700; }
.ws-empty p, .muted, .ws-panel-note { color: var(--sm-muted); }
.button { min-height: 42px; border-radius: var(--sm-radius-sm); font-weight: 700; }
.button-large { min-height: 48px; padding-inline: 20px; }
.button-primary { background: var(--sm-primary); color: var(--sm-surface); }
.button-primary:hover { background: var(--sm-primary-hover); }
.button-secondary { border-color: var(--sm-border); background: var(--sm-surface); color: var(--sm-text); }
.button-danger { border: 1px solid var(--sm-danger); background: var(--sm-danger-soft); color: var(--sm-danger); }

.ws-metric-grid-eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ws-metric-card { min-height: 132px; padding: 20px; }
.ws-metric-card span { color: var(--sm-muted); }
.ws-metric-card strong { color: var(--sm-text); font-size: 34px; }
.ws-metric-card small { color: var(--sm-muted); }
.ws-metric-alert { border-color: color-mix(in srgb, var(--sm-danger) 45%, var(--sm-border)); background: var(--sm-danger-soft); }
.ws-metric-alert strong { color: var(--sm-danger); }

.status, .risk, .priority {
  display: inline-flex; min-height: 25px; align-items: center; border: 1px solid transparent;
  border-radius: 999px; padding: 4px 9px; font-size: 9px; font-weight: 800; text-transform: capitalize;
}
.status::before, .risk::before { width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-draft, .status-pending, .status-not_started { background: var(--sm-surface-subtle); color: var(--sm-muted); border-color: var(--sm-border); }
.status-submitted, .status-analysing, .status-searching, .status-seller_check, .status-scoring { background: var(--sm-info-soft); color: var(--sm-info); }
.status-awaiting_review, .status-review_carefully { background: var(--sm-warning-soft); color: var(--sm-warning); }
.status-published, .status-approved, .status-active, .status-verified { background: var(--sm-success-soft); color: var(--sm-success); }
.status-closed, .status-archived, .status-cancelled, .status-rejected { background: var(--sm-danger-soft); color: var(--sm-danger); }
.risk-verified, .risk-low_risk { background: var(--sm-success-soft); color: var(--sm-success); }
.risk-review_carefully, .risk-insufficient_information { background: var(--sm-warning-soft); color: var(--sm-warning); }
.risk-high_risk { background: var(--sm-danger-soft); color: var(--sm-danger); }
.priority-urgent, .priority-high { background: var(--sm-danger-soft); color: var(--sm-danger); }
.priority-normal { background: var(--sm-info-soft); color: var(--sm-info); }
.priority-low { background: var(--sm-surface-subtle); color: var(--sm-muted); }

.ws-table { color: var(--sm-text); }
.ws-table th { position: sticky; top: 71px; z-index: 2; background: var(--sm-surface-subtle); color: var(--sm-muted); }
.ws-table td, .ws-table th { border-color: var(--sm-border); }
.ws-table tr:hover td { background: var(--sm-surface-subtle); }
.ws-table .sortable { cursor: pointer; }
.ws-table .sortable::after { margin-left: 5px; color: var(--sm-muted); content: "sort"; font-size: 7px; }
.ws-table [aria-sort="ascending"]::after { content: "up"; }
.ws-table [aria-sort="descending"]::after { content: "down"; }
.ws-table select, input, select, textarea {
  border-color: var(--sm-border); background: var(--sm-surface); color: var(--sm-text);
}
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--sm-muted) 75%, transparent); }
[aria-invalid="true"] { border-color: var(--sm-danger) !important; box-shadow: 0 0 0 2px var(--sm-danger-soft); }
.field-error, .form-message, .text-danger { color: var(--sm-danger); }
.save-state { margin-top: 8px !important; font-size: 10px !important; }
.save-state[data-state="saving"] { color: var(--sm-warning); }
.save-state[data-state="saved"] { color: var(--sm-success); }

.command-dialog {
  width: min(720px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 40px)); border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius-lg); padding: 0; background: var(--sm-surface-raised); color: var(--sm-text); box-shadow: var(--sm-shadow-lg);
}
.command-dialog::backdrop { background: rgba(4, 18, 13, .68); backdrop-filter: blur(5px); }
.command-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--sm-border); padding: 18px 20px; }
.command-head h2 { margin: 3px 0 0; font-size: 20px; }
.command-input { margin: 0; padding: 14px 20px; }
.command-input input { width: 100%; min-height: 50px; font-size: 15px; }
.command-shortcuts, .command-results { display: grid; max-height: 470px; overflow-y: auto; padding: 0 12px 14px; }
.command-shortcuts a, .command-results a, .search-page-results > a {
  display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px;
  border-radius: var(--sm-radius-sm); padding: 11px; color: var(--sm-text); text-decoration: none;
}
.command-shortcuts a:hover, .command-results a:hover, .search-page-results > a:hover { background: var(--sm-primary-soft); }
.command-results strong, .command-results small, .search-page-results strong, .search-page-results small { display: block; }
.command-results small, .search-page-results small { margin-top: 3px; color: var(--sm-muted); font-size: 10px; }
.command-type { color: var(--sm-primary); font-size: 8px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.command-state { padding: 22px; color: var(--sm-muted); text-align: center; }

.detail-tabs {
  position: sticky; top: 72px; z-index: 10; display: flex; gap: 4px; overflow-x: auto;
  margin: 0 0 18px; border: 1px solid var(--sm-border); border-radius: var(--sm-radius);
  padding: 6px; background: var(--sm-surface);
}
.detail-tabs a { flex: 0 0 auto; border-radius: 6px; padding: 8px 11px; color: var(--sm-muted); font-size: 10px; font-weight: 700; text-decoration: none; }
.detail-tabs a:hover, .detail-tabs a:focus { background: var(--sm-primary-soft); color: var(--sm-primary); }
.next-action, .payment-control {
  display: flex; align-items: center; gap: 12px; margin: -5px 0 18px; border-left: 4px solid var(--sm-primary);
  border-radius: 0 var(--sm-radius-sm) var(--sm-radius-sm) 0; padding: 12px 16px; background: var(--sm-primary-soft);
}
.next-action p, .payment-control p { margin: 0; color: var(--sm-muted); font-size: 11px; }

.ws-spec-row { grid-template-columns: repeat(3, minmax(120px, 1fr)) 130px; align-items: end; }
.ws-spec-row > button { width: auto; min-height: 38px; margin-bottom: 11px; padding: 7px; font-size: 9px; }
.ws-spec-row > button[data-duplicate-spec] { border-color: var(--sm-border); background: var(--sm-surface-subtle); color: var(--sm-primary); }
.ws-spec-group > div span small, .ws-spec-group > div strong small { display: block; margin-top: 3px; color: var(--sm-muted); font-size: 8px; font-weight: 400; }

.ws-product-list > article {
  display: grid; grid-template-columns: 30px 40px minmax(190px, 1.5fr) 100px 125px 90px 125px 105px;
  align-items: center; gap: 12px; border-bottom: 1px solid var(--sm-border); padding: 13px 17px;
}
.ws-product-title { color: var(--sm-text); text-decoration: none; }
.ws-product-title:hover strong { color: var(--sm-primary); text-decoration: underline; }
.compare-check { margin: 0; }
.compare-check input { width: 18px; min-height: 18px; }
.comparison-scroll { overflow-x: auto; border: 1px solid var(--sm-border); border-radius: var(--sm-radius); background: var(--sm-surface); box-shadow: var(--sm-shadow); }
.comparison-table { width: 100%; min-width: 820px; border-collapse: collapse; color: var(--sm-text); }
.comparison-table th, .comparison-table td { min-width: 190px; border-bottom: 1px solid var(--sm-border); border-right: 1px solid var(--sm-border); padding: 15px; vertical-align: top; text-align: left; }
.comparison-table th:first-child { min-width: 150px; background: var(--sm-surface-subtle); }
.comparison-table thead th { position: sticky; top: 0; z-index: 2; background: var(--sm-surface); }
.comparison-table a { color: var(--sm-primary); }
.comparison-table small { display: block; margin-top: 5px; color: var(--sm-muted); font-size: 9px; }
.comparison-total { font-size: 16px; font-weight: 800; }
.comparison-warning { color: var(--sm-danger) !important; }
.comparison-match th:first-child { box-shadow: inset 4px 0 var(--sm-success); }
.comparison-difference th:first-child { box-shadow: inset 4px 0 var(--sm-info); }
.comparison-unconfirmed th:first-child { box-shadow: inset 4px 0 var(--sm-warning); }

.evidence-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 20px 20px; }
.evidence-cards article { border: 1px solid var(--sm-border); border-radius: var(--sm-radius-sm); padding: 13px; background: var(--sm-surface-subtle); }
.evidence-cards p, .evidence-cards small { color: var(--sm-muted); font-size: 10px; }
.evidence-table { overflow-x: auto; padding: 0 20px 20px; }
.evidence-table > div { display: grid; min-width: 700px; grid-template-columns: 2fr 100px 90px 1.5fr; gap: 12px; border-bottom: 1px solid var(--sm-border); padding: 11px; font-size: 10px; }
.evidence-table-head { background: var(--sm-surface-subtle); color: var(--sm-muted); font-size: 8px !important; font-weight: 800; text-transform: uppercase; }
.evidence-table a { color: var(--sm-primary); word-break: break-all; }
.ws-risk-checks li { background: var(--sm-success-soft); color: var(--sm-success); }
.ws-risk-checks li.flagged { background: var(--sm-danger-soft); color: var(--sm-danger); }
.ws-risk-checks li strong { display: block; margin-bottom: 3px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings-grid .ws-panel { padding: 22px; }
.settings-grid h2 { margin-bottom: 18px; font-size: 18px; }
.settings-list { margin: 0; }
.settings-list > div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--sm-border); padding: 11px 0; }
.settings-list dt { color: var(--sm-muted); font-size: 10px; }
.settings-list dd { margin: 0; font-size: 10px; font-weight: 700; text-align: right; }
.notification-centre { display: grid; gap: 10px; }
.notification-item { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 16px; padding: 17px; }
.notification-item.unread { border-left: 4px solid var(--sm-primary); }
.notification-type { color: var(--sm-primary); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.notification-item p { margin: 5px 0; color: var(--sm-muted); font-size: 11px; }
.notification-item time { color: var(--sm-muted); font-size: 9px; }
.notification-item button { border: 1px solid var(--sm-border); border-radius: var(--sm-radius-sm); padding: 8px 10px; background: var(--sm-surface); color: var(--sm-primary); }
.search-page { padding: 24px; }
.search-page form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-page form label { margin: 0; }
.search-page form input { width: 100%; min-height: 48px; font-size: 14px; }
.search-page-results { display: grid; margin-top: 18px; }
.search-count { color: var(--sm-muted); font-size: 10px; }
.payment-control { margin-top: 16px; }

.error-page { margin: 0; background: var(--sm-bg); color: var(--sm-text); font-family: var(--sm-font); }
.error-shell { display: grid; width: min(720px, calc(100% - 32px)); min-height: 100vh; margin: auto; grid-template-rows: auto 1fr auto; padding: 32px 0; }
.error-shell section { align-self: center; border: 1px solid var(--sm-border); border-radius: var(--sm-radius-lg); padding: clamp(28px, 7vw, 70px); background: var(--sm-surface); box-shadow: var(--sm-shadow); }
.error-code { margin: 0; color: var(--sm-primary); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.error-shell h1 { margin: 10px 0 12px; font-size: clamp(30px, 5vw, 48px); }
.error-shell section > p:not(.error-code) { max-width: 520px; margin-bottom: 26px; color: var(--sm-muted); line-height: 1.7; }
.error-shell footer { align-self: end; color: var(--sm-muted); font-size: 10px; }

@media (max-width: 1250px) {
  .ws-metric-grid-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-product-list > article { grid-template-columns: 28px 40px minmax(170px, 1fr) 100px 110px; }
  .ws-product-list > article > :nth-child(4), .ws-product-list > article > :nth-child(5),
  .ws-product-list > article > :nth-child(6) { display: none; }
}

@media (max-width: 900px) {
  .ws-shell, .nav-collapsed.ws-shell { grid-template-columns: 1fr; }
  .ws-sidebar, .nav-collapsed .ws-sidebar { width: 280px; padding: 24px 17px 17px; }
  .nav-collapsed .ws-brand-name, .nav-collapsed .nav-label, .nav-collapsed .ws-nav p,
  .nav-collapsed .nav-badge { display: initial; }
  .nav-collapsed .ws-nav a { justify-content: flex-start; padding: 8px 10px; }
  .ws-collapse-control { display: none; }
  .ws-quick-menu { display: none; }
  .ws-search { width: 42px; }
  .ws-search span { font-size: 0; }
  .ws-search span::after { font-size: 10px; content: "Find"; }
  .environment-badge { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .ws-topbar { height: 64px; padding-inline: 12px; }
  .ws-topbar-title nav { display: none; }
  .ws-topbar-actions { gap: 5px; margin-left: 7px; }
  .ws-account-menu { display: none; }
  .ws-content { padding: 24px 12px max(72px, env(safe-area-inset-bottom)); }
  .ws-metric-grid-eight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ws-metric-card { min-height: 112px; padding: 15px; }
  .ws-metric-card strong { font-size: 28px; }
  .next-action { align-items: flex-start; flex-direction: column; }
  .detail-tabs { top: 64px; margin-inline: -12px; border-radius: 0; }
  .ws-spec-row { grid-template-columns: 1fr 1fr; }
  .ws-spec-row > button { width: 100%; }
  .ws-review-filters { grid-template-columns: 1fr; }
  .ws-queue-list > a { grid-template-columns: 32px 1fr; }
  .ws-queue-list > a > b { display: none; }
  .ws-product-list > article { grid-template-columns: 28px 38px 1fr auto; }
  .ws-product-list > article > :not(.compare-check):not(.ws-product-placeholder):not(.ws-product-title):not(.status) { display: none; }
  .notification-item { grid-template-columns: 1fr auto; }
  .notification-type { grid-column: 1 / -1; }
  .search-page { padding: 15px; }
  .search-page form { grid-template-columns: 1fr; }
  .command-dialog { max-height: calc(100vh - 20px); }
  .evidence-cards { grid-template-columns: 1fr; }
  .table-wrap { margin-inline: -1px; }
  .ws-table.responsive-cards thead { display: none; }
  .ws-table.responsive-cards, .ws-table.responsive-cards tbody, .ws-table.responsive-cards tr,
  .ws-table.responsive-cards td { display: block; width: 100%; }
  .ws-table.responsive-cards tr { border-bottom: 1px solid var(--sm-border); padding: 12px; }
  .ws-table.responsive-cards td { display: grid; grid-template-columns: 105px 1fr; border: 0; padding: 6px; }
  .ws-table.responsive-cards td::before { color: var(--sm-muted); font-size: 8px; font-weight: 800; content: attr(data-label); text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
