/* Application shell: rail, menu, topbar, drawer and page frames. Loads last, after panel-design.css. */

/* ---- Frame ----------------------------------------------------------------------------------------- */
.wf-shell {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 1680px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px;
}
.wf-workspace {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.wf-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  outline: 0;
}
.wf-main > *,
.panel-workspace-panel > * {
  margin: 0;
}
/* panel-navigation.js focuses the shown section's wrapper (tabindex -1) after a sidebar or hash change, so a
   screen reader starts there. It is not a control, so panel-design.css's [tabindex] ring and the browser's own
   are not drawn around the whole section (owner, 2026-11-08). Controls inside keep their focus rings. */
[data-panel-views]:focus {
  outline: none;
}
.panel-workspace-panel,
#server-workspace,
#server-automation,
#shared-access {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.wf-footer {
  padding: 4px 14px 10px;
  color: var(--tx2);
  font-size: 12.5px;
}
/* A one-line page notice above the shell (previews, maintenance) stays visible; the sticky sidebar sits below it. */
body > .wf-notice {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 44px;
  margin: 0;
  border-radius: 0;
  text-align: center;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(var(--soft2), var(--soft2)), var(--page-base);
}
body:has(> .wf-notice) {
  --notice-h: 44px;
}

/* ---- Sidebar: rail + menu -------------------------------------------------------------------------- */
#panel-sidebar.wf-sidebar {
  position: sticky;
  top: calc(14px + var(--notice-h, 0px));
  display: flex;
  width: 336px;
  height: calc(100dvh - 28px - var(--notice-h, 0px));
  flex: none;
  border-radius: 28px;
  overflow: hidden;
}
.panel-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
  flex: none;
  padding: 16px 0;
  background: var(--rail);
  box-shadow: inset -1px 0 0 var(--rail-line);
  overflow-y: auto;
  scrollbar-width: none;
}
.wf-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--tx);
  text-decoration: none;
}
.wf-brand:hover {
  color: var(--tx);
}
.wf-monogram {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 17px;
  background: var(--acc);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 12px 26px -12px var(--glow);
}
.panel-brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.panel-rail-nav,
.panel-rail-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.panel-rail-foot {
  margin-top: auto;
  padding-top: 10px;
}
.panel-rail-foot form {
  margin: 0;
}
.rail-a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 66px;
  padding: 10px 0 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--nav-rail);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.rail-a:hover {
  color: var(--tx);
  background: var(--nav-hover);
}
.rail-a[aria-current] {
  color: var(--nav-on-tx);
  background: var(--nav-on);
  box-shadow: var(--nav-on-sh);
}
.rail-a[aria-current] .ico {
  color: var(--rail-ico);
}
.rail-sep {
  width: 36px;
  height: 1px;
  margin: 2px 0;
  background: var(--rail-line);
}
.panel-theme-toggle > span {
  display: contents;
}
html:not([data-theme="light"]) .theme-to-dark,
html[data-theme="light"] .theme-to-light {
  display: none;
}

