:root {
  color-scheme: light;

  /* ── core palette ──────────────────────────────────── */
  --ink:    #07102A;
  --navy:   #0F1C50;
  --body:   #1B223C;
  --muted:  #6C72A0;
  --subtle: #A5ABCA;

  /* ── surfaces ──────────────────────────────────────── */
  --surface:   #FFFFFF;
  --surface-2: #F6F7FC;
  --surface-3: #EEEFFE;

  /* ── borders ───────────────────────────────────────── */
  --border:        rgba(15, 28, 80, 0.10);
  --border-strong: rgba(15, 28, 80, 0.18);

  /* ── accent orange ─────────────────────────────────── */
  --orange:       #E35F1C;
  --orange-deep:  #C9531A;
  --orange-dim:   rgba(227, 95, 28, 0.10);
  --orange-ring:  rgba(227, 95, 28, 0.22);

  /* ── status: success ───────────────────────────────── */
  --green:        #13956A;
  --green-dim:    rgba(19, 149, 106, 0.09);
  --green-border: rgba(19, 149, 106, 0.28);

  /* ── status: pending ───────────────────────────────── */
  --amber:        #A05E00;
  --amber-dim:    rgba(160, 94, 0, 0.09);
  --amber-border: rgba(160, 94, 0, 0.26);

  /* ── status: error ─────────────────────────────────── */
  --red:     #B42318;
  --red-dim: rgba(180, 35, 24, 0.09);

  /* ── typography ────────────────────────────────────── */
  --font:      Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "IBM Plex Mono", Consolas, "Liberation Mono", monospace;

  /* ── radius ────────────────────────────────────────── */
  --r-xs:  4px;
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  16px;
  --r-pill: 999px;

  /* ── elevation ─────────────────────────────────────── */
  --e1: 0 1px 2px rgba(7, 16, 42, .05), 0 0 0 1px rgba(7, 16, 42, .06);
  --e2: 0 1px 3px rgba(7, 16, 42, .06), 0 2px 8px rgba(7, 16, 42, .04), 0 0 0 1px rgba(7, 16, 42, .06);
  --e3: 0 4px 16px rgba(7, 16, 42, .08), 0 1px 4px rgba(7, 16, 42, .05), 0 0 0 1px rgba(7, 16, 42, .05);
  --e4: 0 8px 32px rgba(7, 16, 42, .12), 0 2px 8px rgba(7, 16, 42, .06), 0 0 0 1px rgba(7, 16, 42, .05);

  /* ── transitions ───────────────────────────────────── */
  --tx-fast: 100ms ease;
  --tx:      160ms ease;
  --tx-slow: 240ms ease;

  /* ── legacy aliases (used inside this file only) ───── */
  --color-ink-blue:      var(--ink);
  --color-ghost-white:   #fff;
  --color-fog-gray:      var(--surface-2);
  --color-steel-gray:    var(--border);
  --color-charcoal-text: var(--body);
  --color-slate-text:    var(--muted);
  --color-deep-plum:     var(--navy);
  --color-action-orange: var(--orange);
  --color-success-moss:  var(--green);
  --shadow-subtle:       var(--e2);
  --radius-default:      var(--r);
  --font-suisseintl:     var(--font);
  --font-sfmono:         var(--font-mono);
}

.button--compact {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--surface-2);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 28, 80, 0.045) 1px, transparent 0);
  background-size: 26px 26px;
  color: var(--body);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--tx-fast);
}

a:hover { color: var(--orange); }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(20px) saturate(1.4);
}

.site-header__inner {
  width: min(1200px, calc(100% - 48px));
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  transition: opacity var(--tx-fast);
}

