@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --page: #1f1f1f;
  --shell: #2a2a2a;
  --sidebar: #111111;
  --card: #101010;
  --card-soft: #151515;
  --line: #646464;
  --line-soft: #474747;
  --text: #f7f4f2;
  --muted: #cdc6c0;
  --subtle: #9d9892;
  --gold: #ffcc05;
  --gold-dim: #cda200;
  --green: #49c963;
  --warn: #f0c443;
  --fail: #ff6b6b;
  --radius-shell: 15px;
  --radius-card: 9px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 204, 5, 0.03), transparent 28%),
    radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1.2px),
    #171717;
  background-size: auto, 14px 14px, auto;
  color: var(--text);
  font-family: "Hanken Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.35;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

form {
  margin: 0;
}

.sentinel-shell {
  padding: 36px 24px 28px;
}

.sidebar {
  position: fixed;
  z-index: 20;
  top: 36px;
  bottom: 28px;
  left: 24px;
  display: flex;
  width: 192px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: var(--radius-shell) 0 0 var(--radius-shell);
  background: var(--sidebar);
  overflow: hidden;
}

.sidebar-brand {
  display: grid;
  gap: 3px;
  padding: 31px 24px 18px;
}

.sidebar-brand strong {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
}

.sidebar-brand span,
.panel-heading > div > span,
.summary-card > span,
.metric-card header span,
.system-status-card small,
.collection-meta small,
.sidebar-foot a,
.resource-bars span,
.section-details summary small,
.micro-stat-row,
.certificate-card small {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sidebar-brand span {
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}

.sidebar-nav {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 6px 18px;
}

.sidebar-nav a,
.sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  border-left: 3px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sidebar-nav a span,
.sidebar-foot a span {
  display: inline-flex;
  width: 14px;
  justify-content: center;
  font-size: 14px;
}

.sidebar-nav a:hover,
.sidebar-foot a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-nav a.active {
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-foot {
  display: grid;
  gap: 1px;
  margin: auto 8px 13px;
  padding: 17px 10px 10px;
  border-top: 1px solid var(--line);
}

.sidebar-foot a {
  min-height: 31px;
  padding: 0 11px;
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
}

.deploy-button {
  min-height: 34px;
  width: 154px;
  margin: 10px auto 0;
  border: 0;
  border-radius: 7px;
  background: var(--gold);
  color: #fffdfa;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.main-canvas {
  width: min(100%, 662px);
  min-height: calc(100vh - 64px);
  margin-left: 191px;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-shell) var(--radius-shell) 0;
  background: var(--shell);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.appbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 21px;
  border-bottom: 1px solid var(--line);
  background: #131313;
}

.appbar-left,
.appbar-right,
.top-nav,
.primary-actions,
.collection-meta,
.section-kicker,
.system-status-card,
.metric-card header,
.split-metric,
.panel-heading,
.issue-item > div,
.check-item > div {
  display: flex;
  align-items: center;
}

.appbar-left {
  gap: 29px;
  min-width: 0;
}

.appbar-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.top-nav {
  gap: 18px;
}

.top-nav a {
  min-height: 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.top-nav a.active {
  border-bottom: 2px solid var(--gold);
}

.appbar-right {
  gap: 12px;
  margin-left: auto;
}

.search-shell {
  display: flex;
  width: 171px;
  height: 27px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #767676;
  border-radius: 999px;
  background: #202020;
  color: #fff;
}

.search-shell span {
  color: #d9d9d9;
  font-size: 15px;
}

.search-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 9px;
}

.search-shell input::placeholder {
  color: #b8b2ac;
}

.notification {
  font-size: 15px;
  line-height: 1;
}

.profile-orb {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #777;
  border-radius: 999px;
  background: #23525a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.mini-button {
  display: none;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-page {
  display: grid;
  gap: 27px;
  padding: 28px 21px 42px;
}

.flash {
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-card);
  padding: 13px 16px;
  background: var(--card);
  color: var(--text);
  font-weight: 700;
}

.flash.warn {
  border-left-color: var(--warn);
}

.flash.fail {
  border-left-color: var(--fail);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 195px;
  align-items: center;
  gap: 16px;
}

.hero-copy {
  display: grid;
  gap: 11px;
}

.section-kicker {
  gap: 12px;
}

.section-kicker span {
  color: var(--gold-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-kicker i {
  width: 252px;
  height: 1px;
  background: var(--line);
}

.hero-copy h1 {
  margin: 0;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.hero-copy p {
  max-width: 445px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.38;
  font-weight: 500;
}

.system-status-card {
  min-height: 68px;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  background: var(--card);
}

.system-status-card div {
  display: grid;
  gap: 4px;
}

.system-status-card small {
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.system-status-card strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.system-status-card strong span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.system-status-card.warn strong span {
  background: var(--warn);
}

.system-status-card.fail strong span {
  background: var(--fail);
}

.system-status-card.muted strong span {
  background: #9f9f9f;
}

.system-status-card b {
  color: var(--gold);
  font-size: 24px;
  font-weight: 700;
}

.action-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.primary-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.gold-action,
.dark-action,
.outline-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0 23px;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  transition: transform 140ms ease, opacity 140ms ease, border-color 140ms ease;
}

.gold-action:hover,
.dark-action:hover,
.outline-action:hover,
.deploy-button:hover {
  transform: translateY(-1px);
}

.gold-action {
  border: 0;
  background: var(--gold);
  color: #111;
}

.dark-action {
  border: 0;
  background: #050505;
  color: var(--text);
}

.outline-action {
  border: 1px solid #616161;
  background: transparent;
  color: var(--text);
}

.compact-download {
  min-width: 52px;
  padding: 0 13px;
}

.collection-meta {
  gap: 13px;
  color: var(--text);
}

.collection-meta > div {
  display: grid;
  gap: 1px;
  text-align: right;
}

.collection-meta small {
  color: var(--subtle);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collection-meta strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
}

.collection-meta i {
  width: 1px;
  height: 29px;
  background: var(--line);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card,
.summary-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.metric-card {
  position: relative;
  display: grid;
  min-height: 128px;
  align-content: start;
  gap: 3px;
  padding: 17px 15px 14px;
  overflow: hidden;
}

.metric-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  content: "";
  background: var(--gold-dim);
}

.check-card-summary::before {
  background: var(--green);
}

.metric-card header {
  justify-content: space-between;
  min-height: 20px;
  gap: 12px;
}

.metric-card header span {
  color: var(--text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.metric-card header b {
  color: var(--gold);
  font-size: 16px;
  font-weight: 700;
}

.check-card-summary header b {
  color: var(--green);
}

.metric-card > strong {
  margin-top: 0;
  color: var(--text);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.metric-card > strong em,
.summary-card strong em {
  font-size: 14px;
  font-style: normal;
}

.metric-card p,
.summary-card p,
.panel-copy,
.issue-item p,
.check-item p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.metric-rule {
  display: block;
  width: 108px;
  height: 2px;
  margin: 4px 0 5px;
  background: var(--gold-dim);
}

.health-card p {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.split-metric {
  gap: 12px;
  margin-top: 2px;
}

.split-metric > strong {
  display: grid;
  gap: 1px;
  color: var(--text);
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.split-metric > strong small {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.split-metric > strong:last-child small {
  color: var(--text);
}

.split-metric > i {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.mini-bars {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}

.mini-bars span {
  width: 16px;
  height: 15px;
  background: #8d8987;
}

.certificate-card > strong,
.traffic-card > strong {
  margin-top: 0;
  font-size: 24px;
}

.certificate-card p {
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
}

.certificate-card small {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  padding: 2px 5px;
  background: rgba(73, 201, 99, 0.18);
  color: var(--green);
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.traffic-card svg {
  width: 111px;
  height: 21px;
  margin-top: 3px;
  overflow: visible;
}

.traffic-card polyline {
  fill: none;
  stroke: #e2bb3f;
  stroke-width: 2.5;
  stroke-linecap: square;
  stroke-linejoin: bevel;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1.28fr 1.2fr 1.12fr;
  gap: 16px;
}

.summary-card {
  display: grid;
  min-height: 226px;
  align-content: start;
  padding: 23px 21px;
}

.summary-card > span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.summary-card strong {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.service-summary strong {
  font-size: 34px;
}

.uptime-bars {
  display: flex;
  gap: 4px;
  margin-top: 49px;
}

.uptime-bars i {
  display: block;
  width: 9px;
  height: 22px;
  background: var(--green);
}

.service-summary small {
  margin-top: 41px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.report-summary strong {
  margin-top: 8px;
  font-size: 33px;
}

.report-summary p {
  max-width: 151px;
  margin: 79px 0 0 35px;
  font-size: 11px;
}

.report-summary a,
.export-summary a {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.report-summary a {
  margin-top: 12px;
}

.export-summary {
  justify-items: center;
  text-align: center;
}

.document-preview {
  position: relative;
  width: 151px;
  height: 84px;
  border-radius: 4px;
  background: #f6f4f1;
  overflow: hidden;
}

.document-preview::before,
.document-preview::after,
.document-preview span,
.document-preview i,
.document-preview b {
  position: absolute;
  content: "";
  display: block;
  background: #dad8d6;
}

.document-preview::before {
  top: 15px;
  left: 15px;
  width: 49px;
  height: 18px;
}

.document-preview::after {
  top: 14px;
  right: 14px;
  width: 47px;
  height: 24px;
}

.document-preview span {
  bottom: 15px;
  left: 15px;
  width: 48px;
  height: 22px;
}

.document-preview i {
  bottom: 15px;
  right: 14px;
  width: 48px;
  height: 22px;
}

.document-preview b {
  top: 42px;
  left: 15px;
  width: 106px;
  height: 4px;
}

.export-summary strong {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}

.export-summary p {
  max-width: 148px;
  margin-top: 9px;
  font-size: 11px;
}

.export-summary a {
  margin-top: 10px;
}

.operations-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
}

.panel {
  padding: 20px;
}

.panel-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 17px;
}

.panel-heading > div {
  display: grid;
  gap: 5px;
}

.panel-heading > div > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.panel-heading > b {
  display: inline-flex;
  min-width: 31px;
  height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 13px;
  font-weight: 900;
}

.issue-list,
.history-list,
.resource-bars,
.check-grid {
  display: grid;
  gap: 10px;
}

.issue-item,
.check-item,
.history-item,
.empty-state,
.data-details,
.trend-row {
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--card-soft);
}

.issue-item,
.check-item {
  padding: 12px;
}

.issue-item {
  border-left: 3px solid var(--warn);
}

.issue-item.fail {
  border-left-color: var(--fail);
}

.issue-item.ok {
  border-left-color: var(--green);
}

.issue-item > div,
.check-item > div {
  justify-content: space-between;
  gap: 12px;
}

.issue-item strong,
.check-item strong {
  font-size: 13px;
  font-weight: 900;
}

.issue-item span {
  color: var(--warn);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
}

.issue-item.fail span {
  color: var(--fail);
}

.issue-item p,
.check-item p {
  margin-top: 8px;
}


.full-width {
  width: 100%;
}


.status-chip {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 900;
}

.status-chip.ok {
  color: var(--green);
}

.status-chip.warn {
  color: var(--warn);
}

.status-chip.fail {
  color: var(--fail);
}

.panel-copy {
  margin-bottom: 15px;
  color: var(--muted);
}

.resource-bars > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.resource-bars span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.resource-bars strong {
  font-size: 11px;
  font-weight: 900;
}

.resource-bars i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #252525;
  overflow: hidden;
}

.resource-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}

.micro-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 9px;
}

.micro-stat-row strong {
  color: var(--text);
}

.data-details {
  margin-top: 13px;
  padding: 12px;
}

.data-details summary,
.section-details summary {
  cursor: pointer;
  list-style: none;
}

.data-details summary::-webkit-details-marker,
.section-details summary::-webkit-details-marker {
  display: none;
}

.data-details summary {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.table-wrap {
  width: 100%;
  margin-top: 13px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  color: var(--text);
  font-size: 11px;
}

th,
td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--subtle);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  font-weight: 600;
}

.traffic-panel {
  display: grid;
}

.traffic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr);
  gap: 16px;
}

.traffic-layout h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
}

.trend-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.trend-row {
  display: grid;
  grid-template-columns: 78px 1fr 58px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  font-size: 10px;
}

.trend-row > span,
.trend-row > strong {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
}

.trend-row > div {
  display: grid;
  gap: 4px;
}

.trend-row i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #282828;
  overflow: hidden;
}

.trend-row b {
  display: block;
  height: 100%;
  background: var(--gold);
}

.trend-row i:last-child b {
  background: var(--green);
}

.section-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.section-details summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.check-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 17px;
}

.check-item {
  border-left: 3px solid var(--green);
}

.check-item.warn {
  border-left-color: var(--warn);
}

.check-item.fail {
  border-left-color: var(--fail);
}

.check-item pre {
  margin: 12px 0 0;
  overflow: auto;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 11px;
  padding: 11px 12px;
}

.history-item strong {
  font-size: 12px;
  font-weight: 900;
}

.history-item span {
  color: var(--green);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 900;
}

.history-item.warn span {
  color: var(--warn);
}

.history-item.fail span {
  color: var(--fail);
}

.history-item small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
}

.empty-state,
.empty-dashboard {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.empty-state.success {
  border-left: 3px solid var(--green);
}

.empty-dashboard {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
}

.empty-dashboard h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 32px;
}

.empty-dashboard p {
  margin: 0 0 16px;
}

.audit-grid {
  align-items: start;
}

.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.login-card .eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 1;
}

.login-card .muted {
  margin: 0 0 24px;
  color: var(--muted);
}

.login-card form {
  display: grid;
  gap: 16px;
}

.login-card label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-card input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: #191919;
  color: var(--text);
}