.panel-menu {
  flex: 1;
  min-width: 0;
  padding: 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
.panel-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  margin-bottom: 12px;
}
.panel-menu-head .caption {
  margin: 0;
  padding: 0 12px;
  letter-spacing: 0.32em;
  font-size: 13px;
}
.panel-drawer-close {
  display: none;
}
.ctx-title {
  margin: 4px 0 8px;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--tx);
  overflow-wrap: anywhere;
}
.panel-context-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}
.panel-subnav {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.m-a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 13px;
  color: var(--nav);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.m-a .ico {
  width: 18px;
  height: 18px;
  color: var(--tx2);
}
.m-a:hover {
  color: var(--tx);
  background: var(--nav-hover);
}
.m-a[aria-current="page"] {
  color: var(--nav-on-tx);
  background: var(--item-on);
  box-shadow: var(--item-on-sh);
}
.m-a[aria-current="page"] .ico {
  color: var(--item-ico);
}
.panel-nav-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.panel-nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cap,
.grp-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 16px 0 4px;
  padding: 6px 12px;
  border: 0;
  background: none;
  color: var(--tx2);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cap {
  cursor: pointer;
}
.cap:hover {
  color: var(--tx);
}
.cap .ico {
  transition: transform 0.15s;
}
.cap[aria-expanded="false"] .ico {
  transform: rotate(-90deg);
}

/* Server switcher */
.panel-switcher {
  position: relative;
  margin-bottom: 4px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--tile-bd);
  border-radius: 18px;
  background: var(--tile);
  box-shadow: var(--tile-sh);
  color: var(--tx);
  text-align: left;
  cursor: pointer;
}
.switch:hover {
  background: var(--tile-hover);
}
.sw-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 13px;
  background: var(--tile-hover);
  box-shadow: var(--tile-sh);
}
.switch-text {
  flex: 1;
  min-width: 0;
}
.switch-name {
  display: block;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.switch-state {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--tx2);
  font-size: 12.5px;
  font-weight: 600;
}
.switch-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 340px;
  padding: 8px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: #16181f;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8);
}
.switch-msg {
  margin: 4px 8px 6px;
  color: var(--tx2);
  font-size: 12px;
}
.switch-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.switch-items a,
.switch-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--nav);
  font-size: 13.5px;
  font-weight: 700;
}
.switch-items a:hover,
.switch-all:hover {
  color: var(--tx);
  background: var(--nav-hover);
}
.switch-items a[aria-current="page"] {
  color: var(--nav-on-tx);
  background: var(--item-on);
}
.switch-items small {
  color: var(--tx2);
  font-size: 11.5px;
  font-weight: 600;
}
.switch-all {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--link);
}

/* ---- Topbar ---------------------------------------------------------------------------------------- */
.wf-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 10px 10px 24px;
  border-radius: 999px;
}
.panel-top-mark {
  display: none;
}
.panel-breadcrumbs {
  flex: 1;
  min-width: 0;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--tx2);
  font-size: 13.5px;
  font-weight: 600;
}
.crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.crumbs li + li::before {
  content: "/";
  color: var(--tx2);
  opacity: 0.7;
}
.crumbs a {
  color: var(--tx2);
  font-weight: 600;
}
.crumbs a:hover {
  color: var(--tx);
}
.crumbs [aria-current="page"] {
  color: var(--tx);
}
.wf-lab-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--chip-tx);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.av {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, #3a3d44, #24262b);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--av-ring);
}
.av:hover {
  color: #ffffff;
  filter: brightness(1.15);
}
.panel-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.panel-scrim {
  display: none;
}
.panel-chips {
  display: none;
}

/* ---- Page heading ---------------------------------------------------------------------------------- */
.panel-page-heading,
.wf-main > div.wf-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
}
:is(.panel-page-heading, .wf-main > div.wf-heading) .wf-eyebrow {
  margin-bottom: 6px;
}
.wf-main > div.wf-heading h1 {
  margin: 0;
  font-size: 28px;
}
.wf-main > div.wf-heading p:not(.wf-eyebrow) {
  margin: 6px 0 0;
  color: var(--tx2);
  font-size: 14px;
}
/* One-time API keys wrap anywhere so the whole value stays visible (the CSP blocks inline styles). */
.panel-secret {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-all;
}
/* In-page section links on staff pages (operations). */
.panel-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.panel-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn);
  box-shadow: var(--btn-sh);
  color: var(--tx);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.panel-section-nav a:hover {
  background: var(--btn-hover);
}
.panel-section-nav a[aria-current="page"] {
  border-color: transparent;
  background: var(--item-on);
  box-shadow: var(--item-on-sh);
}
.panel-account-hero {
  justify-content: flex-start;
}
.panel-account-hero .face {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 16px;
}
.panel-account-hero > div {
  flex: 1;
  min-width: 0;
}

/* ---- Server header --------------------------------------------------------------------------------- */
.panel-srvbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 14px 16px 14px 24px;
}
.panel-srvbar > * + * {
  margin-top: 0;
}
.panel-srvbar-main {
  display: flex;
  flex: 1 1 380px;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}