.brand:hover {
  opacity: 0.75;
  color: var(--ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: linear-gradient(145deg, var(--navy) 0%, #1b2e78 100%);
  color: #fff;
  box-shadow: var(--e1);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.nav-link:hover {
  background: var(--surface-3);
  color: var(--navy);
}

.language-form {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.language-option {
  min-width: 30px;
  min-height: 24px;
  padding: 0 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.language-option:hover {
  background: var(--surface);
  color: var(--navy);
  filter: none;
}

.language-option.active {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--e1);
}

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */

.site-main {
  width: min(1200px, calc(100% - 48px));
  margin: 32px auto 64px;
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
}

p { margin: 8px 0 0; }

.muted { color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   MESSAGES
═══════════════════════════════════════════════════════ */

.messages {
  margin-bottom: 20px;
  display: grid;
  gap: 8px;
}

.message {
  padding: 12px 16px;
  border: 1px solid var(--green-border);
  border-radius: var(--r);
  background: var(--green-dim);
  color: var(--body);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════
   TOOLBAR
═══════════════════════════════════════════════════════ */

.toolbar {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar > div:first-child {
  min-width: min(100%, 320px);
}

/* ═══════════════════════════════════════════════════════
   SURFACES
═══════════════════════════════════════════════════════ */

.panel,
.stat,
table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--e2);
}

.panel { padding: 24px; }

.grid {
  display: grid;
  gap: 16px;
}

/* ═══════════════════════════════════════════════════════
   STATS (compact row)
═══════════════════════════════════════════════════════ */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  min-height: 86px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.stat strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th, td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: 0; }

tr:hover td { background: rgba(15, 28, 80, 0.022); }

.supplier-list-header {
  align-items: flex-start;
  margin-bottom: 22px;
}

.supplier-list-stats {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.supplier-list-stats .stat {
  min-height: 72px;
  padding: 12px 14px;
}

.supplier-list-stats .stat strong {
  font-size: 28px;
}

.supplier-list-stats .stat span {
  font-size: 9.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.supplier-list-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
}

.supplier-list-search input {
  width: 100%;
}

.supplier-list-table td {
  border-bottom: 0;
  display: table-cell;
  vertical-align: middle;
}

.supplier-list-table tbody tr {
  box-shadow: inset 0 -1px 0 var(--border);
}

.supplier-list-table tbody tr:last-child {
  box-shadow: none;
}

.supplier-list-table th:nth-child(1),
.supplier-list-table td:nth-child(1) {
  width: 16%;
}

.supplier-list-table th:nth-child(2),
.supplier-list-table td:nth-child(2) {
  width: 20%;
}

.supplier-list-table th:nth-child(3),
.supplier-list-table td:nth-child(3) {
  width: 14%;
}

.supplier-list-table th:nth-child(5),
.supplier-list-table td:nth-child(5) {
  width: 11%;
}

.supplier-list-table th:nth-child(6),
.supplier-list-table td:nth-child(6) {
  width: 18%;
}

.supplier-list-status {
  white-space: nowrap;
}

.supplier-list-actions {
  white-space: nowrap;
}

.supplier-list-actions__inner {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.supplier-list-actions__inner form {
  margin: 0;
}

.supplier-list-actions__inner .button,
.supplier-list-actions__inner button {
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */

.button,
button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--orange);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(0,0,0,0.04) 100%);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(227, 95, 28, 0.35), 0 0 0 1px rgba(227, 95, 28, 0.7) inset;
  transition: background var(--tx-fast), background-image var(--tx-fast), box-shadow var(--tx-fast), opacity var(--tx-fast);
}

.button:hover,
button:hover {
  color: #fff;
  opacity: 0.92;
  filter: none;
}

.button.secondary,
button.secondary {
  background: var(--surface);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(246,247,252,0.6) 100%);
  color: var(--navy);
  border-color: var(--border-strong);
  box-shadow: var(--e1);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--surface-2);
  background-image: none;
  border-color: var(--navy);
  color: var(--navy);
  filter: none;
  opacity: 1;
}

.button.button--compact,
button.button--compact {
  min-height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════════ */

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(15, 28, 80, 0.17);
  border-radius: var(--r-sm);
  padding: 8px 11px;
  background: var(--surface);
  color: var(--body);
  font: inherit;
  font-size: 14px;
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

input[type="checkbox"],
input[type="radio"] {
  width: 15px;
  height: 15px;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--navy);
  cursor: pointer;
}

input[type="radio"] { border-radius: 50%; }

select[multiple] { min-height: 140px; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.09);
}

label {
  display: block;
  margin-bottom: 5px;
  color: var(--body);
  font-size: 13.5px;
  font-weight: 600;
}

.field { margin-bottom: 16px; }

textarea {
  min-height: 96px;
  resize: vertical;
}

/* ═══════════════════════════════════════════════════════
   TAG PICKER
═══════════════════════════════════════════════════════ */

.tag-picker__select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.tag-picker {
  position: relative;
  min-height: 46px;
  padding: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  border: 1px solid rgba(15, 28, 80, 0.17);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color var(--tx-fast), box-shadow var(--tx-fast);
}

.tag-picker:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 80, 0.09);
}

