@font-face {
  font-family: Sora; src: url(sora.woff2) format("woff2"); font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: Source; src: url(source.woff2) format("woff2"); font-display: swap;
}
/* Graphit uses the light palette inside cards and the dark palette around them. */
:root,
:where(:root[data-appearance="graphite"] :is(.server-card, .fleet-summary, .panel, .trend-card,
  .rule-list, .retention-servers, .gate-card, .empty)) {
  color-scheme: light;
  color: var(--ink);
  --ink: #1d2638;
  --quiet: #596578;
  --line: #dce1e9;
  --canvas: #f6f7fa;
  --blue: #345ac1;
  --blue-light: #e9eefb;
  --navy: #1c2940;
  --good: #11745b;
  --bad: #963c32;
  --surface: #fff;
  --chrome: #fcfcfe;
  --strong-border: #bfc8d5;
  --secondary: #445169;
  --hover: #f0f2f7;
  --current: #294ba2;
  --button-border: #cdd4df;
  --button-hover: #f5f7fb;
  --button-hover-border: #a4afc0;
  --on-primary: #fff;
  --primary-hover: #2549a7;
  --danger-border: #cba9a5;
  --row-hover: #f8faff;
  --icon-surface: #eef1f9;
  --icon-border: #e2e7f3;
  --icon-ink: #48608d;
  --track: #e7ebf3;
  --capacity: #6e88c6;
  --success-bg: #e6f4ed;
  --success-ink: #155c43;
  --error-bg: #fbece9;
  --warning: #795716;
  --grid: #e1e5ef;
  --axis: #53627b;
  --plot-fill: #edf1fc;
  --plot-line: #4c6cc0;
  --focus: #456ed2;
  --divider: #ecedf2;
  --code-bg: #edf0f7;
  --overlay: #19283c75;
}
:root {
  --display: Sora, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font: 16px/1.5 var(--body);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, dl, dd, figure { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .52; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { text-wrap: pretty; overflow-wrap: anywhere; }
h1 { font: 560 clamp(1.75rem, 3vw, 2.45rem)/1.18 var(--display); letter-spacing: -.055em; }
h2 { font: 570 1.12rem/1.35 var(--display); letter-spacing: -.035em; }
h3 { font-size: 1rem; line-height: 1.35; }
[hidden], #feedback:empty, .feedback:empty { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--surface); }
.icon, .icon-button svg, .side-foot svg, .navigation svg {
  width: 1.16rem; height: 1.16rem; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
.quiet, .meta, .field-hint, .subtitle, .chart-note, .chart-foot, .database-note { color: var(--quiet); }
.quiet, .field-hint, .chart-note, .chart-foot, .database-note { font-size: .87rem; }
.app { display: grid; grid-template-columns: 14.25rem minmax(0, 1fr); min-height: 100dvh; }
.side {
  position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column;
  padding: 1.65rem .9rem 1rem; border-right: 1px solid var(--line); background: var(--chrome); overflow-y: auto;
}
.side-brand, .mobile-bar, .folder-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.side-brand { min-height: 2.5rem; padding: 0 .55rem; margin-bottom: 2.1rem; }
.brand, .gate-brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; font: 590 .91rem/1.35 var(--display); letter-spacing: -.035em; }
.brand img, .gate-brand img { flex: none; display: block; }
.side-brand .brand strong, .gate-brand strong { display: block; color: var(--quiet); font: 500 .78rem/1.5 var(--body); letter-spacing: .01em; }
.mobile-bar, .shade, .side #close-nav { display: none; }
.navigation { display: grid; gap: .22rem; }
.navigation a, .side-foot a, .side-foot button, .tree a {
  display: flex; align-items: center; gap: .68rem; min-width: 0; padding: .62rem .75rem;
  border: 0; border-radius: .43rem; background: transparent; text-decoration: none; text-align: left;
  color: var(--secondary); font-size: .89rem; font-weight: 530;
}
.navigation a:hover, .side-foot a:hover, .side-foot button:hover, .tree a:hover, .icon-button:hover { background: var(--hover); color: var(--ink); }
.side a[aria-current=page] { color: var(--current); background: var(--blue-light); font-weight: 640; }
.folder-heading { margin: 1.7rem .1rem .25rem .75rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.folder-heading h2 { color: var(--quiet); font: 600 .77rem var(--body); letter-spacing: normal; }
.icon-button { display: inline-grid; place-items: center; flex: none; border: 0; background: transparent; color: var(--quiet); width: 2.5rem; height: 2.5rem; border-radius: .42rem; }
.tree { flex: 1 0 auto; min-height: 3.5rem; }
.tree ul { margin: 0; padding: 0; list-style: none; }
.tree ul ul { margin-left: .92rem; padding-left: .18rem; border-left: 1px solid var(--line); }
.tree .row { display: flex; align-items: center; min-width: 0; }
.tree a { flex: 1; padding: .43rem .3rem; font-size: .85rem; }
.tree a span { overflow: hidden; text-overflow: ellipsis; }
.tree a .icon { width: 1rem; height: 1rem; }
.tree .toggle, .tree .branch-space { width: 1.5rem; flex: 0 0 1.5rem; }
.toggle svg { width: .8rem; }
.toggle[aria-expanded=true] svg { transform: rotate(90deg); }
.tree-empty { padding: .5rem .75rem; color: var(--quiet); font-size: .83rem; }
.side-foot { display: grid; gap: .1rem; margin-top: 1.5rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.side-foot button { width: 100%; }
.content { width: 100%; max-width: 94rem; min-width: 0; margin: 0 auto; padding: clamp(1.7rem, 3.7vw, 3.7rem) clamp(1.25rem, 4vw, 4.6rem) 4rem; }
.content:focus:not(:focus-visible) { outline: none; }
.crumbs, .groups { display: flex; gap: .45rem; align-items: center; flex-wrap: wrap; }
.crumbs { margin-bottom: .85rem; color: var(--quiet); font-size: .82rem; }
.crumbs a, .groups a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: .75rem; height: .75rem; }
.groups { margin: 1rem 0; }
.groups a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .65rem; background: var(--surface); border: 1px solid var(--line); border-radius: .4rem; font-size: .85rem; }
.page-heading, .section-heading, .actions { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.page-heading, .section-heading { justify-content: space-between; }
.page-heading { gap: .85rem 1.25rem; margin-bottom: 1.5rem; }
.page-heading > div:first-child { min-width: 0; }
.subtitle, .detail-signal { margin-top: .4rem; font-size: .9rem; }
.detail-signal { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.actions { gap: .5rem; }
.section { margin-top: 1.7rem; }
.section-heading { margin-bottom: .85rem; }
.button, .text-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.55rem; padding: .5rem .86rem; border: 1px solid var(--button-border); border-radius: .48rem;
  background: var(--surface); color: var(--ink); font: 570 .86rem/1.35 var(--body); text-align: center; text-decoration: none;
}
.button:hover { background: var(--button-hover); border-color: var(--button-hover-border); }
.button.primary { background: var(--blue); color: var(--on-primary); border-color: var(--blue); }
.button.primary:hover { background: var(--primary-hover); }
.button.danger { color: var(--bad); border-color: var(--danger-border); }
.text-button { background: transparent; color: var(--blue); border: 0; padding: .35rem .2rem; }
.text-button:hover { text-decoration: underline; }
.button .icon { width: 1rem; height: 1rem; }
.section-nav { display: flex; gap: .35rem 1.35rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.35rem; }
.section-nav a { display: inline-flex; align-items: center; min-height: 2.65rem; padding: .5rem .07rem; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--quiet); font-size: .89rem; font-weight: 550; text-decoration: none; }
.section-nav a:hover { color: var(--ink); }
.section-nav a[aria-current] { color: var(--current); border-color: var(--blue); }
.fleet-summary { display: grid; grid-template-columns: minmax(12rem, 1.12fr) minmax(0, 1.65fr); gap: 2.5rem; align-items: center; padding: 1.35rem 1.6rem; background: var(--navy); color: white; border-radius: .8rem; }
.fleet-availability h2, .fleet-figures dt { font: 520 .85rem/1.4 var(--body); color: #d2d9e6; letter-spacing: normal; }
.fleet-count { font: 520 2.6rem/1.25 var(--display); letter-spacing: -.07em; font-variant-numeric: tabular-nums; }
.fleet-count span { color: #a6b4cb; font-size: .66em; }
.fleet-track { overflow: hidden; height: .3rem; background: #4a586e; border-radius: 1rem; margin-top: .48rem; }
.fleet-track svg { display: block; width: 100%; height: 100%; }
.fleet-track .online { fill: #76d1b0; }.fleet-track .offline { fill: #ffa795; }.fleet-track .waiting { fill: #a8b1c4; }
.fleet-waiting { font-size: .78rem; color: #d2d9e6; margin-top: .45rem; }
.fleet-figures { display: grid; grid-template-columns: 1fr 1.45fr; gap: 1rem; }
.fleet-figures > div { border-left: 1px solid #4b586e; padding-left: clamp(.7rem, 2vw, 1.7rem); }
.fleet-figures dt { display: flex; gap: .4rem; align-items: center; }
.fleet-figures dt .icon { color: #aebed4; width: 1rem; height: 1rem; }
.fleet-figures dd { margin-top: .4rem; font: 510 clamp(1.4rem, 2vw, 1.9rem)/1.25 var(--display); letter-spacing: -.055em; }
.fleet-figures .attention { color: #ffb4a5; }
.servers { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: .73rem; }
.server-card { display: grid; grid-template-columns: minmax(12rem, .78fr) minmax(0, 1.6fr) 1rem; align-items: center; gap: clamp(.7rem, 2vw, 2rem); padding: 1.15rem 1.3rem; text-decoration: none; color: inherit; }
.server-card + .server-card { border-top: 1px solid var(--line); }
.server-card:hover { background: var(--row-hover); }
.server-card { position: relative; }
.server-open { color: inherit; text-decoration: none; }
.server-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.server-open:focus-visible { outline: none; }
.server-open:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.folder-kind { color: var(--blue); font-size: .72rem; font-weight: 650; margin-bottom: .1rem; }
.folder-note { display: block; color: var(--quiet); font-size: .72rem; line-height: 1.4; margin-top: .25rem; }
.folder-stats .attention { color: var(--bad); }
.disk-toggle { position: relative; display: block; margin-top: .3rem; padding: .15rem .55rem; min-height: 1.6rem; border: 1px solid var(--strong-border); border-radius: .4rem; background: var(--surface); color: var(--blue); font-size: .75rem; font-weight: 550; }
.disk-toggle:hover { background: var(--row-hover); }
@media (pointer: coarse) { .disk-toggle { min-height: 2.75rem; } }
.server-top { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; }
.glyph { flex: none; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; background: var(--icon-surface); border: 1px solid var(--icon-border); border-radius: .6rem; color: var(--icon-ink); }
.glyph .icon { width: 1.33rem; height: 1.33rem; }
.identity { min-width: 0; }
.name-line { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; }
.server-name { font-size: 1.03rem; letter-spacing: -.03em; }
.server-place, .server-stamp { color: var(--quiet); font-size: .76rem; line-height: 1.45; overflow-wrap: anywhere; }
.server-place { margin-top: .16rem; }
.status { display: inline-flex; align-items: center; gap: .32rem; color: var(--quiet); font-size: .73rem; font-weight: 570; white-space: nowrap; }
.status::before { content: ""; width: .42rem; height: .42rem; background: currentColor; border-radius: 50%; }
.status.online, .apply-status.done, .state-text.sent { color: var(--good); }
.status.offline, .apply-status.failed, .state-text.failed, .retention-error { color: var(--bad); }
.row-chevron { color: #8491a7; width: .92rem; }
.card-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(.4rem, 1.45vw, 1.65rem); min-width: 0; }
.card-stats > div { min-width: 0; overflow-wrap: anywhere; display: flex; flex-direction: column; }
.card-stats dd { display: flex; flex: 1; flex-direction: column; }
.card-stats dt { font-size: .76rem; line-height: 1.35; color: var(--quiet); }
.card-stats dd { margin-top: .2rem; font-size: 1rem; line-height: 1.35; font-weight: 630; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.card-stats small { display: block; color: var(--quiet); font-weight: 400; font-size: .73rem; letter-spacing: 0; padding-bottom: .35rem; }
.capacity { display: block; appearance: none; border: 0; margin-top: auto; width: 100%; max-width: 6.7rem; height: 3px; border-radius: 3px; overflow: hidden; background: var(--track); color: var(--capacity); }
.capacity::-webkit-progress-bar { background: var(--track); }
.capacity::-webkit-progress-value { background: var(--capacity); }
.capacity::-moz-progress-bar { background: var(--capacity); }
@media (min-width: 1050px) {
  .card-stats { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
.card-time { margin-top: .24rem; }
.panel, .empty, .gate-card, .trend-card, .rule-list, .retention-servers { border: 1px solid var(--line); border-radius: .72rem; background: var(--surface); }
.panel, .gate-card { padding: clamp(1.1rem, 2.25vw, 1.8rem); }
.empty { color: var(--quiet); padding: 1.3rem; }
.empty h3 { font: 510 .94rem/1.5 var(--body); }
.empty p { margin-top: .25rem; font-size: .85rem; }
.loading { padding: 1rem 0; color: var(--quiet); }
.feedback { margin-bottom: .9rem; padding: .68rem .85rem; border-radius: .45rem; background: var(--success-bg); color: var(--success-ink); font-size: .9rem; }
.feedback.error { background: var(--error-bg); color: var(--bad); }
.filter-input, .chart-controls select, .stack input:not([type=checkbox]), .stack select {
  width: 100%; min-width: 0; min-height: 2.55rem; display: block; padding: .48rem .72rem;
  border: 1px solid var(--strong-border); border-radius: .45rem; background-color: var(--surface); color: var(--ink); font: 450 .9rem/1.35 var(--body);
}
.filter-input { width: min(100%, 16rem); }
input::placeholder { color: var(--quiet); opacity: 1; }
.chart-controls select, .stack select { appearance: none; padding-right: 2rem; background-image: url(chevron.svg?v=2); background-repeat: no-repeat; background-position: right .72rem center; background-size: .72rem; }
.chart-controls, .stack label, .retention-controls label { display: grid; gap: .3rem; min-width: 0; }
.chart-controls { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .85rem; margin-bottom: 1rem; }
.chart-controls label, .stack label { font: 560 .81rem/1.45 var(--body); min-width: 0; }
.chart-controls select { margin-top: .27rem; }
.trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: .85rem; }
.trend-card { min-width: 0; padding: 1.15rem; }
.trend-card header h3 { color: var(--secondary); font-size: .89rem; font-weight: 570; }
.trend-value { margin-top: .22rem; font: 560 1.75rem/1.25 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.trend-total, .trend-time { color: var(--quiet); font-size: .76rem; }
.trend-total:empty { display: none; }
.mini-plot { margin: .45rem 0 .15rem; min-height: 8rem; display: grid; align-content: center; }
.trend-card footer { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--divider); }
.trend-card .text-button { font-size: .8rem; }
.plot { display: block; width: 100%; height: auto; touch-action: pan-y pinch-zoom; cursor: crosshair; }
.plot .grid { stroke: var(--grid); stroke-width: 1; }
.plot .axis-label { font: 12px Source, sans-serif; fill: var(--axis); }
.plot .series-fill { fill: var(--plot-fill); }
.plot .series-line { fill: none; stroke: var(--plot-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .single { fill: var(--plot-line); }
.inspect-layer { pointer-events: none; }
.inspect-line { stroke: #687b9a; stroke-width: 1; stroke-dasharray: 3 3; }
.inspect-dot { fill: var(--blue); stroke: white; stroke-width: 2; }
.inspect-box rect { fill: var(--navy); stroke: #c3cfdf; }
.inspect-date { font: 13px Source, sans-serif; fill: #d7e0ef; }
.inspect-value { font: 600 14px Source, sans-serif; fill: white; }
.plot-space, .plot-message { min-height: 13rem; }
.plot-message { display: grid; place-items: center; color: var(--quiet); }
.chart-foot { margin-top: .5rem; }
details summary { color: var(--secondary); font-size: .9rem; font-weight: 580; padding: .55rem 0; overflow-wrap: anywhere; }
.chart-table, .database-details { border-top: 1px solid var(--line); margin-top: 1rem; }
.table-scroll { max-height: 23rem; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: .55rem .65rem; }
thead { position: sticky; top: 0; background: var(--surface); color: var(--quiet); }
.rule-list, .retention-servers { overflow: hidden; }
.rule, .retention-server { display: flex; justify-content: space-between; align-items: center; gap: .65rem 1.25rem; padding: .9rem 1.1rem; min-width: 0; }
.rule + .rule, .retention-server + .retention-server { border-top: 1px solid var(--line); }
.rule > div, .retention-server > div { min-width: 0; overflow-wrap: anywhere; }
.rule strong, .retention-server h3 { font-size: .92rem; }
.rule small, .retention-server small { display: block; color: var(--quiet); font-size: .78rem; }
.rule-targets { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .48rem; background: var(--canvas); font-size: .85rem; }
.rule-targets p + p { margin-top: .45rem; }
.rule-targets ul { padding-left: 1.2rem; margin: .2rem 0 .6rem; }
.rule-targets li { padding-block: .15rem; overflow-wrap: anywhere; }
.apply-status, .state-text { font-size: .8rem; font-weight: 580; color: var(--quiet); }
.apply-status.pending { color: var(--warning); }
.settings-panel > p { margin: .45rem 0 .9rem; max-width: 63ch; }
.retention-controls { max-width: 32rem; }
.period-values { display: flex; gap: .5rem 2rem; flex-wrap: wrap; }
.period-values dt { color: var(--quiet); font-size: .8rem; }
.period-values dd { font-weight: 600; }
.policy-current { padding: .9rem 0; margin-bottom: .4rem; border-top: 1px solid var(--line); }
.retention-server { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; }
.retention-error { grid-column: 1 / -1; font-size: .84rem; overflow-wrap: anywhere; }
.database-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(10rem,100%),1fr)); gap: 1.3rem .8rem; margin: 1.4rem 0 1rem; }
.database-stats dt, .database-stats small { color: var(--quiet); font-size: .78rem; }
.database-stats dd { margin: .25rem 0; font: 550 clamp(1.15rem, 1.8vw, 1.65rem)/1.35 var(--display); letter-spacing: -.055em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.database-stats small { display: block; }
.database-details dl { max-width: 35rem; }
.database-details dl > div { display: flex; justify-content: space-between; gap: .8rem; padding: .32rem 0; }
.database-details dt { overflow-wrap: anywhere; }
.database-details dd { font-variant-numeric: tabular-nums; }
.database-details p, .database-panel .retention-error { margin-top: .65rem; }
dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); background: var(--surface); box-shadow: 0 18px 70px #1522382a; overscroll-behavior: contain; }
dialog::backdrop { background: var(--overlay); }
.dialog-inner { padding: 1.35rem; }
.dialog-heading { margin-bottom: 1rem; }
.dialog-heading h2 { font-size: 1.25rem; }
dialog.overview-modal { width: min(64rem, calc(100% - 2rem)); }
.overview-builder { min-width: 0; border: 0; margin: 0; padding: 0; }
.overview-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.35rem; }
.overview-columns section { min-width: 0; }
.overview-columns h3 { font-size: .98rem; margin-bottom: .55rem; }
.overview-catalog { max-height: 24rem; overflow: auto; padding: .25rem .2rem; margin-top: .5rem; }
.overview-catalog h4 { margin: .65rem 0 .25rem; color: var(--quiet); font-size: .78rem; }
.overview-choice { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.overview-choice .button { flex: none; font-size: .75rem; padding-inline: .6rem; }
.overview-entry-name { min-width: 0; overflow-wrap: anywhere; }
.overview-entry-name strong, .overview-entry-name small { display: block; }
.overview-entry-name strong { font-size: .87rem; line-height: 1.35; }
.overview-entry-name small { margin-top: .15rem; color: var(--quiet); font-size: .73rem; font-weight: 400; line-height: 1.4; }
.overview-order { display: grid; gap: .5rem; max-height: 27rem; overflow: auto; list-style: none; padding: .25rem; margin: .65rem 0 .3rem; }
.overview-order-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: .45rem; padding: .6rem .45rem; background: var(--canvas); border: 1px solid var(--line); border-radius: .45rem; }
.overview-position { color: var(--quiet); font-size: .75rem; font-variant-numeric: tabular-nums; }
.overview-drag { align-self: stretch; display: grid; align-content: center; padding: .2rem; color: var(--quiet); cursor: grab; user-select: none; }
.overview-order-row.dragging { opacity: .5; }
.overview-order-row.drop-before { border-top: 3px solid var(--blue); }
.overview-order-row.drop-after { border-bottom: 3px solid var(--blue); }
.overview-order-controls { display: flex; gap: .08rem; }
.overview-order-controls .icon-button { width: 2rem; min-width: 2rem; height: 2.2rem; font-size: 1.1rem; }
.defaults-profile { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.defaults-profile h3, .defaults-profile p { margin: .2rem 0; }
.defaults-builder { min-width: 0; padding: 0; border: 0; }
.defaults-order { display: grid; gap: .5rem; padding: 0; margin: 1rem 0; list-style: none; }
.defaults-order-row { display: grid; grid-template-columns: 1.3rem minmax(0,1fr) auto; align-items: center; gap: .4rem; padding: .5rem; border: 1px solid var(--line); border-radius: .45rem; }
.defaults-name { overflow-wrap: anywhere; font-size: .9rem; }
.defaults-add { display: flex; align-items: flex-end; gap: .5rem; margin-bottom: 1rem; }
.defaults-add label { flex: 1; min-width: 0; }
.defaults-add select { width: 100%; }
.overview-form > .actions { position: sticky; bottom: 0; z-index: 1; background: var(--surface); padding-block: .8rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .overview-columns { grid-template-columns: minmax(0, 1fr); }
  .overview-selected { grid-row: 1; }
  .overview-order, .overview-catalog { max-height: 20rem; }
  .overview-order-row { grid-template-columns: auto auto minmax(0, 1fr); }
  .overview-order-controls { grid-column: 3; justify-self: end; }
  .overview-order-controls .icon-button { width: 2.75rem; min-width: 2.75rem; height: 2.75rem; }
}
.stack, .metric-preferences { display: grid; gap: .9rem; }
.stack .actions { justify-content: flex-end; }
.stack .text-button { justify-self: start; }
.metric-preferences fieldset, .period-editor { min-width: 0; margin: 0; padding: .7rem .85rem .9rem; border: 1px solid var(--line); border-radius: .48rem; }
.metric-preferences legend, .period-editor legend { padding: 0 .24rem; font-size: .9rem; font-weight: 630; }
.display-options { border-block: 1px solid var(--line); }
.display-options[open] .metric-preferences { margin: .45rem 0 .9rem; }
.card-picker { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.card-picker p { grid-column: 1/-1; }
.stack .disk-toggle-setting { display: flex; align-items: center; gap: .5rem; align-self: end; min-height: 2.55rem; }
.disk-toggle-setting input { accent-color: var(--blue); }
.metric-checks { max-height: 16rem; overflow: auto; margin-top: .7rem; }
fieldset.check-group { border: 0; padding: 0 0 .65rem; }
.check-group legend { color: var(--quiet); font-size: .78rem; }
.stack .check-group label { display: flex; align-items: center; gap: .5rem; padding: .35rem 0; font-weight: 450; }
.check-group input { accent-color: var(--blue); }
.period-editor { display: grid; gap: .45rem; }
.token-panel { display: grid; gap: .8rem; }
.token, .guide pre { display: block; background: var(--code-bg); border: 1px solid var(--icon-border); border-radius: .45rem; padding: .85rem; }
.token { user-select: all; overflow-wrap: anywhere; }
.gate { width: min(100%, 27rem); margin: clamp(2rem, 13vh, 9rem) auto; padding: 0 1rem; }
.gate-brand { margin-bottom: 1.4rem; }
.gate-card h1 { font-size: 1.9rem; }
.gate-card h1 + p { margin-top: .6rem; color: var(--quiet); font-size: .9rem; }
.gate-card .stack { margin-top: 1.45rem; }
.guide { max-width: 52rem; margin: 2rem auto 4rem; padding: 0 1.1rem; }
.guide > .brand { margin-bottom: 1.5rem; }
.guide article { padding: clamp(1rem, 4vw, 2.3rem); }
.guide article h2 { margin: 1.65rem 0 .5rem; }
.guide article p { font-size: .94rem; max-width: 68ch; margin: .7rem 0; }
.guide pre { overflow: auto; max-width: 100%; color: #dfebff; background: var(--navy); border: 0; font: .8rem/1.65 ui-monospace, monospace; }
.guide p code { overflow-wrap: anywhere; }
.guide article details { border-top: 1px solid var(--line); margin-top: .8rem; }
@media (min-width: 761px) and (max-width: 1080px) {
  .app { grid-template-columns: 12rem minmax(0, 1fr); }
  .side { padding-inline: .6rem; }
  .content { padding-inline: 1.35rem; }
  .server-card { grid-template-columns: minmax(9rem,.75fr) minmax(0,1.7fr) .7rem; padding-inline: 1rem; gap: .75rem; }
  .server-top { gap: .5rem; }
  .server-top .glyph { display: none; }
}
@media (max-width: 760px), (pointer: coarse) and (max-width: 960px) and (max-height: 500px) {
  .app { display: block; }
  .mobile-bar {
    display: flex; position: sticky; top: 0; z-index: 3; min-height: 3.55rem; background: var(--chrome); color: var(--ink);
    border-bottom: 1px solid var(--line); padding: max(.32rem,env(safe-area-inset-top)) max(.85rem,env(safe-area-inset-right)) .32rem max(1rem,env(safe-area-inset-left));
  }
  .mobile-bar .brand { gap: .45rem; }
  .mobile-bar .brand span { font-family: var(--body); font-weight: 450; letter-spacing: normal; color: var(--quiet); }
  .side {
    position: fixed; inset: 0 auto 0 0; height: 100dvh; z-index: 6; width: min(19rem,89vw);
    padding: max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left));
    transform: translateX(-105%); visibility: hidden;
  }
  .side.nav-motion { transition: transform .18s ease-out, visibility 0s .18s; }
  .side.open { transform: none; visibility: visible; transition-delay: 0s; }
  .shade:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 5; border: 0; background: var(--overlay); }
  .side-brand { margin-bottom: 1.3rem; }
  .side #close-nav { display: inline-grid; }
  html:has(.side.open), html:has(dialog[open]) { overflow: hidden; }
  .content { padding: 1.3rem max(1rem,env(safe-area-inset-right)) max(2.5rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); }
  .page-heading { margin-bottom: 1.1rem; }
  .page-heading .actions { gap: .45rem; }
  .section { margin-top: 1.4rem; }
  .section-nav { gap: 1rem; margin-bottom: 1rem; }
  .fleet-summary { gap: 1.15rem; padding: 1.08rem 1.15rem; }
  .fleet-count { font-size: 2.25rem; }
  .server-card { grid-template-columns: minmax(9rem,.75fr) minmax(0,1.5fr); padding: 1rem; gap: .75rem; }
  .row-chevron { display: none; }
  .server-top .glyph { width: 2.05rem; height: 2.05rem; }
  .card-stats { gap: .55rem; }
  .trend-grid { grid-template-columns: repeat(auto-fit,minmax(min(17rem,100%),1fr)); }
  .trend-card { padding: .88rem; }
  .chart-controls { gap: .6rem; }
  .retention-server { grid-template-columns: minmax(0,1fr) auto; }
  .retention-server .period-values { grid-row: 2; grid-column: 1 / -1; }
  .filter-input, .chart-controls select, .stack input:not([type=checkbox]), .stack select { font-size: 1rem; min-height: 2.75rem; }
  .button, .icon-button, .text-button, .section-nav a, .tree a, .navigation a, .side-foot a, .side-foot button, details summary { min-height: 2.75rem; }
  .icon-button, .tree .toggle { min-width: 2.75rem; }
  .server-card, .guide h2, details { scroll-margin-top: 4.4rem; }
}
@media (max-width: 600px) {
  .fleet-summary { grid-template-columns: 1fr; gap: .9rem; }
  .fleet-availability { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .15rem .8rem; }
  .fleet-availability h2 { order: 1; }
  .fleet-count { grid-row: 1; grid-column: 1; }
  .fleet-track, .fleet-waiting { grid-column: 1 / -1; order: 2; }
  .fleet-figures { grid-template-columns: 1fr 1.35fr; gap: .75rem; }
  .fleet-figures > div { padding: 0; border: 0; }
  .fleet-figures dt { font-size: .73rem; }
  .fleet-figures dd { font-size: 1.12rem; margin-top: .05rem; }
  .section-heading .filter-input { width: min(56%, 15rem); }
  .servers { display: grid; gap: .65rem; background: none; border: 0; overflow: visible; }
  .server-card, .server-card + .server-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: .68rem; padding: .9rem; }
  .server-top { align-items: flex-start; gap: .58rem; margin-bottom: .72rem; }
  .identity { flex: 1; }
  .name-line { justify-content: space-between; }
  .server-place, .server-stamp { display: inline; }
  .server-stamp::before { content: " · "; }
  .card-stats { grid-auto-columns: auto; padding-top: .66rem; gap: .45rem; border-top: 1px solid var(--divider); }
  .card-stats dt { font-size: .72rem; }
  .card-stats dd { font-size: .9rem; }
  .card-stats small { font-size: .68rem; }
  .rule { align-items: flex-start; flex-wrap: wrap; }
  .chart-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-section .chart-controls > :first-child { grid-column: 1 / -1; }
  .retention-controls { grid-template-columns: minmax(0,1fr); }
  .database-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card-picker { grid-template-columns: minmax(0,1fr); }
  .side-foot { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 380px) {
  .content { padding-inline: max(.75rem,env(safe-area-inset-left)) max(.75rem,env(safe-area-inset-right)); }
  .page-heading .button { padding-inline: .58rem; font-size: .81rem; }
  .page-heading .button .icon { width: .9rem; }
  .server-card { padding: .75rem; }
  .card-stats { column-gap: .32rem; }
  .card-stats dd { font-size: .85rem; }
  .server-top .glyph { width: 1.8rem; height: 1.8rem; }
  .dialog-inner { padding: .95rem; }
  .chart-detail .chart-controls { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}

[data-appearance="graphite"] .servers { display: grid; gap: .55rem; overflow: visible; background: none; border: 0; }
[data-appearance="graphite"] .server-card { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .7rem; }
[data-appearance="graphite"] .server-card:hover { background: var(--row-hover); }
[data-appearance="graphite"] .fleet-summary { background: var(--surface); color: var(--ink); }
[data-appearance="graphite"] .fleet-summary :is(h2, dt, .icon, .fleet-count span, .fleet-waiting) { color: var(--quiet); }
[data-appearance="graphite"] .fleet-figures > div { border-color: var(--line); }
[data-appearance="graphite"] .fleet-figures .attention { color: var(--bad); }
[data-appearance="graphite"] .fleet-track { background: var(--track); }
[data-appearance="graphite"] .fleet-track .online { fill: var(--good); }
[data-appearance="graphite"] .fleet-track .offline { fill: var(--bad); }
[data-appearance="graphite"] .fleet-track .waiting { fill: var(--quiet); }

.appearance-panel > p { margin: .35rem 0 1.1rem; }
.ram-history-note { display: block; margin-top: .5rem; }
.chart-options { margin: 1.5rem 0 0; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.chart-options legend { padding: 0 .5rem 0 0; font-weight: 600; }
.chart-scale-choice { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; }
.chart-scale-choice input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--blue); }
.chart-scale-choice strong { font-size: .95rem; font-weight: 600; }
.chart-options p { margin: .65rem 0 0; max-width: 65ch; font-size: .85rem; line-height: 1.5; }
.theme-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .65rem;
  margin: 0; padding: 0; min-width: 0; border: 0;
}
.theme-options label {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto 1fr;
  column-gap: .45rem; align-items: center; align-content: start; cursor: pointer;
  padding: .7rem; background: var(--surface); border: 1px solid var(--button-border); border-radius: .55rem;
}
.theme-options label:hover { border-color: var(--button-hover-border); }
.theme-options label:has(:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.theme-options label:has(:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.theme-options input { margin: 0; accent-color: var(--blue); width: 1rem; height: 1rem; }
.theme-options strong { font-size: .9rem; font-weight: 600; }
.theme-options small { align-self: start; grid-column: 1 / -1; margin-top: .2rem; color: var(--quiet); font-size: .78rem; }
.theme-preview {
  --sample-bg: #e8ecf3; --sample-nav: #c4cedc; --sample-card: white; --sample-line: #becae0;
  grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; align-items: stretch; gap: 5px;
  height: 3.15rem; padding: .55rem .5rem .5rem; margin-bottom: .65rem;
  border-radius: .28rem; border-left: .75rem solid var(--sample-nav); background: var(--sample-bg);
}
.theme-preview::before, .theme-preview::after {
  content: ""; border-radius: .17rem; background: linear-gradient(var(--sample-line),var(--sample-line)) .35rem .45rem / 45% 3px no-repeat, var(--sample-card);
}
.preview-dark, .preview-graphite { --sample-bg: #131923; --sample-nav: #303a4a; }
.preview-dark { --sample-card: #2d3a4d; --sample-line: #9badc5; }
@media (prefers-color-scheme: dark) {
  .preview-auto { --sample-bg: #131923; --sample-nav: #303a4a; --sample-card: #2d3a4d; --sample-line: #9badc5; }
}
@media (max-width: 600px) {
  .theme-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .theme-options label { padding: .6rem; }
}
