:root {
  --brand-blue: #0a00ff;
  --brand-blue-deep: #0600af;
  --brand-orange: #f7a214;
  --brand-orange-deep: #cb7d00;
  --ink: #102043;
  --ink-soft: #5e6d96;
  --canvas: #f4f7ff;
  --canvas-deep: #e8eefc;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --panel-dark: rgba(8, 13, 44, 0.9);
  --outline: rgba(10, 0, 255, 0.12);
  --success: #167a5f;
  --warning: #cb7d00;
  --shadow-soft: 0 24px 64px rgba(12, 25, 75, 0.14);
  --shadow-strong: 0 24px 80px rgba(10, 0, 255, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: 180ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(247, 162, 20, 0.24), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(10, 0, 255, 0.18), transparent 25%),
    linear-gradient(180deg, #f8faff 0%, var(--canvas) 48%, var(--canvas-deep) 100%);
  color: var(--ink);
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
}

body {
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.auth-pending .page-shell,
body.auth-locked .page-shell {
  display: none;
}

.auth-gate {
  display: none;
  min-height: 100vh;
  padding: 32px 20px;
  align-items: center;
  justify-content: center;
}

body.auth-pending .auth-gate,
body.auth-locked .auth-gate {
  display: flex;
}

.auth-gate-shell {
  width: min(560px, 100%);
  padding: 42px 34px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at top right, rgba(247, 162, 20, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.92));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.auth-gate-logo {
  width: min(260px, 72vw);
  margin: 0 auto 22px;
  display: block;
}

.auth-gate-kicker {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-orange-deep);
}

.auth-gate-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.auth-gate-message {
  margin: 16px auto 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.auth-gate-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  padding: 24px 18px 42px;
}

.atmosphere {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.atmosphere-blue {
  top: -120px;
  right: -40px;
  background: rgba(10, 0, 255, 0.28);
}

.atmosphere-orange {
  bottom: -140px;
  left: -70px;
  background: rgba(247, 162, 20, 0.24);
}

.site-chrome,
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1380px;
  margin: 0 auto;
}

.site-chrome {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 150px;
  max-width: 42vw;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-overline {
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(10, 0, 255, 0.12), rgba(247, 162, 20, 0.12));
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-blue);
  border-radius: 999px;
}

.nav-cluster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link,
.ghost-action,
.primary-action {
  border: 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.nav-link:hover,
.ghost-action:hover,
.primary-action:hover,
.action-card:hover {
  transform: translateY(-1px);
}

.nav-link {
  padding: 12px 15px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
}

.nav-link.is-active {
  background: linear-gradient(135deg, var(--brand-blue), #3c33ff);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(10, 0, 255, 0.22);
}

.utility-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.is-hidden {
  display: none !important;
}

.status-stack {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.connection-pill.tone-ready {
  background: rgba(22, 122, 95, 0.14);
  color: var(--success);
}

.connection-pill.tone-draft {
  background: rgba(247, 162, 20, 0.14);
  color: var(--brand-orange-deep);
}

.sync-caption {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.auth-stack {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.auth-caption {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-actions .ghost-action,
.auth-actions .primary-action {
  padding: 10px 16px;
}

.primary-action,
.ghost-action {
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-action {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-deep));
  color: #fffdf7;
  box-shadow: 0 18px 30px rgba(247, 162, 20, 0.26);
}

.ghost-action {
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
}

.app-shell {
  display: grid;
}

.view-panel {
  display: none;
  gap: 22px;
}

.view-panel.is-active {
  display: grid;
}

.hero-grid,
.landing-grid,
.lookup-grid,
.compose-grid,
.reports-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
}

.hero-panel,
.surface-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-panel::before,
.surface-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 35%);
  pointer-events: none;
}

.hero-panel {
  padding: 34px;
}

.hero-panel-primary {
  background:
    radial-gradient(circle at top right, rgba(247, 162, 20, 0.26), transparent 26%),
    linear-gradient(135deg, rgba(10, 0, 255, 0.98), rgba(8, 11, 58, 0.96));
  color: #f8faff;
  box-shadow: var(--shadow-strong);
}

.hero-panel-primary::before {
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.16), transparent 30%),
    radial-gradient(circle at 80% 82%, rgba(247, 162, 20, 0.2), transparent 26%);
}

.hero-panel-primary .eyebrow,
.hero-panel-primary .hero-text {
  color: rgba(248, 250, 255, 0.8);
}

.hero-panel-primary .ghost-action {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.hero-panel-primary .primary-action {
  box-shadow: 0 20px 36px rgba(247, 162, 20, 0.28);
}

.hero-panel-brief {
  background:
    radial-gradient(circle at top left, rgba(10, 0, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 255, 0.88));
}

.eyebrow,
.section-kicker,
.action-kicker,
.brief-label {
  display: inline-block;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
}

.eyebrow,
.section-kicker,
.brief-label {
  color: var(--brand-orange-deep);
}

.hero-panel-primary h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.04rem;
  line-height: 1.68;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 24px;
}

