:root {
  --ink: #171a1a;
  --muted: #68706d;
  --line: #dfe3df;
  --line-strong: #bbc4be;
  --paper: #f4f6f2;
  --surface: #ffffff;
  --mint: #48d9c6;
  --mint-soft: #dff8f2;
  --coral: #f25f5c;
  --coral-soft: #fee9e7;
  --amber: #f4b942;
  --amber-soft: #fff3d8;
  --green: #188b62;
  --red: #c73e3a;
  --nav-width: 224px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(23, 26, 26, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
}

button,
input,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--nav-width);
  display: flex;
  flex-direction: column;
  background: #1d2221;
  color: #f8fbf8;
  border-right: 1px solid #333a38;
}

.brand-block {
  height: 92px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #333a38;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #101313;
  background: var(--mint);
  border-radius: 4px;
  font-weight: 800;
  font-size: 14px;
}

.brand-block strong,
.brand-block span {
  display: block;
}

.brand-block strong {
  font-size: 15px;
  font-weight: 700;
}

.brand-block div span {
  margin-top: 3px;
  color: #8e9995;
  font-size: 10px;
  text-transform: uppercase;
}

.primary-nav {
  display: grid;
  gap: 4px;
  padding: 22px 12px;
}

.nav-item {
  min-height: 42px;
  padding: 0 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #adb6b3;
  cursor: pointer;
}

.nav-item:hover {
  color: #ffffff;
  background: #252c2a;
}

.nav-item.active {
  color: #101313;
  background: var(--mint);
  border-color: var(--mint);
  font-weight: 700;
}

.sidebar-foot {
  margin-top: auto;
  padding: 18px 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-top: 1px solid #333a38;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--mint);
}

.sidebar-foot strong,
.sidebar-foot span {
  display: block;
}

.sidebar-foot strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.sidebar-foot div span {
  margin-top: 3px;
  color: #8e9995;
  font-size: 10px;
}