.tag-picker__chips { display: contents; }

.tag-picker__chip {
  min-height: 26px;
  padding: 0 9px 0 10px;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--navy);
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 600;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.tag-picker__chip:hover {
  background: var(--surface-3);
  color: var(--navy);
  filter: none;
}

.tag-picker__chip b {
  color: var(--subtle);
  font-size: 14px;
  line-height: 1;
}

.tag-picker__input {
  width: 180px;
  min-width: 160px;
  flex: 1;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tag-picker__input:focus { outline: 0; }

.tag-picker__suggestions {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--e4);
}

.tag-picker__suggestion {
  width: 100%;
  min-height: 34px;
  justify-content: flex-start;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--body);
  box-shadow: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background var(--tx-fast), color var(--tx-fast);
}

.tag-picker__suggestion:hover {
  background: var(--surface-2);
  color: var(--navy);
  filter: none;
}

.tag-picker__empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════
   FORM VARIANTS
═══════════════════════════════════════════════════════ */

.helptext,
.errorlist {
  font-size: 12.5px;
  margin-top: 5px;
}

.errorlist { color: var(--red); }

.wizard-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.wizard-form > .field { margin-bottom: 0; }

.wizard-form > button[type="submit"],
.wizard-form > .errorlist,
.wizard-form > .field:has(textarea),
.wizard-form > .field:has(input[type="file"]),
.wizard-form > .field:has(.tag-picker),
.wizard-form > .moderation-history-inline {
  grid-column: 1 / -1;
}

.moderation-history-inline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  background: var(--amber-dim);
}

.moderation-history-inline > .eyebrow {
  margin-bottom: 4px;
}

.moderation-history-inline__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

.moderation-history-inline__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.moderation-history-inline__comment {
  margin: 0;
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.5;
}

.field--boolean { align-self: stretch; }

/* Category accordion */
.cat-accordion { }
.cat-accordion__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.cat-accordion__summary::-webkit-details-marker { display: none; }
.cat-accordion__summary::before {
  content: "▶";
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.15s;
  flex-shrink: 0;
}
details[open] > .cat-accordion__summary::before { transform: rotate(90deg); }
.cat-accordion__summary:hover { background: var(--bg-subtle, #f9f9f9); }
.cat-accordion__name { font-weight: 600; }
.cat-accordion__sub { font-size: 13px; }
.cat-accordion__count {
  margin-left: auto;
  font-size: 12px;
  background: var(--bg-subtle, #f0f0f0);
  border-radius: 10px;
  padding: 1px 8px;
}
.cat-accordion__body { padding: 0 16px 16px; }
.cat-accordion__edit-row { margin-bottom: 10px; }

.boolean-control {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 28, 80, 0.15);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
  transition: border-color var(--tx), box-shadow var(--tx);
}

.boolean-control:hover {
  border-color: var(--border-strong);
  box-shadow: var(--e1);
}

.boolean-control span { font-weight: 600; }

.field > div[id^="id_"] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.field > div[id^="id_"] > div > label {
  min-height: 38px;
  margin: 0;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(15, 28, 80, 0.14);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--tx-fast), background var(--tx-fast);
}

.field > div[id^="id_"] > div > label:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* ═══════════════════════════════════════════════════════
   STATUS CHIPS
═══════════════════════════════════════════════════════ */

.status-chip {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--green-border);
  border-radius: var(--r-pill);
  background: var(--green-dim);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.meta-row > .status-chip::before { display: none; }

.status-chip--pending {
  border-color: var(--amber-border);
  background: var(--amber-dim);
  color: var(--amber);
}

button.status-chip {
  cursor: pointer;
  font-family: inherit;
  background-image: none;
  box-shadow: none;
  min-height: 22px;
  padding: 0 9px;
  font-size: 11px;
  transition: filter var(--tx-fast);
}
button.status-chip:hover { filter: brightness(0.88); }

/* ═══════════════════════════════════════════════════════
   META ROW
═══════════════════════════════════════════════════════ */

.meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}