.hero-panel-compact .hero-actions {
  margin-top: 0;
}

.hero-panel-compact .metric-rail {
  margin-top: 18px;
}

.metric-rail {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-rail-wide {
  margin-top: 0;
}

.metric-chip {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.metric-chip strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.metric-chip p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.metric-rail:not(.metric-rail-wide) .metric-chip {
  color: #ffffff;
}

.metric-rail-wide .metric-chip {
  background: var(--panel-strong);
  border: 1px solid rgba(10, 0, 255, 0.08);
  color: var(--ink);
}

.brief-stack {
  display: grid;
  gap: 14px;
}

.brief-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(10, 0, 255, 0.04);
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.brief-card strong {
  display: block;
  font-size: 1.15rem;
}

.brief-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.action-card {
  text-align: left;
  padding: 24px;
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  min-height: 220px;
}

.action-card strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.action-card p {
  margin: 12px 0 0;
  line-height: 1.6;
}

.action-card-blue {
  background: linear-gradient(160deg, #0a00ff, #151c88);
  color: #ffffff;
}

.action-card-orange {
  background: linear-gradient(160deg, #f7a214, #e18400);
  color: #ffffff;
}

.action-card-light {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(238, 243, 255, 0.96));
  color: var(--ink);
}

.action-card-dark {
  background: linear-gradient(160deg, #11152f, #1e2d6f);
  color: #ffffff;
}

.action-card .action-kicker {
  color: inherit;
  opacity: 0.76;
}

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

.surface-card {
  padding: 24px;
}

.surface-card-wide {
  min-width: 0;
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

.section-heading h2,
.workspace-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.12;
}

.compact-heading h2 {
  font-size: 1.28rem;
}

.workspace-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.list-stack,
.selection-list,
.report-list,
.bar-chart {
  display: grid;
  gap: 12px;
}

.list-card,
.selection-card,
.report-row,
.bar-row,
.spotlight-card,
.summary-card {
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.list-card,
.report-row,
.spotlight-card,
.summary-card {
  padding: 18px;
}

.list-card strong,
.report-row strong,
.summary-card strong {
  display: block;
  font-size: 1.02rem;
}

.list-card p,
.report-row p,
.summary-card p,
.selection-summary p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.list-meta,
.pill-row,
.selection-meta,
.report-meta,
.spotlight-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
}

.tag.tone-draft,
.pill.tone-draft {
  background: rgba(247, 162, 20, 0.14);
  color: var(--brand-orange-deep);
}

.tag.tone-processed,
.tag.tone-sent,
.pill.tone-processed,
.pill.tone-sent {
  background: rgba(22, 122, 95, 0.14);
  color: var(--success);
}

.tag.tone-ready,
.tag.tone-batch-in-progress,
.pill.tone-ready,
.pill.tone-batch-in-progress {
  background: rgba(10, 0, 255, 0.1);
  color: var(--brand-blue);
}

.lookup-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.85fr);
}

.sidebar-stack {
  display: grid;
  gap: 22px;
}

.search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}

.field {
  display: grid;
  gap: 8px;
  flex: 1 1 280px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(10, 0, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.field-checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand-orange-deep);
}

.field-checkbox span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.field span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(10, 0, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(247, 162, 20, 0.46);
  box-shadow: 0 0 0 4px rgba(247, 162, 20, 0.12);
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.table-shell {
  position: relative;
  overflow: auto;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.lookup-table-shell {
  max-height: 760px;
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(10, 0, 255, 0.08);
  vertical-align: top;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(241, 245, 255, 0.98);
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.data-table tbody tr:hover {
  background: rgba(10, 0, 255, 0.03);
}

.data-table tbody tr.is-selected {
  background: rgba(247, 162, 20, 0.08);
}

.data-table-tight {
  min-width: 720px;
}

.lookup-table {
  min-width: 0;
  table-layout: fixed;
}

.lookup-table th:nth-child(1),
.lookup-table td.col-part {
  width: 34%;
}

.lookup-table th:nth-child(2),
.lookup-table td.col-work-order {
  width: 23%;
}

.lookup-table th:nth-child(3),
.lookup-table td.col-quantity {
  width: 17%;
}

.lookup-table th:nth-child(4),
.lookup-table td.col-cost {
  width: 12%;
}

.lookup-table th:nth-child(5),
.lookup-table td.col-action {
  width: 14%;
}

.row-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.row-title strong {
  font-size: 0.98rem;
}

.row-title span {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.row-meta-line {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.row-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.table-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.table-stack strong {
  font-size: 0.95rem;
}

.table-stack span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.table-stack-compact strong {
  font-size: 0.9rem;
}

.col-cost {
  white-space: nowrap;
  font-weight: 700;
}

.col-action {
  text-align: right;
}

.table-action {
  min-width: 92px;
  padding-inline: 14px;
}

.detail-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 28px;
  text-align: center;
  color: var(--ink-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 245, 255, 0.74));
  border: 1px dashed rgba(10, 0, 255, 0.16);
}

.spotlight-card strong {
  font-size: 1.3rem;
}

.spotlight-card h3,
.report-detail-header h3 {
  margin: 0;
  font-size: 1.32rem;
}

.spotlight-card p,
.report-detail-header p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.selection-summary {
  margin-bottom: 14px;
}

.selection-summary strong {
  display: block;
  font-size: 1.06rem;
}

.selection-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.selection-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.selection-card strong {
  display: block;
}

.selection-card p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
  font-weight: 800;
}

.compose-grid {
  grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.composer-summary {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.summary-card {
  display: grid;
  gap: 6px;
}

.notice-banner {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 0, 255, 0.08);
  background: var(--panel-strong);
  font-weight: 700;
}

.notice-info {
  color: var(--brand-blue);
  background: rgba(10, 0, 255, 0.06);
}

.notice-success {
  color: var(--success);
  background: rgba(22, 122, 95, 0.1);
}

.notice-error {
  color: #8a2031;
  background: rgba(180, 38, 63, 0.1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 13, 44, 0.52);
  backdrop-filter: blur(8px);
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-shell {
  position: relative;
  width: min(100%, 620px);
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-strong);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
  font-weight: 800;
}

.modal-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.08;
}

.modal-header p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.modal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 14px;
}

.modal-error {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(180, 38, 63, 0.1);
  color: #8a2031;
  font-weight: 700;
}

.modal-error.is-hidden {
  display: none;
}

.modal-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-actions {
  margin-top: 22px;
  justify-content: flex-end;
}

.reports-grid {
  align-items: start;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
}

.access-admin-grid {
  align-items: start;
}

.access-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.access-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(239, 242, 255, 0.86);
  border: 1px solid rgba(205, 214, 246, 0.9);
}

.access-summary-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-strong);
}

