/* The dashboard look of a server's page (views/server-page.js, look 'dash': server-cube.js DEFAULT_LOOK): flat white (dark grey) cards with one-pixel lines,
   tables and a plain page behind them, as in the dashboards of Cloudflare. (The buttons are the portal's own.) Everything is under .dash-page, so the other looks
   (the cover flow, the prism, the list) are as they were; to go back, set DEFAULT_LOOK to 'capsule' or pick another look at the bottom left. */
.dash-page {
  --dash-ac: #f6821f;
  --dash-pn: light-dark(#ffffff, #1f1f1f); /* solid: the list of the switcher, the toggle */
  --dash-gl: light-dark(rgba(255, 255, 255, 0.62), rgba(30, 30, 32, 0.55)); /* the cards, the boxes and the bar: see-through, over the blurred picture */
  --dash-ln: light-dark(#e1e1e1, #343434);
  --dash-bg: light-dark(#f4f4f4, #171717);
  --dash-dim: light-dark(#6b6b6b, #9a9a9a);
  --sticker-line: var(--dash-ln);
  --sticker-w: 1px;
  --radius-card: 8px;
  --card-glass: var(--dash-gl);
  --surface: var(--dash-gl);
  --glass-strong: var(--dash-gl);
}
/* The personal colour of the dashboard look: the colour of the server's own icon (server-icon.png). server-page.js sets --ac-h (hue) and --ac-s (saturation) and the class
   ac-icon only when a colour was read from the icon; a server with no icon of its own (or a grey one) keeps the portal's blue. */
.dash-page {
  /* the colour of the server: that of its icon (views/server-page.js sets --ac-h and --ac-s on the page), or a blue when it has no icon (these two); */
  --ac-h: 220;
  --ac-s: 70%;
  /* made for each mode: in the dark mode a pastel (light, a little less saturated), in the light mode a deeper one (darker, more saturated) */
  --ac-s-dark: clamp(38%, calc(var(--ac-s) * 0.85), 68%);
  --ac-s-light: clamp(55%, calc(var(--ac-s) + 12%), 90%);
  --accent: light-dark(hsl(var(--ac-h) var(--ac-s-light) 33%), hsl(var(--ac-h) var(--ac-s-dark) 80%));
  --accent-hover: light-dark(hsl(var(--ac-h) var(--ac-s-light) 39%), hsl(var(--ac-h) var(--ac-s-dark) 86%));
  --accent-ink: light-dark(#ffffff, #10131c);
  --accent-soft: light-dark(hsl(var(--ac-h) var(--ac-s-light) 33% / 0.14), hsl(var(--ac-h) var(--ac-s-dark) 80% / 0.16));
}
/* The page behind: the picture of the portal (backdrop.css), blurred, in place of a plain grey. It is a layer of its own behind everything (a blur on the body itself would blur the page). */
body:has(.dash-page) { background-image: none; background-color: transparent; } /* (the page colour is the html's; a colour on the body would lie over the picture) */
body:has(.dash-page)::before { content: ""; position: fixed; inset: -60px; z-index: -1; background: var(--page-photo) center / cover no-repeat; -webkit-filter: blur(22px); filter: blur(22px); pointer-events: none; }
/* The picture is at 80% of its brightness from the first moment the page is there (no dimming to wait for). */
body:has(.dash-page)::before { -webkit-filter: blur(22px) brightness(0.8); filter: blur(22px) brightness(0.8); }
.dash-page.server-veil { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.dash-page { padding-bottom: 120px; } /* (room for the glass bar of the tabs) */

/* The way back as a path, the head as a plain row. */
.dash-page .view-bar { margin: 0 0 6px; }
.dash-page .view-bar .server-back { padding: 0; border: 0; background: none; color: var(--dash-dim); font-size: 13px; font-weight: 500; }
.dash-page .view-bar .server-back:hover { color: var(--text); background: none; }
.dash-page .server-head { padding-bottom: 14px; border-bottom: 1px solid var(--dash-ln); margin-bottom: 16px; }
.dash-page .server-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.dash-page .server-meta, .dash-page .page-sub { color: var(--dash-dim); }

/* Cards and boxes: flat, with a line. */
.dash-page .mc-stat, .dash-page .mc-players-section, .dash-page .mc-settings-section, .dash-page .settings-card, .dash-page .mc-pane, .dash-page .notice,
.dash-page .ov-card, .dash-page .ov-box {
  border: 1px solid var(--dash-ln);
  border-radius: 8px;
  background: var(--dash-gl);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.dash-page .mc-log { border: 1px solid var(--dash-ln); box-shadow: none; border-radius: 8px; background: #111; }
/* The buttons are the portal's own (the pressed blue and grey ones); only the plain page and the cards are different here. */

/* ---- the modpack banner: wide, under the head, with the server's icon faded in from the right ---- */
.dash-page .mp-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; gap: 8px 24px; width: 100%; min-height: 132px; margin: 0 0 18px; padding: 22px 28px; border: 1px solid var(--dash-ln); border-radius: 14px; background: linear-gradient(120deg, #17171a, #25252a); color: #fff; }
.dash-page .mp-banner > :not(.mp-banner-bg) { position: relative; z-index: 1; }
.dash-page .mp-banner .mp-launchers { grid-column: 1; grid-row: 1; align-self: end; }
.dash-page .mp-banner .mp-banner-text { grid-column: 1; grid-row: 2; align-self: start; max-width: 62ch; font-size: 14px; }
.dash-page .mp-banner .mp-banner-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; }
.dash-page .mp-banner .mp-banner-title { font-size: 22px; }
.dash-page .mp-banner .mp-logo { width: 34px; height: 34px; }
.dash-page .mp-banner .mp-banner-bg { position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; opacity: 0.5; -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 100%); mask-image: linear-gradient(to left, #000 0%, transparent 100%); pointer-events: none; }
@media (max-width: 760px) { .dash-page .mp-banner { grid-template-columns: minmax(0, 1fr); } .dash-page .mp-banner .mp-banner-actions { grid-column: 1; grid-row: auto; flex-direction: row; } }

/* ---- the overview tab (views/server-overview.js) ---- */
.ov { display: flex; flex-direction: column; gap: 14px; }
.ov-line { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--dash-ln); border-radius: 8px; background: var(--dash-gl); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); font-size: 14px; font-weight: 600; }
.ov-line .ov-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #8e8e98; }
.ov-line.on .ov-dot { background: #35c46a; }
.ov-line.busy .ov-dot { background: var(--dash-ac); }
.ov-line.warn .ov-dot { background: #f5b83d; }
.ov-line-text { min-width: 0; }
.ov-s-none { color: var(--dash-dim); }
.ov-s-ai { color: var(--text); }
.ov-s-warn { color: light-dark(#b97800, #f5b83d); }
.ov-s-bad { color: var(--error); }
.ov-health-link { margin-left: 4px; color: var(--accent); font-weight: 600; white-space: nowrap; }
/* the line takes the colour of the step: yellow for a warning, red for a problem (over the glass of the cards, so that the picture still shows through) */
.ov-line.warn { border-color: color-mix(in srgb, #f5b83d 50%, var(--dash-ln)); background: color-mix(in srgb, #f5b83d 14%, var(--dash-gl)); }
.ov-line.bad { border-color: color-mix(in srgb, var(--error) 50%, var(--dash-ln)); background: color-mix(in srgb, var(--error) 16%, var(--dash-gl)); }
.ov-line.bad .ov-dot { background: var(--error); }
.ov-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ov-card { min-width: 0; padding: 12px 14px; }
.ov-card p { margin: 0; }
.ov-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; }
.ov-card-label { color: var(--dash-dim); font-size: 12.5px; }
.ov-toggle { display: inline-flex; padding: 2px; border-radius: 7px; background: var(--fill); }
.ov-toggle-opt { margin: 0; padding: 2px 8px; border: 0; border-radius: 5px; background: transparent; color: var(--dash-dim); font: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.ov-toggle-opt.on { background: var(--dash-pn); color: var(--text); box-shadow: 0 0 0 1px var(--dash-ln); }
.ov-graph { display: block; width: 100%; height: 34px; margin-top: 8px; }
.ov-area { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: none; }
.ov-line-path { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.ov-meter { display: block; width: 100%; margin-top: 10px; }
.ov-line-note { margin-left: auto; color: var(--dash-dim); font-size: 13px; font-weight: 500; text-align: right; }
.ov-card-value { margin-top: 2px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.ov-card-sub { margin-top: 2px; color: var(--dash-dim); font-size: 12.5px; overflow-wrap: anywhere; }
.ov-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
/* The three boxes are the same height always: five rows of 35px, the title and the pager, whatever is in them; a row never grows (one line, cut with ...). */
.ov-paged { display: flex; flex-direction: column; min-height: 268px; }
.ov-paged .ov-table { table-layout: fixed; }
.ov-paged .ov-table td { height: 35px; padding-top: 0; padding-bottom: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-paged .ov-table td:first-child { width: 46%; }
.ov-paged .ov-empty { height: 35px; line-height: 35px; padding-top: 0; padding-bottom: 0; }
.ov-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; height: 44px; border-top: 1px solid var(--dash-ln); color: var(--dash-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ov-pager-off { visibility: hidden; }
.ov-pager-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text); font-size: 18px; line-height: 1; cursor: pointer; }
.ov-pager-btn:hover:not(:disabled) { background: var(--hover); }
.ov-pager-btn:disabled { color: var(--faint); cursor: default; }
.ov-box { min-width: 0; overflow: hidden; }
.ov-box-title { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--dash-ln); font-size: 14px; font-weight: 600; }
.ov-empty { margin: 0; padding: 14px; color: var(--dash-dim); font-size: 13px; }
.ov-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ov-table td { padding: 8px 14px; border-bottom: 1px solid var(--dash-ln); overflow-wrap: anywhere; }
.ov-table tr:last-child td { border-bottom: 0; }
.ov-table td:first-child { color: var(--dash-dim); white-space: nowrap; }
@media (max-width: 1100px) { .ov-tables { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { .ov-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ov-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---- the console fills the window: the page is as tall as the window, the tab's body takes what the head leaves ---- */
.dash-page { display: flex; flex-direction: column; min-height: 100dvh; }
.dash-page > .server-area { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dash-page .server-area > :not(.server-tab-body) { flex: none; }
.dash-page .server-tab-body:has(> .mc-console) { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.dash-page .mc-console { flex: 1; min-height: 360px; }
.dash-page .mc-log { height: 0; flex: 1 1 0; min-height: 280px; }

/* ---- the settings in two columns: the list entry on the left, the rest stacked on the right (a grid with the first section tall) ---- */
.dash-page .mc-settings-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto) 1fr; /* (the last row takes the height that the tall box at the left has over the three at the right: no gap between them) */ gap: 16px; grid-auto-flow: row dense; /* (dense: the boxes at the right fill the rows beside the tall one, whatever comes between them in the page) */ align-items: start; max-width: none; }
.dash-page .mc-settings-form > section { grid-column: 2; }
.dash-page .mc-settings-form > section:first-child { grid-column: 1; grid-row: 1 / span 4; }
.dash-page .mc-settings-form > :not(section) { grid-column: 1 / -1; }
@media (max-width: 1000px) { .dash-page .mc-settings-form { grid-template-columns: minmax(0, 1fr); } .dash-page .mc-settings-form > section, .dash-page .mc-settings-form > section:first-child { grid-column: 1; grid-row: auto; } }

/* ---- the AI summary at the top of the overview ---- */
.ov-ai { padding: 14px 16px; border: 1px solid var(--dash-ln); border-radius: 8px; background: var(--dash-gl); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.ov-ai[hidden] { display: none; }
.ov-ai-head { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.ov-ai-title { margin: 0; font-size: 14px; font-weight: 600; }
.ov-ai-title::before { content: "\2726"; margin-right: 6px; color: var(--accent); }
.ov-ai-at { color: var(--dash-dim); font-size: 12.5px; }
.ov-ai-btn { margin-left: auto; padding: 4px 12px; font-size: 13px; }
.ov-ai-text { margin: 0; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.ov-ai-note { margin: 0; color: var(--dash-dim); font-size: 14px; }
.ov-ai-note.bad { margin-top: 8px; color: var(--error); font-size: 13px; }

/* ---- the tab list of the game: who is on ---- */
.ov-card-list { padding: 8px; }
.ov-tablist { box-sizing: border-box; height: 100%; min-height: 112px; max-height: 150px; padding: 8px 10px; overflow: auto; border-radius: 6px; background: rgba(24, 24, 27, 0.92); color: #f1f1f4; }
.ov-tab-empty { margin: 34px 0 0; text-align: center; color: #9d9da8; font-size: 13px; }
.ov-tab-names { margin: 0; padding: 0; list-style: none; column-width: 130px; column-gap: 12px; }
.ov-tab-name { display: flex; align-items: center; gap: 6px; padding: 2px 4px; break-inside: avoid; font-size: 13px; overflow-wrap: anywhere; background: rgba(255, 255, 255, 0.07); border-radius: 3px; margin-bottom: 2px; }
.ov-head, .ov-skin { flex: none; width: 16px; height: 16px; border-radius: 2px; }
.ov-skin { image-rendering: pixelated; }
.ov-head-0 { background: #d98a5b; }
.ov-head-1 { background: #6bb36b; }
.ov-head-2 { background: #5b8fd9; }
.ov-head-3 { background: #b36bd9; }
.ov-head-4 { background: #d9c25b; }
.ov-head-5 { background: #5bc9c9; }
.ov-head-6 { background: #d95b7a; }
.ov-head-7 { background: #9a9aa8; }

/* ---- charts: the tick speed, the memory, the CPU; the storage bar ---- */
.ov-chart { display: flex; gap: 8px; margin-top: 10px; }
.ov-axis { display: flex; flex: none; flex-direction: column; justify-content: space-between; min-width: 26px; color: var(--dash-dim); font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.ov-chart-svg { flex: 1; min-width: 0; height: 72px; border-left: 1px solid var(--dash-ln); border-bottom: 1px solid var(--dash-ln); }
.ov-grid { fill: none; stroke: var(--dash-ln); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ov-grid.target { stroke: color-mix(in srgb, var(--accent) 50%, transparent); stroke-dasharray: 4 3; }
.ov-usage { margin-top: 12px; }
.ov-stack { display: block; width: 100%; height: 26px; border-radius: 6px; overflow: hidden; background: var(--fill); }
.ov-seg-0 { fill: #4f78f5; background: #4f78f5; }
.ov-seg-1 { fill: #f6821f; background: #f6821f; }
.ov-seg-free { fill: color-mix(in srgb, var(--dash-dim) 28%, transparent); background: color-mix(in srgb, var(--dash-dim) 28%, transparent); }
.ov-use-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.ov-use { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.ov-swatch { width: 10px; height: 10px; border-radius: 3px; }
.ov-use-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-use-size { color: var(--dash-dim); font-variant-numeric: tabular-nums; }
.ov-use-pct { min-width: 46px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- the cards of the row are columns: what is in a card takes the height the row has, so that a card that grows makes the others grow with it ---- */
.ov-cards { grid-auto-rows: minmax(200px, auto); }
.ov-card { display: flex; flex-direction: column; }
.ov-card > .ov-chart { flex: 1; min-height: 64px; }
.ov-card > .ov-chart .ov-chart-svg { height: auto; align-self: stretch; contain: size; } /* (the picture takes the room the card has: it does not make the row as tall as its own shape) */
.ov-card > .ov-usage { flex: 1; }
.ov-card-list { position: relative; }
.ov-card-list .ov-tablist { position: absolute; inset: 8px; height: auto; min-height: 0; max-height: none; }

.ov-ai-link { color: var(--accent); font-weight: 600; }

/* ---- the list of what happened (views/server-logs.js) ---- */
.ov-logbox { margin-top: 0; }
.ov-log-table { table-layout: fixed; }
.ov-log-table td { vertical-align: top; }
.ov-log-time { width: 84px; color: var(--dash-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ov-log-kind { width: 96px; }
.ov-log-msg { overflow-wrap: anywhere; }
.ov-log-count { color: var(--dash-dim); font-weight: 600; }
.ov-log-act { width: 40px; text-align: right; }
.ov-kind { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ov-kind-crash { background: color-mix(in srgb, var(--pal-red-fill) 24%, transparent); color: var(--pal-red); }
.ov-kind-stuck { background: color-mix(in srgb, var(--pal-rose-fill) 26%, transparent); color: var(--pal-rose); }
.ov-kind-error { background: color-mix(in srgb, var(--pal-rose-fill) 26%, transparent); color: var(--pal-rose); }
.ov-kind-warn { background: color-mix(in srgb, var(--pal-amber-fill) 36%, transparent); color: var(--pal-amber); }
.ov-kind-info { background: var(--fill); color: var(--dash-dim); }
.ov-log-toggle { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--dash-dim); cursor: pointer; }
.ov-log-toggle:hover { background: var(--hover); color: var(--text); }
.ov-log-toggle .icon { width: 14px; height: 14px; transition: transform 0.15s ease; }
.ov-log-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.ov-log-detail[hidden] { display: none; }
.ov-log-detail td { position: relative; padding: 0 14px 12px; }
.ov-log-pre { max-height: 320px; margin: 0; padding: 10px 12px; overflow: auto; border-radius: 6px; background: #111; color: #d7d7d9; font: 12px/1.5 var(--mono); white-space: pre; user-select: text; -webkit-user-select: text; }
.ov-log-copy { position: absolute; top: 8px; right: 26px; padding: 2px 10px; font-size: 12px; }
.ov-log-foot { padding: 10px 14px 12px; border-top: 1px solid var(--dash-ln); }
@media (prefers-reduced-motion: reduce) { .ov-log-toggle .icon { transition: none; } }

/* ---- the starts and stops: a pill for each (as the kinds of the log), and why in the last column ---- */
.ov-kind-on { background: color-mix(in srgb, var(--pal-green-fill) 26%, transparent); color: var(--pal-green); }
.ov-kind-off { background: var(--fill); color: var(--dash-dim); }
.ov-why-none { opacity: 0.5; }
.ov-why { color: var(--dash-dim); }
.ov-why-bad { color: var(--error); font-weight: 600; }
.ov-paged .ov-table td:first-child { width: 42%; }

.ov-ai-used { color: var(--dash-dim); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ai-calc { margin-top: 4px; padding: 10px 12px; border: 1px solid var(--dash-ln, var(--separator)); border-radius: 8px; }
.ai-calc > summary { cursor: pointer; font-weight: 600; }
.ai-calc-result, .ai-estimate { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

/* ---- the bar across the top of a server's page (dashboard look), and the title of the tab under it ---- */
.dash-page .server-head.dash-bar {
  position: sticky; top: 0; z-index: 30;
  margin: -32px -40px 18px; padding: 0 24px 0 20px; min-height: 58px; /* a thin bar, as the one of Cloudflare; the arrow back sits a little in from its left edge */
  border-bottom: 1px solid var(--dash-ln);
  background: var(--dash-gl);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  gap: 12px 16px;
}
@media (min-width: 761px) and (max-width: 1023px) { .dash-page .server-head.dash-bar { margin: -32px -28px 18px; padding-inline: 14px 20px; } }
@media (max-width: 760px) { .dash-page .server-head.dash-bar { position: static; margin: 0 0 14px; padding: 6px 0; } }
.dash-bar .server-head-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.dash-bar .server-back { margin: 0; padding: 0; color: var(--dash-dim); font-size: 14px; font-weight: 500; }
.dash-bar .server-back:hover { color: var(--text); }
.dash-bar .server-back .icon { width: 16px; height: 16px; transform: rotate(90deg); }
.dash-bar .dash-back { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
/* the controls of the bar are small, so that the bar is thin */
.dash-bar .btn { min-height: 30px; padding-block: 3px; font-size: 13px; }
.dash-bar .server-address .copy-field, .dash-bar .server-address .input { min-height: 30px; padding-block: 3px; font-size: 13px; }
.dash-bar .server-address-label { font-size: 12.5px; }
.dash-bar .dash-back:hover { background: var(--hover); }
.dash-bar .dash-sep { color: var(--dash-dim); }
.dash-bar .server-title-row { gap: 4px 10px; }
.dash-bar .server-title { font-size: 16px; font-weight: 600; }
.dash-tab-title { margin: 0 0 16px; font-size: 28px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- the quick switcher of the servers (views/server-switcher.js) ---- */
.dash-bar .sw-crumb { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px 4px 10px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; }
.dash-bar .sw-crumb:hover, .dash-bar .sw-crumb[aria-expanded="true"] { background: var(--hover); }
.dash-bar .sw-crumb .crumb-back { color: var(--dash-dim); }
.dash-bar .sw-crumb .server-title { margin: 0; pointer-events: none; }
.dash-bar .sw-crumb .icon { flex: none; width: 14px; height: 14px; color: var(--dash-dim); }
.sw { position: relative; display: inline-flex; }
.sw-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--dash-dim); cursor: pointer; }
.sw-btn:hover, .sw-btn[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.sw-btn .icon { width: 14px; height: 14px; }
.sw-pop { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 60; width: min(380px, calc(100vw - 32px)); border: 1px solid var(--dash-ln); border-radius: 12px; background: var(--dash-pn); box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.45); overflow: hidden; }
.sw-head { padding: 10px 14px; border-bottom: 1px solid var(--dash-ln); }
.sw-search { width: 100%; padding: 6px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 15px; }
.sw-list { max-height: 300px; padding: 6px; overflow: auto; }
.sw-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin: 0; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.sw-item.on { background: var(--hover); }
.sw-item.current .sw-name { font-weight: 700; }
.sw-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-badge { flex: none; padding: 1px 10px; border: 1px solid var(--dash-ln); border-radius: 999px; font-size: 12px; font-weight: 600; }
.sw-on { color: #35c46a; }
.sw-busy { color: var(--dash-ac); }
.sw-off { color: var(--dash-dim); }
.sw-empty { margin: 0; padding: 14px 10px; color: var(--dash-dim); font-size: 13px; }
.sw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--dash-ln); color: var(--dash-dim); font-size: 13px; }
.sw-all { color: var(--text); font-weight: 600; text-decoration: none; }
.sw-all:hover { text-decoration: underline; }

/* ---- the charts of the overview: the line rises from flat the first time, and the AI summary comes in softly ---- */
.ov-chart-svg.ov-rise .ov-area, .ov-chart-svg.ov-rise .ov-line-path { transform-box: view-box; transform-origin: 0 100%; animation: ov-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s backwards; }
@keyframes ov-rise { from { transform: scaleY(0); } }
.ov-ai-in { animation: ov-ai-in 0.9s ease-out backwards; }
@keyframes ov-ai-in { from { opacity: 0; -webkit-filter: blur(6px); filter: blur(6px); transform: translateY(6px); } }
.ov-ai-grow { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .ov-chart-svg.ov-rise .ov-area, .ov-chart-svg.ov-rise .ov-line-path, .ov-ai-in { animation: none; } }

/* ---- the width of a server's page: the content stays within --dash-w (1600px, the width of the table in the example from Cloudflare) and in the middle of a wider window; the bar
   across the top is as wide as the window, with its content spread over all of it ---- */
.dash-page { --dash-w: 1600px; }
.dash-page .server-area > :not(.server-head) { width: 100%; max-width: var(--dash-w); margin-inline: auto; }

/* ---- the box of the people on and who were on (views/server-overview.js playersBox): the head has the toggle, the rows are as high as the rows of the other boxes ---- */
.ov-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 10px; border-bottom: 1px solid var(--dash-ln); }
.ov-box-head .ov-box-title { border-bottom: 0; }
.ov-pl-list { list-style: none; margin: 0; padding: 0; }
.ov-pl-row { display: flex; align-items: center; gap: 10px; height: 35px; padding: 0 14px; border-bottom: 1px solid var(--dash-ln); font-size: 13px; }
.ov-pl-row:last-child { border-bottom: 0; }
.ov-pl-row .ov-skin, .ov-pl-row .ov-head { flex: none; width: 22px; height: 22px; border-radius: 4px; }
.ov-pl-name { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ov-pl-op { padding: 0 6px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font-size: 10.5px; font-weight: 700; line-height: 16px; }
.ov-pl-actions { display: flex; flex: none; gap: 6px; }
.ov-pbtn { min-height: 24px; padding: 1px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.ov-pbtn-danger { color: var(--error); }
.ov-pl-past .ov-pl-name { font-weight: 500; }
.ov-pl-when { flex: none; color: var(--dash-dim); font-size: 12px; }
.ov-pl-past .ov-pl-name { flex: 1; }
.ov-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ov-toggle-opt.on .ov-count { background: var(--accent); color: var(--accent-ink); }

/* The name of the server in the bar is in Pretendard (the titles of the other pages are bold, 800). */
.dash-bar .server-title, .dash-tab-title { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
/* The tab of the files uses the whole width of the window: its title and the browser are not held to --dash-w. */
.dash-page:has(.mc-files-browser) .server-area > :not(.server-head) { max-width: none; }


/* ---- the words of the entries of the recent log, in a colour for each kind (views/server-logs.js toneOf) ---- */
.ov-tone-crash { color: var(--pal-red); font-weight: 600; }
.ov-tone-stuck { color: var(--pal-rose); }
.ov-tone-error { color: var(--pal-rose); }
.ov-tone-warn { color: var(--pal-amber); }
.ov-tone-start { color: var(--pal-green); }
.ov-tone-stop { color: var(--pal-pink); }
.ov-tone-join { color: var(--pal-blue); }
.ov-tone-leave { color: var(--pal-grey); }

/* ---- the numbers and the names of the players in the text of the AI, in the colour of the server (--accent: the colour of its icon; views/server-overview.js highlightWords) ---- */
.ov-hl { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
