/* Dense review workspace; the original Catalog Studio keeps its existing styling. */
body.terminal-mode { background: #101214; }
.terminal-mode .site-header { background: #171a1d; border-color: #353b41; }
.terminal-mode .site-footer { display: none; }
.terminal-mode .nav-links a, .terminal-mode .menu-toggle { color: #c3c9ce; }
.terminal-mode .nav-links a[aria-current="page"] { color: #ffb454; }
.terminal-mode .wordmark, .terminal-mode .wordmark small, .terminal-mode .text-button { color: #e8e9e8; }
.terminal-mode .wordmark-mark { width: 36px; height: 40px; }
.terminal-mode .nav { min-height: 50px; padding-block: 5px; }
.terminal-mode .studio-main { width: 100%; max-width: none; padding: 12px 20px 20px; }
.terminal-mode .workspace-heading, .terminal-mode .stats-grid { display: none; }
.terminal-mode .studio-tabs { margin-bottom: 10px; padding: 0; background: #171a1d; border: 1px solid #353b41; border-radius: 0; }
.terminal-mode .studio-tabs button { min-height: 32px; border-radius: 0; color: #aeb6bd; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; }
.terminal-mode .studio-tabs button[aria-selected="true"] { color: #101214; background: #ffb454; box-shadow: none; }
.review-terminal { --rt-bg: #101214; --rt-panel: #171a1d; --rt-line: #353b41; --rt-text: #e8e9e8; --rt-muted: #a4aeb8; --rt-accent: #ffb454; display: flex; flex-direction: column; height: calc(100dvh - 129px); min-height: 560px; border: 1px solid var(--rt-line); background: var(--rt-bg); color: var(--rt-text); font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color-scheme: dark; }
.review-terminal *, .review-terminal *::before, .review-terminal *::after { box-sizing: border-box; }
.review-terminal button, .review-terminal input, .review-terminal select { border: 1px solid var(--rt-line); border-radius: 0; background: var(--rt-panel); color: var(--rt-text); font: inherit; box-shadow: none; }
.review-terminal button { min-height: 32px; padding: 6px 10px; cursor: pointer; }
.review-terminal button:hover:not(:disabled) { border-color: var(--rt-accent); color: var(--rt-accent); }
.review-terminal :focus-visible { outline: 2px solid var(--rt-accent); outline-offset: -2px; }
.review-terminal button:disabled { cursor: default; opacity: .45; }
.review-terminal input, .review-terminal select { min-height: 34px; padding: 6px 10px; }
.review-terminal input::placeholder { color: var(--rt-muted); }
.review-terminal label { color: var(--rt-text); font: inherit; letter-spacing: 0; text-transform: none; }
.review-terminal h2, .review-terminal h3, .review-terminal h4, .review-terminal p { margin: 0; font-family: inherit; }
.rt-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--rt-line); }
.rt-eyebrow { color: var(--rt-muted); font-size: 10px; letter-spacing: .1em; }
.review-terminal h2 { margin-top: 3px; color: var(--rt-accent); font-size: 20px; letter-spacing: -.04em; }
.rt-live { margin-left: 12px; color: var(--rt-muted); font-size: 10px; font-weight: 400; letter-spacing: .08em; }
.rt-metrics { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) 2fr; border-bottom: 1px solid var(--rt-line); }
.rt-metrics > div { padding: 5px 14px; border-right: 1px solid var(--rt-line); }
.rt-metrics span { display: block; color: var(--rt-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.rt-metrics strong { display: block; font-size: 22px; line-height: 1.2; font-weight: 500; font-variant-numeric: tabular-nums; }
.rt-metrics .rt-instruction { align-self: center; border: 0; }
.rt-instruction span { margin-top: 4px; text-transform: none; letter-spacing: 0; }
.rt-toolbar { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--rt-line); }
.rt-search { flex: 1; min-width: 160px; }
.rt-check { display: flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 11px !important; }
.rt-check input { width: 14px; min-height: 14px; height: 14px; margin: 0; accent-color: var(--rt-accent); }
.rt-status { flex-shrink: 0; padding: 6px 14px; color: var(--rt-muted); background: var(--rt-panel); border-bottom: 1px solid var(--rt-line); font-size: 11px; }
.rt-status.rt-error { color: #ffb4ab; }
.rt-workbench { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.rt-detail-open .rt-workbench { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); }
.rt-queue, .rt-inspector { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.rt-detail-open .rt-queue { border-right: 1px solid var(--rt-line); }
.rt-section-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 5px 12px; border-bottom: 1px solid var(--rt-line); color: var(--rt-muted); font-size: 10px; letter-spacing: .04em; }
.review-terminal [data-rt-close-details] { min-height: 24px; padding: 2px 5px; color: var(--rt-accent); font-size: 10px; }
.rt-table-scroll { flex: 1; overflow: auto; scrollbar-color: #535c64 var(--rt-bg); }
.review-terminal table { width: 100%; min-width: 1080px; table-layout: fixed; border-collapse: collapse; text-align: left; }
.review-terminal th:nth-child(1) { width: 3%; }
.review-terminal th:nth-child(2) { width: 18%; }
.review-terminal th:nth-child(3) { width: 15%; }
.review-terminal th:nth-child(4) { width: 13%; }
.review-terminal th:nth-child(5) { width: 13%; }
.review-terminal th:nth-child(6) { width: 10%; }
.review-terminal th:nth-child(7) { width: 16%; }
.review-terminal th:nth-child(8), .review-terminal th:nth-child(9) { width: 6%; }
.rt-detail-open table { min-width: 0; }
.rt-detail-open th:nth-child(1) { width: 6%; }
.rt-detail-open th:nth-child(2) { width: 39%; }
.rt-detail-open th:nth-child(4) { width: 29%; }
.rt-detail-open th:nth-child(8), .rt-detail-open th:nth-child(9) { width: 13%; }
.review-terminal .rt-cell-line { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-terminal th { position: sticky; top: 0; z-index: 1; background: #202428; color: var(--rt-muted); font-weight: 400; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
.review-terminal th, .review-terminal td { padding: 6px 9px; border-bottom: 1px solid #292e33; vertical-align: top; }
.review-terminal td { font-size: 11px; }
.review-terminal td:first-child { color: var(--rt-muted); font-variant-numeric: tabular-nums; font-size: 10px; }
.review-terminal td:nth-child(2) { min-width: 175px; }
.review-terminal td { max-width: 210px; }
.rt-detail-open .rt-col-origin, .rt-detail-open .rt-col-classification, .rt-detail-open .rt-col-rennet, .rt-detail-open .rt-col-flavor { display: none; }
.review-terminal td small { display: block; margin-top: 3px; color: var(--rt-muted); font: inherit; font-size: 10px; }
.review-terminal td button { min-height: 0; padding: 0; border: 0; background: transparent; text-align: left; font-size: 12px; font-weight: 600; }
.review-terminal tr { cursor: pointer; }
.review-terminal tbody tr:hover { background: #202428; }
.review-terminal tr.rt-selected { background: #30302a; box-shadow: inset 3px 0 var(--rt-accent); }
.review-terminal tr.rt-selected td button { color: var(--rt-accent); }
.rt-warning { color: var(--rt-accent); white-space: nowrap; }
.rt-state { display: inline-block; padding: 1px 4px; border: 1px solid #515961; color: #c0c7cd; font-size: 9px; }
.rt-state.rt-draft { color: var(--rt-accent); border-color: #856131; }
.rt-detail { flex: 1; overflow-y: auto; padding: 18px; scrollbar-color: #535c64 var(--rt-bg); }
.rt-record-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rt-record-heading h3 { margin: 5px 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -.05em; overflow-wrap: anywhere; }
.rt-record-heading > div > p:last-child { color: var(--rt-muted); }
.rt-record-heading img, .rt-no-photo { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border: 1px solid var(--rt-line); }
.rt-no-photo { display: grid; place-content: center; color: var(--rt-muted); text-align: center; font-size: 9px; letter-spacing: .1em; }
.rt-flags { display: grid; gap: 4px; padding: 10px 12px; border-left: 2px solid var(--rt-accent); background: #24221e; }
.rt-flags strong { color: var(--rt-accent); font-size: 11px; }
.rt-flags span { color: #c2b8a9; font-size: 10px; }
.rt-facts { display: grid; grid-template-columns: 1fr 1fr; margin: 15px 0; }
.rt-facts > div { padding: 8px 8px 8px 0; border-bottom: 1px solid #292e33; min-width: 0; }
.rt-facts dt, .rt-tasting h4 { color: var(--rt-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; font-weight: 400; }
.rt-facts dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.rt-needs-check dd { color: var(--rt-accent); }
.rt-tasting p { margin: 5px 0 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-metadata { font-size: 10px; }
.rt-footer { padding: 10px 12px; border-top: 1px solid var(--rt-line); background: var(--rt-panel); }
.rt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-terminal kbd { display: inline-block; min-width: 18px; margin-right: 5px; padding: 1px 4px; border: 1px solid currentColor; font: inherit; font-size: 10px; text-align: center; opacity: .8; }
.review-terminal .rt-approve { color: #101214; background: var(--rt-accent); border-color: var(--rt-accent); font-weight: 700; }
.review-terminal .rt-approve:hover:not(:disabled) { color: #101214; background: #ffd096; }
.rt-key-guide { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 9px; color: var(--rt-muted); font-size: 10px; }
.rt-key-guide span:last-child { margin-left: auto; }
.rt-detail-empty, .rt-empty { padding: 38px 20px; color: var(--rt-muted); text-align: center; }
.rt-detail-empty > span { font-size: 30px; color: var(--rt-accent); }
.rt-detail-empty h3 { margin: 12px 0 6px; color: var(--rt-text); font-size: 16px; }
@media (min-width: 1500px) { .rt-detail-open .rt-workbench { grid-template-columns: minmax(0, 1.4fr) minmax(420px, 1fr); } }
@media (max-width: 1000px) { .rt-check { font-size: 10px !important; } .rt-toolbar { flex-wrap: wrap; } .rt-search { flex-basis: 45%; } .rt-metrics { grid-template-columns: repeat(3, 1fr); } .rt-instruction { display: none; } .rt-detail-open .rt-workbench { grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); } .rt-section-label { flex-wrap: wrap; } }
@media (min-width: 721px) and (max-width: 1100px) { .rt-detail-open th:nth-child(4), .rt-detail-open td:nth-child(4) { display: none; } }
@media (max-width: 820px) { .terminal-mode .nav-links { background: #171a1d; border-color: #353b41; border-radius: 0; } }
@media (max-width: 720px) {
  .terminal-mode .studio-main { padding: 8px; }
  .terminal-mode .studio-tabs { display: flex; width: 100%; }
  .terminal-mode .studio-tabs button { flex: 1; padding-inline: 6px; font-size: 10px; }
  .review-terminal { height: auto; min-height: 0; }
  .rt-header { padding: 12px; } .review-terminal h2 { font-size: 17px; } .rt-live { display: none; }
  .rt-header > button { font-size: 10px; }
  .rt-metrics > div { padding: 9px; } .rt-metrics span { font-size: 9px; } .rt-metrics strong { font-size: 22px; }
  .rt-toolbar { gap: 8px; } .rt-search { flex-basis: 100%; }
  .rt-workbench { display: flex; flex-direction: column; } .rt-queue { height: 460px; border-right: 0; border-bottom: 1px solid var(--rt-line); }
  .rt-detail-open .rt-queue { height: 240px; }
  .rt-detail-open table { min-width: 600px; }
  .rt-inspector { max-height: 520px; } .rt-detail { padding: 14px; }
  .rt-footer { position: sticky; bottom: 0; z-index: 2; } .rt-actions { gap: 5px; } .rt-actions button { font-size: 10px; padding-inline: 7px; }
  .rt-key-guide { display: none; }
}
.rt-quick-notes { flex-shrink: 0; padding: 7px 12px; border-top: 1px solid var(--rt-line); background: var(--rt-bg); }
.rt-note-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; font-size: 10px; color: var(--rt-muted); }
.rt-note-heading label { display: block; min-width: 0; font-size: 10px; }
.rt-note-heading [data-note-cheese] { color: var(--rt-accent); }
.rt-note-heading .rt-error { color: #ffb4ab; }
.rt-note-input { display: flex; gap: 8px; }
.review-terminal .rt-note-input textarea { min-height: 34px; max-height: 110px; padding: 7px 9px; border: 1px solid var(--rt-line); border-radius: 0; background: var(--rt-panel); color: var(--rt-text); font: inherit; font-size: 12px; line-height: 1.5; resize: vertical; }
.rt-note-input button { flex-shrink: 0; font-size: 10px; }
@media (max-width: 720px) { .rt-note-heading { align-items: flex-start; flex-direction: column; gap: 3px; } .rt-note-heading [data-note-cheese] { display: block; } }