.panel-srvbar-chips {
  display: contents;
}
.srv-name {
  order: -1;
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}
.panel-srvbar-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--tx2);
  font-size: 13.5px;
}
.panel-srvbar-address .mono {
  color: var(--tx2);
}
.panel-srvbar-run {
  display: none;
}
.panel-srvbar-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px 20px;
}
.panel-overview-only {
  display: none !important;
}
#sw-state::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
#sw-state[data-phase="ready"],
#sw-state[data-phase="running"] {
  background: var(--ok);
  color: var(--ok-tx);
  box-shadow: inset 0 0 0 1px var(--ok-ring);
}
#sw-state[data-phase="ready"]::before,
#sw-state[data-phase="running"]::before {
  background: var(--ok-dot);
  animation: panel-pulse 1.8s ease-in-out infinite;
}
#sw-state:is([data-phase="starting"], [data-phase="backoff"], [data-phase="held"]) {
  background: var(--amb);
  color: var(--amb-tx);
  box-shadow: var(--amb-sh);
}
#sw-state[data-phase="suspended"] {
  background: var(--red);
  color: var(--red-tx);
  box-shadow: var(--red-sh);
}
#sw-state:is([data-phase="stopped"], [data-phase="exited"], [data-phase="unavailable"], [data-phase="checking"]) {
  background: var(--chip);
  color: var(--chip-tx);
}
.panel-power .pw--restart {
  background: var(--amb);
  color: var(--amb-tx);
  box-shadow: var(--amb-sh);
}
.panel-power .pw--stop {
  background: var(--red);
  color: var(--red-tx);
  box-shadow: var(--red-sh);
}
.panel-power .pw--kill {
  background: transparent;
  color: var(--red-tx);
  box-shadow: inset 0 0 0 1px currentColor;
}
.panel-power .pw:not(:disabled):hover {
  filter: brightness(1.12);
  background-color: var(--nav-hover);
}
.panel-power .pw[aria-disabled="true"] {
  background: transparent;
  box-shadow: none;
  color: var(--pw-off);
  cursor: not-allowed;
  filter: none;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--tx3);
  font-size: 13.5px;
}
.facts b {
  color: var(--tx);
  font-weight: 700;
}

