/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/.pnpm/next@15.5.19_react-dom@19.2.7_react@19.2.7__react@19.2.7/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #08090a;
  --panel: #121316;
  --panel-2: #1a1c20;
  --border: #2a2d33;
  --text: #e6e7e9;
  --muted: #9aa0a6;
  --accent: #5e6ad2;
  --accent-2: #7c83e8;
  --good: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
}

* { box-sizing: border-box; }
html, body { padding: 0; margin: 0; background: var(--bg); color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--border); background: var(--bg); z-index: 10; }
.topbar .muted { font-size: 13px; }
.brand { font-weight: 700; letter-spacing: 0.5px; }
.muted { color: var(--muted); }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

.btn { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.small { padding: 4px 8px; font-size: 12px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.cohort-title { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 24px 0 8px; }
.spec-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.spec-title { font-weight: 600; }
.chip { display: inline-block; font-size: 11px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }

.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-gap: 12px; gap: 12px; margin-top: 12px; }
.variant { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel-2); }
.variant.winner { border-color: var(--good); box-shadow: 0 0 0 1px var(--good) inset; }
/* Show the FULL image (no cropping) at its natural aspect ratio. */
.variant img { width: 100%; height: auto; display: block; cursor: zoom-in; background: #000; }
.variant video { width: 100%; height: auto; max-height: 72vh; display: block; background: #000; }
/* single-item review: give the video room instead of a 220px tile stranded in a wide panel */
.inbox .variants { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); max-width: 960px; }
.variant .body { padding: 10px; }
.stars { display: flex; gap: 2px; }
.star { cursor: pointer; font-size: 18px; color: #3a3d44; background: none; border: none; padding: 0; }
.star.on { color: var(--warn); }
.grades { display: flex; gap: 6px; margin: 8px 0; flex-wrap: wrap; }
.grade { font-size: 11px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.grade.on.enthusiastic { background: var(--good); color: #08200f; border-color: var(--good); }
.grade.on.approved_with_notes { background: var(--warn); color: #2a1d00; border-color: var(--warn); }
.grade.on.rejected { background: var(--bad); color: #2a0606; border-color: var(--bad); }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 12px; resize: vertical; min-height: 44px; }
.row { display: flex; align-items: center; gap: 8px; }

.infopanel { margin-top: 10px; padding: 10px; border: 1px dashed var(--border); border-radius: 8px; font-size: 12px; color: var(--muted); }
.infopanel b { color: var(--text); }

.statusbar { position: -webkit-sticky; position: sticky; bottom: 0; background: var(--panel); border-top: 1px solid var(--border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.badge.queued, .badge.processing { color: var(--warn); border-color: var(--warn); }
.badge.completed { color: var(--good); border-color: var(--good); }
.badge.failed { color: var(--bad); border-color: var(--bad); }
.badge.awaiting_decision { color: var(--accent-2); border-color: var(--accent-2); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 50; cursor: zoom-out; touch-action: pan-y; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.lightbox img { max-width: 92vw; max-height: 92vh; cursor: default; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 51; }
.lb-nav:hover { background: rgba(255,255,255,0.18); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: fixed; top: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 51; }
.lb-close:hover { background: rgba(255,255,255,0.18); }
.lb-counter { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.6); color: #fff; font-size: 13px; padding: 4px 12px; border-radius: 999px; z-index: 51; }
@media (max-width: 640px) { .lb-nav { width: 44px; height: 44px; font-size: 26px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

.form { max-width: 360px; margin: 80px auto; }
.form input { width: 100%; padding: 10px; margin: 6px 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.error { color: var(--bad); font-size: 13px; }
.digest { white-space: pre-wrap; font-size: 13px; }

/* filters */
.filters { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; font-size: 12px; color: var(--muted); }
.filters label { display: flex; gap: 6px; align-items: center; }
.filters select { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; }

/* dark-mode scrollbars (Firefox + WebKit/Chromium) */
* { scrollbar-color: #3a3d44 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3a3d44; border-radius: 7px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4a4e57; }

/* full-height board: topbar + shell fill the viewport (robust at any browser zoom) */
.board-root { height: 100vh; display: flex; flex-direction: column; }
.board-root > .topbar { flex: none; }
.board-shell { box-sizing: border-box; display: flex; flex-direction: column; flex: 1 1; min-height: 0; max-width: none; padding: 6px 8px 0 20px; }
.board-shell > .toolbar, .board-shell > .error { flex: none; }
.board-shell > .inbox, .board-shell > .batch { flex: 1 1; min-height: 0; }

/* compact single-row toolbar: title · filters · (batch) pager + zoom */
.toolbar { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 6px 0 8px; }
.board-title { font-size: 14px; font-weight: 700; white-space: nowrap; }
.toolbar .filters { margin: 0; }
.batch-controls { margin-left: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pager { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }

/* tile-zoom slider — grid-density control (Photos/Lightroom pattern) */
.tile-sizer { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.tile-sizer .tile-ico { display: inline-flex; }
.tile-pct { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; font-size: 12px; min-width: 38px; text-align: right; color: var(--text); }
.tile-sizer input[type="range"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 130px; height: 16px; background: transparent; cursor: pointer; }
.tile-sizer input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--fill, 50%), var(--border) var(--fill, 50%)); }
.tile-sizer input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; margin-top: -5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.6); -webkit-transition: transform .08s ease; transition: transform .08s ease; }
.tile-sizer input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
.tile-sizer input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.tile-sizer input[type="range"]:focus-visible { outline: none; }
.tile-sizer input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(94,106,210,0.5); }
.tile-sizer input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--border); }
.tile-sizer input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--accent); }
.tile-sizer input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: none; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.6); }

/* batch mode: paginated multi-column grid of entries */
.batch { display: flex; flex-direction: column; }
/* tile width driven by the zoom slider via --tile-min */
.batch-grid { flex: 1 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-min, 320px), 1fr)); grid-gap: 16px; gap: 16px; align-content: start; padding-right: 4px; }
/* the tile's INTERNAL layout stays fixed (original 2-up); only the tile box scales with zoom */
.batch-grid .variants { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.batch-grid .card { padding: 12px; min-width: 0; margin-bottom: 0; }
.batch-grid .spec-head { flex-wrap: wrap; }
.batch-grid .spec-title { white-space: normal; word-break: break-word; }

/* inbox master-detail */
.inbox { display: grid; grid-template-columns: 320px 1fr; grid-gap: 16px; gap: 16px; align-items: stretch; }
.inbox-list { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); min-height: 0; overflow-y: auto; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.inbox-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.inbox-row:hover { background: var(--panel-2); }
.inbox-row.focused { background: #1e2330; }
.inbox-row.selected { background: rgba(94,106,210,0.25); }
/* Read/reviewed rows are de-emphasized so unread (pending) items stand out at a glance. */
.inbox-row.reviewed, .inbox-row.skipped { opacity: 0.5; }
.inbox-row.reviewed .inbox-row-title, .inbox-row.skipped .inbox-row-title { color: var(--muted); }
.inbox-row.focused, .inbox-row:hover { opacity: 1; }
.inbox-row-title { flex: 1 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-row-meta { color: var(--muted); font-size: 11px; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* explicit per-row "done" flag — clearer than the status dot alone */
.row-flag { flex: none; font-size: 10px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; border: 1px solid currentColor; }
.row-flag.reviewed { color: var(--good); }
.row-flag.read { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 999px; flex: none; background: var(--muted); }
.dot.pending { background: var(--warn); box-shadow: 0 0 0 3px rgba(230,170,60,0.15); }
.dot.reviewed { background: var(--good); }
.dot.skipped { background: var(--muted); }
.inbox-detail { min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; }

.chip.status-pending { color: var(--warn); border-color: var(--warn); }
.chip.status-reviewed { color: var(--good); border-color: var(--good); }
.chip.status-skipped { color: var(--muted); }
/* Dim read/reviewed cards in the batch grid (not the focused detail view) so done items recede. */
.batch-grid .spec-card.status-skipped, .batch-grid .spec-card.status-reviewed { opacity: 0.55; }
.batch-grid .spec-card.status-skipped:hover, .batch-grid .spec-card.status-reviewed:hover { opacity: 1; }

/* drag-select box + bulk bar */
.dragbox { position: fixed; border: 1px solid var(--accent); background: rgba(94,106,210,0.15); z-index: 40; pointer-events: none; }
.bulkbar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--accent); border-radius: 10px; padding: 8px 14px; display: flex; gap: 10px; align-items: center; z-index: 45; box-shadow: 0 6px 24px rgba(0,0,0,0.5); }

