.review-login { width: min(440px, 100%); margin: 7vh auto 0; }
.review-login h1 { font-size: 38px; }
.review-login > p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; }
.review-status-filter { display: grid; gap: 6px; min-width: 170px; }
.review-status-filter span { color: var(--muted); font-size: 12px; }
.review-status-filter select,
.variant-switch select { width: 100%; min-height: 42px; padding: 9px 34px 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.review-catalog-toolbar { grid-template-columns: auto minmax(280px, 1fr) 180px auto; }
.review-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-summary-strip span { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 13px; color: var(--muted); font-size: 12px; }
.review-summary-strip span + span { border-left: 1px solid var(--line); }
.review-summary-strip b { color: var(--ink); font: 800 24px/1 Consolas, monospace; }
.review-catalog-card { min-height: 330px; }
.review-card-cover { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(145deg, #e8f3f1, #f7f8f9 60%); }
.review-card-cover::before { content: ""; position: absolute; top: 23%; width: 58%; height: 43%; border: 2px solid #9cbeb9; border-radius: 7px; background: rgba(255,255,255,.62); box-shadow: 10px 10px 0 rgba(15,118,110,.08); transform: rotate(-2deg); }
.review-card-cover b,
.review-card-cover small,
.review-folder-mark { position: relative; z-index: 1; }
.review-card-cover b { margin-top: 18px; font: 800 30px/1 Consolas, monospace; }
.review-card-cover small { color: var(--muted); font-size: 11px; }
.review-card-cover.has-image { display: block; background: #fff; }
.review-card-cover.has-image::before { display: none; }
.review-card-cover.has-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.review-card-cover.has-image small { position: absolute; right: 7px; bottom: 7px; padding: 5px 7px; border-radius: 5px; background: rgba(255,255,255,.92); color: var(--ink); }
.review-folder-mark { padding: 4px 7px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; }
.review-card-cover.has-image .review-folder-mark { position: absolute; top: 7px; left: 7px; }
.review-card-status { min-height: 27px; }
.review-catalog-card .catalog-card-body p { margin: 0; overflow: hidden; color: #8a8d96; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-batch-dock { position: sticky; bottom: 14px; z-index: 4; display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #9bc9c2; border-radius: 9px; background: rgba(238,248,246,.96); box-shadow: 0 14px 34px rgba(16,35,33,.14); backdrop-filter: blur(14px); }
.review-batch-dock > div:first-child { display: grid; gap: 4px; }
.review-batch-dock span { color: var(--muted); font-size: 12px; }
.review-batch-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.review-batch-dock > .message { grid-column: 1 / -1; margin: 0; }
.review-batch-actions button:disabled { cursor: not-allowed; opacity: .42; }
.review-confirm-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 26px 90px rgba(5,18,17,.34); }
.review-confirm-dialog::backdrop { background: rgba(7,15,15,.62); backdrop-filter: blur(3px); }
.review-confirm-dialog form { display: grid; gap: 14px; padding: 26px; }
.review-confirm-dialog h2 { font-size: 26px; }
.review-confirm-dialog form > p { margin: 0; color: var(--muted); line-height: 1.65; }
.review-delete-codes { display: flex; flex-wrap: wrap; gap: 7px; max-height: 150px; overflow-y: auto; }
.review-delete-codes span { padding: 6px 9px; border: 1px solid #e2caca; border-radius: 999px; background: #fff6f6; color: #8c2929; font: 700 11px/1 Consolas, monospace; }
.review-publish-codes { display: flex; flex-wrap: wrap; gap: 7px; max-height: 150px; overflow-y: auto; }
.review-publish-codes span,
.review-code-token { padding: 6px 9px; border: 1px solid #a9d3cc; border-radius: 999px; background: #eaf7f4; color: #075f57; font: 700 11px/1 Consolas, monospace; }
.review-confirm-note { padding: 11px 12px; border-left: 3px solid #b73a3a; background: #fff7f7; color: #713b3b !important; font-size: 12px; }
.review-publish-note { padding: 11px 12px; border-left: 3px solid var(--accent); background: #edf8f6; color: #255c55 !important; font-size: 12px; }
.review-confirm-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 2px; }
.status-chip { display: inline-flex; align-items: center; width: fit-content; min-height: 27px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-queued { background: #e8f3ff; color: #18578b; }
.status-working { background: #fff1d8; color: #815400; }
.status-attention { background: #fff0d9; color: #8a5000; }
.status-review { background: #e8f7f3; color: #08665d; }
.status-rejected, .status-failed { background: #fce8e8; color: #922828; }
.status-published { background: #e7f5e8; color: #28652d; }
.status-muted { background: #eceef1; color: #696c74; }
.error-text { color: var(--danger) !important; }

.review-detail-workspace { display: grid; gap: 14px; }
.review-detail-page-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-detail-page-head h1 { font-size: clamp(28px, 4vw, 46px); }
.review-detail-page-head > div:nth-child(2) { min-width: 0; }
.review-detail-page-head > div:nth-child(2) > p:last-child { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.review-detail-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.review-detail-facts div { display: grid; gap: 6px; min-width: 0; padding: 13px 14px; }
.review-detail-facts div + div { border-left: 1px solid var(--line); }
.review-detail-facts span { color: var(--muted); font-size: 11px; }
.review-detail-facts b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.review-overview { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.overview-toolbar { border-bottom: 1px solid var(--line); }
.review-cover-strip { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 300px; border-bottom: 1px solid var(--line); background: #f7f8f9; }
.review-cover { display: grid; min-width: 0; margin: 0; padding: 18px; border-right: 1px solid var(--line); background: #fff; }
.review-cover > div { display: grid; place-content: center; gap: 6px; min-height: 260px; color: var(--muted); text-align: center; }
.review-cover > div b { color: var(--ink); }
.review-cover button { position: relative; width: 100%; min-height: 260px; padding: 0; overflow: hidden; border: 1px solid #e1e3e7; border-radius: 8px; background: #fff; cursor: zoom-in; }
.review-cover img { display: block; width: 100%; height: 260px; object-fit: contain; }
.review-cover button span { position: absolute; right: 9px; bottom: 9px; padding: 6px 9px; border-radius: 5px; background: rgba(17,19,23,.88); color: #fff; font-size: 10px; font-weight: 800; }
.review-manifest-intro { min-width: 0; padding: 24px; }
.review-manifest-intro > p:not(.eyebrow) { max-width: 720px; margin: 8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.review-folder-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.review-folder-index a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; border: 1px solid #dde2e4; border-radius: 6px; background: #fff; color: var(--ink); }
.review-folder-index a:hover { border-color: #8ebbb5; background: #edf8f6; }
.review-folder-index span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.review-folder-index small { color: var(--accent); font: 800 10px/1.3 Consolas, monospace; }
.empty-index { color: var(--muted); font-size: 12px; }
.review-folder-overview { display: grid; padding: 0 18px 18px; background: #f5f6f7; }
.review-folder-section { scroll-margin-top: 14px; min-width: 0; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; background: #fff; }
.review-folder-section > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #eef8f6, #fff 48%); }
.review-folder-section > header > div { display: flex; align-items: center; min-width: 0; gap: 10px; }
.review-folder-section > header span { color: var(--accent); font: 800 11px/1 Consolas, monospace; }
.review-folder-section > header h3 { overflow-wrap: anywhere; font-size: 14px; }
.review-folder-section > header small { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.material-folder-empty { grid-column: 1 / -1; padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.material-file-copy small { overflow: hidden; color: #9498a0; font: 9px/1.45 Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.review-browser { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 650px; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.review-folder-pane { min-width: 0; border-right: 1px solid var(--line); background: #f7f8f9; }
.pane-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 17px; border-bottom: 1px solid var(--line); }
.pane-title h2 { font-size: 19px; }
.pane-title > span { color: var(--muted); font-size: 11px; }
.review-folder-tree { display: grid; padding: 8px; }
.folder-tree-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 5px; width: 100%; min-height: 36px; padding: 6px 8px 6px calc(8px + var(--depth) * 15px); border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.folder-tree-row:hover { background: #eef1f2; }
.folder-tree-row.active { background: #dff1ed; box-shadow: inset 3px 0 0 var(--accent); }
.folder-tree-row i { color: var(--accent); font-style: normal; }
.folder-tree-row span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.folder-tree-row small { color: #8b8f97; font: 10px/1 Consolas, monospace; }
.review-material-pane { min-width: 0; background: #fff; }
.material-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; min-height: 92px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.material-toolbar > div { min-width: 0; }
.material-toolbar h2 { margin-top: 5px; }
.material-toolbar > div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.folder-breadcrumb { display: flex; align-items: center; gap: 5px; margin: 0; overflow-x: auto; color: var(--muted); white-space: nowrap; }
.folder-breadcrumb button { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font-size: 11px; }
.folder-breadcrumb i { font-style: normal; color: #afb2b8; }
.variant-switch { display: grid; flex: 0 0 220px; gap: 5px; color: var(--muted); font-size: 11px; }
.review-material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px; }
.material-folder-card,
.material-file-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.material-folder-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 3px 10px; min-height: 88px; padding: 12px; color: var(--ink); text-align: left; cursor: pointer; }
.material-folder-card:hover { border-color: #8ebbb5; background: #f1f9f7; }
.material-folder-card i { position: relative; grid-row: 1 / 3; width: 42px; height: 31px; border-radius: 4px; background: #d6ebe7; }
.material-folder-card i::before { content: ""; position: absolute; top: -7px; left: 3px; width: 20px; height: 10px; border-radius: 4px 4px 0 0; background: #b5d8d2; }
.material-folder-card b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.material-folder-card span { color: var(--muted); font-size: 10px; }
.material-file-card { position: relative; display: grid; grid-template-rows: 124px auto auto auto; overflow: hidden; }
.material-file-card.removed { opacity: .64; background: #f4f4f5; }
.material-preview { width: 100%; height: 124px; padding: 0; border: 0; background: #eef0f2; cursor: zoom-in; }
.material-preview img { width: 100%; height: 100%; object-fit: contain; }
.material-file-icon { display: grid; place-items: center; height: 124px; background: repeating-linear-gradient(135deg, #f1f3f5, #f1f3f5 10px, #f7f8f9 10px, #f7f8f9 20px); }
.material-file-icon b { display: grid; place-items: center; width: 62px; height: 76px; border: 1px solid #c5c8cf; border-radius: 5px; background: #fff; font: 800 13px/1 Consolas, monospace; }
.material-file-copy { display: grid; gap: 5px; padding: 10px; }
.material-file-copy b { overflow-wrap: anywhere; font-size: 12px; }
.material-file-copy span { color: var(--muted); font-size: 10px; }
.material-file-copy em { color: var(--danger); font-size: 10px; font-style: normal; line-height: 1.45; }
.material-file-links { display: grid; gap: 6px; padding: 0 10px 10px; }
.material-file-links a,
.sheet-preview-link { display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 8px; border: 1px solid #b7d8d3; border-radius: 5px; background: #edf8f6; color: var(--accent); cursor: pointer; font-size: 10px; font-weight: 800; }
.sheet-preview-link { border-color: #2e8077; background: #176e65; color: #fff; }
.material-admin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 10px 10px; }
.material-admin-actions button { min-height: 32px; padding: 0 8px; font-size: 11px; }
.material-empty { grid-column: 1 / -1; }
.review-bottom-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
.review-action-panel,
.review-event-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.review-action-panel > p { margin: 0; padding: 14px 17px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.review-action-panel textarea { width: calc(100% - 34px); margin: 14px 17px 0; }
.review-decision-buttons { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 17px; }
.review-action-panel > .message { display: block; margin: 0; padding: 0 17px 14px; }
.review-terminal-note { margin: 14px 17px; padding: 13px; border-left: 4px solid var(--accent); background: #edf8f6; color: var(--muted); font-size: 12px; }
.text-danger { margin: 0 17px 12px; padding: 3px 0; border: 0; background: transparent; color: var(--danger); cursor: pointer; text-decoration: underline; }
.review-timeline { display: grid; margin: 0; padding: 14px 18px; list-style: none; }
.review-timeline li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; min-height: 52px; }
.review-timeline i { position: relative; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); }
.review-timeline i::after { content: ""; position: absolute; top: 10px; bottom: -37px; left: 3px; width: 1px; background: #cbdedb; }
.review-timeline li:last-child i::after { display: none; }
.review-timeline div { display: grid; gap: 4px; padding-bottom: 13px; }
.review-timeline b { font-size: 12px; font-weight: 600; }
.review-timeline span { color: var(--muted); font-size: 10px; }
.review-preview-dialog { width: min(1120px, calc(100vw - 36px)); max-height: calc(100vh - 36px); padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #101414; box-shadow: 0 24px 80px rgba(0,0,0,.42); color: #fff; }
.review-preview-dialog::backdrop { background: rgba(4,8,8,.78); }
.review-preview-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 54px; padding: 10px 16px; background: #191e1e; }
.review-preview-dialog strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.review-preview-dialog button { width: 34px; height: 34px; border: 1px solid #495151; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 24px; }
.review-preview-dialog img { display: block; width: 100%; height: calc(100vh - 110px); object-fit: contain; background: #0b0e0e; }
.sheet-preview-dialog { width: min(1380px, calc(100vw - 28px)); height: min(860px, calc(100vh - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: #f3f5f5; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.sheet-preview-dialog::backdrop { background: rgba(4,8,8,.78); }
.sheet-preview-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding: 10px 16px; background: #121818; color: #fff; }
.sheet-preview-dialog > header > div { display: grid; min-width: 0; gap: 4px; }
.sheet-preview-dialog > header strong,
.sheet-preview-dialog > header span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-preview-dialog > header span { color: #aeb9b8; font-size: 10px; }
.sheet-preview-dialog > header button { width: 34px; height: 34px; border: 1px solid #495151; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font-size: 24px; }
.sheet-preview-body { height: calc(100% - 64px); padding: 14px; overflow: auto; }
.sheet-preview-section { display: grid; gap: 8px; }
.sheet-preview-section h3 { margin: 0; font-size: 13px; }
.sheet-preview-note { margin: 0; color: #856000; font-size: 11px; }
.sheet-table-wrap { max-width: 100%; overflow: auto; border: 1px solid #cfd5d5; border-radius: 7px; background: #fff; }
.sheet-table-wrap table { border-collapse: separate; border-spacing: 0; min-width: 100%; font-size: 11px; }
.sheet-table-wrap th,
.sheet-table-wrap td { min-width: 110px; max-width: 360px; padding: 7px 9px; border-right: 1px solid #e0e4e4; border-bottom: 1px solid #e0e4e4; overflow-wrap: anywhere; vertical-align: top; text-align: left; }
.sheet-table-wrap tr:first-child th { position: sticky; top: 0; z-index: 2; background: #e7f3f1; color: #153e39; }
.sheet-table-wrap .sheet-row-number { position: sticky; left: 0; z-index: 1; min-width: 44px; width: 44px; background: #f2f4f4; color: #7d8584; text-align: center; }
.sheet-table-wrap tr:first-child .sheet-row-number { z-index: 3; }
.sheet-preview-loading,
.sheet-preview-error { display: grid; place-items: center; min-height: 260px; color: var(--muted); }
.sheet-preview-error { color: var(--danger); }

@media (max-width: 1180px) {
  .review-catalog-toolbar { grid-template-columns: auto minmax(260px, 1fr) 180px; }
  .review-catalog-toolbar > button { grid-column: 3; }
  .review-detail-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .review-detail-facts div:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
  .review-detail-facts div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .review-material-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.review-folder-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .review-catalog-toolbar, .review-detail-page-head, .review-browser, .review-bottom-grid { grid-template-columns: 1fr; }
  .review-catalog-toolbar > button { grid-column: auto; }
  .review-summary-strip { grid-template-columns: 1fr 1fr; }
  .review-summary-strip span:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .review-summary-strip span:nth-child(4) { border-top: 1px solid var(--line); }
  .review-batch-dock { position: static; grid-template-columns: 1fr; }
  .review-folder-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .review-folder-tree { max-height: 280px; overflow-y: auto; }
  .review-detail-page-head .admin-identity { justify-items: start; }
  .review-material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.review-cover-strip { grid-template-columns: 1fr; }
	.review-cover { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .review-summary-strip, .review-detail-facts, .review-material-grid { grid-template-columns: 1fr; }
  .review-summary-strip span + span, .review-detail-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .material-toolbar { align-items: stretch; flex-direction: column; }
  .variant-switch { flex-basis: auto; }
	.review-folder-index, .review-material-grid { grid-template-columns: 1fr; }
	.review-folder-overview { padding: 0 10px 10px; }
	.review-confirm-dialog form { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