/* Overview: the header grows into the E9 hero with facts, and the dashboard grid follows. */
body[data-panel-view="overview"] .panel-overview-only {
  display: inline-flex !important;
}
body[data-panel-view="overview"] .panel-overview-only[hidden] {
  display: none !important;
}
body[data-panel-view="overview"] .facts.panel-overview-only {
  display: flex !important;
}
body[data-panel-view="overview"] .panel-srvbar {
  align-items: stretch;
  flex-direction: column;
  gap: 20px;
  padding: 26px 28px;
}
body[data-panel-view="overview"] .panel-srvbar-main {
  flex-basis: auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
body[data-panel-view="overview"] .panel-srvbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body[data-panel-view="overview"] .srv-name {
  order: 0;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
body[data-panel-view="overview"] .panel-srvbar-address .mono {
  color: var(--tx);
  font-size: 15px;
}
body[data-panel-view="overview"] .panel-srvbar-run {
  display: block;
  margin: 0;
  color: var(--tx2);
  font-size: 13px;
}
body[data-panel-view="overview"] .panel-srvbar-side {
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
body[data-panel-view="overview"] .panel-power .pw {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
}
.panel-overview {
  min-width: 0;
}
.panel-overview .grid > .aa-card {
  margin: 0;
}
.stat {
  padding: 20px 22px;
}
.stat > * + * {
  margin-top: 0;
}
.stat-h {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tx2);
}
.stat-h .lbl {
  font-size: 12px;
}
.stat .num {
  margin: 12px 0 0;
  color: var(--tx);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.stat .num small {
  margin-left: 5px;
  color: var(--tx2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}
.stat .meter {
  margin-top: 16px;
}
.stat-note {
  margin: 10px 0 0 !important;
  color: var(--tx2);
  font-size: 12.5px !important;
}
.panel-term {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
}
.panel-term > * + * {
  margin-top: 0;
}
.panel-term-h,
.panel-ov-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.panel-term-h .lbl,
.panel-ov-h .lbl {
  flex: 1;
}
.panel-term-h a,
.panel-ov-h a {
  font-size: 13px;
}
.panel-term .console {
  flex: 1;
  min-height: 220px;
  max-height: 340px;
}
.panel-term .console:empty::before {
  content: "Waiting for console output…";
  color: #8b929c;
}
.panel-command {
  display: flex !important;
  align-items: center;
  gap: 6px;
  max-width: none !important;
  min-height: 52px;
  padding: 4px 4px 4px 18px;
  border: 1px solid var(--field-bd);
  border-radius: 999px;
  background: var(--field);
  box-shadow: var(--field-sh);
}
.panel-command > .mono {
  color: var(--link);
  font-weight: 600;
}
.panel-command input {
  flex: 1;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.panel-command input:focus-visible {
  outline: 0;
}
.panel-command:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.panel-command .wf-button {
  min-height: 44px;
}
.panel-ov-card {
  padding: 22px 22px 14px;
}
.panel-ov-card > * + * {
  margin-top: 6px;
}
.panel-ov-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel-ov-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.panel-ov-row:first-child {
  border-top: 0;
}
.panel-ov-row small {
  display: block;
  margin-top: 2px;
  color: var(--tx2);
  font-size: 12.5px;
  font-weight: 500;
}
.panel-ov-time {
  min-width: 64px;
  flex: none;
  white-space: nowrap;
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
}
.panel-ov-empty {
  padding: 10px 0;
  color: var(--tx2);
  font-size: 13.5px;
}
.panel-ov-backup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 22px;
}
.panel-ov-backup > div {
  flex: 1;
  min-width: 160px;
}
.panel-ov-backup > * + * {
  margin-top: 0;
}
.panel-ov-value {
  margin: 8px 0 0 !important;
  color: var(--tx) !important;
  font-size: 17px !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Players & health */
.panel-health {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.panel-roster-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px !important;
}
.panel-roster-h h3 {
  margin: 0;
}
.panel-roster {
  display: flex;
  flex-direction: column;
}
.panel-player {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin: 0 !important;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  color: var(--tx) !important;
  font-size: 14px !important;
  font-weight: 600;
}
.panel-player:first-child {
  border-top: 0;
}
.panel-player::before {
  content: attr(data-initials);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--soft2);
  color: var(--tx);
  font-size: 11px;
  font-weight: 800;
}

/* ---- Server directory ------------------------------------------------------------------------------ */
.panel-server-directory {
  padding: 22px;
}
.panel-directory-search {
  max-width: none !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.panel-search {
  width: min(100%, 420px);
}
#panel-server-count {
  margin: 0 0 10px;
}
.panel-server-table td:first-child a {
  color: var(--tx);
  font-size: 14.5px;
}
.panel-server-table td:first-child a:hover {
  color: var(--link);
}
.panel-server-table small {
  display: block;
  margin-top: 2px;
  color: var(--tx2);
  font-size: 12px;
  font-weight: 500;
}
.panel-server-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.panel-access-link {
  margin-left: 12px;
  font-size: 13px;
}
.panel-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--tx2);
  font-size: 12.5px;
}
.panel-directory-note {
  font-size: 12.5px !important;
}

/* ---- Account --------------------------------------------------------------------------------------- */
.panel-account-grid {
  align-items: start;
}
.panel-account-grid > .aa-card {
  margin: 0;
}
.panel-danger-zone {
  box-shadow:
    var(--pane-sh),
    inset 0 0 0 1px rgba(232, 96, 84, 0.3);
}

/* ---- Sign in --------------------------------------------------------------------------------------- */
.wf-login-main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 28px;
  max-width: 1180px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px;
  outline: 0;
}
.wf-login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}
.wf-login-brand .wf-monogram {
  margin: 0;
}
.panel-login-title {
  margin: 26px 0 0;
  color: var(--tx);
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.panel-login-lead {
  max-width: 440px;
  margin: 18px 0 0;
  color: var(--tx2);
  font-size: 17px;
  line-height: 1.6;
}
.panel-login-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.wf-login-card {
  padding: 36px;
  border-radius: 32px;
}
.wf-login-card > * + * {
  margin-top: 14px;
}
.wf-login-card h1 {
  font-size: 26px;
}
.wf-login-card .sub {
  margin-top: 6px;
}
.wf-login-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.wf-login-form label {
  margin-top: 10px;
  color: var(--tx);
  font-size: 13px;
  font-weight: 700;
}
.wf-login-form label:first-of-type {
  margin-top: 0;
}
.wf-login-form input:not([type="hidden"], [type="checkbox"]) {
  min-height: 50px;
}
.wf-login-form .wf-primary {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  font-size: 15px;
}
.panel-login-alt {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
}
/* The old panels' "Forgot password?" under the password, small and to the right (2026-11-17). */
.panel-login-alt.panel-login-forgot {
  margin: 6px 0 0;
  text-align: right;
  font-size: 12px;
}
/* Register and password recovery: the sign-in card alone, centred. */
.lc-public-main {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
.lc-public-card fieldset.wf-login-form {
  margin-top: 20px;
}
.lc-public-card #public-lifecycle-status:empty {
  display: none;
}
.lc-public-card #public-lifecycle-status {
  color: var(--tx2);
  font-size: 13.5px;
}

