:root {
  color-scheme: dark;
  --bg: #0b1011;
  --rail: #0e1516;
  --surface: #11191a;
  --border: #233031;
  --text: #edf4f1;
  --muted: #94a5a2;
  --quiet: #748984;
  --mint: #71edb3;
  --lilac: #b6a4ff;
  --blue: #7ebfff;
  --amber: #f1c47d;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --rail-width: 226px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
[hidden] { display: none !important; }
svg, img { vertical-align: middle; }
button svg { flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.mint { color: var(--mint); }
.lilac { color: var(--lilac); }
.blue { color: var(--blue); }
.amber { color: var(--amber); }
.red { color: #ff9b9b; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.skip { position: fixed; z-index: 10; top: -60px; left: 12px; padding: 10px; background: var(--surface); }
.skip:focus { top: 8px; }

.sidebar {
  width: var(--rail-width);
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--rail);
  border-right: 1px solid #1f2a2b;
  display: flex;
  flex-direction: column;
  padding: 23px 15px 15px;
  z-index: 3;
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px; margin-bottom: 43px; width: fit-content; }
.brand strong { display: block; font-size: 20px; font-weight: 780; letter-spacing: .11em; line-height: 1.04; }
.brand-period { color: var(--mint); }
.brand small { display: block; color: var(--quiet); font: 9px/1.4 var(--mono); letter-spacing: .13em; margin-top: 4px; white-space: nowrap; }
.sidebar .brand { margin-bottom: 24px; }
.rail-label { padding: 0 10px; color: var(--quiet); font: 10px/1.3 var(--mono); font-weight: 700; letter-spacing: .13em; margin-bottom: 5px; text-transform: uppercase; }
.nav-group + .nav-group { margin-top: 14px; }
.sidebar nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  height: 34px;
  padding: 0 10px;
  margin: 2px 0;
  color: #a1afad;
  font-size: 13px;
  font-weight: 550;
}
.sidebar nav a:hover { color: var(--text); background: #172020; }
.sidebar nav a[aria-current] { color: #a1f5ce; background: #172a23; border-color: #264536; }
.sidebar nav a[aria-current]::before { content: ""; position: absolute; inset: 10px auto 10px -16px; width: 3px; border-radius: 0 4px 4px 0; background: var(--mint); box-shadow: 0 0 14px #71edb36a; }
.nav-count { margin-left: auto; color: var(--quiet); font: 10px var(--mono); padding: 3px 6px; border: 1px solid #283435; border-radius: 5px; background: #161e1f; }
.rail-sources { margin: 17px 0 12px; }
#mobile-more { display: none; }
.source-button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; text-align: left; border: 1px solid var(--border); background: #141d1e; color: var(--muted); padding: 9px; border-radius: 9px; }
.source-button:hover { border-color: #426858; color: var(--mint); }
.source-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 7px; background: #203129; color: var(--mint); }
.source-button strong, .source-button small, .rail-footer small, .rail-footer strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-button strong, .rail-footer strong { color: var(--text); font-size: 11px; font-weight: 650; }
.source-button small, .rail-footer small { color: var(--quiet); margin-top: 3px; font-size: 10px; }
.source-button > span:last-child svg { width: 13px; }
.rail-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; border-top: 1px solid var(--border); padding: 15px 6px 5px; }
.rail-radar { color: var(--mint); padding: 6px; border: 1px solid #274536; border-radius: 8px; background: #17281f; }
.rail-radar svg { width: 16px; height: 16px; }

.workspace { margin-left: var(--rail-width); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 63px;
  padding: 0 clamp(21px, 3vw, 46px);
  border-bottom: 1px solid #1f2a2b;
  background: #0d1415;
}
.mobile-brand { display: none; }
.breadcrumb, .top-actions { display: flex; align-items: center; gap: 11px; }
.breadcrumb { color: var(--muted); font-size: 12px; }
.breadcrumb svg, .slash { color: var(--quiet); }
.breadcrumb strong { color: #dbe6e2; font-weight: 600; }
.search-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 33px; color: var(--muted); background: #121b1c; border: 1px solid #263334; border-radius: 7px; }
.search-button { padding: 0 8px 0 10px; min-width: 178px; justify-content: flex-start; font-size: 11px; }
.search-button svg { width: 15px; }
.search-button:hover, .icon-button:hover { color: var(--mint); border-color: #406552; }
.icon-button { width: 35px; padding: 0; }
.icon-button svg { width: 16px; }
kbd { margin-left: auto; padding: 2px 4px; border-radius: 4px; border: 1px solid #2c3b3c; color: #a0afaa; font: 9px var(--mono); white-space: nowrap; }
.refreshing svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

main, .page-footer { width: 100%; max-width: 1680px; margin: 0 auto; padding-inline: clamp(21px, 3vw, 46px); }
main { padding-top: 30px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: #a4b7b0; font: 10px/1.2 var(--mono); letter-spacing: .16em; }
.eyebrow span { width: 13px; height: 2px; border-radius: 1px; background: var(--mint); box-shadow: 0 0 11px #71edb34d; }
h1 { font-size: clamp(32px, 3.2vw, 48px); letter-spacing: -.055em; line-height: 1.07; font-weight: 730; }
.page-heading p { color: var(--muted); margin-top: 9px; font-size: 13px; }
.mode-badge { display: flex; align-items: center; gap: 8px; background: #15271f; border: 1px solid #2e4d3f; color: #a9f3d0; white-space: nowrap; border-radius: 7px; padding: 8px 9px; font-size: 11px; font-weight: 650; margin-bottom: 1px; }
.mode-badge:hover { border-color: #85ad9b; }
.mode-badge.is-demo { color: #d7caff; background: #231e31; border-color: #3d3354; }
.mode-badge .pulse-dot { width: 6px; height: 6px; box-shadow: 0 0 8px currentColor; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; box-shadow: 0 0 10px currentColor; flex-shrink: 0; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #2b4b3d;
  border-radius: 13px;
  background: radial-gradient(ellipse at 75% 45%, #1b3a2d 0%, transparent 55%), linear-gradient(110deg, #12261e, #101c19 65%, #111e1b);
  min-height: 195px;
  margin-bottom: 18px;
}
.hero-content { position: relative; z-index: 1; width: fit-content; padding: 22px 25px 20px; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: var(--mint); font: 10px/1.3 var(--mono); letter-spacing: .15em; margin-bottom: 10px; }
.hero h2 { font-size: clamp(23px, 2.6vw, 34px); letter-spacing: -.045em; font-weight: 710; line-height: 1.12; }
.hero p { color: #a6bcb1; font-size: 13px; margin-top: 6px; }
.hero-stats { display: flex; gap: 0; margin-top: 18px; }
.hero-stats > div { display: grid; gap: 4px; padding: 0 20px; border-left: 1px solid #305043; }
.hero-stats > div:first-child { padding-left: 0; border-left: 0; }
.hero-stats strong { color: #d1f8e4; font-size: 18px; font-weight: 640; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-stats strong small { font-size: 12px; color: #9db4a9; }
.hero-stats > div > span { color: #a1b8ae; font: 9px/1.3 var(--mono); letter-spacing: .08em; }
.hero-warning { border-color: #655034; }
.hero-warning .hero-kicker { color: var(--amber); }
.hero-art { position: absolute; z-index: 0; right: 0; bottom: 0; width: 62%; max-width: 710px; height: 100%; }
.art-grid { fill: none; stroke: #4aa780; stroke-width: .8; opacity: .32; }
.art-track { fill: none; stroke: #69dba3; stroke-width: 1; opacity: .45; }
.art-track circle { fill: #71edb3; }
.art-platform { fill: #1b3b30; fill-opacity: .64; stroke: #4b9d75; stroke-width: 1; }
.art-platform.inset { fill: #1b362b; fill-opacity: .9; stroke-dasharray: 3 4; }
.rack-primary { stroke: #77e5ab; stroke-width: 1.2; stroke-linejoin: round; }
.rack-secondary { stroke: #57a381; stroke-width: 1.1; stroke-linejoin: round; }
.rack-top { fill: #244b3b; }
.rack-front { fill: #19362d; }
.rack-side { fill: #102c23; }
.rack-line { fill: none; opacity: .66; }
.rack-light { stroke: #a5f7c8; stroke-width: 2.2; stroke-linecap: round; }
.art-cross { stroke: #75ba98; opacity: .55; }
.hero-art text { fill: #80b49a; font: 9px var(--mono); letter-spacing: 2px; opacity: .75; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metric-card { position: relative; min-width: 0; overflow: hidden; border-radius: 11px; border: 1px solid var(--border); background: linear-gradient(120deg, #151e1f, #111819); padding: 14px 15px 13px; min-height: 119px; }
.metric-label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b2c0bd; font-weight: 570; }
.tile-icon, .panel-icon { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 7px; width: 29px; height: 29px; background: color-mix(in srgb, currentColor 12%, #11191a); border: 1px solid color-mix(in srgb, currentColor 23%, #11191a); }
.metric-value { position: relative; z-index: 1; width: fit-content; font-size: 34px; font-weight: 700; letter-spacing: -.06em; line-height: 1.13; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric-value small { color: #a3b3ae; font-weight: 600; font-size: .47em; margin-left: 2px; letter-spacing: -.02em; }
.metric-note { color: var(--muted); position: relative; z-index: 1; margin-top: 4px; font-size: 10px; }
.spark { width: 36%; max-width: 99px; height: auto; position: absolute; right: 13px; bottom: 25px; overflow: visible; }
.spark path { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.spark .spark-grid { opacity: .13; stroke-dasharray: 3 3; stroke-width: 1; }
.segments { position: absolute; right: 13px; bottom: 29px; width: 32%; max-width: 88px; display: flex; gap: 3px; }
.segments i { height: 11px; flex: 1; min-width: 2px; background: #2a2921; border-radius: 2px; }
.segments i.filled { background: #c89955; }
.segments i.filled:nth-child(n + 7) { background: #ebc27f; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: 15px; margin-bottom: 15px; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 15px 13px; }
.panel-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.panel-icon { width: 34px; height: 34px; color: #a9c1b7; }
.panel-title h2 { color: #e8f0ed; font-weight: 660; font-size: 15px; letter-spacing: -.02em; line-height: 1.2; }
.panel-title p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.ranges { display: flex; flex-shrink: 0; align-items: center; gap: 2px; background: #0d1415; padding: 3px; border: 1px solid #273536; border-radius: 7px; }
.ranges button { border: 1px solid transparent; background: transparent; border-radius: 4px; color: var(--muted); padding: 4px 6px; font: 10px var(--mono); min-width: 29px; }
.ranges button:hover { color: var(--text); }
.ranges button[aria-pressed="true"] { color: var(--mint); background: #1b3027; border-color: #2b4c3d; }
.chart-legend { display: flex; gap: 15px; padding: 2px 16px 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 2px; }
.chart-legend .mint i { background: var(--mint); }
.chart-legend .lilac i { background: var(--lilac); }
.chart-legend .blue i { background: var(--blue); }
.chart-wrap { position: relative; margin: 0 12px 10px 16px; }
.chart-wrap > svg { width: 100%; height: 224px; overflow: visible; }
.chart-wrap text { font: 11px var(--mono); fill: #9bada7; }
.chart-grid { stroke: #2a3938; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-line, .chart-cursor { pointer-events: none; }
.chart-cursor { stroke: #b3c7be; stroke-dasharray: 3 4; opacity: .65; vector-effect: non-scaling-stroke; }
.chart-tooltip { position: absolute; top: 14px; min-width: 113px; background: #182424; border: 1px solid #3b4c49; border-radius: 7px; padding: 7px 9px; pointer-events: none; box-shadow: 0 4px 18px #0005; font: 10px/1.55 var(--mono); }
.chart-tooltip span { display: flex; justify-content: space-between; gap: 10px; }
.chart-tooltip > strong { display: block; color: #e1eae7; margin-bottom: 4px; }
.chart-empty { position: absolute; inset: 43% 0 auto; text-align: center; color: var(--muted); font-size: 12px; }
.count-chip { color: #a8b8b4; background: #192425; border: 1px solid #2d3b3c; border-radius: 6px; padding: 4px 6px; font: 10px var(--mono); white-space: nowrap; }
.fleet { display: flex; flex-direction: column; }
.fleet-labels, .fleet-row { display: grid; grid-template-columns: minmax(99px, 1.45fr) minmax(48px, 1fr) minmax(48px, 1fr) 13px; gap: 10px; align-items: center; }
.fleet-labels { margin: 0 14px; padding: 4px 0 8px; border-bottom: 1px solid #243233; color: var(--quiet); font: 9px var(--mono); letter-spacing: .1em; }
.fleet-rows { margin: 0 14px; }
.fleet-row { width: 100%; border: 0; border-bottom: 1px solid #233031; padding: 8px 0; min-height: 48px; background: transparent; text-align: left; color: inherit; }
.fleet-row:hover { background: #172322; }
.fleet-name { display: flex; gap: 8px; align-items: center; min-width: 0; }
.fleet-name > span:last-child { min-width: 0; }
.fleet-name strong, .fleet-name small { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.fleet-name strong { font-size: 12px; font-weight: 660; }
.fleet-name small { font: 9px/1.3 var(--mono); color: var(--quiet); margin-top: 3px; }
.node-icon { flex-shrink: 0; position: relative; display: inline-grid; place-items: center; width: 30px; height: 30px; background: #192625; border: 1px solid #2c3f3a; border-radius: 7px; }
.node-icon i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: currentColor; border: 2px solid #11191a; bottom: -2px; right: -2px; }
.meter { display: flex; align-items: center; gap: 5px; min-width: 0; }
.meter > span { display: block; min-width: 10px; flex: 1; border-radius: 5px; background: #2b3838; height: 4px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.meter strong { font: 10px var(--mono); color: inherit; min-width: 25px; text-align: right; }
.row-arrow { color: var(--quiet); }
.panel-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; color: #a2e8c7; font-weight: 640; font-size: 11px; padding: 4px 0; white-space: nowrap; }
.panel-link:hover { color: #d3ffe9; text-decoration: underline; }
.fleet > .panel-link { margin: auto 14px 0; min-height: 39px; }
.attention { display: flex; gap: 11px; justify-content: space-between; align-items: center; margin: 0 0 15px; border: 1px solid #4f402a; background: #221e16; padding: 8px 12px; border-radius: 8px; color: #f2cb88; font-size: 11px; }
.attention > span, .attention > div, .attention button { display: flex; align-items: center; gap: 6px; }
.attention > div { flex-wrap: wrap; }
.attention button { border: 1px solid #5b472b; color: #f7d49b; background: #2b2418; border-radius: 5px; padding: 4px 7px; font-size: 10px; }
.attention a { padding: 4px; }
.attention button:hover, .attention a:hover { color: white; border-color: #a78757; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 500px; text-align: left; border-collapse: collapse; font-size: 12px; }
th { text-transform: uppercase; letter-spacing: .08em; font: 10px var(--mono); color: #a2b4ae; background: #151f20; }
td, th { border-top: 1px solid var(--border); padding: 10px 15px; }
td { color: var(--muted); }
td strong { color: var(--text); font-weight: 560; }
tr:hover td { background: #152020; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid color-mix(in srgb, currentColor 22%, #17201d); background: color-mix(in srgb, currentColor 8%, #121a19); border-radius: 5px; font-size: 10px; white-space: nowrap; }
.badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; border: 1px solid #354441; color: #adbbb6; background: #192523; border-radius: 5px; padding: 3px 6px; font: 10px var(--mono); margin: 2px 4px 2px 0; }
.tag.critical { color: #d4c3ff; border-color: #493d61; background: #262036; }
.text-button { display: inline-flex; gap: 6px; align-items: center; text-align: left; border: 0; color: var(--text); background: transparent; padding: 2px 0; }
.text-button svg { color: var(--mint); }
.text-button:hover { color: var(--mint); text-decoration: underline; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 12px; padding: 5px 15px 15px; }
.inventory-card { min-width: 0; color: var(--text); background: #131e1e; border: 1px solid #2c3b3a; border-radius: 9px; text-align: left; padding: 12px; }
.inventory-card:hover { border-color: #5e9d82; }
.inventory-top, .inventory-line, .inventory-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inventory-top { margin-bottom: 10px; }
.inventory-top .node-icon { width: 37px; height: 37px; }
.inventory-card > strong, .inventory-card > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-card > strong { font-size: 19px; margin-bottom: 4px; }
.inventory-card > small { color: var(--muted); font: 10px var(--mono); margin-bottom: 11px; }
.inventory-line { color: var(--muted); font-size: 11px; margin: 8px 0; }
.inventory-line .meter { flex: 0 1 60%; }
.inventory-bottom { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 9px; color: var(--muted); font-size: 10px; }
.inventory-bottom svg { color: var(--mint); }
.notice, .empty { padding: 13px 15px; color: var(--muted); font-size: 12px; }
.notice { color: #f1cb91; background: #2b241a; border: 1px solid #54442d; border-radius: 8px; margin-bottom: 15px; }
.page-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--quiet); padding-block: 17px; font: 9px var(--mono); letter-spacing: .11em; }

dialog { width: min(490px, calc(100% - 26px)); max-height: min(680px, calc(100dvh - 32px)); color: var(--text); background: #131d1e; border: 1px solid #40554e; border-radius: 13px; padding: 0; box-shadow: 0 18px 65px #0009; }
dialog::backdrop { background: #050909b8; backdrop-filter: blur(4px); }
.dialog-search { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); color: var(--mint); }
.dialog-search input { flex: 1; min-width: 0; height: 35px; background: #0d1515; border: 1px solid #344542; border-radius: 6px; padding: 0 8px; color: var(--text); }
.dialog-search input::placeholder { color: var(--muted); }
.search-results { padding: 6px; }
.search-results button, .detail-list button, .source-detail { display: flex; align-items: center; gap: 9px; padding: 9px; width: 100%; border: 1px solid transparent; background: transparent; text-align: left; color: var(--text); border-radius: 6px; }
.search-results button:hover, .detail-list button:hover { border-color: #345747; background: #1a2a24; }
.search-results button > svg:first-child, .detail-list button > svg:first-child { color: var(--mint); }
.search-results button > small, .detail-list button > small { margin-left: auto; color: var(--muted); }
.search-results button strong, .detail-list button strong { font-size: 12px; overflow-wrap: anywhere; }
#detail-dialog { padding: 17px; }
.dialog-close { position: absolute; right: 12px; top: 12px; }
.detail-head { display: flex; align-items: center; gap: 10px; padding: 1px 41px 13px 0; border-bottom: 1px solid var(--border); }
.detail-head .tile-icon { width: 38px; height: 38px; }
.detail-head h2 { font-size: 22px; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.detail-head p, .detail-copy { margin-top: 5px; color: var(--muted); font-size: 12px; }
.detail-copy { margin: 13px 0; line-height: 1.55; }
.detail-head .badge { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.detail-grid div { background: #101819; border: 1px solid var(--border); border-radius: 7px; padding: 8px; }
.detail-grid dt { color: var(--muted); font-size: 10px; }
.detail-grid dd { margin: 5px 0 0; font: 12px var(--mono); overflow-wrap: anywhere; }
#detail-body h3 { margin: 13px 0 7px; font-size: 13px; }
.detail-tags { margin-bottom: 12px; color: var(--muted); }
.source-detail { justify-content: space-between; border-color: var(--border); margin-top: 8px; }
.source-detail strong, .source-detail small { display: block; }
.source-detail small { color: var(--muted); margin-top: 4px; }

.settings-topbar .brand { margin: 0; padding: 0; }
.account-link { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 8px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 7px; font-size: 11px; }
.account-link svg { color: var(--mint); width: 16px; height: 16px; }
.account-link:hover { border-color: var(--mint); }
#account-label { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-main form > label:not(:first-child) { margin-top: 11px; }
.account-main form button.settings-primary { margin-top: 13px; }
.account-main form .account-message { margin: 12px 0 0; }
.account-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.account-main h2 { font-size: 17px; }
.account-message.mint { color: var(--mint); border-color: #35604d; background: #182923; }
@media (max-width: 700px) {
  #account-label { display: none; }
}
.settings-main { max-width: 664px; padding-bottom: 35px; }
.settings-page .settings-main { max-width: 1050px; }
.settings-layout { display: grid; grid-template-columns: 174px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-content > .operations-settings { margin-top: 0; }
.settings-panel { padding: 21px; }
.settings-panel label { display: block; color: #dbe6e2; font-size: 12px; font-weight: 650; margin-bottom: 7px; }
.settings-panel input { width: 100%; height: 42px; border: 1px solid #354744; border-radius: 7px; padding: 0 10px; background: #0d1516; color: var(--text); }
.settings-panel input::placeholder { color: var(--quiet); }
.settings-panel details { font-size: 11px; color: var(--muted); margin-top: 9px; }
.settings-panel summary { cursor: pointer; color: #a2e8c7; }
.settings-panel details p { margin: 7px 0; }
.settings-panel hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.settings-panel code { color: #bce4d0; overflow-wrap: anywhere; }
.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.settings-hint { color: var(--muted); margin: 12px 0; font-size: 11px; line-height: 1.55; }
.settings-primary { display: inline-flex; justify-content: center; align-items: center; border: 1px solid #407f63; background: #214736; color: #d1fae7; border-radius: 7px; padding: 9px 13px; min-height: 38px; font-weight: 650; font-size: 12px; }
.settings-primary:hover { border-color: var(--mint); }
.settings-primary:disabled { cursor: progress; opacity: .55; }
.certificate-panel { border: 1px solid #5d4d33; background: #211e18; border-radius: 8px; padding: 11px; margin: 13px 0; }
.certificate-panel strong { color: var(--amber); }
.certificate-panel p { color: var(--muted); font-size: 11px; margin-top: 6px; }
.certificate-panel code { display: block; color: #f1cf99; font-size: 11px; margin: 8px 0 11px; }
.settings-status { margin: 12px 0; font-size: 12px; line-height: 1.4; }
.settings-jump { display: grid; gap: 3px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; position: sticky; top: 16px; }
.settings-subnav { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.settings-jump a, .settings-subnav a { padding: 9px; color: var(--muted); border: 1px solid transparent; border-radius: 6px; font-size: 12px; }
.settings-subnav a { border-color: var(--border); }
.settings-jump a:hover, .settings-subnav a:hover { color: var(--text); background: #1b2828; }
.settings-jump a[aria-current], .settings-subnav a[aria-current] { color: var(--mint); border-color: #315444; background: #192d24; }
.change-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--border); padding: 8px 1px; }
.change-row small { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; overflow-wrap: anywhere; }
.change-row > span:last-child { text-align: right; }
.runbook-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 12px; line-height: 1.5; background: #111a1a; border: 1px solid var(--border); padding: 9px; border-radius: 7px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
#detail-dialog.replay-mode { width: min(690px, calc(100% - 26px)); }
.replay-summary { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); align-items: center; margin: 10px 0; font-size: 11px; }
.replay-summary > * { background: #152120; border-radius: 6px; padding: 5px 7px; }
.replay-summary > strong { color: var(--amber); background: #302a1c; }
.replay-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; color: var(--muted); font-size: 11px; }
.replay-controls label { min-width: 0; }
.replay-controls select { max-width: 100%; border: 1px solid var(--border); background: #101819; color: var(--text); border-radius: 6px; padding: 5px; }
.replay-events button > span { min-width: 0; }
.replay-events button > span > small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.reliability-picker { display: flex; gap: 8px; align-items: center; }
.reliability-picker select { max-width: min(230px, 60vw); padding: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); }
.reliability-chart-panel { padding: 0 14px 13px; }
.reliability-key, .service-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.reliability-key { font-size: 10px; margin: 4px 0 8px; }
.reliability-metrics .metric-value { font-size: clamp(19px, 3vw, 32px); }
.dependency-branch { border: 1px solid var(--border); background: #101818; border-radius: 8px; padding: 8px; }
.dependency-state { margin: 6px 0 4px; }
.dependency-consumers { border: 1px solid var(--border); border-radius: 7px; margin: 12px 0 0; padding: 8px; }
.dependency-consumers legend { color: var(--muted); font-size: 11px; padding: 0 5px; }
#dependency-consumers { max-height: 190px; overflow-y: auto; }
#dependency-consumers label { margin: 4px 0; }
.operations-settings { margin-top: 16px; }
.operations-form { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 12px; }
.operations-form h3 { font-size: 15px; margin-bottom: 8px; }
.operations-form h4 { font-size: 13px; margin: 15px 0 7px; }
.operations-form label { margin-top: 9px; }
.operations-form textarea { width: 100%; min-height: 65px; color: var(--text); background: #0d1516; border: 1px solid #354744; border-radius: 7px; padding: 8px; font: inherit; resize: vertical; }
.operations-form .settings-primary { margin-top: 8px; }
.operations-form > form + form { border-top: 1px solid var(--border); margin-top: 14px; }
.operations-panel { margin-bottom: 13px; }
.operations-footnote, .cell-detail { color: var(--muted); font-size: 11px; line-height: 1.5; }
.cell-detail { display: block; margin-top: 3px; }
.operations-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--muted); }
.operations-toolbar .panel-link { margin-left: auto; }
.operations-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 10px 2px; border-top: 1px solid var(--border); font-size: 12px; }
.operations-item small, .hardware-card small { display: block; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }
.hardware-card { min-width: 0; background: #131e1e; border: 1px solid #2c3b3a; border-radius: 9px; padding: 11px; }
.hardware-card > strong { overflow-wrap: anywhere; }
.hardware-card .inventory-line { border-top: 1px solid var(--border); padding-top: 7px; }
.capacity-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.capacity-highlights strong { display: block; margin-top: 9px; font-size: 16px; overflow-wrap: anywhere; }
.planned-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #b6d9fc; background: #162330; border-color: #344d62; }
.planned-notice a { margin-left: auto; }
.wallboard-mode .sidebar, .wallboard-mode .topbar, .wallboard-mode .page-footer { display: none; }
.wallboard-mode .workspace { margin: 0; }
.wallboard-mode main { max-width: 1900px; padding-bottom: 16px; }
.wallboard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.wallboard-head h1 { font-size: clamp(35px, 5vw, 76px); }
.wallboard-head p { color: var(--muted); margin-top: 8px; }
.wallboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.wallboard-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.wallboard-metrics .metric-card { min-height: 0; padding: 15px; }
.wallboard-metrics span { display: block; color: var(--muted); font-size: clamp(11px, 1.4vw, 21px); }
.wallboard-metrics strong { display: block; font-size: clamp(28px, 5vw, 68px); letter-spacing: -.04em; }
.wallboard-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wallboard-list { margin: 0; padding: 0 14px 9px; list-style: none; }
.wallboard-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--border); }
#workspace-menu { padding: 17px; }
#workspace-menu h2 { font-size: 20px; margin-bottom: 11px; }
.workspace-group + .workspace-group { margin-top: 13px; }
.workspace-group h3 { margin-bottom: 6px; color: var(--muted); font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.workspace-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
#workspace-links a { border: 1px solid var(--border); border-radius: 7px; padding: 8px 9px; }
#workspace-links a[aria-current], #workspace-links a:hover { border-color: #4c715e; color: var(--mint); }
.service-settings-head, .service-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.service-settings-head h2 { font-size: 19px; }
.service-settings-head .settings-hint { margin: 5px 0; }
.service-settings-row { border-bottom: 1px solid var(--border); padding: 5px 0; }
.service-settings-row strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.service-settings-row > div { min-width: 0; }
.service-settings-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.service-settings-row button { width: auto; color: var(--mint); }
#service-editor { margin-top: 16px; }
#service-editor summary { font-size: 13px; }
#service-form label { margin-top: 12px; }
.service-history-actions { margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--border); }
.panel-link.caution { color: var(--amber); }
.settings-panel select { width: 100%; height: 42px; color: var(--text); border: 1px solid #354744; border-radius: 7px; background: #0d1516; padding: 0 9px; }
.settings-panel .check-label { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; }
.settings-panel .check-label input { width: 15px; height: 15px; accent-color: var(--mint); }

.incident-list { padding: 0 14px 8px; }
.incident-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 15px; gap: 9px; align-items: center; text-align: left; background: transparent; color: var(--text); padding: 9px 3px; border: 0; border-top: 1px solid var(--border); }
.incident-row:hover, .topology-item:hover { background: #1a2727; }
.incident-row strong, .incident-row small { display: block; overflow-wrap: anywhere; }
.incident-row small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.service-filters, .topology-controls { display: flex; justify-content: flex-end; margin: 0 14px 9px; }
.operations-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 15px; }
.operations-summary a, .operations-summary button { display: flex; align-items: center; gap: 6px; text-align: left; background: var(--surface); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 8px; font-size: 11px; }
.operations-summary a:hover, .operations-summary button:hover { border-color: #507b69; }
.operations-summary svg { flex-shrink: 0; color: var(--mint); }
.operations-summary strong { margin-left: auto; text-align: right; }
@media (max-width: 390px) {
  .operations-summary a, .operations-summary button { flex-wrap: wrap; }
  .operations-summary strong { flex: 0 0 100%; text-align: left; }
}
.topology-cluster { margin-bottom: 13px; }
.topology-cluster-head { display: flex; align-items: center; gap: 10px; padding: 15px; border-bottom: 1px solid var(--border); }
.topology-cluster-head h2 { font-size: 16px; }
.topology-cluster-head p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.topology-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; padding: 12px 14px 15px; align-items: start; }
.topology-branch { min-width: 0; }
.topology-branch ul { margin: 0 0 0 13px; padding-left: 9px; border-left: 1px solid #355449; list-style: none; }
.topology-branch li { position: relative; padding-top: 6px; }
.topology-branch li::before { content: ""; position: absolute; left: -9px; top: 23px; width: 8px; height: 1px; background: #355449; }
.topology-root { display: flex; align-items: stretch; gap: 3px; }
.topology-item { width: 100%; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) 13px; align-items: center; gap: 5px; padding: 7px; color: var(--text); background: #152120; border: 1px solid #2d443d; border-radius: 7px; text-align: left; }
.topology-item > span:first-child { color: var(--mint); }
.topology-item strong, .topology-item small { display: block; overflow-wrap: anywhere; }
.topology-item strong { font-size: 11px; }
.topology-item small { font-size: 10px; color: var(--muted); margin-top: 2px; }
.branch-toggle { min-width: 29px; height: auto; }
.branch-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.is-impacted { border-color: #755446; background: #29201c; }
.is-impacted small, .is-impacted > span:first-child { color: var(--amber); }
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.node-history { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 7px; }
.node-history .chart-legend { padding-inline: 0; margin-top: 8px; }
.history-chart { display: block; width: 100%; min-height: 105px; }
.history-chart text { font: 10px var(--mono); fill: var(--muted); }
.history-sample { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.history-sample input { flex: 1; min-width: 0; accent-color: var(--mint); }
.history-output { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.history-events > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; border-top: 1px solid var(--border); padding: 7px 1px; font-size: 11px; }
.history-events small { color: var(--muted); }
@media (max-width: 460px) {
  .settings-fields { grid-template-columns: 1fr; }
  .settings-panel { padding: 14px; }
  .operations-item { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .operations-item > span:nth-child(3) { grid-column: 2; grid-row: 2; }
  .operations-item .badge { grid-column: 3; grid-row: 1; }
  .wallboard-head { flex-wrap: wrap; }
  .wallboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wallboard-content { grid-template-columns: 1fr; }
}

@media (max-width: 1160px) {
  :root { --rail-width: 190px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.34fr) minmax(0, 1fr); }
  .fleet-labels, .fleet-row { gap: 6px; }
  .metric-card { padding-inline: 11px; }
}
@media (max-width: 950px) {
  :root { --rail-width: 0px; }
  .sidebar { inset: auto 0 0; width: 100%; height: auto; padding: 4px 10px max(5px, env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--border); }
  .sidebar .brand, .sidebar .rail-label, .rail-sources, .rail-footer, .nav-count { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .sidebar .nav-group { display: contents; }
  .sidebar nav a:not([data-page="overview"], [data-page="nodes"], [data-page="incidents"]) { display: none; }
  .sidebar nav a, #mobile-more { flex-direction: column; justify-content: center; gap: 3px; height: 47px; padding-inline: 0; font-size: 10px; }
  #mobile-more { display: flex; align-items: center; margin: 3px 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); }
  .sidebar nav a[aria-current]::before { display: none; }
  .mobile-brand { display: block; }
  .breadcrumb { margin-right: auto; }
  .page-footer { margin-bottom: 62px; }
}
@media (max-width: 700px) {
  main, .topbar, .page-footer { padding-inline: 13px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .settings-jump { position: static; display: flex; flex-wrap: wrap; }
  .settings-jump a { padding: 7px; }
  .topbar { height: 51px; gap: 10px; }
  .breadcrumb { gap: 7px; }
  .breadcrumb > span:first-child, kbd, .search-label { display: none; }
  .search-button { min-width: 34px; justify-content: center; padding: 0; }
  .top-actions { gap: 6px; }
  main { padding-top: 21px; }
  .page-heading { flex-wrap: wrap; gap: 9px; margin-bottom: 16px; }
  .page-heading p { line-height: 1.4; margin-top: 7px; }
  .hero { min-height: 172px; margin-bottom: 13px; }
  .hero-content { padding: 17px 13px; width: 100%; }
  .hero-stats { margin-top: 15px; }
  .hero-stats > div { padding-inline: 11px; }
  .hero p { max-width: 280px; }
  .hero-art { width: 80%; opacity: .3; right: -18%; bottom: -15%; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 13px; }
  .metric-card { min-height: 105px; padding-block: 10px; }
  .metric-value { font-size: 29px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .panel-head { gap: 8px; padding-inline: 11px; }
  .panel-title { gap: 7px; }
  .panel-title p { font-size: 10px; }
  .chart-wrap > svg { height: 175px; }
  .chart-wrap text { font-size: 14px; }
  .fleet-labels, .fleet-row { grid-template-columns: minmax(105px, 1.55fr) minmax(52px, 1fr) minmax(52px, 1fr) 12px; gap: 8px; }
  .attention { flex-wrap: wrap; }
}
@media (max-width: 390px) {
  .panel-title h2 { font-size: 13px; }
  .ranges button { padding-inline: 4px; min-width: 26px; }
  .panel-head .panel-icon { width: 28px; height: 28px; }
  .metric-label { font-size: 11px; gap: 5px; }
  .metric-note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .refreshing svg { animation: none; }
}
