:root {
  --color-primary: #171717;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3C3C3C;
  --color-accent: #2467EE;
  --color-background: #FFFFFF;
  --color-foreground: #171717;
  --color-muted: #F5F5F7;
  --color-muted-foreground: #6B6B70;
  --color-border: #E6E6E8;
  --color-card: #FFFFFF;
  --color-destructive: #D0021B;
  --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.06);
  --radius-lg: 14px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  color: var(--color-foreground);
  background: #F7F7F8;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.skip-link:focus { top: 12px; }

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand, .nav, .flow-strip, .process-map, .action-row, .admin-actions, .lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #171717;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--color-muted-foreground);
  font-weight: 600;
  transition: background 160ms ease, color 160ms ease;
}

.nav a:hover, .nav a:focus-visible { background: #FFFFFF; color: var(--color-primary); outline: 2px solid var(--color-border); }

.lang-switch {
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  background: #ECECEE;
}

.lang-switch button {
  border: 0;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted-foreground);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.lang-switch button.active {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 48px;
}

.hero-grid, .result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 14px;
  align-items: stretch;
}

.hero-card, .panel, .requirements-card, .admin-hero, .stats-grid article {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
}

.hero-card {
  padding: clamp(22px, 3.5vw, 40px);
  overflow: hidden;
  position: relative;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(26px, 3.4vw, 40px); max-width: 820px; }
h2 { font-size: clamp(19px, 2.2vw, 24px); }
h3 { font-size: 15px; }

.hero-copy {
  max-width: 680px;
  color: var(--color-muted-foreground);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 18px;
}

.flow-strip {
  flex-wrap: wrap;
}

.process-map {
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  counter-reset: process;
}

.process-map span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  background: var(--color-muted);
  color: var(--color-foreground);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 12.5px;
}

.process-map span::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 9px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 11px;
}

.flow-strip span, .status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
}

.flow-strip span { background: var(--color-muted); color: var(--color-foreground); }

.requirements-card, .panel { padding: 20px; }

.check-list { padding-left: 18px; margin: 10px 0 0; line-height: 1.75; color: var(--color-muted-foreground); font-size: 13px; }

.listing-hero .hero-card { width: 100%; }

.req-panel { margin-top: 14px; }

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.req-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #FAFAFB;
  padding: 14px 16px;
}

.req-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.req-index {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--color-primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
}

.req-card dl {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 12.5px;
}

.req-card dt {
  color: var(--color-muted-foreground);
  font-weight: 600;
}

.req-card dd {
  margin: 0;
  color: var(--color-foreground);
  line-height: 1.6;
}

.req-list {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--color-foreground);
}

.req-note {
  margin: 12px 0 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 12.5px;
}

.hl { color: var(--color-accent); font-weight: 700; }

