@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/lexend-deca-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --ink: #e9f1f1;
  --muted: #90a3a6;
  --line: #29383c;
  --paper: #0c1417;
  --white: #141e21;
  --teal: #70bcc0;
  --deep: #153f44;
  --orange: #e2a466;
  --shadow: none;
}

html, body { min-width: 0; }
body, button, input, select, h1, h2, h3, .brand, .metric strong {
  font-family: 'Lexend Deca', Arial, sans-serif;
}
body { background: #0b1215; color: var(--ink); font-size: 12px; line-height: 1.55; }
button, input, select { font-size: 11px; }
h1, h2, h3 { letter-spacing: -.04em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #78cdd0; outline-offset: 2px; }
a { color: #79c5c9; }

.shell { grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  padding: 25px 12px 14px;
  background: #0b1215;
  color: #b8c9ca;
  border-right: 1px solid #1d2b2f;
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 8px 20px; color: #fff; font-size: inherit; }
.app-logo { display: block; width: 29px; height: 29px; flex: none; object-fit: contain; }
.brand .brand-copy { display: grid; gap: 1px; min-width: 0; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.brand-copy strong { color: #f4f8f8; font-size: 14px; font-weight: 650; letter-spacing: -.045em; }
.brand-copy small { color: #93a7a9; font-size: 10px; font-weight: 400; }
.environment-badge { margin-left: auto; padding: 2px 5px; border: 1px solid #68583b; border-radius: 3px; color: #e7bc80; font-size: 8px; font-weight: 650; letter-spacing: .09em; }
.environment-badge:empty { display: none; }
.sidebar-caption { margin: 14px 0 7px; padding: 0 8px; color: #6f898e; font-size: 9px; font-weight: 600; letter-spacing: .11em; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c1ccce;
  text-align: left;
  font-size: 11px;
  font-weight: 450;
}
.sidebar nav button:hover, .sidebar nav button.active { background: #20363a; color: #fff; }
.sidebar nav button.active { font-weight: 600; }
.nav-glyph { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.sidebar-bottom { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #26373c; color: #b5c7c8; font-size: 10px; }
#identity { max-width: 100%; color: #e0ecec; font-weight: 500; overflow-wrap: anywhere; }
.sidebar-bottom .text-button { margin: 4px 0 0 -5px; color: #8ebdbf; font-size: 10px; text-decoration: none; }
.sidebar-bottom .text-button:hover { text-decoration: underline; }

.main-column { min-width: 0; background: #0c1417; }
.topbar { height: 54px; padding: 0 26px; border-bottom: 1px solid #243338; background: #111b1e; color: #9bb0b2; font-size: 11px; font-weight: 400; }
.topbar strong { color: #e5f2f1; font-weight: 550; }
#as-of { color: #799095; font-size: 10px; }
.content { max-width: 1600px; margin: 0 auto; padding: 27px 25px 65px; }
.page-head { align-items: center; margin: 0 0 23px; }
.page-head .eyebrow { display: none; }
.page-head h1 { margin: 0 0 3px; color: #edf7f7; font-size: 22px; line-height: 1.2; font-weight: 600; }
.page-head p:last-child { color: #8ea2a5; font-size: 11px; line-height: 1.6; }

.metric-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid #26363b; border-radius: 8px; background: #141e21; }
.metric-board .metric { min-width: 0; min-height: 106px; margin: 0; padding: 15px 16px; border: 0; border-right: 1px solid #26363b; border-bottom: 1px solid #26363b; border-radius: 0; background: transparent; box-shadow: none; }
.metric-board .metric:nth-child(4n) { border-right: 0; }
.metric-board .metric:nth-last-child(-n+4) { border-bottom: 0; }
.metric-board .metric span { display: block; color: #91a5a8; font-size: 10px; font-weight: 450; }
.metric-board .metric strong { display: block; margin: 8px 0 3px; color: #eff7f5; font-size: 27px; line-height: 1.1; font-weight: 550; letter-spacing: -.05em; }
.metric-board .metric.attention strong { color: #f0ad72; }
.metric-board .metric small { display: block; color: #7e999b; font-size: 9px; line-height: 1.4; }

.workspace-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 25px; }
.workspace-metrics .metric { min-width: 0; min-height: 112px; padding: 17px 19px; border: 1px solid #26363b; border-radius: 8px; background: #141e21; box-shadow: none; }
.workspace-metrics .metric span { display: block; color: #91a5a8; font-size: 10px; font-weight: 450; }
.workspace-metrics .metric strong { display: block; margin: 13px 0 0; color: #eff7f5; font-size: 25px; line-height: 1.2; font-weight: 550; letter-spacing: -.045em; overflow-wrap: anywhere; }
.workspace-metrics .metric:last-child strong { font-size: 19px; letter-spacing: -.035em; }
.workspace-metrics .metric small { display: block; margin-top: 5px; color: #8fbfc0; font-size: 11px; line-height: 1.35; font-variant-numeric: tabular-nums; }

.ops-dashboard-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(270px, .9fr); gap: 18px; margin-top: 19px; }
.panel { min-width: 0; margin: 0; padding: 0; border: 1px solid #26363b; border-radius: 8px; background: #141e21; box-shadow: none; }
.panel-title { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 11px 15px; border-bottom: 1px solid #26363b; }
.panel-title h3 { margin: 0; color: #e9f3f2; font-size: 11px; font-weight: 600; letter-spacing: -.02em; }
.panel-title span { color: #81979a; font-size: 10px; }
.panel-title button { margin-left: auto; border: 0; background: transparent; color: #78bec1; font-size: 10px; font-weight: 550; }
.panel-title button:hover { text-decoration: underline; }
.chart-wrap { display: flex; height: 185px; padding: 13px 15px 0; }
.chart-scale { display: flex; flex: none; flex-direction: column; justify-content: space-between; width: 20px; padding: 25px 0 20px; color: #647c80; font-size: 9px; }
.activity-chart { width: 100%; height: 100%; overflow: visible; }
.chart-grid { fill: none; stroke: #283b3e; stroke-width: 1; }
.chart-line { fill: none; stroke: #6ab3b7; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: #8ed2d2; }
.chart-labels { display: flex; justify-content: space-between; padding: 1px 17px 11px 37px; color: #6f898d; font-size: 9px; }
.panel-note { margin: 0; padding: 10px 15px 14px; border-top: 1px solid #26363b; color: #71898d; font-size: 9px; }
.attention-item { display: grid; gap: 3px; margin: 0 15px; padding: 14px 0 14px 11px; border-bottom: 1px solid #26363b; border-left: 2px solid #d39459; }
.attention-item:last-child { border-bottom: 0; }
.attention-item strong { color: #e8f0ef; font-size: 10px; font-weight: 550; }
.attention-item span { color: #879da0; font-size: 10px; }
.empty-inline { margin: 0; padding: 20px 15px; color: #80999b; font-size: 10px; }
.lower-row { grid-template-columns: minmax(0, 1.8fr) minmax(270px, .9fr); }
.ops-dashboard-side { display: grid; align-content: start; gap: 17px; min-width: 0; }
.health-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; min-height: 44px; padding: 8px 14px; border-bottom: 1px solid #26363b; }
.health-line:last-child { border-bottom: 0; }
.health-line span:first-child { color: #d9e5e5; font-size: 10px; }
.health-line span:nth-child(2) { grid-row: 2; color: #748d91; font-size: 9px; }
.health-line span:last-child { grid-column: 2; grid-row: 1 / 3; white-space: nowrap; }
.status-good, .status-alert, .status-idle { padding: 3px 7px; border-radius: 20px; font-size: 9px; font-weight: 500; }
.status-good { background: #15372e; color: #7bd2a9; }
.status-alert { background: #3c2d20; color: #e6af79; }
.status-idle { background: #263236; color: #9daeb0; }
.audit-item { display: grid; grid-template-columns: 103px minmax(0, 1fr); gap: 8px; padding: 11px 14px; border-bottom: 1px solid #26363b; color: #c4d1d1; font-size: 10px; overflow-wrap: anywhere; }
.audit-item:last-child { border-bottom: 0; }
.audit-item time { color: #7e9296; font-size: 9px; }
.audit-item strong { color: #e5efee; font-weight: 550; }
.overview-footnote { margin: 24px 1px 0; color: #768e92; font-size: 10px; line-height: 1.6; }

/* LeadBin app table rhythm: compact controls, flat headers, 38–42px rows and quiet separators. */
.content > .panel { padding: 20px; margin: 18px 0; }
.panel h3 { color: #e7f1f0; font-size: 12px; font-weight: 600; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 0; border-radius: 0; scrollbar-width: thin; }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th { height: 36px; padding: 0 13px; border-bottom: 1px solid #314247; background: #141e21; color: #91a6a9; font-size: 10px; font-weight: 600; letter-spacing: .025em; white-space: nowrap; }
td { height: 42px; max-width: 320px; padding: 7px 13px; border-bottom: 1px solid #253539; color: #c8d5d5; font-size: 11px; overflow-wrap: anywhere; }
tbody tr:hover { background: #1b2b2f; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #e8f1f0; }
td button { color: #7cc5c9; font-size: 10px; text-decoration: none; }
td button:hover { text-decoration: underline; }
.workspace-name { display: block; color: #eaf3f2; font-weight: 550; }
.workspaces-panel td small { display: block; color: #738d91; font-size: 9px; }
.pill { padding: 3px 7px; border-radius: 12px; background: #1d3830; color: #88d3af; font-size: 9px; font-weight: 500; white-space: nowrap; }
.pill.warn { background: #3c2f22; color: #e4aa73; }
.pill.dim { background: #283438; color: #a3b6b8; }
.toolbar { margin-bottom: 14px; }
.toolbar input, .toolbar select { max-width: 330px; min-height: 34px; border: 1px solid #38494c; border-radius: 17px; background: #111b1e; color: #edf6f5; font-size: 11px; }
input, select { border: 1px solid #394b4e; border-radius: 6px; background: #101a1d; color: #edf6f5; }
input::placeholder { color: #758d90; }
.primary, .secondary, .danger { min-height: 34px; padding: 7px 12px; border-radius: 17px; font-size: 10px; font-weight: 550; }
.primary { background: #5caaaf; color: #0c1b1e; }
.primary:hover { background: #7bc6c9; }
.secondary { border: 1px solid #3a4c4e; background: #141e21; color: #c9dbdb; }
.secondary:hover { border-color: #6ab6ba; background: #1c3033; }
.danger { background: #392622; color: #f2a59c; }
.text-button { color: #a8cdcd; }
.help, .muted { color: #8fa4a6; }
.action-row { padding-top: 8px; }
.empty { color: #8aa0a2; }
.view-banner { background: #4b321d; border-color: #805a32; color: #fff0da; }
.view-banner button { background: #2d241c; border-color: #bb8b55; color: #ffdeb7; }
#notice { background: #173d41; }
#notice.error { background: #70302b; }

.auth-wrap { background: radial-gradient(circle at 80% 0%, #183035, transparent 38%), #0d171a; }
.auth-card { border: 1px solid #304246; border-radius: 13px; background: #172327; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); }
.auth-title { font-size: clamp(19px, 5.2vw, 27px); font-weight: 600; letter-spacing: -.055em; white-space: nowrap; }
.auth-card .eyebrow { color: #7bc4c5; }
.auth-card label { color: #c8d8d9; }
.auth-card .primary { width: 100%; border-radius: 7px; }

@media (max-width: 1050px) {
  .ops-dashboard-row, .lower-row { grid-template-columns: minmax(0, 1fr); }
  .ops-dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: relative; width: 100%; height: auto; min-height: 0; padding: 12px; }
  .brand { padding: 0 5px 7px; }
  .sidebar-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: inline-flex; max-width: 100%; margin-right: 7px; overflow-x: auto; vertical-align: middle; }
  .sidebar nav button { flex: none; min-height: 32px; padding: 7px; white-space: nowrap; }
  .topbar { min-height: 42px; height: auto; padding: 8px 16px; }
  .content { padding: 22px 15px 50px; }
  .workspace-metrics { grid-template-columns: 1fr; gap: 8px; margin: 16px 0 20px; }
  .workspace-metrics .metric { min-height: 88px; padding: 14px 16px; }
  .workspace-metrics .metric strong { margin-top: 8px; font-size: 22px; }
  .workspace-metrics .metric:last-child strong { font-size: 18px; }
  .metric-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-board .metric:nth-child(4n) { border-right: 1px solid #26363b; }
  .metric-board .metric:nth-child(2n) { border-right: 0; }
  .metric-board .metric:nth-last-child(-n+4) { border-bottom: 1px solid #26363b; }
  .metric-board .metric:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  #as-of { display: none; }
  .page-head h1 { font-size: 20px; }
  .metric-board .metric { min-height: 101px; padding: 12px; }
  .metric-board .metric strong { font-size: 25px; }
  .ops-dashboard-side { grid-template-columns: 1fr; }
  .chart-wrap { height: 150px; }
  .audit-item { grid-template-columns: 83px minmax(0, 1fr); }
}