.main-area {
  min-height: 100vh;
  margin-left: var(--nav-width);
  padding: 0 34px 56px;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 750;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.topbar-actions,
.range-control,
.category-filter,
.subnav {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 12px;
}

.range-control,
.category-filter,
.subnav {
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
}

.range-control button,
.category-filter button,
.subnav button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.range-control button:last-child,
.category-filter button:last-child,
.subnav button:last-child {
  border-right: 0;
}

.range-control button.active,
.category-filter button.active,
.subnav button.active {
  color: #ffffff;
  background: var(--ink);
}

.upload-button,
.primary-command {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border-radius: 5px;
  background: var(--mint);
  border: 1px solid #27bfae;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: view-in 240ms ease-out;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-message {
  margin-top: 16px;
  padding: 11px 14px;
  border-left: 4px solid var(--amber);
  background: var(--amber-soft);
  font-size: 12px;
}

.app-message.error {
  border-left-color: var(--coral);
  background: var(--coral-soft);
}

.kpi-strip {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.kpi-item {
  min-width: 0;
  min-height: 88px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.kpi-item:last-child {
  border-right: 0;
}

.kpi-item span,
.freshness-block span,
.data-rule-band span,
.source-summary dt {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.kpi-item strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 21px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.kpi-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.brief-band {
  min-height: 118px;
  margin-top: 16px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(300px, 1.8fr) auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brief-band p {
  margin-bottom: 0;
  color: #3f4744;
  font-size: 13px;
  line-height: 1.65;
}

.freshness-block {
  min-width: 134px;
  padding-left: 20px;
  border-left: 1px solid var(--line-strong);
}

.freshness-block strong {
  display: block;
  margin: 2px 0 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.dashboard-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  gap: 18px;
}

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

.workspace-panel {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.section-heading {
  min-height: 66px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.section-heading > strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.text-command {
  padding: 4px 0;
  color: #087e70;
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.trend-chart {
  height: 270px;
  padding: 18px;
}

.trend-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.chart-grid {
  stroke: #e7eae7;
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 10px;
}

.chart-bar {
  fill: var(--mint);
}

.chart-bar.zero {
  fill: #e4e8e4;
}

.quality-layout {
  min-height: 270px;
  padding: 20px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.quality-donut {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 50%;
  background: #e8ece8;
}

.quality-donut::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: var(--surface);
}

.quality-donut span {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 750;
}

.quality-legend {
  display: grid;
  gap: 13px;
}

.legend-row {
  display: grid;
  grid-template-columns: 9px minmax(48px, 1fr) auto;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}

.legend-row i,
.key-swatch {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 2px;
}

.legend-row strong {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.legend-row i.explosive,
.key-swatch.explosive { background: var(--mint); }
.legend-row i.potential,
.key-swatch.potential { background: var(--amber); }
.legend-row i.poor,
.key-swatch.poor { background: var(--coral); }
.legend-row i.observe,
.key-swatch.observe { background: #c9cfca; }

.data-table {
  width: 100%;
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  min-width: 88px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.data-table th {
  color: var(--muted);
  background: #fafbf9;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.data-table td:first-child,
.data-table th:first-child {
  min-width: 130px;
  text-align: left;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f6faf8;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.compact table tr:nth-child(n+7) {
  display: none;
}

.positive-number { color: var(--green); font-weight: 700; }
.negative-number { color: var(--red); font-weight: 700; }

.case-intro {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.case-key {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  color: var(--muted);
}

.case-key span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.case-section {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.case-section-header {
  min-height: 60px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.case-section-header div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-section-header strong {
  font-size: 15px;
}

.case-section-header span {
  color: var(--muted);
  font-size: 11px;
}

.case-row {
  min-height: 178px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 54px 142px minmax(180px, 0.8fr) minmax(280px, 1.35fr) 78px;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.case-row:last-child {
  border-bottom: 0;
}

.case-rank {
  color: var(--muted);
  font-size: 24px;
  font-weight: 750;
}

.video-thumb {
  width: 142px;
  aspect-ratio: 9 / 12;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 4px;
  background:
    linear-gradient(145deg, transparent 50%, rgba(72, 217, 198, 0.18) 50%),
    #222826;
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.video-thumb small {
  width: max-content;
  margin-bottom: auto;
  padding: 3px 5px;
  border-radius: 3px;
  background: rgba(15, 19, 18, 0.74);
  font-size: 8px;
  font-weight: 700;
}

.video-thumb span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.video-thumb strong {
  margin-top: 4px;
  font-size: 12px;
}

.case-core {
  min-width: 0;
}

.case-core h3 {
  margin: 0 0 7px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 14px;
  line-height: 1.45;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 10px;
}

.case-metrics {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.case-metrics span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}

.case-metrics strong {
  display: block;
  margin-top: 2px;
  font-size: 13px;
}

.case-diagnosis {
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.case-diagnosis span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.case-diagnosis p {
  margin-bottom: 12px;
  font-size: 11px;
  line-height: 1.55;
}

.case-actions {
  display: grid;
  gap: 8px;
}

.case-actions button,
.case-actions a {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.case-actions a {
  color: #087e70;
}

.subnav {
  width: max-content;
  margin-top: 22px;
}

.full-table-panel {
  margin-top: 18px;
}

.full-table-panel .data-table th,
.full-table-panel .data-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.library-toolbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line-strong);
}

.search-field {
  min-width: 320px;
  height: 36px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
}

.search-field span {
  padding: 0 10px;
  color: var(--muted);
  font-size: 10px;
  border-right: 1px solid var(--line);
}

.search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 11px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
}

.library-panel {
  margin-top: 18px;
}

.video-id-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #087e70;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
}

.status-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #c9cfca;
}

.status-label.explosive::before { background: var(--mint); }
.status-label.potential::before { background: var(--amber); }
.status-label.poor::before { background: var(--coral); }

.pagination {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 16px;
  border-top: 1px solid var(--line);
}

.pagination button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
}

.pagination button:disabled {
  color: #b9bfbb;
  background: #f2f4f1;
  cursor: default;
}

.pagination span {
  min-width: 64px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}

.import-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(400px, 1.3fr) minmax(300px, 0.7fr);
  gap: 18px;
}

.import-zone {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px dashed #8ba49d;
  border-radius: 6px;
}

.import-zone.dragging {
  background: var(--mint-soft);
  border-color: #1eae9d;
}

.file-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 5px;
  color: #ffffff;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.import-zone p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.upload-progress {
  width: min(300px, 70%);
  height: 4px;
  margin-top: 20px;
  overflow: hidden;
  background: #e6eae7;
}

.upload-progress span {
  display: block;
  width: 45%;
  height: 100%;
  background: var(--mint);
  animation: progress 1.1s ease-in-out infinite alternate;
}

@keyframes progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(220%); }
}

.source-summary {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.source-summary dl {
  margin: 0;
  padding: 4px 18px 18px;
}

.source-summary dl div {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.source-summary dl div:last-child {
  border-bottom: 0;
}

.source-summary dd {
  margin: 0;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.data-rule-band {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #1d2221;
  color: #ffffff;
  border: 1px solid #1d2221;
}

.data-rule-band div {
  min-height: 78px;
  padding: 16px;
  border-right: 1px solid #3a4240;
}

.data-rule-band div:last-child {
  border-right: 0;
}

.data-rule-band span {
  color: #94a09c;
}

.data-rule-band strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.mobile-nav {
  display: none;
}

.video-dialog {
  width: min(1120px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
}

.video-dialog::backdrop {
  background: rgba(17, 20, 19, 0.62);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.detail-header {
  min-height: 118px;
  padding: 24px 64px 20px 24px;
  border-bottom: 1px solid var(--line);
}

.detail-header h2 {
  max-width: 900px;
  margin-top: 8px;
}

.detail-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 11px;
}

.detail-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.detail-kpis div {
  min-height: 72px;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.detail-kpis div:last-child { border-right: 0; }
.detail-kpis span { display: block; color: var(--muted); font-size: 9px; }
.detail-kpis strong { display: block; margin-top: 6px; font-size: 14px; }

.media-review {
  display: grid;
  grid-template-columns: minmax(240px, 0.62fr) minmax(320px, 1.38fr);
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #f8faf7;
}

.video-player-wrap {
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #151918;
}

.video-player-wrap video {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: contain;
}

.media-summary {
  align-self: center;
}

.media-summary > p {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.65;
}

.review-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review-status span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.review-status.complete span { color: var(--green); }
.review-status strong { font-size: 13px; }

.media-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 11px;
}

.snapshot-section,
.script-section,
.dimension-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.analysis-heading span,
.review-conclusion span,
.reuse-band span,
.data-evidence span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.analysis-heading h3 {
  margin: 5px 0 18px;
  font-size: 16px;
}

.snapshot-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.snapshot-strip figure {
  margin: 0;
  min-width: 0;
  background: #141817;
}

.snapshot-strip img {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  object-fit: cover;
}

.snapshot-strip figcaption {
  padding: 6px;
  color: #e8ece9;
  text-align: center;
  font-size: 9px;
}

.script-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.script-step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.script-step time {
  color: #087e70;
  font-size: 11px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.script-step strong { font-size: 12px; }
.script-step p { margin: 5px 0; font-size: 13px; line-height: 1.55; }
.script-step small { color: var(--muted); font-size: 11px; line-height: 1.5; }

.review-conclusion,
.data-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.review-conclusion > div,
.data-evidence > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.review-conclusion > div:last-child,
.data-evidence > div:last-child { border-right: 0; }
.review-conclusion p,
.data-evidence p { margin: 8px 0 0; font-size: 12px; line-height: 1.65; }

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.dimension-grid > div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dimension-grid span { color: var(--muted); font-size: 9px; font-weight: 700; }
.dimension-grid p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; }

.reuse-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #ffffff;
  background: #1d2221;
}

.reuse-band > div { padding: 20px 24px; border-right: 1px solid #3a4240; }
.reuse-band > div:last-child { border-right: 0; }
.reuse-band span { color: #94a09c; }
.reuse-band strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.55; }

.review-pending {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--amber-soft);
  font-size: 12px;
  line-height: 1.6;
}

.review-pending strong { display: block; margin-bottom: 5px; }
.review-pending p { margin: 0; }

.analysis-editor {
  border-bottom: 1px solid var(--line);
}

.analysis-editor summary {
  padding: 15px 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.analysis-form {
  padding: 20px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.analysis-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.analysis-form label.wide {
  grid-column: 1 / -1;
}

.analysis-form textarea,
.analysis-form input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: #fbfcfa;
  outline: none;
  font-size: 12px;
}

.analysis-form textarea {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
}

.analysis-form input {
  height: 38px;
  padding: 0 10px;
}

.analysis-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.analysis-actions a {
  color: #087e70;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.analysis-actions button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #27bfae;
  border-radius: 4px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .kpi-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi-item:nth-child(4) { border-right: 0; }
  .kpi-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .case-row { grid-template-columns: 42px 112px minmax(180px, 0.8fr) minmax(240px, 1.2fr) 68px; gap: 12px; }
  .video-thumb { width: 112px; }
}

@media (max-width: 960px) {
  :root { --nav-width: 184px; }
  .main-area { padding-left: 24px; padding-right: 24px; }
  .topbar { align-items: flex-start; padding: 18px 0; }
  .topbar-actions { align-items: flex-end; flex-direction: column-reverse; }
  .brief-band { grid-template-columns: 1fr 1.5fr; }
  .freshness-block { grid-column: 1 / -1; padding: 12px 0 0; display: flex; gap: 12px; border-left: 0; border-top: 1px solid var(--line); }
  .freshness-block strong { margin-right: 18px; }
  .dashboard-grid, .lower-grid { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 42px 96px 1fr 76px; }
  .video-thumb { width: 96px; }
  .case-diagnosis { grid-column: 3 / 5; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .import-layout { grid-template-columns: 1fr; }
  .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { background-size: 100% 28px; }
  .sidebar { display: none; }
  .main-area { margin-left: 0; padding: 0 14px 86px; }
  .topbar { min-height: 130px; display: block; }
  .topbar-actions { margin-top: 14px; display: flex; align-items: stretch; flex-direction: column-reverse; gap: 9px; }
  .range-control { width: 100%; }
  .range-control button { flex: 1; padding: 0 5px; font-size: 10px; }
  .upload-button { width: 100%; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-item, .kpi-item:nth-child(4) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .kpi-item:nth-child(even) { border-right: 0; }
  .kpi-item:nth-last-child(-n+2) { border-bottom: 0; }
  .kpi-item { min-height: 80px; padding: 13px; }
  .kpi-item strong { font-size: 18px; }
  .brief-band { grid-template-columns: 1fr; gap: 12px; }
  .freshness-block { grid-column: auto; flex-wrap: wrap; }
  .quality-layout { grid-template-columns: 112px 1fr; padding: 18px; gap: 18px; }
  .quality-donut { width: 112px; height: 112px; }
  .quality-donut::after { inset: 23px; }
  .trend-chart { height: 230px; padding: 12px; }
  .case-intro { min-height: 116px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; }
  .case-row { grid-template-columns: 34px 76px 1fr; min-height: 0; padding: 14px 12px; }
  .video-thumb { width: 76px; }
  .case-actions { grid-column: 2 / 4; grid-template-columns: 1fr 1fr; }
  .case-diagnosis { grid-column: 2 / 4; }
  .case-metrics { grid-template-columns: repeat(3, 1fr); }
  .library-toolbar { padding: 14px 0; align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; width: 100%; }
  .category-filter { width: 100%; }
  .category-filter button { flex: 1; padding: 0 5px; font-size: 10px; }
  .data-rule-band { grid-template-columns: 1fr 1fr; }
  .data-rule-band div { border-bottom: 1px solid #3a4240; }
  .data-rule-band div:nth-child(even) { border-right: 0; }
  .data-rule-band div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    height: 62px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #1d2221;
    border-top: 1px solid #333a38;
  }
  .mobile-nav button { border: 0; background: transparent; color: #a9b2af; font-size: 10px; }
  .mobile-nav button.active { color: var(--mint); font-weight: 700; }
  .detail-kpis { grid-template-columns: repeat(3, 1fr); }
  .detail-kpis div:nth-child(3) { border-right: 0; }
  .detail-kpis div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .media-review { grid-template-columns: 1fr; padding: 16px; }
  .video-player-wrap video { height: min(64vh, 520px); }
  .snapshot-section, .script-section, .dimension-section { padding: 18px 16px; }
  .snapshot-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-conclusion, .data-evidence, .reuse-band { grid-template-columns: 1fr; }
  .review-conclusion > div, .data-evidence > div, .reuse-band > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .dimension-grid { grid-template-columns: 1fr; }
  .script-step { grid-template-columns: 56px 1fr; gap: 10px; }
  .analysis-form { grid-template-columns: 1fr; padding: 16px; }
  .analysis-form label.wide, .analysis-actions { grid-column: auto; }
  .analysis-actions { align-items: stretch; flex-direction: column; }
}