.login-card button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  cursor: pointer;
  font-weight: 900;
}

.login-card .alert {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--fail);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
}

@media (min-width: 1080px) {
  .main-canvas {
    width: calc(100vw - 48px - 191px);
    max-width: 1090px;
  }
}

@media (max-width: 980px) {
  .sentinel-shell {
    padding: 14px;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
    border-right: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
  }

  .sidebar-brand {
    padding: 22px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 14px;
  }

  .sidebar-foot {
    display: none;
  }

  .main-canvas {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    border-radius: 0 0 14px 14px;
  }

  .appbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 14px 18px;
  }

  .appbar-left {
    gap: 18px;
  }

  .top-nav {
    display: none;
  }

  .search-shell {
    display: none;
  }

  .mini-button {
    display: inline-flex;
  }

  .hero-grid,
  .metric-grid,
  .summary-grid,
  .operations-grid,
  .detail-grid,
  .traffic-layout {
    grid-template-columns: 1fr;
  }

  .system-status-card {
    justify-self: stretch;
  }

  .section-kicker i {
    width: auto;
    flex: 1;
  }

  .collection-meta {
    width: 100%;
    justify-content: flex-start;
  }

  .collection-meta > div {
    text-align: left;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .dashboard-page {
    padding: 22px 16px 34px;
  }

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

  .appbar-right {
    gap: 8px;
  }

  .profile-orb {
    display: none;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .primary-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .gold-action,
  .dark-action,
  .outline-action {
    width: 100%;
  }

  .collection-meta {
    display: grid;
    gap: 8px;
  }

  .collection-meta i {
    display: none;
  }

  .panel-heading h2 {
    font-size: 20px;
  }
}


.portal-nav {
  position: sticky;
  z-index: 25;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  padding: 14px clamp(16px, 2vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(19, 19, 19, 0.96);
  backdrop-filter: blur(16px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  text-decoration: none;
}

.portal-brand img,
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: contain;
  background: #090909;
  border: 1px solid var(--line-soft);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

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

.brand-copy strong {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.portal-tabs {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
}

.portal-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.portal-tabs a:hover {
  border-color: var(--line-soft);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.portal-tabs a.active {
  border-color: rgba(255, 204, 5, 0.7);
  background: var(--gold);
  color: #111;
}

.signout-form {
  display: flex;
  justify-content: flex-end;
}

.mini-button.visible {
  display: inline-flex;
  align-items: center;
}

.sentinel-shell {
  padding: clamp(12px, 2vw, 28px);
}

.main-canvas {
  width: min(1440px, 100%);
  min-height: calc(100vh - clamp(24px, 4vw, 56px));
  margin: 0 auto;
  border-radius: var(--radius-shell);
}

.dashboard-page {
  padding: clamp(18px, 2.2vw, 34px);
}

.hero-grid,
.summary-grid,
.operations-grid,
.detail-grid,
.audit-grid,
.metric-grid,
.traffic-layout {
  width: 100%;
}

.gold-action,
.login-card button {
  color: #111;
}

[id] {
  scroll-margin-top: 112px;
}

@media (max-width: 980px) {
  .portal-nav {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: auto;
  }

  .portal-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
    order: 3;
    padding-bottom: 2px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .portal-brand img,
  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .main-canvas {
    min-height: calc(100vh - 24px);
  }
}

@media (max-width: 640px) {
  .sentinel-shell {
    padding: 8px;
  }

  .main-canvas {
    border-radius: 12px;
  }

  .portal-nav {
    padding: 12px;
  }

  .portal-brand {
    gap: 10px;
  }

  .brand-copy small {
    font-size: 9px;
  }

  .dashboard-page {
    gap: 20px;
    padding: 16px 12px 28px;
  }

  .primary-actions,
  .collection-meta {
    align-items: stretch;
  }

  .gold-action,
  .dark-action,
  .outline-action {
    width: 100%;
  }
}


body {
  overflow-x: hidden;
}

.main-canvas,
.dashboard-page,
.portal-nav,
.portal-tabs,
.portal-brand,
.brand-copy,
.metric-grid > *,
.summary-grid > *,
.operations-grid > *,
.detail-grid > *,
.traffic-layout > *,
.panel,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

.infrastructure-grid,
.security-grid {
  grid-template-columns: 1fr;
}

.plain-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plain-language-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: var(--card);
}

.plain-language-card > span {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plain-language-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.plain-language-card p,
.report-summary small,
.export-summary small,
.traffic-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.plain-language-card strong {
  color: var(--text);
}

.report-summary small {
  margin-top: 14px;
}

.export-summary small {
  margin-top: 10px;
  max-width: 190px;
}

.traffic-card {
  gap: 7px;
}

.traffic-card small {
  font-size: 10px;
  line-height: 1.35;
}

.collection-meta strong,
.brand-copy strong,
.brand-copy small,
.plain-language-card p,
.panel-copy,
.empty-state,
.history-item strong,
.history-item small {
  overflow-wrap: anywhere;
}

.table-wrap {
  -webkit-overflow-scrolling: touch;
}

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

@media (max-width: 640px) {
  .portal-nav {
    grid-template-columns: 1fr;
  }

  .signout-form {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .portal-tabs {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
  }

  .portal-brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .collection-meta strong {
    white-space: normal;
  }

  .plain-language-card,
  .panel,
  .summary-card {
    padding: 16px;
  }

  .plain-language-card h2 {
    font-size: 18px;
  }
}