.meta-row > span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--subtle);
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════
   PAGE HERO
═══════════════════════════════════════════════════════ */

.page-hero {
  margin-bottom: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, #ffffff 0%, var(--surface-2) 100%);
  box-shadow: var(--e2);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--orange) 100%);
}

/* ═══════════════════════════════════════════════════════
   EYEBROWS
═══════════════════════════════════════════════════════ */

.eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════════
   AUTH
═══════════════════════════════════════════════════════ */

.auth-layout {
  min-height: calc(100vh - 156px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
}

.auth-intro { max-width: 540px; }

.auth-card { padding: 30px 32px; }

/* ═══════════════════════════════════════════════════════
   INLINE MODERATION
═══════════════════════════════════════════════════════ */

.inline-moderation {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.inline-moderation__item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-moderation__item form { margin: 0; }

.inline-moderation__item button:not(.status-chip) {
  min-height: 28px;
  padding: 0 11px;
  font-size: 12.5px;
}

/* ═══════════════════════════════════════════════════════
   COMPACT STATS
═══════════════════════════════════════════════════════ */

.compact-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD LAYOUT
═══════════════════════════════════════════════════════ */

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.section-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading h2,
.panel-heading p { margin: 0; }

/* ═══════════════════════════════════════════════════════
   ICON BUTTON
═══════════════════════════════════════════════════════ */

.module-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.module-actions form {
  margin: 0;
}

.icon-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--navy);
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
  transition: background var(--tx-fast), border-color var(--tx-fast), color var(--tx-fast);
}

.icon-button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.icon-button--inline {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin-left: 6px;
  vertical-align: middle;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════
   WIZARD STEPS
═══════════════════════════════════════════════════════ */

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wizard-step {
  min-height: 62px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--body);
  font-weight: 600;
  font-size: 14px;
  transition: background var(--tx), border-color var(--tx), box-shadow var(--tx), color var(--tx);
}

.wizard-step:hover {
  border-color: rgba(15, 28, 80, 0.20);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--e3);
}

.wizard-step__number {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: var(--r-xs);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   ACTION PANEL
═══════════════════════════════════════════════════════ */

.action-panel {
  position: sticky;
  top: 76px;
  background: var(--surface);
}

.action-panel form { margin-top: 18px; }

/* ═══════════════════════════════════════════════════════
   MODERATOR DASHBOARD
═══════════════════════════════════════════════════════ */

.moderator-dashboard { display: grid; gap: 18px; }

.dashboard-hero { margin-bottom: 0; }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  min-height: 120px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--e2);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--tx), border-color var(--tx);
}

.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--navy);
  border-radius: var(--r) var(--r) 0 0;
}

.metric-card:nth-child(2)::before,
.metric-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--orange) 0%, #f08542 100%);
}

.metric-card span {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-card strong {
  font-family: var(--font-mono);
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card--action {
  text-decoration: none;
  color: var(--ink);
}

.metric-card--action:hover {
  border-color: var(--orange-ring);
  color: var(--ink);
  box-shadow: var(--e3), 0 0 0 1px rgba(227, 95, 28, 0.1);
}

/* ═══════════════════════════════════════════════════════
   STATUS SUMMARY
═══════════════════════════════════════════════════════ */

.dashboard-status-panel .section-heading { margin-bottom: 14px; }

.status-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.status-summary-item {
  min-height: 78px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--tx), border-color var(--tx), box-shadow var(--tx), color var(--tx);
}

.status-summary-item:hover {
  border-color: rgba(15, 28, 80, 0.20);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--e3);
}