.access-activity-card {
  padding: 16px 18px;
  border: 1px solid rgba(215, 221, 245, 0.95);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
}

.access-activity-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.access-activity-card p {
  margin: 0;
}

.access-activity-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-row {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.report-row.is-active {
  border-color: rgba(247, 162, 20, 0.5);
  box-shadow: 0 18px 34px rgba(247, 162, 20, 0.18);
}

.report-detail-shell {
  display: grid;
  gap: 18px;
}

.report-actions {
  padding-bottom: 4px;
}

.report-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(10, 0, 255, 0.08);
}

.detail-stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-stat {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(10, 0, 255, 0.04);
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.detail-stat span {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.detail-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.18rem;
}

.report-document-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.document-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(10, 0, 255, 0.04);
  border: 1px solid rgba(10, 0, 255, 0.08);
}

.document-card strong {
  display: block;
}

.document-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.table-input {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(10, 0, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}

.table-input:first-child {
  margin-top: 0;
}

.table-input:focus {
  outline: none;
  border-color: rgba(247, 162, 20, 0.46);
  box-shadow: 0 0 0 4px rgba(247, 162, 20, 0.12);
}

.table-input-small {
  min-width: 92px;
}

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

.chart-card {
  min-width: 0;
}

.bar-row {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.bar-label-row strong {
  font-size: 0.98rem;
}

.bar-label-row span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 0, 255, 0.08);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: rgba(10, 0, 255, 0.08);
  color: var(--brand-blue);
}

.empty-row td {
  text-align: center;
  color: var(--ink-soft);
  padding: 22px 16px;
}

@media (max-width: 1180px) {
  .hero-grid,
  .lookup-grid,
  .compose-grid,
  .reports-grid,
  .landing-grid,
  .stats-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .site-chrome {
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 30px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cluster {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 8px;
  }

  .site-chrome.menu-open .nav-cluster {
    display: grid;
  }

  .top-nav,
  .utility-cluster,
  .status-stack,
  .auth-stack {
    justify-content: start;
  }

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

  .utility-cluster {
    gap: 10px;
  }

  .status-stack,
  .auth-stack {
    justify-items: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding-inline: 12px;
  }

  .site-chrome {
    padding: 16px;
  }

  .brand-mark {
    width: 126px;
  }

  .brand-copy {
    display: none;
  }

  .hero-panel,
  .surface-card {
    padding: 20px;
    border-radius: 24px;
  }

  .metric-rail,
  .detail-stat-grid,
  .form-grid,
  .modal-form,
  .top-nav {
    grid-template-columns: 1fr;
  }

  .modal-shell {
    padding: 22px;
    border-radius: 24px;
  }

  .data-table,
  .data-table-tight {
    min-width: 640px;
  }
}
