/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #d9dde2;
  --panel: #f4f2ee;
  --panel-soft: #ebe9e4;
  --field: #faf9f6;
  --line: #c2c9d2;
  --ink: #17202b;
  --muted: #5d6674;
  --blue: #214f8b;
  --blue-deep: #17345f;
  --blue-soft: #dfe8f3;
  --orange: #b65b2c;
  --orange-dark: #89421f;
  --teal: #1f766f;
  --teal-soft: #dcece8;
  --violet: #65519c;
  --violet-soft: #e7e2f0;
  --amber: #a9661d;
  --amber-soft: #f0e3cf;
  --red: #a3453d;
  --red-soft: #ead8d4;
  --sidebar: #101820;
  --sidebar-muted: #9ca9b8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
a {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid #0f1a26;
  background: var(--sidebar);
  color: #eef3f8;
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
}

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

.sidebar .brand span {
  color: var(--sidebar-muted);
}

.sidebar .eyebrow,
.sidebar .session-card span,
.sidebar .session-card small {
  color: var(--sidebar-muted);
}

.brand span,
.eyebrow,
.metric span,
.tier-card span,
.table-row small {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-list {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-radius: 8px;
  color: #d9e2ec;
  padding: 0 10px;
  text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
  background: #234876;
  color: #ffffff;
}

.security-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border: 1px solid rgba(214, 224, 235, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce7f0;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.session-card {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.session-card span,
.session-card small,
.guardrail-note {
  color: var(--sidebar-muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.session-card strong {
  font-size: 0.96rem;
}

.session-card select,
.role-switcher select,
.role-switcher input {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 9px;
}

.workspace {
  min-width: 0;
  padding: 30px;
}

.topbar,
.panel-heading,
.toolbar,
.segmented,
.release-steps div,
.tier-card {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 1rem;
}

.toolbar {
  gap: 10px;
}

.primary-button,
.icon-button,
.segmented button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-color: var(--orange-dark);
  background: var(--orange);
  color: #fff;
  padding: 0 16px;
  font-weight: 700;
}

.icon-button {
  display: grid;
  width: 38px;
  place-items: center;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  grid-gap: 1px;
  gap: 1px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metric {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-height: 92px;
  background: var(--panel);
  padding: 18px;
}

.metric strong {
  font-size: 1.5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-gap: 22px;
  gap: 22px;
}

.content-grid.client-portal {
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  align-items: start;
}

.content-grid.client-portal .right-rail {
  order: -1;
}

.content-grid.client-portal .case-panel {
  min-height: 360px;
}

.case-panel,
.action-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(23, 32, 43, 0.05);
}

.case-panel {
  min-width: 0;
  overflow: hidden;
}

.panel-heading {
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.panel-heading.compact {
  min-height: 58px;
}

.segmented {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  min-width: 64px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
}

.segmented button.selected {
  background: var(--blue-deep);
  color: #fff;
}

.case-table {
  display: grid;
}

.table-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.45fr) minmax(145px, 0.9fr) minmax(110px, 0.7fr) 54px;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.case-link-row {
  color: inherit;
  text-decoration: none;
}

.case-link-row:hover {
  background: var(--panel-soft);
}

.empty-queue {
  color: var(--muted);
  padding: 22px 18px;
  font-weight: 800;
}

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

.table-row > span:first-child {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.table-head {
  min-height: 46px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tier-pill,
.status-pill {
  display: inline-flex;
  width: -moz-fit-content;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.tier-pill.teal,
.swatch.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.tier-pill.blue,
.swatch.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.tier-pill.violet,
.swatch.violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.tier-pill.amber,
.swatch.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.uploading,
.status-pill.submitted,
.status-pill.paid {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill.processing,
.status-pill.needs_review,
.status-pill.revision_requested {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-pill.released,
.status-pill.completed {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pill.failed,
.status-pill.cancelled {
  background: var(--red-soft);
  color: var(--red);
}

.right-rail {
  display: grid;
  align-content: start;
  grid-gap: 22px;
  gap: 22px;
}

.staff-access-panel {
  background: #f7f5f1;
}

.staff-access-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 800;
}

.staff-access-disclosure summary::-webkit-details-marker {
  display: none;
}

.staff-access-disclosure summary span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.staff-access-disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}

.staff-access-inline {
  display: grid;
  grid-template-columns: minmax(150px, 180px) minmax(150px, 200px) auto;
  align-items: end;
  grid-gap: 10px;
  gap: 10px;
}

.tier-stack {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
}

.tier-card {
  gap: 10px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.tier-card > div:last-child {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}

.swatch {
  width: 12px;
  height: 36px;
  border-radius: 8px;
}

.release-steps {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
}

.release-steps div {
  gap: 10px;
  min-height: 36px;
  color: #334155;
  font-weight: 700;
}

.client-portal .release-steps {
  gap: 8px;
}

.client-portal .release-steps div {
  min-height: 30px;
  color: #475467;
  font-size: 0.86rem;
}

.proof-body {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  padding: 18px;
}

.api-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.api-stack {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.api-status span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.api-status.online {
  border-color: #bedbd6;
  background: var(--teal-soft);
  color: var(--teal);
}

.api-status.online span {
  background: var(--teal);
}

.api-status.offline {
  border-color: #e7c1bd;
  background: var(--red-soft);
  color: var(--red);
}

.api-status.offline span {
  background: var(--red);
}

.field-label {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.field-label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.field-label input,
.field-label select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  font-size: 0.94rem;
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px dashed #9aa8ba;
  border-radius: 8px;
  background: #f7f8fa;
  color: #334155;
  padding: 0 12px;
  font-weight: 800;
}

.file-drop input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.run-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--orange-dark);
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  cursor: pointer;
  padding: 0 14px;
  font-weight: 800;
}

.run-button:disabled {
  border-color: #c8d0dc;
  background: #d8dee8;
  color: #657085;
  cursor: not-allowed;
}

.proof-error {
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: var(--red-soft);
  color: var(--red);
  padding: 10px;
  font-size: 0.85rem;
}

.portal-error {
  margin-bottom: 18px;
}

.proof-result {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  border-radius: 8px;
  background: var(--teal-soft);
  padding: 10px;
}

.proof-result.pending-review {
  background: var(--blue-soft);
}

.proof-result-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.proof-result-header span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-result-header small {
  color: #4b635f;
  font-size: 0.78rem;
  font-weight: 800;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 1px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #bedbd6;
  border-radius: 8px;
  background: #bedbd6;
}

.coverage-grid span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-height: 50px;
  background: #fff;
  color: #4b635f;
  padding: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.coverage-grid strong {
  color: var(--teal);
  font-size: 1rem;
}

.download-button {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  border-radius: 8px;
  background: var(--blue-deep);
  color: #fff;
  padding: 10px 12px;
  text-decoration: none;
}

.download-button:hover {
  background: #0f2858;
}

.download-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}

.download-filename {
  color: #dffbf4;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.case-workspace-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid #bedbd6;
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.case-workspace-link:hover {
  background: var(--teal-soft);
}

.detail-shell {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  min-height: 100vh;
  padding: 24px;
}

.detail-hero,
.detail-grid {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.detail-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.detail-actions,
.detail-error-head {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.detail-error-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.role-switcher {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: 170px;
}

.role-switcher span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.detail-tags span,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.detail-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
}

.detail-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.checkout-notice {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 12px 14px;
}

.checkout-notice strong {
  font-size: 0.95rem;
}

.checkout-notice span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.checkout-notice.success {
  border-color: #bedbd6;
  background: var(--teal-soft);
}

.checkout-notice.success strong {
  color: var(--teal);
}

.checkout-notice.warning {
  border-color: #e8ceb0;
  background: var(--amber-soft);
}

.checkout-notice.warning strong {
  color: var(--amber);
}

.empty-state {
  padding: 18px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  cursor: pointer;
  padding: 0 12px;
  font-weight: 800;
}

.secondary-button:hover {
  background: var(--panel-soft);
}

.secondary-button.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 1px;
  gap: 1px;
  background: var(--line);
}

.detail-metrics span {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-height: 76px;
  background: var(--panel);
  color: var(--muted);
  padding: 14px;
  font-size: 0.8rem;
  font-weight: 800;
}

.detail-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.bundle-path {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.bundle-path span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.bundle-path code {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 0.78rem;
}

.gate-strip {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
}

.gate-strip span {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-height: 32px;
  color: #334155;
  font-weight: 800;
}

.gate-strip strong {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}

.artifact-list,
.source-table,
.anchor-list {
  display: grid;
}

.artifact-row,
.source-row,
.anchor-row {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.artifact-row,
.source-row {
  display: grid;
  align-items: center;
  grid-gap: 12px;
  gap: 12px;
}

.artifact-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.source-row {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
}

.artifact-main,
.artifact-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.artifact-main div,
.source-main {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-width: 0;
}

.artifact-main strong,
.source-row strong,
.anchor-head strong {
  overflow-wrap: anywhere;
}

.artifact-main span,
.source-main span,
.anchor-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-main em {
  color: var(--amber);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.source-meta span:not(.status-chip) {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.artifact-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-chip.released {
  background: #effbf8;
  color: var(--teal);
}

.status-chip.pending {
  background: #fff4dd;
  color: var(--amber);
}

.status-chip.reviewer {
  background: #f5f3ff;
  color: var(--violet);
}

.status-chip.readable {
  background: #effbf8;
  color: var(--teal);
}

.status-chip.needs-ocr {
  background: #fff4dd;
  color: var(--amber);
}

.status-chip.failed {
  background: #fee2e2;
  color: var(--red);
}

.secondary-button.approve {
  border-color: #b9ded7;
  color: var(--teal);
}

.secondary-button.danger {
  border-color: #fecaca;
  color: var(--red);
}

.secondary-button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.workspace-actions {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, auto) minmax(150px, auto);
  grid-gap: 14px;
  gap: 14px;
  padding: 18px;
}

.file-drop.disabled {
  background: var(--panel-soft);
  color: var(--muted);
  cursor: not-allowed;
}

.file-drop.disabled input {
  cursor: not-allowed;
}

.reviewer-run {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.anchor-row {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.anchor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.anchor-row p {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .content-grid,
  .content-grid.client-portal,
  .metrics-band,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.client-portal .right-rail {
    order: 0;
  }

  .detail-hero,
  .detail-actions,
  .artifact-row,
  .workspace-actions,
  .source-row {
    grid-template-columns: 1fr;
  }

  .detail-actions {
    align-items: stretch;
  }

  .detail-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .artifact-meta {
    justify-content: flex-start;
  }

  .source-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 16px;
  }

  .topbar,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .nav-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .table-row {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
    padding: 14px 16px;
  }

  .table-head {
    display: none;
  }
}