.pansec-link { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.pansec-link:hover { opacity: 0.8; }

.login-panel { max-width: 420px; margin: 40px auto 0; }
.login-form { display: grid; gap: 12px; margin-top: 16px; }
.invite-panel { margin-top: 14px; border-top: 3px solid #0E8A6D; }
.invite-panel .eyebrow { color: #0E8A6D; }
.invite-panel .pansec-url-row { margin-top: 12px; }

/* ===== 模块区分色带（保持整体黑白灰基调） ===== */
.hero-card { border-top: 3px solid var(--color-primary); }

.req-panel { border-top: 3px solid var(--color-accent); }
.req-panel .eyebrow { color: var(--color-accent); }
.req-panel .req-index { background: var(--color-accent); }

.compliance-panel { border-top: 3px solid #0E8A6D; }
.compliance-panel .eyebrow { color: #0E8A6D; }
.compliance-panel .upload-box { border-color: #BFD9D2; background: #F6FAF9; }

.form-panel { border-top: 3px solid #7A5AF8; }
.form-panel > .section-heading .eyebrow { color: #7A5AF8; }
.form-panel .display-region-card { border-left: 3px solid #7A5AF8; }
.form-panel .display-region-card .eyebrow { color: #7A5AF8; }

.market-preview { border-left: 3px solid var(--color-accent); }
.market-preview .eyebrow { color: var(--color-accent); }

.form-panel, .table-panel { margin-top: 14px; }

.section-heading, .admin-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.form-grid.one-col { grid-template-columns: 1fr; }

.language-tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 14px;
  padding: 3px;
  border-radius: 9px;
  background: #ECECEE;
}

.language-tabs.top-tabs { margin-top: 14px; }

.tab-button {
  border: 0;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 7px;
  background: transparent;
  color: var(--color-muted-foreground);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.tab-button.active {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-button[hidden], .tab-panel[hidden] { display: none; }
.common-info { margin-bottom: 12px; }
.tab-panel .preview-gallery,
.tab-panel .market-preview {
  margin-top: 12px;
}

.tab-panel .market-card {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

.category-fieldset {
  border: 1px solid #EFEFF1;
  border-radius: var(--radius-md);
  padding: 10px 14px 12px;
  background: #FCFCFD;
}

.category-fieldset legend { font-weight: 700; font-size: 13px; }
.category-fieldset legend span { color: var(--color-accent); }
.category-fieldset p { color: var(--color-muted-foreground); margin: 4px 0 10px; font-size: 12.5px; }
.category-options { display: flex; flex-wrap: wrap; gap: 8px; }
.category-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--color-muted);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
}

.category-options label:hover { border-color: var(--color-border); }
.category-options input { width: auto; min-height: auto; }

/* ===== 维度标签：配色 + 形态双重区分 ===== */
.dim-group { margin-top: 12px; }
.dim-group .category-options label { font-size: 12px; padding: 5px 9px; gap: 5px; }
.dim-custom { margin-top: 10px; }
.dim-custom input { max-width: 320px; }

/* 产品标签：实底胶囊（蓝） */
.dim-group[data-dim="product_tags"] legend { color: #2467EE; }
.dim-group[data-dim="product_tags"] .category-options input { display: none; }
.dim-group[data-dim="product_tags"] .category-options label {
  border-radius: 999px;
  padding: 5px 13px;
  background: #EAF1FE;
  color: #17417E;
}
.dim-group[data-dim="product_tags"] .category-options label:hover { border-color: #2467EE; }
.dim-group[data-dim="product_tags"] .category-options label:has(input:checked) {
  background: #2467EE;
  color: #FFFFFF;
  border-color: #2467EE;
}

/* 行业标签：描边芯片（青绿） */
.dim-group[data-dim="industry_tags"] legend { color: #0E8A6D; }
.dim-group[data-dim="industry_tags"] .category-options input { display: none; }
.dim-group[data-dim="industry_tags"] .category-options label {
  background: transparent;
  border: 1px solid #9CC8BC;
  color: #0B5C4A;
  border-radius: 6px;
}
.dim-group[data-dim="industry_tags"] .category-options label:hover { border-color: #0E8A6D; }
.dim-group[data-dim="industry_tags"] .category-options label:has(input:checked) {
  background: #0E8A6D;
  color: #FFFFFF;
  border-color: #0E8A6D;
}

/* 适配业务平台：带勾选框的多列清单（中性） */
.dim-group[data-dim="platforms"] .category-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px;
}
.dim-group[data-dim="platforms"] .category-options label {
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 5px 8px;
  font-weight: 500;
}
.dim-group[data-dim="platforms"] .category-options label:hover { background: var(--color-muted); }
.dim-group[data-dim="platforms"] .category-options label:has(input:checked) { background: var(--color-muted); font-weight: 700; }
.dim-group[data-dim="platforms"] .category-options input { accent-color: #171717; }

/* 覆盖区域：小方块标签（深灰选中） */
.dim-group[data-dim="regions"] .category-options input { display: none; }
.dim-group[data-dim="regions"] .category-options label {
  border-radius: 4px;
  padding: 6px 12px;
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.dim-group[data-dim="regions"] .category-options label:has(input:checked) {
  background: #171717;
  color: #FFFFFF;
  border-color: #171717;
}

.display-region-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.display-region-card p:last-child {
  margin: 6px 0 0;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  font-size: 12.5px;
}

.region-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--color-muted);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.region-options label:hover { border-color: var(--color-border); }
.region-options input { width: auto; min-height: auto; }
.muted-section { opacity: 0.55; }
.muted-field { opacity: 0.55; }

.compliance-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 12px;
  padding: 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
}

.compliance-card p { color: var(--color-muted-foreground); line-height: 1.6; font-size: 12.5px; }
.template-links { margin-top: 10px; }

.template-tip {
  display: inline-block;
  margin: 10px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: #E7F4F0;
  color: #0E8A6D;
  font-size: 13px;
  font-weight: 700;
}
.compliance-uploads { display: grid; gap: 10px; }

.compliance-panel { margin-top: 14px; }
.compliance-desc { color: var(--color-muted-foreground); line-height: 1.6; font-size: 13px; margin: 10px 0 0; }
.compliance-uploads.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }

.listing-preview {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  margin-top: 14px;
}

.preview-gallery, .preview-info, .market-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #FFFFFF;
  padding: 16px;
}

.preview-info.full-width { margin-top: 0; }

.main-preview, .market-image {
  min-height: 240px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-muted);
  color: var(--color-muted-foreground);
  font-size: 13px;
  overflow: hidden;
}

.main-preview img, .market-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-thumbs {
  margin-top: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.compact-upload {
  margin-top: 10px;
  padding: 12px 14px;
}

.attachment-preview {
  color: var(--color-muted-foreground);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 12.5px;
  overflow-wrap: anywhere;
}

.cover-rules {
  margin: 2px 0 0;
  padding-left: 16px;
  color: var(--color-muted-foreground);
  line-height: 1.6;
  font-size: 12px;
}

.market-preview { margin-top: 14px; }

.market-media { display: grid; gap: 8px; align-content: start; }

.market-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.market-thumb {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0;
  background: var(--color-muted);
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 64px;
}

.market-thumb:hover { border-color: var(--color-primary); }
.market-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  justify-items: center;
  background: rgba(0, 0, 0, 0.82);
}

.lightbox[hidden] { display: none; }

.lightbox img {
  grid-column: 2;
  max-width: min(90vw, 1100px);
  max-height: 86vh;
  border-radius: 8px;
  background: #FFFFFF;
}

.lightbox button {
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-close { position: absolute; top: 18px; right: 18px; }
.lightbox-prev { grid-column: 1; }
.lightbox-next { grid-column: 3; }

.pansec-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
}

.pansec-modal[hidden] { display: none; }

.pansec-card {
  width: min(520px, calc(100% - 32px));
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--color-accent);
  padding: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pansec-card p { color: var(--color-muted-foreground); line-height: 1.7; font-size: 13px; }

.pansec-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-muted);
}

.pansec-url-row code {
  flex: 1;
  font-size: 12.5px;
  overflow-wrap: anywhere;
  color: var(--color-accent);
}

.market-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin-top: 12px;
}

.market-detail {
  display: grid;
  align-content: start;
  gap: 10px;
}

.preview-company { color: var(--color-muted-foreground); margin: 0; font-size: 13px; }

.preview-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.preview-ptag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: #2467EE;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
}

.preview-itag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #0E8A6D;
  color: #0B5C4A;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.preview-copy { color: var(--color-muted-foreground); line-height: 1.7; white-space: pre-wrap; font-size: 13px; }
.market-tag, .market-block span, .market-bottom span {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--color-muted);
  color: var(--color-foreground);
  font-size: 12.5px;
}

.market-block, .market-bottom > div {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--color-muted);
  font-size: 13px;
}

.market-block span, .market-bottom span { background: #FFFFFF; }

.market-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

label, .upload-box h3 {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
}

label > input, label > textarea {
  margin-top: 6px;
}

label span, .upload-box span, .category-fieldset legend span { color: var(--color-accent); margin-left: 2px; }
label .lt, .upload-box .lt { color: inherit; font-weight: inherit; margin-left: 0; }

input, textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #D8D8DC;
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--color-foreground);
  padding: 8px 11px;
  font-size: 13.5px;
  transition: border 160ms ease, box-shadow 160ms ease;
}

textarea { resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08); }

.textarea-label, .upload-box { margin-top: 12px; }
.textarea-label small, .upload-box p { color: var(--color-muted-foreground); font-weight: 400; margin: 0; font-size: 12.5px; }

.upload-box {
  border: 1px dashed #C6C6CB;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: #FAFAFB;
  display: grid;
  gap: 8px;
}

.upload-box h3 { font-size: 13.5px; }
.upload-box p { line-height: 1.55; }

.file-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.file-card { position: relative; padding: 9px 26px 9px 10px; border: 1px solid var(--color-border); border-radius: 8px; background: #FFFFFF; color: var(--color-muted-foreground); font-size: 12px; overflow-wrap: anywhere; }
.file-card strong { display: block; color: var(--color-foreground); margin-bottom: 3px; }
.file-card-error { border-color: #D0021B; background: #FFF7F8; }
.file-remove { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--color-muted); color: var(--color-muted-foreground); font-size: 13px; line-height: 1; cursor: pointer; }
.file-remove:hover { background: #D0021B; color: #FFFFFF; }
.file-status-ok { margin-top: 4px; color: #1E6B3C; font-weight: 600; }
.file-status-bad { margin-top: 4px; color: #A3212F; font-weight: 600; }

.form-errors { color: var(--color-destructive); margin-top: 12px; font-weight: 600; font-size: 13px; }

.required-hint { margin: 14px 0 0; color: var(--color-muted-foreground); font-size: 12px; }
.required-hint span { color: var(--color-accent); }

.import-zip-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px dashed #B9B9C0;
  border-radius: var(--radius-md);
  background: #FBFBFC;
}

.import-zip-card h3 { margin-bottom: 4px; }
.import-zip-card p { margin: 0; color: var(--color-muted-foreground); font-size: 12.5px; line-height: 1.6; }
.import-zip-card input { margin-bottom: 8px; }

@media (max-width: 820px) {
  .import-zip-card { grid-template-columns: 1fr; }
}

/* ===== 左侧导航 + 折叠 ===== */
.page-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.side-nav {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.side-nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  color: var(--color-muted-foreground);
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}

.side-nav a:hover { background: var(--color-muted); color: var(--color-foreground); }
.side-nav a.active {
  background: var(--color-muted);
  color: var(--color-primary);
  border-left-color: var(--color-accent);
}

.collapse-btn {
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  color: var(--color-muted-foreground);
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.collapse-btn:hover { color: var(--color-foreground); border-color: #C9C9CE; }
.panel.collapsed > *:not(.section-heading) { display: none; }
.panel.collapsed { padding-bottom: 16px; }

.page-content > section { scroll-margin-top: 16px; }

@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .side-nav { display: none; }
}

.submit-success { display: grid; gap: 10px; margin-top: 14px; }

.btn {
  border: 1px solid transparent;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 160ms ease, border 160ms ease, opacity 160ms ease;
}

.btn:hover { opacity: 0.88; }
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { color: var(--color-on-primary); background: var(--color-primary); }
.btn-secondary { color: var(--color-foreground); background: var(--color-muted); border-color: var(--color-border); }
.btn-danger { color: #FFFFFF; background: var(--color-destructive); }
.btn-small { min-height: 30px; padding: 0 10px; font-size: 12.5px; }
.action-row { margin-top: 16px; flex-wrap: wrap; }

.status-auto_rejected, .status-rejected { color: #A3212F; background: #FCE9EB; }
.status-manual_review { color: #8A5A00; background: #FBF1DC; }
.status-admin_final { color: #17417E; background: #E8F0FE; }
.status-approved { color: #1E6B3C; background: #E5F5EB; }

.result-panel { display: grid; gap: 12px; align-content: start; }
.result-reason { color: var(--color-muted-foreground); font-size: 14px; line-height: 1.7; }
.notice { padding: 12px 14px; border-radius: var(--radius-md); font-weight: 600; font-size: 13px; }
.notice.success { background: #E5F5EB; color: #1E6B3C; }
.notice.warning { background: #FBF1DC; color: #8A5A00; }
.notice.danger { background: #FCE9EB; color: #A3212F; }
.notification-log { white-space: pre-wrap; background: #171717; color: #F5F5F7; padding: 12px; border-radius: var(--radius-md); font-size: 12.5px; overflow-x: auto; }
.summary-panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 9px; font-size: 13px; }
.summary-panel dt { color: var(--color-muted-foreground); }
.summary-panel dd { margin: 0; font-weight: 600; }

.admin-hero { padding: 20px; }
.admin-hero p { color: var(--color-muted-foreground); line-height: 1.7; max-width: 720px; font-size: 13px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stats-grid article { padding: 16px; display: grid; gap: 4px; box-shadow: none; }
.stats-grid strong { font-family: "Space Grotesk", sans-serif; font-size: 26px; }
.stats-grid span { color: var(--color-muted-foreground); font-size: 12.5px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 920px; font-size: 13px; }
th, td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: top; }
th { color: var(--color-muted-foreground); font-size: 12px; font-weight: 600; }
td small { display: block; color: var(--color-muted-foreground); margin-top: 4px; }
.reason-cell { max-width: 330px; line-height: 1.5; color: var(--color-muted-foreground); }
.empty-state, .error-panel { text-align: center; }
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 14px;
  border-radius: 10px;
  background: #171717;
  color: #FFFFFF;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
  transform: translateY(120px);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 820px) {
  .topbar, .section-heading, .admin-hero { align-items: flex-start; flex-direction: column; }
  .hero-grid, .result-layout, .form-grid, .stats-grid, .listing-preview, .market-card, .market-bottom, .display-region-card, .compliance-card, .compliance-uploads.two-col, .req-grid { grid-template-columns: 1fr; }
  .file-preview { grid-template-columns: 1fr; }
  .listing-thumbs { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
}

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