.status-summary-item strong {
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.status-summary-item span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════
   DASHBOARD GRID
═══════════════════════════════════════════════════════ */

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 18px;
  align-items: start;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-data-row {
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.profile-data-row span,
.profile-data-row strong { display: block; }

.profile-data-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-data-row strong {
  margin-top: 4px;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-data-row .original-value {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  border-left: 2px solid var(--border);
  padding-left: 6px;
}
.keep-original-form {
  display: block;
  margin-top: 5px;
}
.status-chip--restore {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   MODERATION MODAL
═══════════════════════════════════════════════════════ */

.mod-modal {
  border: none;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(520px, calc(100vw - 32px));
  box-shadow: var(--e4);
  overflow: hidden;
}

.mod-modal::backdrop {
  background: rgba(7, 16, 42, 0.45);
  backdrop-filter: blur(3px);
}

.mod-modal__box {
  display: flex;
  flex-direction: column;
}

.mod-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.mod-modal__title {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
}

.mod-modal__form {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mod-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════
   AUDIT LOG
═══════════════════════════════════════════════════════ */

.audit-log {
  display: grid;
  gap: 8px;
}

.audit-entry {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.audit-entry__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.audit-entry__meta strong {
  color: var(--ink);
  font-weight: 650;
}

.audit-entry__badge {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  min-height: 20px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-entry__badge--action {
  border-color: var(--orange-ring);
  background: var(--orange-dim);
  color: var(--orange);
}

.audit-entry__time {
  margin-left: auto;
  color: var(--subtle);
  font-size: 12px;
  font-family: var(--font-mono);
}

.audit-entry__changes {
  margin-top: 10px;
  display: grid;
  gap: 5px;
}

.audit-change {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px;
  flex-wrap: wrap;
}

.audit-change__field {
  width: 160px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audit-change__old {
  flex: 1;
  color: var(--red);
  text-decoration: line-through;
  opacity: 0.75;
  overflow-wrap: anywhere;
  min-width: 60px;
}

.audit-change__arrow {
  color: var(--subtle);
  flex-shrink: 0;
  font-size: 12px;
}

.audit-change__new {
  flex: 1;
  color: var(--green);
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 60px;
}

/* ═══════════════════════════════════════════════════════
   REVIEW COMMENTS (supplier)
═══════════════════════════════════════════════════════ */

.review-comment-item {
  padding: 12px 14px;
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  background: var(--surface);
}

.review-comment-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-comment-item__fix {
  margin-left: auto;
  min-height: 26px;
  padding: 0 10px;
  font-size: 12px;
}

.review-comment-item__text {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════════════════════ */

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.filter-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--tx-fast), border-color var(--tx-fast), color var(--tx-fast);
}

.filter-tab:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  color: var(--navy);
}

.filter-tab--active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filter-tab--active:hover {
  background: var(--navy);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════
   CODE / PRE
═══════════════════════════════════════════════════════ */

pre {
  white-space: pre-wrap;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 18px 20px;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-shell { justify-content: flex-start; }

  h1 { font-size: 28px; }

  .auth-layout { grid-template-columns: 1fr; }

  .page-hero,
  .dashboard-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-stats,
  .wizard-steps,
  .wizard-form,
  .dashboard-metrics,
  .status-summary-grid,
  .profile-data-grid {
    grid-template-columns: 1fr;
  }

  .supplier-list-stats,
  .supplier-list-search {
    grid-template-columns: 1fr;
  }

  .supplier-list-search .button,
  .supplier-list-search button {
    width: 100%;
  }

  .action-panel { position: static; }

  table {
    display: block;
    overflow-x: auto;
  }
}