/* ---- Tablet: the menu column collapses to the rail ------------------------------------------------- */
@media (max-width: 1180px) and (min-width: 900px) {
  #panel-sidebar.wf-sidebar {
    width: 84px;
  }
  .panel-menu {
    display: none;
  }
  .wf-shell:has(.panel-menu .panel-switcher) #panel-sidebar.wf-sidebar {
    width: 296px;
  }
  .wf-shell:has(.panel-menu .panel-switcher) .panel-menu {
    display: block;
  }
  /* Three resource cards in a row, or two when the memory card is hidden. */
  .panel-overview .grid > .stat.c4 {
    grid-column: span 2;
  }
  .panel-overview .grid > .stat.c6 {
    grid-column: span 3;
  }
}

/* ---- Phone: top bar, chip strip and a modal drawer ------------------------------------------------- */
@media (max-width: 899px) {
  .wf-shell {
    display: block;
    padding: 12px 12px 24px;
  }
  .wf-workspace {
    gap: 10px;
  }
  .wf-main {
    gap: 10px;
  }
  .panel-workspace-panel,
  #server-workspace,
  #server-automation,
  #shared-access {
    gap: 10px;
  }
  #panel-sidebar.wf-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    width: min(350px, 88vw);
    height: 100dvh;
    padding: 14px 12px;
    border-radius: 0 28px 28px 0;
    overflow-y: auto;
  }
  .panel-navigation-open #panel-sidebar.wf-sidebar {
    display: flex;
  }
  .panel-navigation-open .panel-scrim {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    background: var(--scrim);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
  .panel-navigation-open {
    overflow: hidden;
  }
  .panel-rail {
    display: contents;
  }
  .wf-brand {
    order: 0;
    margin: 0 0 12px;
  }
  .wf-brand .wf-monogram {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 21px;
  }
  .panel-brand-name {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
  }
  .panel-rail-nav {
    order: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border-radius: 20px;
    background: var(--rail);
    box-shadow: inset 0 0 0 1px var(--rail-line);
  }
  .panel-rail-nav .rail-a {
    width: auto;
    min-height: 56px;
  }
  .panel-menu {
    order: 2;
    flex: none;
    padding: 12px 0 0;
    overflow: visible;
  }
  .panel-menu-head {
    position: absolute;
    top: 14px;
    right: 12px;
    margin: 0;
  }
  .panel-menu-head .caption {
    display: none;
  }
  .panel-drawer-close {
    display: inline-grid;
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .m-a {
    min-height: 44px;
  }
  .cap {
    margin-top: 10px;
  }
  .panel-rail-foot {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
  }
  .panel-rail-foot .rail-sep {
    display: none;
  }
  .panel-rail-foot .rail-a {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--btn-bd);
    border-radius: 999px;
    background: var(--btn);
    box-shadow: var(--btn-sh);
    color: var(--tx);
    font-size: 13.5px;
  }
  .panel-rail-foot .rail-a .ico {
    width: 16px;
    height: 16px;
  }
  .panel-rail-foot .panel-theme-toggle > span > span:last-child::after {
    content: " mode";
  }
  .switch-list {
    position: static;
    margin-top: 6px;
  }

  .wf-topbar {
    gap: 10px;
    min-height: 0;
    padding: 8px;
  }
  .panel-top-mark {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    font-size: 21px;
  }
  .crumbs {
    display: grid;
    gap: 0;
    font-size: 12px;
    line-height: 1.3;
  }
  .crumbs li {
    display: none;
  }
  .crumbs li:nth-last-child(2) {
    display: block;
  }
  .crumbs li:last-child {
    display: block;
    color: var(--tx);
    font-size: 16px;
    font-weight: 800;
  }
  .crumbs li + li::before {
    content: none;
  }
  .crumbs li:only-child {
    font-size: 16px;
  }
  .wf-lab-badge,
  .av {
    display: none;
  }
  .panel-mobile-toggle {
    display: inline-grid;
    order: 5;
  }
  .panel-chips {
    display: flex;
    gap: 6px;
    margin: 2px -12px 0;
    padding: 0 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .panel-chips::-webkit-scrollbar {
    display: none;
  }
  .sec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    height: 40px;
    padding: 0 15px;
    border: 1px solid var(--tile-bd);
    border-radius: 999px;
    background: var(--tile);
    box-shadow: var(--tile-sh);
    color: var(--nav);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
  }
  .sec.is-on {
    border-color: transparent;
    color: var(--nav-on-tx);
    background: var(--item-on);
    box-shadow: var(--item-on-sh);
  }
  html[data-theme="light"] .sec.is-on {
    color: #ffffff;
    background: linear-gradient(180deg, #2b3040, #1b1f2b);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      0 8px 18px -10px rgba(16, 18, 26, 0.7);
  }

  .panel-page-heading,
  .wf-main > div.wf-heading {
    padding: 18px;
  }
  :is(.panel-page-heading, .wf-main > div.wf-heading) h1 {
    font-size: 22px;
  }
  .panel-srvbar,
  body[data-panel-view="overview"] .panel-srvbar {
    padding: 18px;
    gap: 14px;
  }
  body[data-panel-view="overview"] .srv-name {
    font-size: 32px;
  }
  .srv-name {
    font-size: 22px;
  }
  .panel-srvbar-side,
  body[data-panel-view="overview"] .panel-srvbar-side {
    width: 100%;
    justify-content: flex-start;
  }
  .panel-power {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .panel-power .pw,
  body[data-panel-view="overview"] .panel-power .pw {
    min-height: 46px;
    padding: 0 6px;
  }
  .stat {
    padding: 16px;
  }
  .stat .num {
    font-size: 26px;
  }
  .panel-overview .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .panel-overview .grid > .stat {
    grid-column: span 1;
  }
  .panel-overview .grid > .stat.c4:nth-child(3) {
    grid-column: 1 / -1;
  }
  .panel-overview .grid > :is(.c7, .c5) {
    grid-column: 1 / -1;
  }
  .wf-login-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    min-height: 0;
    padding: 28px 16px;
  }
  .panel-login-title {
    font-size: 36px;
  }
  .panel-login-lead {
    font-size: 15px;
  }
  .wf-login-card {
    padding: 24px 20px;
    border-radius: 26px;
  }
}
/* Phones: each server is a stacked row, its name and address wrapping at spaces and Manage and Access in view
   (review item 16, 2026-11-17: the table scrolled sideways and broke names mid-word). */
@media (max-width: 599px) {
  .panel-server-table,
  .panel-server-table tbody,
  .panel-server-table tr,
  .panel-server-table td {
    display: block;
  }
  .panel-server-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .panel-server-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .panel-server-table td,
  .panel-server-table tbody tr:last-child td {
    padding: 2px 0;
    border-bottom: 0;
    overflow-wrap: break-word;
  }
  .panel-server-table td[data-cell]::before {
    content: attr(data-cell) ": ";
    color: var(--tx2);
  }
  .panel-server-table td:last-child {
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }
}

/* ---- Staff operations: servers and nodes as tables, a change confirmed in a dialog ------------------- */
.aa-card form.ob-toolbar {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: end;
  max-width: none;
}
/* The numbers and names keep to one line; the controls take what is left and wrap, so none is out of sight. */
.ob-table td.num-c,
.ob-servers td:nth-child(2),
.ob-nodes td:first-child {
  white-space: nowrap;
}
/* Where a control that appears later goes, ahead of the row's last one. */
.ob-slot {
  display: contents;
}
.ob-table td:first-child :is(a, strong) {
  color: var(--tx);
  font-size: 14.5px;
  font-weight: 700;
}
.ob-table td:first-child a:hover {
  color: var(--link);
}
.ob-table td > small {
  display: block;
  margin-top: 2px;
  color: var(--tx2);
  font-size: 12px;
  font-weight: 500;
}
.ob-table .sw-toolbar {
  gap: 6px;
}
.ob-table td.ob-empty {
  padding: 22px 12px;
  color: var(--tx2);
  text-align: center;
  white-space: normal;
}
/* A change's result beside the row that made it. */
.ob-table td > small.ob-note {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--ring);
  color: var(--tx);
  white-space: normal;
}
.ob-table td > small.ob-note:empty {
  display: none;
}
.ob-table td > small.ob-note[data-state="error"] {
  background: var(--red);
  box-shadow: var(--red-sh);
  color: var(--red-tx);
}
.ob-table td > small.ob-note[data-state="success"] {
  background: var(--ok);
  box-shadow: inset 0 0 0 1px var(--ok-ring);
  color: var(--ok-tx);
}
/* A server's other staff actions, under its row. */
.ob-table tr.ob-detail > td {
  padding: 14px 16px 16px;
  background: var(--soft);
  white-space: normal;
}
.ob-table tr.ob-detail:hover > td {
  background: var(--soft);
}
.ob-detail .ob-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 12px;
  font-weight: 700;
}
.ob-detail .sw-toolbar {
  flex-wrap: wrap;
}
/* Removal opens its own dialog; the control is marked, and kept to the end of its row. */
.wf-button.ob-remove {
  color: var(--red-tx);
}
.ob-detail .wf-button.ob-remove {
  margin-left: auto;
}
.ob-result:empty {
  display: none;
}
.ob-result {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--ring);
}
.ob-result > * + * {
  margin-top: 6px;
}
.ob-result p {
  color: var(--tx);
  overflow-wrap: anywhere;
}
.ob-outcomes {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
}
#ob-attention p > small {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
#ob-attention p > .wf-button {
  margin: 6px 6px 0 0;
}
.ob-dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--page-base);
  color: var(--tx);
  overflow: auto;
}
.ob-dialog::backdrop {
  background: var(--scrim);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ob-dialog > form.aa-card {
  display: grid;
  gap: 14px;
  max-width: none;
}
.ob-dialog > form.aa-card > * + * {
  margin-top: 0;
}
.ob-dialog h2 {
  overflow-wrap: anywhere;
}
.ob-dialog-extra {
  display: grid;
  gap: 12px;
}
.ob-dialog-extra:empty,
#ob-confirm-text:empty {
  display: none;
}
@media (max-width: 899px) {
  .aa-card form.ob-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* On a phone each row is a block: its name, its numbers side by side, then its controls. Nothing scrolls sideways. */
@media (max-width: 760px) {
  .ob-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .ob-table,
  .ob-table tbody {
    display: block;
  }
  .ob-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .ob-table tr[hidden] {
    display: none;
  }
  .ob-table tbody tr:last-child {
    border-bottom: 0;
  }
  .ob-table td,
  .ob-table td.num-c {
    display: block;
    grid-column: 1 / -1;
    padding: 0;
    border-bottom: 0;
    text-align: left;
    white-space: normal;
  }
  .ob-table td.num-c {
    grid-column: auto;
  }
  .ob-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--tx2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .ob-table td:first-child::before,
  .ob-table td:last-child::before,
  .ob-table td.ob-empty::before,
  .ob-table tr.ob-detail > td::before {
    content: none;
  }
  .ob-table tr.ob-detail {
    display: block;
    padding: 0 0 14px;
  }
  .ob-table tr.ob-detail > td {
    padding: 14px;
    border-radius: 16px;
  }
  .ob-table .sw-toolbar {
    flex-wrap: wrap;
  }
  .ob-detail .wf-button.ob-remove {
    margin-left: 0;
  }
  .ob-table tbody tr:hover td {
    background: none;
  }
  .ob-table tr.ob-detail:hover > td {
    background: var(--soft);
  }
}

@media print {
  #panel-sidebar.wf-sidebar,
  .panel-mobile-toggle,
  .wf-lab-badge,
  .panel-chips,
  .panel-scrim {
    display: none !important;
  }
  .wf-shell {
    display: block;
    padding: 0;
  }
}

/* ---- Staff pages after the pilot's look (2026-11-12) ---------------------------------------------------- */
/* The node table once a connection check has answered: its line wraps in its own column, and the row's three
   controls stay on one line beside it (the long answer pushed Remove… under the others in every row). */
.ob-nodes td.ob-connection {
  min-width: 9rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (min-width: 761px) {
  .ob-nodes td.ob-actions {
    width: 1%;
  }
  .ob-nodes td.ob-actions .sw-toolbar {
    flex-wrap: nowrap;
  }
}
/* The staff pages' shared dialog (panel-confirm-dialog.html.twig): its text line shows only when it has text. */
.ob-dialog-text:empty {
  display: none;
}
/* Users: the search and Create account on one line; an account's parts under its form, each with its own result. */
.aa-card form.ad-toolbar {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ad-accounts td:first-child {
  overflow-wrap: anywhere;
}
.ad-part {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.ad-part > * + * {
  margin-top: 10px;
}
.ad-part select {
  width: auto;
  min-width: 14rem;
}
#admin-attention p > small,
.ad-requests p > small {
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
#admin-attention p > .wf-button,
.ad-requests p > .wf-button {
  margin: 6px 6px 0 0;
}
@media (max-width: 899px) {
  .aa-card form.ad-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }
}
.ad-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}
.ad-heading > h2 {
  margin: 0;
  overflow-wrap: anywhere;
}
/* Configuration: one section at a time; settings as a table whose value is asked for only when it is to be set;
   role permissions in the old editor's groups. */
.cfg-find {
  display: grid;
  gap: 6px;
  max-width: 420px;
  margin: 14px 0;
}
.cfg-settings td:first-child {
  min-width: 14rem;
}
.cfg-settings td:nth-child(2) {
  max-width: 22rem;
  overflow-wrap: anywhere;
}
.cfg-settings td:last-child > * + * {
  margin-top: 8px;
}
.cfg-settings td:last-child :is(select, input, textarea) {
  width: 100%;
  min-width: 12rem;
}
.cfg-settings tr[hidden] {
  display: none;
}
.cfg-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.cfg-permissions fieldset {
  display: grid;
  align-content: start;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--tile-bd);
  border-radius: 16px;
  background: var(--tile);
}
.cfg-permissions legend {
  padding: 0 6px;
  color: var(--tx2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
#cfg-definition-form > * + * {
  margin-top: 14px;
}
#cfg-search {
  display: grid;
}
#cfg-panel-form,
#cfg-daemon-form,
#cfg-defaults-form,
#cfg-role-form {
  max-width: none;
}
/* Mail: a message's identifier is small and plain under its kind. */
.ml-messages td:first-child > small {
  font-family: var(--font-mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}
/* Logs: the filters side by side; the entries fit their card, with the journal under its action and the
   operation's ID under its Logs button. */
.aa-card form.lg-filter {
  max-width: none;
}
.lg-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px 16px;
  align-items: start;
}
.lg-fields label {
  display: grid;
  gap: 6px;
}
.lg-fields small {
  color: var(--tx2);
  font-size: 12px;
}
.lg-log td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.lg-log td:nth-child(2) > strong,
.lg-log td:nth-child(3) {
  overflow-wrap: normal;
  word-break: normal;
}
.lg-log td:nth-child(6) {
  max-width: 14rem;
  overflow-wrap: anywhere;
}
.lg-log td:last-child {
  max-width: 13rem;
}
.lg-log td:last-child > small {
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.lg-log .wf-button {
  height: auto;
  min-height: 34px;
  padding-block: 6px;
  text-align: left;
  white-space: normal;
}
.lg-log td:nth-child(4) .wf-button {
  white-space: nowrap;
}
@media (max-width: 760px) {
  /* A field an entry does not have takes no room in the narrow layout. */
  .lg-log td:empty {
    display: none;
  }
  .lg-log td:nth-child(6),
  .lg-log td:last-child {
    max-width: none;
  }
}
