/* Built by scripts/build-styles-r197.js; layout source: app.css. */
:root {
  --navy: var(--dark-card, #171d2c);
  --navy-2: var(--dark-card, #202738);
  --page: var(--dark-page, #f8f6f1);
  --white: var(--dark-card, #ffffff);
  --soft: var(--dark-inset, #f1efe9);
  --border: var(--dark-border, #d4dbe3);
  --border-dark: var(--dark-border, #c7d0da);
  --text: var(--dark-muted, #1c2738);
  --muted: var(--dark-muted, #6d798c);
  --muted-2: var(--dark-muted, #8b95a5);
  --teal: #1c8778;
  --teal-hover: #16796c;
  --teal-soft: var(--dark-inset, #e9f4f1);
  --amber: #f2a832;
  --green: #09b77e;
  --red: #c75a68;
  --red-soft: #fff1f3;
  --shadow: 0 18px 44px rgba(28, 39, 56, .055);
  --menu-shadow: 0 20px 55px rgba(21, 29, 44, .16);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* icon defaults */
.brand-mark svg,
.sidebar-link svg,
.sidebar-signout svg,
.button svg,
.empty-server-icon svg,
.server-summary-icon svg,
.server-large-icon svg,
.card-icon svg,
.settings-nav-link svg,
.icon-button svg,
.error-brand svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* shell */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  width: 288px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  color: #fff;
  background: var(--navy);
}
.main-area {
  min-height: 100vh;
  margin-left: 288px;
  background: var(--page);
}

/* sidebar */
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px 29px;
  color: #fff;
  font-size: 20px;
  font-weight: 760;
  letter-spacing: -.035em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--navy);
  background: var(--amber);
  box-shadow: inset 0 -3px 0 rgba(112, 75, 14, .2);
}
.brand-mark svg { width: 24px; height: 24px; stroke-width: 2; }
.brand-word > span,
.auth-brand > span:last-child > span,
.auth-mobile-brand strong > span,
.error-brand strong > span { color: var(--amber); }
.sidebar-section { margin-top: 3px; }
.sidebar-admin { margin-top: 25px; }
.sidebar-label {
  padding: 0 13px 11px;
  color: var(--dark-muted, #727b8d);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .22em;
  line-height: 1;
}
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link {
  position: relative;
  min-height: 51px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 14px;
  border-radius: 13px;
  color: var(--dark-text, #a4adbc);
  font-size: 15px;
  font-weight: 650;
  transition: color .16s ease, background .16s ease;
}
.sidebar-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: transparent;
}
.sidebar-link svg { width: 20px; height: 20px; }
.sidebar-link:hover { color: #fff; background: var(--dark-card-alpha-0-055, rgba(255, 255, 255, .055)); }
.sidebar-link.active { color: #fff; background: var(--teal); }
.sidebar-link.active::before { background: var(--amber); }
.sidebar-footer {
  margin-top: auto;
  padding: 18px 13px 0;
  border-top: 1px solid rgba(255,255,255,.11);
}
.sidebar-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; }
.sidebar-user-copy { min-width: 0; }
.sidebar-user-copy strong { display: block; overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; }
.sidebar-user-copy small { display: block; margin-top: 3px; color: var(--dark-muted, #858fa0); font-size: 9px; letter-spacing: .14em; }
.avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  user-select: none;
}
.avatar-amber { color: var(--navy); background: var(--amber); }
.avatar-teal { color: #fff; background: var(--teal); }
.avatar-soft { color: var(--text); background: var(--dark-card, #e9ecec); }
.sidebar-signout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0 5px;
  border: 0;
  color: var(--dark-muted, #99a2b1);
  background: transparent;
  font-weight: 650;
  text-align: left;
}
.sidebar-signout:hover { color: #fff; }
.sidebar-signout svg { width: 20px; height: 20px; }

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 82px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-card-alpha-0-96, rgba(248,246,241,.96));
  backdrop-filter: blur(12px);
}
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--dark-muted, #657185); font-size: 12px; }
.breadcrumb > span:first-child { color: var(--dark-muted, #536176); font-weight: 650; letter-spacing: .17em; }
.breadcrumb b { color: var(--dark-muted, #9ba5b2); font-weight: 500; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.system-status {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: var(--dark-muted, #566477);
  background: var(--dark-card-alpha-0-42, rgba(255,255,255,.42));
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .12em;
  white-space: nowrap;
}
.system-status i,
.button-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary { box-shadow: 0 0 0 4px rgba(28,135,120,.12); }
.user-dropdown {
  position: absolute;
  top: calc(100% + 11px);
  right: 0;
  width: 245px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--dark-card, #fff);
  box-shadow: var(--menu-shadow);
}
.user-dropdown-head { padding: 10px 11px 12px; border-bottom: 1px solid var(--dark-border, #edf0f2); }
.user-dropdown-head strong { display: block; font-size: 14px; }
.user-dropdown-head small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; }
.user-dropdown a,
.user-dropdown button {
  width: 100%;
  display: block;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: var(--dark-muted, #526073);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.user-dropdown a:hover,
.user-dropdown button:hover { color: var(--text); background: var(--dark-card, #f4f5f3); }
.mobile-menu { display: none; }
.sidebar-overlay { display: none; }

/* page */
.page { width: 100%; padding: 38px 40px 80px; }
.page-narrow { max-width: 1180px; }
.page-heading { margin: 0 0 38px; }
.page-heading .eyebrow { margin-bottom: 11px; }
.eyebrow {
  display: block;
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .19em;
  line-height: 1.2;
}
.page-heading h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(31px, 2.35vw, 39px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.1;
}
.page-heading p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.heading-actions form { margin: 0; }

/* notices */
.notice {
  max-width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--dark-card, #fff);
  color: var(--dark-muted, #536174);
  font-size: 13px;
  font-weight: 600;
}
.notice-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--red); }
.notice-success .notice-dot { background: var(--green); }
.notice-success { border-color: #cfe7de; background: var(--dark-card, #f5fbf8); }
.notice-error { border-color: #efd0d5; background: var(--dark-card, #fff7f8); }

/* buttons */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.button:hover { transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: #fff; background: var(--teal); }
.button-primary:hover { background: var(--teal-hover); box-shadow: 0 9px 20px rgba(28,135,120,.16); }
.button-secondary { color: var(--dark-muted, #536174); border-color: var(--border-dark); background: var(--dark-card, #fff); }
.button-secondary:hover { border-color: var(--dark-border, #b7c2cd); background: var(--dark-card, #fbfbf9); }
.button-large { min-height: 47px; padding: 0 20px; }
.button-full { width: 100%; }
.button-live-dot { display: inline-block; }

/* dashboard */
.empty-server-card {
  min-height: 400px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.empty-server-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-server-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--teal);
  background: var(--dark-card, #efede7);
}
.empty-server-icon svg { width: 29px; height: 29px; stroke-width: 1.9; }
.empty-server-content h2 { margin: 0; font-size: 22px; font-weight: 750; letter-spacing: -.025em; }
.empty-server-content p { margin: 12px 0 27px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.empty-server-content .button { min-width: 182px; }
.compact-empty { min-height: 360px; }

.server-summary-card,
.server-detail-card,
.metric-card,
.form-card,
.users-card,
.settings-nav-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.server-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 34px; }
.server-summary-main { display: flex; align-items: center; gap: 20px; }
.server-summary-icon,
.server-large-icon,
.card-icon {
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--dark-card, #efede7);
}
.server-summary-icon { width: 60px; height: 60px; flex: 0 0 60px; border-radius: 16px; }
.server-summary-icon svg { width: 28px; height: 28px; }
.server-summary-main h2 { margin: 5px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.server-summary-main p { margin: 0; color: var(--muted); font-size: 13px; }
.server-summary-actions { display: flex; gap: 9px; }
.status-line { display: flex; align-items: center; gap: 7px; color: var(--teal); font-size: 10px; font-weight: 760; letter-spacing: .11em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 16px; }
.metric-card { padding: 22px 24px; }
.metric-card > span { display: block; margin-bottom: 9px; color: var(--teal); font-size: 9px; font-weight: 760; letter-spacing: .16em; }
.metric-card strong { display: block; font-size: 19px; letter-spacing: -.02em; }
.metric-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }

.server-detail-card { overflow: hidden; }
.server-detail-head { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 30px 32px; }
.server-detail-title { display: flex; align-items: center; gap: 18px; }
.server-large-icon { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 17px; }
.server-large-icon svg { width: 30px; height: 30px; }
.server-detail-title h2 { margin: 5px 0 4px; font-size: 24px; }
.server-detail-title p { margin: 0; color: var(--muted); font-size: 12px; }
.server-id { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--dark-card, #fafaf8); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.server-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--dark-card, #fbfbf9); }
.server-stats > div { padding: 20px 24px; border-right: 1px solid var(--border); }
.server-stats > div:last-child { border-right: 0; }
.server-stats span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.server-stats strong { display: block; margin-top: 7px; font-size: 16px; }
.detail-list { padding: 10px 32px 18px; }
.detail-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; min-height: 50px; border-bottom: 1px solid var(--dark-border, #edf0f2); }
.detail-list > div:last-child { border-bottom: 0; }
.detail-list span { color: var(--muted); font-size: 12px; }
.detail-list strong,
.detail-list code { overflow-wrap: anywhere; color: var(--dark-muted, #455367); font-family: inherit; font-size: 12px; font-weight: 650; }

/* forms */
.form-stack { display: grid; gap: 16px; }
.form-card { padding: 30px 32px 32px; }
.compact-form-card,
.small-form-card { padding-bottom: 28px; }
.card-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 27px; }
.card-icon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 13px; }
.card-icon svg { width: 22px; height: 22px; }
.card-heading .eyebrow { margin: 1px 0 7px; }
.card-heading h2 { margin: 0; font-size: 21px; font-weight: 740; letter-spacing: -.025em; }
.card-heading p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.four-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span,
.location-fieldset > legend { color: var(--dark-muted, #465467); font-size: 12px; font-weight: 700; }
.field > span em { margin-left: 6px; color: var(--dark-muted, #98a1ae); font-size: 9px; font-style: normal; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.field input,
.field select,
.resource-edit-grid input {
  width: 100%;
  height: 47px;
  border: 1px solid var(--border-dark);
  border-radius: 9px;
  color: var(--text);
  background: var(--dark-card, #fff);
  font-size: 13px;
  outline: 0;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field input { padding: 0 13px; }
.field input::placeholder { color: var(--dark-muted, #a5adb8); }
.field input:focus,
.field select:focus,
.resource-edit-grid input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,135,120,.1); }
.field small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  margin-top: -6px;
  border-right: 1.5px solid var(--dark-border, #687487);
  border-bottom: 1.5px solid var(--dark-border, #687487);
  transform: rotate(45deg);
  pointer-events: none;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 42px 0 13px;
  cursor: pointer;
}
.field select:disabled { color: var(--dark-muted, #9ca5b0); background: var(--dark-card, #f4f5f3); cursor: not-allowed; }
.location-fieldset { margin: 0; padding: 0; border: 0; }
.location-fieldset legend { margin-bottom: 9px; }
.location-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice-card { cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { min-height: 60px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--dark-card, #fff); }
.choice-box > i { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid var(--dark-border, #b9c2cc); border-radius: 5px; background: var(--dark-card, #fff); }
.choice-box > span { min-width: 0; }
.choice-box strong { display: block; font-size: 12px; }
.choice-box small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.choice-card input:checked + .choice-box { border-color: rgba(28,135,120,.55); background: var(--teal-soft); }
.choice-card input:checked + .choice-box > i { border: 5px solid var(--teal); background: var(--dark-card, #fff); }
.resource-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.resource-preview > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--dark-card, #fbfbf9); }
.resource-preview span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.resource-preview strong { display: block; margin-top: 7px; font-size: 15px; }
.form-submit-bar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px 15px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--dark-card, #fff);
  box-shadow: var(--shadow);
}
.form-submit-bar strong { display: block; font-size: 13px; }
.form-submit-bar span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.form-separator { height: 1px; margin: 28px 0; background: var(--dark-card, #e7eaed); }
.subheading { margin-bottom: 16px; }
.subheading .eyebrow { margin-bottom: 7px; }
.subheading h3 { margin: 0; font-size: 16px; }
.resource-edit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.resource-edit-grid label > span { display: block; margin-bottom: 8px; color: var(--dark-muted, #465467); font-size: 11px; font-weight: 700; }
.resource-edit-grid label > div { position: relative; }
.resource-edit-grid input { padding: 0 48px 0 12px; }
.resource-edit-grid b { position: absolute; top: 50%; right: 12px; color: var(--dark-muted, #9099a5); font-size: 9px; transform: translateY(-50%); }
.switch-list { display: grid; gap: 10px; margin-top: 22px; }
.switch-row { min-height: 66px; display: flex; align-items: center; gap: 20px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px; background: var(--dark-card, #fbfbf9); cursor: pointer; }
.switch-row > span { min-width: 0; margin-right: auto; }
.switch-row strong { display: block; font-size: 12px; }
.switch-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row i { position: relative; width: 40px; height: 23px; flex: 0 0 40px; border-radius: 999px; background: var(--dark-card, #ccd3da); transition: background .15s ease; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--dark-card, #fff); box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: transform .15s ease; }
.switch-row input:checked + i { background: var(--teal); }
.switch-row input:checked + i::after { transform: translateX(17px); }
.password-fields { max-width: 680px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }

/* account settings */
.settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav-card { padding: 18px 12px; }
.settings-nav-title { display: block; padding: 2px 10px 10px; color: var(--muted-2); font-size: 9px; font-weight: 760; letter-spacing: .16em; }
.settings-nav-link { min-height: 43px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.settings-nav-link svg { width: 17px; height: 17px; }
.settings-nav-link.active { color: var(--teal); background: var(--teal-soft); }
.settings-card { margin: 0; }
.settings-content-stack { display: grid; gap: 16px; min-width: 0; }
.account-google-card .card-heading { align-items: center; }
.account-google-card .card-heading > .state { margin-left: auto; white-space: nowrap; }
.account-google-icon { display: grid; place-items: center; border: 1px solid var(--border); background: var(--dark-card, #fff); }
.account-google-lockout { margin: 0; }
.account-provider-body { display: grid; gap: 18px; padding: 0 24px 24px; }
.account-provider-identity { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); }
.account-provider-google-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border: 1px solid var(--border); border-radius: 11px; background: var(--dark-card, #fff); }
.account-provider-identity-copy { min-width: 0; }
.account-provider-identity-copy small { display: block; margin-bottom: 3px; color: var(--muted-2); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.account-provider-identity-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.account-provider-identity-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.account-provider-note { display: grid; gap: 4px; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 0 9px 9px 0; background: var(--teal-soft); }
.account-provider-note strong { font-size: 11px; }
.account-provider-note span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.account-provider-intro { display: grid; gap: 13px; padding: 17px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); }
.account-provider-intro h3,
.account-provider-action-copy h3 { margin: 3px 0 5px; font-size: 15px; }
.account-provider-intro p,
.account-provider-action-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-provider-rule { display: flex; align-items: center; gap: 11px; }
.account-provider-rule > span { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border: 1px solid var(--border); border-radius: 50%; color: var(--teal); background: var(--white); font-size: 9px; font-weight: 800; }
.account-provider-rule strong { display: block; font-size: 11px; }
.account-provider-rule small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.account-provider-form { width: min(100%, 560px); display: grid; gap: 12px; }
.account-provider-form .field { margin: 0; }
.account-provider-form-actions { display: flex; align-items: center; justify-content: flex-start; gap: 10px; }
.account-provider-action-panel { display: grid; gap: 15px; padding-top: 2px; }
.account-provider-action-danger { padding: 17px 18px; border: 1px solid color-mix(in srgb, var(--danger) 28%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--danger) 5%, var(--white)); }
.account-provider-link-form { padding-top: 2px; }
/* Account linking intentionally uses a native form submit. Keep decorative
   children from becoming independent pointer targets so the complete visible
   Google control behaves as one reliable button on mouse/touch input. */
.account-google-link-submit > * { pointer-events: none; }

/* admin */
.page-admin { max-width: 1320px; }
.admin-heading { margin-bottom: 27px; }
.admin-tabs { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--dark-card, #efeee9); }
.admin-tab { min-height: 37px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 700; }
.admin-tab span { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 99px; background: var(--dark-card, #e0e2df); font-size: 9px; }
.admin-tab.active { color: var(--text); background: var(--dark-card, #fff); box-shadow: 0 1px 3px rgba(28,39,56,.08); }
.users-card { overflow: hidden; }
.users-card-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 30px 22px; border-bottom: 1px solid var(--border); }
.users-card-header .eyebrow { margin-bottom: 7px; }
.users-card-header h2 { margin: 0; font-size: 21px; }
.users-card-header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.count-pill { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--dark-card, #fbfbf9); font-size: 10px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.user-table th { height: 42px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--dark-muted, #8a94a2); background: var(--dark-card, #fafaf8); font-size: 9px; font-weight: 760; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.user-table td { height: 70px; padding: 0 18px; border-bottom: 1px solid var(--dark-border, #edf0f2); vertical-align: middle; font-size: 12px; }
.user-table tbody tr:last-child td { border-bottom: 0; }
.user-table tbody tr:hover { background: var(--dark-card, #fdfdfb); }
.table-user { display: flex; align-items: center; gap: 11px; }
.table-user .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 12px; }
.table-user strong,
.table-server strong { display: block; font-size: 12px; }
.table-user small,
.table-server small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.chip { display: inline-flex; min-height: 25px; align-items: center; padding: 0 9px; border-radius: 99px; color: var(--dark-muted, #5d697b); background: var(--dark-card, #f0f1ef); font-size: 9px; font-weight: 700; }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; }
.state i { width: 6px; height: 6px; border-radius: 50%; }
.state-good { color: #297c67; }
.state-good i { background: var(--green); }
.state-off { color: #9a5b65; }
.state-off i { background: var(--red); }
.table-date { color: var(--muted); font-size: 10px; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--dark-card, #fff); }
.icon-button:hover { color: var(--text); border-color: var(--border-dark); background: var(--dark-card, #f8f8f5); }
.icon-button svg { width: 17px; height: 17px; }
.user-dialog { width: min(470px, calc(100% - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 14px; color: var(--text); background: var(--dark-card, #fff); box-shadow: 0 28px 80px rgba(23,29,44,.24); }
.user-dialog::backdrop { background: var(--dark-card-alpha-0-52, rgba(23,29,44,.52)); backdrop-filter: blur(3px); }
.user-dialog form { margin: 0; }
.dialog-header { display: flex; justify-content: space-between; gap: 18px; padding: 25px 26px 20px; border-bottom: 1px solid var(--border); }
.dialog-header .eyebrow { margin-bottom: 7px; }
.dialog-header h2 { margin: 0; font-size: 20px; }
.dialog-header p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.dialog-close { width: 31px; height: 31px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--dark-card, #fff); font-size: 20px; line-height: 1; }
.dialog-options { display: grid; gap: 9px; padding: 20px 26px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--teal); }
.check-row strong { display: block; font-size: 12px; }
.check-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 26px 22px; }

/* auth */
.auth-body { background: var(--page); }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(390px, 44%) 1fr; }
.auth-visual { min-height: 100vh; display: flex; flex-direction: column; padding: 34px 42px; color: #fff; background: var(--navy); }
.auth-brand { display: flex; align-items: center; gap: 13px; font-size: 20px; font-weight: 760; letter-spacing: -.035em; }
.auth-copy { margin: auto 0; max-width: 470px; }
.eyebrow-light { color: #6ec4b5; }
.auth-copy h1 { margin: 15px 0 16px; font-size: clamp(42px, 4.3vw, 65px); line-height: 1.01; letter-spacing: -.055em; }
.auth-copy p { max-width: 450px; margin: 0; color: var(--dark-text, #a9b1bf); font-size: 15px; line-height: 1.7; }
.auth-visual-footer { display: flex; align-items: center; gap: 9px; color: var(--dark-muted, #758092); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.auth-visual-footer i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.auth-main { display: grid; place-items: center; padding: 48px 28px; }
.auth-form-wrap { width: min(430px, 100%); }
.auth-form-wrap > .eyebrow { margin-bottom: 10px; }
.auth-form-wrap h2 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.auth-intro { margin: 12px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 17px; }
.auth-form .button { margin-top: 3px; }
.auth-switch { margin: 24px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.auth-switch a { color: var(--teal); font-weight: 700; }
.auth-mobile-brand { display: none; }

/* error */
.error-body { background: var(--page); }
.error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 30px; }
.error-brand { display: flex; align-items: center; gap: 11px; font-size: 18px; }
.error-card { width: min(560px, 100%); padding: 38px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--dark-card, #fff); box-shadow: var(--shadow); text-align: center; }
.error-card .eyebrow { margin-bottom: 10px; }
.error-card h1 { margin: 0; font-size: 30px; }
.error-card p { margin: 13px 0 24px; color: var(--muted); line-height: 1.6; }

@media (max-width: 1050px) {
  .four-fields,
  .resource-edit-grid { grid-template-columns: repeat(2, 1fr); }
  .server-stats { grid-template-columns: repeat(2, 1fr); }
  .server-stats > div:nth-child(2) { border-right: 0; }
  .server-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .settings-layout { grid-template-columns: 180px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 16px 0 45px rgba(23,29,44,.18); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: block; border: 0; background: var(--dark-card-alpha-0-42, rgba(23,29,44,.42)); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .mobile-menu { width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; margin-right: 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--dark-card, #fff); }
  .mobile-menu span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--dark-card, #566275); }
  .page-narrow,
  .page-admin { max-width: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 42px; font-size: 18px; }
  .auth-mobile-brand .brand-mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
  .auth-mobile-brand .brand-mark svg { width: 21px; height: 21px; }
}

@media (max-width: 700px) {
  .topbar { height: 70px; padding: 0 18px; }
  .system-status { display: none; }
  .breadcrumb > span:first-child { display: none; }
  .breadcrumb b { display: none; }
  .page { padding: 28px 18px 55px; }
  .page-heading { margin-bottom: 27px; }
  .page-heading-row { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 32px; }
  .empty-server-card { min-height: 350px; }
  .empty-server-content { padding: 36px 20px; }
  .empty-server-content p br { display: none; }
  .server-summary-card { align-items: flex-start; flex-direction: column; padding: 25px; }
  .server-summary-actions { width: 100%; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .form-fields,
  .four-fields,
  .location-options,
  .resource-preview,
  .resource-edit-grid { grid-template-columns: 1fr; }
  .form-submit-bar { align-items: stretch; flex-direction: column; padding: 18px; }
  .form-submit-bar .button { width: 100%; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav-card { display: none; }
  .account-google-card .card-heading { align-items: flex-start; }
  .account-google-card .card-heading > .state { margin-left: 0; }
  .account-google-action-form { grid-template-columns: 1fr; }
  .account-google-action-form .button { width: 100%; }
  .server-detail-head { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .server-stats { grid-template-columns: 1fr; }
  .server-stats > div { border-right: 0; border-bottom: 1px solid var(--border); }
  .server-stats > div:last-child { border-bottom: 0; }
  .detail-list { padding: 10px 20px 17px; }
  .detail-list > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .users-card-header { align-items: flex-start; flex-direction: column; padding: 23px 20px 18px; }
  .auth-main { padding: 28px 20px 42px; place-items: start center; }
  .auth-form-wrap { margin-top: 16px; }
  .auth-mobile-brand { margin-bottom: 48px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
}

/* Multi-server and admin control */
textarea { font: inherit; resize: vertical; }
.sidebar-count { margin-left: auto; min-width: 23px; padding: 3px 7px; border-radius: 999px; color: var(--dark-text, #dfe6ec); background: var(--dark-card-alpha-0-1, rgba(255,255,255,.1)); font-size: 9px; font-weight: 800; text-align: center; }
.sidebar-link.active .sidebar-count { color: #fff; background: var(--dark-card-alpha-0-16, rgba(255,255,255,.16)); }
.dashboard-metrics { margin-bottom: 24px; }
.server-list-section { margin-top: 28px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-title-row h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.03em; }
.server-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.server-fleet-card { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--dark-card, #fff); box-shadow: var(--shadow); }
.server-fleet-head { display: flex; align-items: center; gap: 16px; }
.server-fleet-copy { min-width: 0; }
.server-fleet-copy h3 { margin: 5px 0 4px; overflow: hidden; font-size: 20px; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.server-fleet-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.server-mini-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.server-mini-stats span { padding: 7px 9px; border-radius: 8px; color: var(--dark-muted, #687487); background: var(--dark-card, #f4f4f0); font-size: 10px; }
.server-mini-stats b { color: var(--text); }
.server-fleet-actions { display: flex; gap: 8px; }
.state-text-error, .state-text-missing, .state-text-suspended { color: var(--red); }
.state-text-offline { color: var(--dark-muted, #7a8494); }
.state-text-installing, .state-text-provisioning { color: #b2751a; }
.state-text-error .status-dot, .state-text-missing .status-dot, .state-text-suspended .status-dot { background: var(--red); }
.state-text-offline .status-dot { background: var(--dark-card, #8993a3); }
.state-text-installing .status-dot, .state-text-provisioning .status-dot { background: var(--amber); }
.danger-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 26px 28px; border: 1px solid #edc8ce; border-radius: var(--radius); background: var(--dark-card, #fff8f9); }
.danger-card h2 { margin: 5px 0 7px; font-size: 19px; }
.danger-card p { max-width: 690px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.eyebrow-danger { color: var(--red); }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #b44c5a; box-shadow: 0 9px 20px rgba(199,90,104,.18); }
.dialog-fields { display: grid; gap: 15px; }
.destructive-dialog { width: min(570px, calc(100vw - 30px)); }

.empty-table { padding: 32px !important; color: var(--muted); text-align: center; }

.page-admin { max-width: 1560px; }
.admin-tabs-wide { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; padding: 7px; border: 1px solid var(--border); border-radius: 13px; background: var(--dark-card, #fff); box-shadow: var(--shadow); }
.admin-tabs-wide .admin-tab { flex: 0 0 auto; min-width: 96px; border-radius: 9px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; margin-bottom: 19px; }
.admin-stat-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--dark-card, #fff); box-shadow: var(--shadow); }
.admin-stat-card span { color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.admin-stat-card strong { display: block; margin: 9px 0 5px; font-size: 30px; letter-spacing: -.04em; }
.admin-stat-card small { color: var(--muted); font-size: 10px; }
.admin-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.text-tab-link { border: 0; color: var(--teal); background: transparent; font-size: 11px; font-weight: 750; }
.block-small { display: block; margin-top: 3px; color: var(--muted); }
.admin-secondary-card { margin-top: 20px; }
.admin-table-scroll { max-width: 100%; }
.admin-server-table { min-width: 1130px; }
.admin-row-actions { display: flex; align-items: center; gap: 6px; }
.admin-row-actions form { margin: 0; }
.mini-action { min-height: 30px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; color: var(--dark-muted, #5a6677); background: var(--dark-card, #fff); font-size: 10px; font-weight: 750; }
.mini-action:hover { border-color: var(--dark-border, #aeb9c4); color: var(--text); }
.mini-danger { color: var(--red); border-color: #e8c6cc; background: var(--dark-card, #fff8f9); }
.admin-user-dialog { width: min(720px, calc(100vw - 30px)); }
.dialog-check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.admin-settings-grid { display: grid; gap: 20px; }
.switch-list-top { margin: 0 0 24px; }
.input-suffix { display: flex; align-items: center; }
.input-suffix input { border-radius: 9px 0 0 9px !important; }
.input-suffix b { min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-dark); border-left: 0; border-radius: 0 9px 9px 0; color: var(--muted); background: var(--dark-card, #f5f5f2); font-size: 10px; }
.mono-input, code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.audit-table { min-width: 1050px; }
.audit-detail { max-width: 430px; white-space: normal !important; line-height: 1.45; }

@media (max-width: 1200px) {
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 850px) {
  .server-card-grid { grid-template-columns: 1fr; }
  .danger-card { align-items: flex-start; flex-direction: column; }
  .dialog-check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .server-fleet-actions { flex-direction: column; }
  .server-fleet-actions .button { width: 100%; }
  .credit-earn-card { padding: 24px 20px; }
  .credit-earn-card form, .credit-earn-card .button { width: 100%; }
}
@media (max-width: 430px) {
  .admin-stat-grid { grid-template-columns: 1fr; }
}
.field textarea {
  width: 100%; min-height: 92px; padding: 11px 13px; border: 1px solid var(--border-dark); border-radius: 9px;
  color: var(--text); background: var(--dark-card, #fff); font-size: 13px; line-height: 1.5; outline: 0;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,135,120,.1); }

/* v1.4.4 panel SSO and external earning confirmation */
.static-info-row { cursor: default; }
.dialog-inline-error { margin: 2px 0 0; padding: 10px 12px; border: 1px solid #ebc8ce; border-radius: 8px; color: #914b58; background: var(--dark-card, #fff5f6); font-size: 11px; line-height: 1.45; }
.panel-choice-card { display: block; padding: 14px 15px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--dark-card, #fff); text-decoration: none; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.panel-choice-card:hover { border-color: var(--border-dark); background: var(--dark-card, #f8f8f5); transform: translateY(-1px); }
.panel-choice-card strong { display: block; font-size: 12px; }
.panel-choice-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.panel-choice-disabled { opacity: .7; cursor: not-allowed; }
.button:disabled { cursor: wait; opacity: .7; }

.panel-sso-form, .inline-action-form { margin: 0; }
.panel-choice-button { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.server-fleet-actions .inline-action-form { display: inline-flex; }


/* v1.5 branding, external links, and safe banner ads */
.sidebar-links { margin-top: auto; }
.sidebar-legal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 0 5px; }
.sidebar-legal a { color: var(--dark-muted, #8490a1); font-size: 9px; font-weight: 700; text-decoration: none; }
.sidebar-legal a:hover { color: var(--dark-text, #dfe6ec); }
.global-banner-ad { padding: 16px 26px 0; }
.global-banner-ad > a { position: relative; display: flex; min-height: 72px; align-items: center; justify-content: center; gap: 18px; max-width: 1530px; margin: 0 auto; padding: 15px 22px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; background: var(--dark-card, #fff); box-shadow: var(--shadow); text-decoration: none; }
.global-banner-ad > a:hover { border-color: var(--dark-border, #bac5ce); }
.global-banner-label { position: absolute; top: 6px; right: 9px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.global-banner-ad img { display: block; max-width: min(100%, 970px); max-height: 90px; width: auto; height: auto; object-fit: contain; border-radius: 7px; }
.global-banner-copy { color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center; }
.admin-danger-note { color: var(--red); }

@media (max-width: 850px) {
  .global-banner-ad { padding: 12px 18px 0; }
  .global-banner-ad > a { min-height: 64px; padding: 13px 16px; }
  .global-banner-ad img { max-height: 72px; }
}


/* Dashboard metric compatibility */
.dashboard-metrics-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .dashboard-metrics-two { grid-template-columns: 1fr; } }

/* v1.5.2 admin search + logo customization */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}
.admin-list-header { align-items: center; }
.admin-list-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-search {
  min-width: min(320px, 45vw);
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--border-dark);
  border-radius: 9px;
  color: var(--muted);
  background: var(--dark-card, #fff);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.admin-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,135,120,.1); }
.admin-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-search input {
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}
.admin-search input::placeholder { color: var(--dark-muted, #98a1ae); }
.admin-filter-empty[hidden] { display: none !important; }
@media (max-width: 850px) {
  .admin-list-header { align-items: stretch; }
  .admin-list-tools { width: 100%; justify-content: space-between; }
  .admin-search { flex: 1 1 240px; min-width: 0; }
}

/* v1.5.2 portal snapshot: built on the stable admin table component */
.portal-config-table { min-width: 620px; }
.portal-config-table td:first-child { width: 46%; }
.portal-config-table td:last-child { text-align: right; }
.portal-config-link { display: inline-block; max-width: min(100%, 470px); overflow: hidden; color: var(--teal); font-size: 11px; font-weight: 720; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.portal-config-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .portal-config-table { min-width: 540px; }
  .portal-config-link { max-width: 280px; }
}

/* support tickets */
.primary-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #71591f;
  background: #fff1c9;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ticket-page {
  width: 100%;
  max-width: 1120px;
}
.ticket-page-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}
.ticket-page-heading > div:first-child { min-width: 0; }
.ticket-page-heading h1 { max-width: 760px; }
.ticket-page-heading p { max-width: 720px; }
.ticket-page .button,
.ticket-page .mini-action { white-space: nowrap; }

.ticket-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}
.ticket-summary-card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(23,29,44,.035);
}
.ticket-summary-card > span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: .09em;
}
.ticket-summary-card > strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -.04em;
}
.ticket-summary-card > small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.ticket-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--dark-card-alpha-0-58, rgba(255,255,255,.58));
}
.ticket-search-card p {
  flex: 0 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}
.ticket-search-card p strong { color: var(--text); }
.ticket-search-form {
  display: flex;
  align-items: center;
  flex: 1 1 560px;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
.ticket-search-field {
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
  flex: 1 1 320px;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--border-dark);
  border-radius: 10px;
  color: var(--muted);
  background: var(--white);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.ticket-search-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,135,120,.1);
}
.ticket-search-field svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticket-search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}
.ticket-search-field input::placeholder { color: var(--dark-muted, #9ba3ad); }

.ticket-section-card {
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23,29,44,.035);
}
.ticket-section-card:last-child { margin-bottom: 0; }
.ticket-section-claimed {
  border-color: #cfe2dd;
  box-shadow: 0 8px 30px rgba(31,119,103,.05);
}
.ticket-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--dark-border, #ecefed);
  background: var(--dark-card, #fbfbf8);
}
.ticket-section-claimed .ticket-section-heading { background: var(--dark-card, #f4f9f7); }
.ticket-section-heading > div { min-width: 0; }
.ticket-section-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  line-height: 1.25;
}
.ticket-section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.ticket-section-heading p strong { color: var(--dark-muted, #536171); }
.ticket-section-heading .count-pill { flex: 0 0 auto; }
.ticket-section-empty {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 9px;
  padding: 24px 22px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.ticket-section-empty strong { color: var(--text); }

.ticket-list { display: block; width: 100%; }
.ticket-row-form {
  display: block;
  width: 100%;
  margin: 0;
}
.ticket-list-row {
  width: 100%;
  min-width: 0;
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 19px 22px;
  border: 0;
  border-bottom: 1px solid var(--dark-border, #edf0f2);
  border-radius: 0;
  color: inherit;
  background: var(--white);
  font: inherit;
  text-align: left;
  text-decoration: none;
  appearance: none;
  transition: background .15s ease;
}
.ticket-list > .ticket-list-row:last-child { border-bottom: 0; }
.ticket-list-row:hover { background: var(--dark-card, #fbfcfa); }
.ticket-list-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.ticket-list-main {
  min-width: 0;
  flex: 1 1 auto;
  display: block;
}
.ticket-list-main > strong {
  display: block;
  max-width: 100%;
  margin-top: 9px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticket-list-main > small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.ticket-customer { color: var(--dark-muted, #44566d); font-weight: 750; }
.ticket-list-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.ticket-number {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
}
.ticket-status,
.ticket-priority {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.ticket-status-waiting_staff { color: #8c611b; background: #fff2d7; }
.ticket-status-waiting_user { color: #246b61; background: #e4f4ef; }
.ticket-status-closed { color: var(--dark-muted, #687384); background: var(--dark-card, #eceeed); }
.ticket-priority { color: var(--dark-muted, #667284); background: var(--dark-card, #f0f1ef); }
.ticket-priority-high { color: #a64a59; background: #fff0f2; }
.ticket-priority-low { color: var(--dark-muted, #687384); background: var(--dark-card, #eef1f2); }
.ticket-list-side {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}
.ticket-list-side b {
  flex: 0 0 auto;
  color: var(--dark-muted, #9ba5b2);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.ticket-assignment {
  max-width: 250px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--dark-muted, #667284);
  background: var(--dark-card, #f2f3f1);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.ticket-assignment-mine { color: #23675d; background: #e5f4ef; }
.ticket-assignment-open { color: #835f25; background: #fff4dc; }

.ticket-empty {
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  padding: 54px 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23,29,44,.03);
}
.ticket-empty-staff { min-height: 290px; }
.ticket-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid var(--dark-border, #dce7e3);
  border-radius: 17px;
  color: var(--teal);
  background: var(--teal-soft);
}
.ticket-empty-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticket-empty h2 {
  max-width: 620px;
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.03em;
}
.ticket-empty p {
  max-width: 600px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.ticket-new-card {
  width: 100%;
  max-width: 820px;
}
.ticket-new-card textarea,
.ticket-reply-card textarea { width: 100%; resize: vertical; }
.ticket-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.ticket-detail-page { max-width: 1040px; }
.ticket-back {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 740;
}
.ticket-back:hover { text-decoration: underline; }
.ticket-detail-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
  gap: 28px;
  margin: 0 0 14px;
  padding: 24px 25px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23,29,44,.035);
}
.ticket-detail-main { min-width: 0; }
.ticket-detail-main h1 {
  margin: 11px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.ticket-detail-main p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.ticket-detail-main p strong { color: var(--dark-muted, #526073); }
.ticket-detail-owner {
  min-width: 0;
  align-self: stretch;
  padding: 12px 0 12px 24px;
  border-left: 1px solid var(--dark-border, #edf0ef);
}
.ticket-detail-owner > span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: .08em;
}
.ticket-detail-owner > strong {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.ticket-detail-owner > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.ticket-claim-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid var(--dark-border, #e0e3e2);
  border-radius: 14px;
  background: var(--dark-card, #f7f7f3);
}
.ticket-claim-mine { border-color: #cde6df; background: var(--dark-card, #f1f9f6); }
.ticket-claim-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 13px;
}
.ticket-claim-copy > div { min-width: 0; }
.ticket-claim-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 12px;
  color: var(--dark-muted, #617080);
  background: var(--white);
  box-shadow: inset 0 0 0 1px #e4e7e6;
}
.ticket-claim-mine .ticket-claim-icon { color: var(--teal); }
.ticket-claim-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ticket-claim-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
}
.ticket-claim-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}
.ticket-claim-actions { flex: 0 0 auto; }
.ticket-claim-actions form { margin: 0; }

.ticket-staff-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
}
.ticket-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.ticket-toolbar-actions form { margin: 0; }
.ticket-priority-form {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.ticket-priority-form label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.ticket-priority-form select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
}

.ticket-thread {
  overflow: hidden;
  margin: 0 0 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23,29,44,.03);
}
.ticket-thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--dark-border, #e8ebe9);
  background: var(--dark-card, #fafaf7);
}
.ticket-thread-header h2 {
  margin: 4px 0 0;
  font-size: 17px;
  letter-spacing: -.02em;
}
.ticket-thread-header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.ticket-thread-messages {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--dark-card, #f5f5f1);
}
.ticket-message {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 13px;
  margin: 0;
  padding: 17px 18px;
  border: 1px solid var(--dark-border, #e1e5e3);
  border-radius: 13px;
  background: var(--white);
}
.ticket-message-staff { border-left: 3px solid #bcded5; }
.ticket-message-user { border-left: 3px solid var(--dark-border, #d9dde2); }
.ticket-message-mine { background: var(--dark-card, #fbfcfa); }
.ticket-message-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--dark-muted, #5f6c7c);
  background: var(--dark-card, #eef0ef);
  font-size: 12px;
  font-weight: 800;
}
.ticket-message-staff .ticket-message-avatar { color: #246b61; background: #e3f2ed; }
.ticket-message-content { min-width: 0; }
.ticket-message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 1px 0 10px;
}
.ticket-message-author {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.ticket-message-author strong {
  min-width: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.ticket-message-author span {
  padding: 3px 7px;
  border-radius: 99px;
  color: var(--muted);
  background: var(--dark-card, #eef0ee);
  font-size: 8px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ticket-message-meta time {
  flex: 0 0 auto;
  color: var(--dark-muted, #939ca8);
  font-size: 9px;
  line-height: 1.5;
}
.ticket-message-body {
  color: var(--dark-muted, #3f4d61);
  font-size: 13px;
  line-height: 1.72;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ticket-composer {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--dark-border, #cfd9d5);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(23,29,44,.04);
}
.ticket-composer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--dark-border, #edf0ee);
  background: var(--dark-card, #fbfcf9);
}
.ticket-composer-header > div { min-width: 0; }
.ticket-composer-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  letter-spacing: -.025em;
}
.ticket-composer-header p {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.ticket-composer-limit {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}
.ticket-composer-field {
  display: block;
  padding: 18px 22px 12px;
}
.ticket-composer-field textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid var(--dark-border, #bac5c1);
  border-radius: 11px;
  color: var(--text);
  background: var(--dark-card, #fff);
  font: inherit;
  font-size: 13px;
  line-height: 1.65;
  outline: 0;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.ticket-composer-field textarea::placeholder { color: var(--dark-muted, #9aa4af); }
.ticket-composer-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,135,120,.1);
  background: var(--dark-card, #fff);
}
.ticket-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 20px;
}
.ticket-composer-hint {
  color: var(--muted);
  font-size: 9px;
}
.ticket-user-close {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0 0;
}
.ticket-closed-notice {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--muted);
  background: var(--dark-card, #f4f4f1);
  font-size: 11px;
  line-height: 1.5;
}
.ticket-closed-notice strong,
.ticket-closed-notice span { display: block; }
.ticket-closed-notice strong { margin-bottom: 4px; color: var(--text); font-size: 12px; }

@media (max-width: 900px) {
  .ticket-search-card { align-items: stretch; flex-direction: column; }
  .ticket-search-card p { text-align: left; }
  .ticket-search-form { flex-basis: auto; width: 100%; }
  .ticket-list-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .ticket-list-side { width: 100%; justify-content: space-between; }
  .ticket-assignment { max-width: calc(100% - 34px); }
}
@media (max-width: 780px) {
  .ticket-page-heading { align-items: flex-start; }
  .ticket-summary-grid { grid-template-columns: 1fr; }
  .ticket-section-heading { align-items: flex-start; }
  .ticket-detail-card { grid-template-columns: 1fr; }
  .ticket-detail-owner {
    padding: 14px 0 0;
    border-top: 1px solid var(--dark-border, #edf0ef);
    border-left: 0;
  }
  .ticket-claim-card,
  .ticket-staff-toolbar { align-items: stretch; flex-direction: column; }
  .ticket-claim-actions { align-self: flex-start; }
  .ticket-toolbar-actions { justify-content: flex-start; }
  .ticket-message-meta { flex-direction: column; }
  .ticket-message-meta time { width: 100%; }
  .ticket-composer-header { flex-direction: column; }
}
@media (max-width: 560px) {
  .ticket-page { padding-left: 20px; padding-right: 20px; }
  .ticket-search-form { align-items: stretch; flex-direction: column; }
  .ticket-search-form .button,
  .ticket-search-form .mini-action { width: 100%; justify-content: center; text-align: center; }
  .ticket-search-field { flex-basis: 42px; width: 100%; }
  .ticket-section-heading { padding: 18px; }
  .ticket-section-empty { align-items: flex-start; flex-direction: column; padding: 20px 18px; }
  .ticket-list-row { padding: 18px; }
  .ticket-list-main > strong { white-space: normal; overflow: visible; }
  .ticket-detail-card { padding: 20px; }
  .ticket-claim-card { padding: 15px; }
  .ticket-claim-copy { align-items: flex-start; }
  .ticket-priority-form,
  .ticket-priority-form label { width: 100%; }
  .ticket-priority-form label { justify-content: space-between; }
  .ticket-priority-form select { flex: 1 1 auto; min-width: 0; }
  .ticket-toolbar-actions { width: 100%; }
  .ticket-toolbar-actions form,
  .ticket-toolbar-actions .button { width: 100%; }
  .ticket-toolbar-actions .button { justify-content: center; }
  .ticket-thread-messages { padding: 10px; }
  .ticket-message { grid-template-columns: 1fr; padding: 15px; }
  .ticket-message-avatar { width: 34px; height: 34px; }
  .ticket-empty { min-height: 280px; padding: 42px 20px; }
  .ticket-composer-header { padding: 18px 18px 14px; }
  .ticket-composer-field { padding: 16px 18px 10px; }
  .ticket-composer-footer { align-items: stretch; flex-direction: column; padding: 0 18px 18px; }
  .ticket-composer-footer .button { width: 100%; justify-content: center; }
}

/* v1.7 pooled account resources + bulk user administration */
.dashboard-resource-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.resource-allocation-card { border-color: #cfe1dd; background: var(--dark-card, #fcfefd); }
.resource-pool-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 20px;
}
.resource-pool-summary > div {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--dark-border, #dce7e3);
  border-radius: 11px;
  background: var(--dark-card, #f5faf8);
}
.resource-pool-summary span,
.resource-pool-summary small { display: block; color: var(--muted); font-size: 9px; }
.resource-pool-summary strong { display: block; margin: 7px 0 5px; font-size: 18px; letter-spacing: -.025em; }
.resource-allocation-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-pool-note { margin: 16px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.admin-users-table { min-width: 1260px; }
.select-cell { width: 42px; text-align: center; }
.table-check { position: relative; display: inline-grid; width: 19px; height: 19px; place-items: center; cursor: pointer; }
.table-check input { position: absolute; inset: 0; width: 19px; height: 19px; margin: 0; opacity: 0; cursor: pointer; }
.table-check span { width: 17px; height: 17px; border: 1px solid var(--dark-border, #b9c2cc); border-radius: 5px; background: var(--dark-card, #fff); box-shadow: inset 0 0 0 2px #fff; transition: .14s ease; }
.table-check input:checked + span { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 3px #fff; }
.table-check input:indeterminate + span { border-color: var(--teal); background: linear-gradient(var(--teal), var(--teal)) center/9px 2px no-repeat var(--dark-card, #fff); }
.table-check input:focus-visible + span { outline: 2px solid rgba(28,135,120,.28); outline-offset: 2px; }

.bulk-user-form { margin: 0; }
.bulk-user-toolbar {
  display: grid;
  grid-template-columns: minmax(170px, .8fr) minmax(190px, .65fr) minmax(310px, 1.3fr) auto;
  align-items: end;
  gap: 12px;
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-card, #fbfbf8);
}
.bulk-user-summary { align-self: center; min-width: 0; }
.bulk-user-summary strong { display: block; font-size: 12px; }
.bulk-user-summary span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.bulk-action-select { margin: 0; }
.bulk-fields { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px; }
.bulk-fields[hidden] { display: none !important; }
.bulk-fields > label > span,
.bulk-fields-single > label > span { display: block; margin-bottom: 6px; color: var(--dark-muted, #465467); font-size: 9px; font-weight: 750; }
.bulk-fields input,
.bulk-fields select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--border-dark); border-radius: 8px; background: var(--dark-card, #fff); color: var(--text); font: inherit; font-size: 11px; outline: 0; }
.bulk-fields input:focus,
.bulk-fields select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(28,135,120,.09); }
.bulk-fields .input-suffix input { height: 40px; border-radius: 8px 0 0 8px !important; }
.bulk-fields .input-suffix b { min-height: 40px; padding: 0 8px; }
.bulk-fields-single { grid-template-columns: minmax(180px, 1fr); }
.bulk-fields-single small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.bulk-apply-button { min-height: 40px; align-self: end; }
.bulk-apply-button:disabled { cursor: not-allowed; opacity: .5; }

.resource-table-stack { min-width: 140px; }
.resource-table-stack span { display: block; color: var(--dark-muted, #5d6978); font-size: 9px; line-height: 1.55; white-space: nowrap; }
.resource-table-stack b { color: var(--text); font-size: 10px; }
.resource-table-stack small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 8px; white-space: nowrap; }
.admin-resource-edit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.primary-lock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  border: 1px solid #d5e5df;
  border-radius: 10px;
  background: var(--dark-card, #f4faf7);
}
.primary-lock-card strong { display: block; font-size: 11px; }
.primary-lock-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

@media (max-width: 1200px) {
  .dashboard-resource-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk-user-toolbar { grid-template-columns: minmax(160px, .8fr) minmax(180px, .7fr) 1.4fr; }
  .bulk-apply-button { grid-column: 3; justify-self: end; }
}
@media (max-width: 800px) {
  .resource-allocation-fields,
  .resource-pool-summary,
  .admin-resource-edit-grid { grid-template-columns: 1fr; }
  .bulk-user-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .bulk-fields { grid-template-columns: 1fr; }
  .bulk-apply-button { grid-column: auto; width: 100%; justify-self: stretch; }
}
@media (max-width: 700px) {
  .dashboard-resource-metrics { grid-template-columns: 1fr; }
}

/* v1.7.1 dashboard spacing and resource hierarchy */
.dashboard-page {
  padding-bottom: 96px;
}
.dashboard-heading {
  align-items: center;
  gap: 40px;
  margin-bottom: 34px;
}
.dashboard-heading-copy {
  min-width: 0;
  max-width: 760px;
}
.dashboard-heading-copy .eyebrow {
  margin-bottom: 13px;
}
.dashboard-heading-copy p {
  max-width: 690px;
  margin-top: 17px;
  line-height: 1.7;
}
.dashboard-heading-actions {
  flex: 0 0 auto;
}
.dashboard-create-button {
  min-height: 47px;
  padding-inline: 20px;
}
.dashboard-quota-notice {
  margin-bottom: 30px;
  line-height: 1.55;
}
.dashboard-resource-section {
  margin-bottom: 36px;
}
.dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 19px;
}
.dashboard-section-heading h2 {
  margin: 7px 0 0;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.03em;
}
.dashboard-section-heading p {
  max-width: 390px;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: right;
}
.dashboard-resource-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}
.dashboard-metric-card {
  min-width: 0;
  min-height: 158px;
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.dashboard-metric-topline {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.dashboard-metric-label {
  min-width: 0;
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.35;
}
.dashboard-metric-badge {
  flex: 0 0 auto;
  padding: 5px 7px;
  border-radius: 999px;
  color: var(--dark-muted, #6d7888);
  background: var(--dark-card, #f3f4f1);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}
.dashboard-metric-value {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: clamp(25px, 2vw, 31px);
  font-weight: 760;
  letter-spacing: -.04em;
  line-height: 1.08;
}
.dashboard-metric-value small {
  margin-left: 2px;
  color: var(--dark-muted, #6f7a89);
  font-size: .48em;
  font-weight: 700;
  letter-spacing: -.01em;
}
.dashboard-metric-meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.dashboard-resource-bar {
  width: 100%;
  height: 7px;
  display: block;
  margin: 17px 0 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--dark-card, #ecefeb);
  appearance: none;
}
.dashboard-resource-bar::-webkit-progress-bar {
  border-radius: 999px;
  background: var(--dark-card, #ecefeb);
}
.dashboard-resource-bar::-webkit-progress-value {
  border-radius: 999px;
  background: var(--teal);
}
.dashboard-resource-bar::-moz-progress-bar {
  border-radius: 999px;
  background: var(--teal);
}
.dashboard-metric-servers {
  display: flex;
  flex-direction: column;
}
.dashboard-metric-servers .dashboard-metric-value {
  margin-top: 7px;
}
.dashboard-metric-servers .dashboard-metric-meta {
  margin-top: auto;
  padding-top: 14px;
}
.dashboard-empty-card {
  min-height: 365px;
  display: grid;
  place-items: center;
  padding: 56px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.dashboard-empty-content {
  width: min(100%, 650px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.dashboard-empty-icon {
  margin-bottom: 24px;
}
.dashboard-empty-content > .eyebrow {
  margin-bottom: 10px;
}
.dashboard-empty-content h2 {
  margin: 0;
  color: var(--text);
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -.035em;
}
.dashboard-empty-content > p {
  max-width: 600px;
  margin: 16px auto 29px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.dashboard-empty-content > p strong {
  color: var(--dark-muted, #536174);
  font-weight: 700;
}
.dashboard-empty-actions {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dashboard-empty-actions .notice-inline {
  max-width: 520px;
  line-height: 1.55;
}
.dashboard-server-section {
  margin-top: 0;
}
.dashboard-server-heading {
  margin-bottom: 20px;
}
.dashboard-server-grid {
  gap: 20px;
}
.dashboard-server-card {
  padding: 26px;
}
.dashboard-server-card .server-mini-stats {
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dashboard-server-card .server-fleet-actions {
  gap: 10px;
}

@media (max-width: 1200px) {
  .dashboard-resource-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .dashboard-page {
    padding-bottom: 72px;
  }
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 30px;
  }
  .dashboard-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .dashboard-section-heading p {
    max-width: 620px;
    text-align: left;
  }
  .dashboard-empty-card {
    min-height: 340px;
    padding: 48px 26px;
  }
}
@media (max-width: 700px) {
  .dashboard-resource-section {
    margin-bottom: 28px;
  }
  .dashboard-resource-metrics {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .dashboard-metric-card {
    min-height: 0;
    padding: 21px 22px;
  }
  .dashboard-metric-servers .dashboard-metric-meta {
    margin-top: 10px;
    padding-top: 0;
  }
  .dashboard-empty-card {
    min-height: 310px;
    padding: 42px 20px;
  }
  .dashboard-empty-content h2 {
    font-size: 23px;
  }
  .dashboard-empty-content > p {
    margin: 14px auto 25px;
  }
  .dashboard-empty-actions,
  .dashboard-empty-actions .button {
    width: 100%;
  }
  .dashboard-server-card {
    padding: 22px;
  }
  .dashboard-server-card .server-fleet-actions {
    flex-direction: column;
  }
  .dashboard-server-card .server-fleet-actions .button,
  .dashboard-server-card .server-fleet-actions form,
  .dashboard-server-card .server-fleet-actions form .button {
    width: 100%;
  }
}

/* OAuth panel-consent page */
.oauth-consent-heading { margin-bottom: 28px; }
.oauth-consent-card { display: grid; gap: 26px; }
.oauth-consent-card .card-heading { margin-bottom: 0; }
.oauth-consent-summary { margin: 0; }
.oauth-consent-note {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft, var(--dark-card-alpha-0-025, rgba(255, 255, 255, 0.025)));
}
.oauth-consent-note strong { display: block; margin-bottom: 6px; }
.oauth-consent-note p { margin: 0; line-height: 1.65; color: var(--muted); }
.oauth-consent-form { margin-top: 0; }
.oauth-consent-actions { margin-top: 0; padding-top: 2px; }
@media (max-width: 560px) {
  .oauth-consent-heading { margin-bottom: 22px; }
  .oauth-consent-card { gap: 20px; }
  .oauth-consent-note { padding: 16px; }
  .oauth-consent-actions { display: grid; grid-template-columns: 1fr; }
  .oauth-consent-actions .button { width: 100%; }
}

/* v1.9 server creation + detailed server overview */
.create-server-page,
.server-overview-page { max-width: 1320px; padding-bottom: 96px; }
.create-server-heading,
.server-page-heading { align-items: center; margin-bottom: 30px; }
.create-server-heading > div:first-child,
.server-page-heading-copy { max-width: 790px; }
.create-server-heading p,
.server-page-heading p { max-width: 760px; line-height: 1.7; }
.create-server-notice,
.server-page-notice { margin-bottom: 26px; }

.create-resource-overview {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.create-resource-overview > div { min-width: 0; padding: 21px 22px; border-left: 1px solid var(--border); }
.create-resource-overview > div:first-child { border-left: 0; }
.create-resource-overview span,
.create-resource-overview small { display: block; color: var(--muted); font-size: 10px; line-height: 1.45; }
.create-resource-overview strong { display: block; margin: 7px 0 5px; font-size: 19px; letter-spacing: -.025em; }
.create-resource-intro { background: var(--dark-card, #fbfbf8); }
.create-resource-intro .eyebrow { margin-bottom: 8px; color: var(--teal); }
.create-resource-intro strong { margin: 0 0 5px; }
.create-minimum-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 24px;
  padding: 13px 16px;
  border: 1px solid #d3e4df;
  border-radius: 11px;
  background: var(--dark-card, #f5faf8);
}
.create-minimum-icon { width: 31px; height: 31px; flex: 0 0 31px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--dark-card, #e9f4f0); }
.create-minimum-icon svg { width: 16px; height: 16px; }
.create-minimum-banner strong { display: block; font-size: 11px; }
.create-minimum-banner span:not(.create-minimum-icon) { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.create-server-form { gap: 18px; }
.create-step-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 20px; padding: 30px 32px 32px 27px; }
.create-step-number {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-top: 2px;
  border: 1px solid var(--dark-border, #d5dfdc);
  border-radius: 11px;
  color: var(--teal);
  background: var(--dark-card, #f4f8f6);
  font-size: 12px;
  font-weight: 800;
}
.create-step-body { min-width: 0; }
.create-card-heading { margin-bottom: 25px; }
.create-pool-summary { margin-bottom: 22px; }
.create-allocation-fields { gap: 16px; }
.create-allocation-fields .field small { min-height: 31px; line-height: 1.55; }
.create-resource-note { margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--dark-border, #e6ece9); }
.fieldset-help { margin: -2px 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.create-submit-bar { margin-top: 3px; padding: 20px 22px; }
.create-submit-bar > div { max-width: 720px; }
.create-submit-bar .eyebrow { margin-bottom: 6px; }
.create-submit-bar strong { display: block; margin-bottom: 4px; }

.server-page-heading { margin-bottom: 26px; }
.server-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.server-title-line h1 { min-width: 0; }
.server-status-chip {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--dark-border, #d9e5e1);
  border-radius: 999px;
  background: var(--dark-card, #f5faf8);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.server-status-chip.state-text-good { color: var(--teal); }
.server-status-chip.state-text-offline { border-color: var(--dark-border, #dde1e5); background: var(--dark-card, #f6f7f7); }
.server-status-chip.state-text-error,
.server-status-chip.state-text-missing,
.server-status-chip.state-text-suspended { border-color: #efd0d5; background: var(--dark-card, #fff7f8); }
.server-status-chip.state-text-installing,
.server-status-chip.state-text-provisioning,
.server-status-chip.state-text-restoring,
.server-status-chip.state-text-transferring,
.server-status-chip.state-text-starting,
.server-status-chip.state-text-stopping { border-color: #eadbbf; background: #fffaf1; }
.server-heading-actions { flex-wrap: wrap; justify-content: flex-end; }

.server-identity-card,
.server-info-card,
.server-panel-card,
.server-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.server-identity-card { margin-bottom: 20px; overflow: hidden; }
.server-identity-main { display: flex; align-items: center; gap: 18px; padding: 27px 30px; }
.server-identity-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 16px; color: var(--teal); background: var(--dark-card, #efede7); }
.server-identity-icon svg { width: 28px; height: 28px; }
.server-identity-copy { min-width: 0; }
.server-identity-copy .eyebrow { margin-bottom: 7px; }
.server-identity-copy h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.server-identity-copy p { max-width: 790px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.server-identity-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); background: var(--dark-card, #fbfbf8); }
.server-identity-facts > div { min-width: 0; padding: 18px 20px; border-left: 1px solid var(--border); }
.server-identity-facts > div:first-child { border-left: 0; }
.server-identity-facts span,
.server-hosting-grid span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.server-identity-facts strong { display: block; overflow-wrap: anywhere; color: var(--dark-muted, #455367); font-size: 12px; }
.mono-value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }

.server-section { margin-bottom: 20px; padding: 27px 30px 30px; }
.server-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.server-section-heading .eyebrow { margin-bottom: 7px; }
.server-section-heading h2,
.server-info-heading h2,
.server-panel-card h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.server-live-caption { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 650; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(44, 155, 119, .1); }
.live-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.live-metric-card { min-width: 0; min-height: 112px; padding: 18px 19px; border: 1px solid var(--border); border-radius: 12px; background: var(--dark-card, #fbfbf9); }
.live-metric-card span { display: block; color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.live-metric-card strong { display: block; margin: 12px 0 7px; overflow-wrap: anywhere; font-size: 22px; letter-spacing: -.03em; }
.live-metric-card small { display: block; color: var(--muted); font-size: 9px; line-height: 1.45; }
.live-metric-primary { background: var(--dark-card, #f5faf8); border-color: #d6e6e0; }
.live-metric-network { grid-column: span 2; min-height: 92px; }
.server-live-note { margin-top: 16px; padding: 13px 14px; border-radius: 10px; color: var(--muted); background: var(--dark-card, #f5f5f2); font-size: 10px; line-height: 1.55; }
.server-live-note.live-error { color: #8b5962; background: var(--dark-card, #fff7f8); }

.server-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.server-info-card { min-width: 0; padding: 25px 28px; }
.server-info-heading { margin-bottom: 17px; }
.server-info-heading .eyebrow { margin-bottom: 7px; }
.server-info-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.server-info-list { display: grid; }
.server-info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 47px; border-top: 1px solid var(--dark-border, #edf0f2); }
.server-info-list > div:first-child { border-top: 0; }
.server-info-list span { color: var(--muted); font-size: 11px; }
.server-info-list strong { color: var(--dark-muted, #455367); font-size: 12px; }
.server-hosting-card { margin-bottom: 20px; }
.server-local-id { padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--dark-card, #fafaf8); font-size: 9px; font-weight: 800; letter-spacing: .07em; }
.server-hosting-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; }
.server-hosting-grid > div { min-width: 0; padding: 16px 17px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--dark-card, #fbfbf9); }
.server-hosting-grid > div:nth-child(-n+4) { border-top: 0; }
.server-hosting-grid > div:nth-child(4n+1) { border-left: 0; }
.server-hosting-grid strong { display: block; overflow-wrap: anywhere; color: var(--dark-muted, #455367); font-size: 11px; line-height: 1.45; }

.server-panel-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 25px 28px; }
.server-panel-card-copy { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.server-panel-card-copy .card-icon { flex: 0 0 46px; }
.server-panel-card-copy .eyebrow { margin: 1px 0 7px; }
.server-panel-card p { max-width: 800px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.server-panel-unavailable { flex: 0 0 auto; padding: 9px 11px; border-radius: 9px; color: var(--muted); background: var(--dark-card, #f4f4f0); font-size: 10px; font-weight: 700; }
.server-danger-card { margin-top: 0; }

.state-text-restoring,
.state-text-transferring,
.state-text-starting,
.state-text-stopping { color: #b2751a; }
.state-text-restoring .status-dot,
.state-text-transferring .status-dot,
.state-text-starting .status-dot,
.state-text-stopping .status-dot { background: var(--amber); }

@media (max-width: 1100px) {
  .create-resource-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create-resource-overview > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .create-resource-overview > div:nth-child(4) { border-top: 1px solid var(--border); }
  .server-identity-facts,
  .server-hosting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-identity-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .server-identity-facts > div:nth-child(4) { border-top: 1px solid var(--border); }
  .server-hosting-grid > div:nth-child(n) { border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
  .server-hosting-grid > div:nth-child(-n+2) { border-top: 0; }
  .server-hosting-grid > div:nth-child(2n+1) { border-left: 0; }
  .live-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-metric-network { grid-column: span 1; }
}

@media (max-width: 800px) {
  .create-server-page,
  .server-overview-page { padding-bottom: 72px; }
  .create-server-heading,
  .server-page-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .create-step-card { grid-template-columns: 1fr; gap: 13px; padding: 24px 22px; }
  .create-step-number { width: 32px; height: 32px; }
  .server-heading-actions { width: 100%; justify-content: flex-start; }
  .server-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .server-detail-grid { grid-template-columns: 1fr; }
  .server-panel-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  .create-resource-overview,
  .server-identity-facts,
  .server-hosting-grid,
  .live-metrics-grid { grid-template-columns: 1fr; }
  .create-resource-overview > div:nth-child(n),
  .server-identity-facts > div:nth-child(n),
  .server-hosting-grid > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--border); }
  .create-resource-overview > div:first-child,
  .server-identity-facts > div:first-child,
  .server-hosting-grid > div:first-child { border-top: 0; }
  .server-identity-main { align-items: flex-start; padding: 23px 21px; }
  .server-identity-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .server-section,
  .server-info-card { padding: 23px 21px; }
  .server-heading-actions,
  .server-heading-actions form,
  .server-heading-actions .button,
  .server-panel-card .button { width: 100%; }
  .server-info-heading-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .server-panel-card { padding: 23px 21px; }
  .server-panel-card-copy { flex-direction: column; }
  .server-info-list > div { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 0; }
  .create-submit-bar { align-items: stretch; flex-direction: column; gap: 16px; }
  .create-submit-bar .button { width: 100%; }
}

/* v1.10 realtime server console + power controls */
.server-console-page { padding-bottom: 88px; }
.console-page-heading { align-items: flex-end; margin-bottom: 24px; }
.console-power-actions { align-items: center; }
.console-power-actions .button { min-width: 86px; }
.server-console-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 0;
}
.console-card {
  min-width: 0;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--dark-border, #343940);
  border-radius: var(--radius);
  background: var(--dark-card, #24272b);
  box-shadow: var(--shadow);
}
.console-card-head {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--dark-border, #3a3f45);
  background: var(--dark-card, #292d31);
}
.console-card-head .eyebrow { margin-bottom: 5px; color: var(--dark-text, #aeb5bd); }
.console-card-head h2 { margin: 0; color: var(--dark-text, #f3f4f5); font-size: 18px; letter-spacing: -.02em; }
.console-connection-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--dark-text, #c7ccd1);
  font-size: 10px;
  font-weight: 700;
}
.console-connection-state .live-pulse { background: var(--dark-card, #9ea5ad); box-shadow: 0 0 0 4px rgba(255,255,255,.05); }
.console-connection-state[data-connection-state="connected"] .live-pulse { background: var(--dark-card, #d8dde2); }
.console-connection-state[data-connection-state="error"] .live-pulse { background: var(--dark-card, #a9a9a9); }
.console-output {
  min-height: 0;
  flex: 1 1 auto;
  height: 500px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 19px 22px;
  color: var(--dark-text, #e6e8ea);
  background: var(--dark-card, #202327);
  font: 12px/1.62 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  scrollbar-color: #555b63 #202327;
}
.console-output:focus { outline: 2px solid rgba(255,255,255,.22); outline-offset: -2px; }
.console-placeholder { padding: 4px 0; color: var(--dark-muted, #8f969e); }
.console-line { min-height: 1.62em; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.console-command-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--dark-border, #3a3f45);
  background: var(--dark-card, #292d31);
}
.console-command-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--dark-border, #474d54);
  border-radius: 9px;
  outline: none;
  color: var(--dark-text, #f1f2f3);
  background: var(--dark-card, #22262a);
  font: 12px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.console-command-form input::placeholder { color: var(--dark-muted, #7d858e); }
.console-command-form input:focus { border-color: var(--dark-border, #7d858e); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.console-command-form input:disabled { cursor: not-allowed; opacity: .55; }
.console-feedback {
  min-height: 34px;
  padding: 0 16px 13px;
  color: var(--dark-muted, #9299a1);
  background: var(--dark-card, #292d31);
  font-size: 9px;
  line-height: 1.5;
}
.runtime-rail { display: grid; grid-auto-rows: minmax(90px, auto); gap: 12px; }
.runtime-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.runtime-card > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.runtime-card > strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--dark-muted, #3e4957);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.runtime-card > strong small { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: 0; }
.runtime-card > small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.runtime-address-card > strong { font-size: 15px; }
.runtime-meter-card progress {
  width: 100%;
  height: 5px;
  margin-top: 13px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: var(--dark-card, #eceeec);
  appearance: none;
}
.runtime-meter-card progress::-webkit-progress-bar { background: var(--dark-card, #eceeec); border-radius: 999px; }
.runtime-meter-card progress::-webkit-progress-value { background: var(--dark-card, #707984); border-radius: 999px; }
.runtime-meter-card progress::-moz-progress-bar { background: var(--dark-card, #707984); border-radius: 999px; }
.server-console-shell + .server-live-note { margin: 14px 0 22px; }
.server-detail-grid-console { margin-top: 0; }
.console-power-actions button:disabled { cursor: not-allowed; opacity: .48; }

@media (max-width: 1180px) {
  .server-console-shell { grid-template-columns: minmax(0, 1fr) 270px; }
  .console-card { min-height: 600px; }
  .console-output { height: 450px; }
}
@media (max-width: 960px) {
  .server-console-shell { grid-template-columns: 1fr; }
  .runtime-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runtime-address-card { grid-column: span 2; }
  .console-card { min-height: 560px; }
}
@media (max-width: 800px) {
  .console-page-heading { align-items: flex-start; }
  .console-power-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .console-power-actions .button { width: 100%; min-width: 0; }
  .console-power-actions .button-primary { grid-column: 1 / -1; }
  .console-card-head { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 620px) {
  .server-console-page { padding-bottom: 68px; }
  .runtime-rail { grid-template-columns: 1fr; }
  .runtime-address-card { grid-column: auto; }
  .console-card { min-height: 500px; border-radius: 11px; }
  .console-output { height: 390px; padding: 15px; font-size: 11px; }
  .console-command-form { grid-template-columns: 1fr; }
  .console-command-form .button { width: 100%; }
  .console-power-actions { grid-template-columns: 1fr 1fr; }
  .console-power-actions .button-danger { grid-column: 1 / -1; }
  .console-power-actions .button-primary { grid-column: 1 / -1; }
}

/* v1.11 server navigation, dashboard fleet, EULA, and file manager */
.server-control-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 22px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
  scrollbar-width: none;
}
.server-control-tabs::-webkit-scrollbar { display: none; }
.server-control-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.server-control-tab svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.server-control-tab:hover { color: var(--ink); background: var(--surface); }
.server-control-tab.active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.server-control-tab-external { margin-left: auto; }

.eula-callout[hidden],
.eula-accepted-strip[hidden] {
  display: none !important;
}

.eula-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #e6d3a4;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: var(--shadow);
}
.eula-callout-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #ead8ad;
  border-radius: 12px;
  color: #8b621c;
  background: var(--dark-card, #fff);
}
.eula-callout-icon svg,
.eula-dialog-icon svg,
.eula-external-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.eula-callout-icon svg { width: 22px; height: 22px; }
.eula-callout-copy h2 { margin: 4px 0 5px; font-size: 17px; letter-spacing: -.025em; }
.eula-callout-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.eula-callout-copy code { color: var(--text); }
.eula-dialog { width: min(620px, calc(100vw - 32px)); border-radius: 18px; }
.eula-dialog-header { padding: 25px 26px 21px; }
.eula-dialog-heading { min-width: 0; display: flex; align-items: flex-start; gap: 14px; }
.eula-dialog-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
}
.eula-dialog-icon svg { width: 21px; height: 21px; }
.eula-dialog-header h2 { font-size: 22px; letter-spacing: -.03em; }
.eula-dialog-header p { max-width: 470px; margin-top: 7px; font-size: 11px; line-height: 1.55; }
.eula-dialog-body { display: grid; gap: 14px; padding: 21px 26px 8px; }
.eula-dialog-notice { padding: 15px 16px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.eula-dialog-notice strong { display: block; margin-bottom: 5px; font-size: 12px; }
.eula-dialog-notice p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.eula-external-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--dark-card, #fff);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.eula-external-link:hover { border-color: var(--border-dark); background: var(--dark-card, #fbfbf8); transform: translateY(-1px); }
.eula-external-link span { min-width: 0; }
.eula-external-link strong { display: block; color: var(--text); font-size: 12px; }
.eula-external-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.eula-external-link svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.eula-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--border-dark);
  border-radius: 11px;
  background: var(--dark-card, #fff);
  cursor: pointer;
}
.eula-confirm-row:has(input:checked) { border-color: #8bc8ba; background: var(--teal-soft); }
.eula-confirm-row input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--teal); }
.eula-confirm-row strong { display: block; font-size: 12px; }
.eula-confirm-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.eula-dialog-actions { padding-top: 16px; }
.eula-dialog-actions .button[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.eula-accepted-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 18px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--white);
  font-size: 9px;
  font-weight: 750;
}

.dashboard-server-grid-v2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dashboard-server-panel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.dashboard-server-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 22px 18px;
}
.dashboard-server-panel-identity { min-width: 0; display: flex; align-items: center; gap: 14px; }
.dashboard-server-panel-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
}
.dashboard-server-panel-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-server-status-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.dashboard-server-panel-identity h3 { margin: 0; overflow: hidden; color: var(--ink); font-size: 17px; line-height: 1.2; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-server-panel-identity p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.dashboard-server-id { color: var(--muted); font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.dashboard-server-open {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
}
.dashboard-server-open:hover { color: var(--ink); border-color: var(--ink); }
.dashboard-server-open svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-server-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.dashboard-server-spec-grid > div { min-width: 0; padding: 14px 18px; border-left: 1px solid var(--border); }
.dashboard-server-spec-grid > div:first-child { border-left: 0; }
.dashboard-server-spec-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-server-spec-grid strong { color: var(--ink); font-size: 13px; }
.dashboard-server-spec-grid small { color: var(--muted); font-size: 8px; font-weight: 650; }
.dashboard-server-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; }
.dashboard-server-state-note { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.dashboard-server-state-note .status-dot { flex: 0 0 auto; }
.dashboard-server-panel-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.button-small { min-height: 34px; padding: 0 12px; font-size: 9px; }

.server-files-page,
.server-file-editor-page { padding-bottom: 92px; }
.server-files-heading { margin-bottom: 22px; }
.server-files-heading-v2 { align-items: flex-end; margin-bottom: 24px; }
.server-files-title-block { min-width: 0; }
.server-files-title-line { display: flex; align-items: baseline; gap: 13px; margin-top: 5px; }
.server-files-title-line h1 { margin: 0; font-size: 34px; letter-spacing: -.045em; }
.server-files-server-name {
  max-width: min(420px, 36vw);
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-files-title-block > p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.file-heading-actions { flex-wrap: wrap; }
.file-upload-button { cursor: pointer; user-select: none; }

.file-storage-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.file-storage-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--teal);
  background: var(--teal-soft);
}
.file-storage-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-storage-main { min-width: 0; }
.file-storage-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.file-storage-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.file-storage-topline strong { color: var(--text); font-size: 14px; letter-spacing: -.015em; }
.file-storage-summary { display: flex; align-items: baseline; gap: 5px; color: var(--muted); white-space: nowrap; }
.file-storage-summary span { color: var(--text); font-size: 12px; font-weight: 800; }
.file-storage-summary small { font-size: 10px; }
.file-storage-card progress { width: 100%; height: 8px; display: block; overflow: hidden; border: 0; border-radius: 999px; appearance: none; background: var(--dark-card, #eceeea); }
.file-storage-card progress::-webkit-progress-bar { background: var(--dark-card, #eceeea); border-radius: 999px; }
.file-storage-card progress::-webkit-progress-value { background: var(--teal); border-radius: 999px; }
.file-storage-card progress::-moz-progress-bar { background: var(--teal); border-radius: 999px; }

.file-browser-card-v2 {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(28,39,56,.06);
}
.file-browser-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 15px 18px 14px 20px;
  border-bottom: 1px solid var(--border);
}
.file-location-block { min-width: 0; }
.file-location-label { display: block; margin-bottom: 7px; color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.file-breadcrumbs-v2 { min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.file-breadcrumbs-v2::-webkit-scrollbar { display: none; }
.file-breadcrumbs-v2 a { flex: 0 0 auto; padding: 4px 5px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.file-breadcrumbs-v2 a:first-child { margin-left: -5px; }
.file-breadcrumbs-v2 a:hover { color: var(--text); background: var(--surface); }
.file-breadcrumbs-v2 a.current { color: var(--text); font-weight: 800; }
.file-breadcrumb-separator { color: var(--dark-text, #b0b8c2); font-size: 12px; }
.file-browser-tools { flex: 0 0 auto; }
.file-search-box-v2 {
  width: min(310px, 34vw);
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 11px 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.file-search-box-v2:focus-within { border-color: var(--dark-border, #9fb4bc); background: var(--dark-card, #fff); box-shadow: 0 0 0 3px rgba(28,135,120,.08); }
.file-search-box-v2 svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.file-search-box-v2 input { width: 100%; min-width: 0; min-height: 38px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.file-search-box-v2 kbd { min-width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 5px; color: var(--muted-2); background: var(--dark-card, #fff); font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

.file-browser-subbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px 0 20px;
  border-bottom: 1px solid var(--border);
  background: var(--dark-card, #fbfbf8);
}
.file-current-path { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.file-current-path svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.file-current-path span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-browser-subbar-meta { flex: 0 0 auto; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 9px; }
.file-browser-subbar-meta strong { color: var(--text); }
.file-access-chip { min-height: 24px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--dark-card, #fff); font-size: 8px; font-weight: 800; }
.file-access-chip.is-writable { color: var(--teal); border-color: #cce1db; background: var(--teal-soft); }
.file-access-chip.is-readonly { color: var(--red); border-color: #edcbd0; background: var(--red-soft); }
.file-readonly-notice { margin: 15px 18px 0; }

.file-table-wrap { width: 100%; overflow-x: auto; }
.file-table-v2 { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.file-table-v2 th { height: 39px; padding: 0 18px; border-bottom: 1px solid var(--border); color: var(--muted-2); background: var(--dark-card, #f7f7f4); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.file-table-v2 th:first-child { width: 53%; padding-left: 20px; }
.file-table-v2 th:nth-child(2) { width: 13%; }
.file-table-v2 th:nth-child(3) { width: 24%; }
.file-table-v2 th:last-child { width: 10%; text-align: right; }
.file-table-v2 td { height: 62px; padding: 8px 18px; border-bottom: 1px solid var(--dark-border, #e9edf0); color: var(--muted); font-size: 10px; vertical-align: middle; }
.file-table-v2 td:first-child { padding-left: 20px; }
.file-table-v2 tbody tr:last-child td { border-bottom: 0; }
.file-row { transition: background .12s ease; }
.file-row:hover td { background: var(--dark-card, #fcfcf9); }
.file-parent-row td { background: var(--dark-card, #fdfdfb); }
.file-name-link { min-width: 0; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; color: var(--text); text-decoration: none; }
.file-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  background: var(--dark-card, #fafaf7);
}
.file-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-icon-folder { color: #8f6c23; border-color: #e7dbc0; background: #fff9e9; }
.file-icon-parent { color: var(--muted); border-color: var(--border); background: var(--surface); }
.file-name-copy { min-width: 0; }
.file-name-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.file-name-copy small { display: block; max-width: 420px; margin-top: 3px; overflow: hidden; color: var(--muted-2); font-size: 9px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.file-actions-cell { text-align: right; }
.file-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; opacity: .35; transition: opacity .12s ease; }
.file-row:hover .file-row-actions, .file-row:focus-within .file-row-actions { opacity: 1; }
.file-row-action {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
}
.file-row-action:hover, .file-row-action:focus-visible { color: var(--text); border-color: var(--border); background: var(--dark-card, #fff); outline: 0; }
.file-row-action-danger:hover, .file-row-action-danger:focus-visible { color: var(--red); border-color: #edcbd0; background: var(--red-soft); }
.file-row-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.file-empty-state-v2 { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 32px; color: var(--muted); text-align: center; }
.file-empty-state-v2 strong { color: var(--text); font-size: 14px; }
.file-empty-state-v2 > span:last-of-type { font-size: 10px; line-height: 1.5; }
.file-empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 5px; border: 1px solid var(--border); border-radius: 13px; color: var(--muted); background: var(--surface); }
.file-empty-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.file-empty-actions { display: flex; gap: 8px; margin-top: 10px; }
.file-browser-footer-v2 { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 18px; border-top: 1px solid var(--border); color: var(--muted); background: var(--dark-card, #fafaf7); font-size: 9px; }
.file-browser-footer-v2 > div { display: flex; align-items: center; gap: 7px; min-width: 0; }
.file-footer-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--green); }
[data-file-upload-status][data-tone="busy"] + * { color: var(--muted); }
[data-file-upload-status][data-tone="error"] { color: var(--red); font-weight: 750; }
[data-file-upload-status][data-tone="success"] { color: var(--teal); font-weight: 750; }

.file-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--dark-card-alpha-0-91, rgba(248,246,241,.91));
  backdrop-filter: blur(4px);
}
.file-drop-overlay[hidden] { display: none; }
.file-drop-overlay-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 34px 28px;
  border: 2px dashed #9bbab3;
  border-radius: 16px;
  color: var(--muted);
  background: var(--dark-card, #fff);
  text-align: center;
  box-shadow: var(--shadow);
}
.file-drop-overlay-card strong { color: var(--text); font-size: 16px; }
.file-drop-overlay-card > span:last-child { font-size: 10px; }
.file-drop-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 12px; color: var(--teal); background: var(--teal-soft); }
.file-drop-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.file-dialog { width: min(520px, calc(100vw - 32px)); }
.file-dialog-header { padding: 23px 24px 19px; }
.file-dialog-title-wrap { min-width: 0; display: flex; align-items: flex-start; gap: 13px; }
.file-dialog-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--surface); }
.file-dialog-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.file-dialog-icon-danger { color: var(--red); border-color: #edcbd0; background: var(--red-soft); }
.file-dialog-header h2 { max-width: 350px; overflow: hidden; font-size: 19px; text-overflow: ellipsis; white-space: nowrap; }
.file-dialog-header p { line-height: 1.5; }
.file-dialog-fields { padding-top: 18px; padding-bottom: 18px; }

.server-file-editor-heading { align-items: flex-end; }
.file-editor-path { max-width: min(720px, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-editor-card-v2 { overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 18px 50px rgba(28,39,56,.06); }
.file-editor-toolbar-v2 { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--dark-card, #fafaf7); }
.file-editor-toolbar-left { min-width: 0; display: flex; align-items: center; gap: 10px; }
.file-editor-file-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); background: var(--dark-card, #fff); }
.file-editor-file-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.file-editor-toolbar-left strong { display: block; max-width: 420px; overflow: hidden; color: var(--text); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-editor-toolbar-left small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.file-editor-toolbar-right { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; }
.file-editor-status-chip { min-height: 25px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--teal); background: var(--teal-soft); font-weight: 800; }
.file-editor-status-chip[data-tone="dirty"] { color: #946614; border-color: #ead7a9; background: #fff8e8; }
.file-editor-status-chip[data-tone="busy"] { color: var(--muted); background: var(--dark-card, #fff); }
.file-editor-status-chip[data-tone="error"] { color: var(--red); border-color: #edcbd0; background: var(--red-soft); }
.file-editor-textarea-v2 { width: 100%; min-height: 640px; display: block; resize: vertical; padding: 23px 25px; border: 0; outline: 0; color: var(--dark-muted, #202a38); background: var(--dark-card, #fff); font: 13px/1.68 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; tab-size: 4; }
.file-editor-textarea-v2:focus { box-shadow: inset 0 0 0 2px rgba(28,135,120,.18); }
.file-editor-footer { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 16px; border-top: 1px solid var(--border); color: var(--muted); background: var(--dark-card, #fafaf7); font-size: 8px; }
.file-editor-footer strong { color: var(--text); }

@media (max-width: 980px) {
  .dashboard-server-grid-v2 { grid-template-columns: 1fr; }
  .eula-callout { grid-template-columns: auto minmax(0, 1fr); }
  .eula-callout > .button { grid-column: 1 / -1; width: 100%; }
  .file-browser-topbar { align-items: stretch; flex-direction: column; gap: 14px; }
  .file-search-box-v2 { width: 100%; }
  .file-browser-tools { width: 100%; }
}
@media (max-width: 760px) {
  .server-control-tabs { margin-bottom: 18px; }
  .server-control-tab-external { margin-left: 0; }
  .server-files-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .server-files-heading .heading-actions { width: 100%; }
  .server-files-heading .heading-actions .button,
  .server-files-heading .heading-actions .file-upload-button { flex: 1; }
  .server-files-title-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .server-files-server-name { max-width: 100%; }
  .file-storage-card { padding: 16px; }
  .file-browser-subbar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .file-browser-subbar-meta { width: 100%; justify-content: space-between; }
  .file-browser-footer-v2 { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
  .file-editor-toolbar-v2 { align-items: flex-start; flex-direction: column; }
  .file-editor-toolbar-right { width: 100%; justify-content: space-between; }
  .file-editor-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; padding-top: 9px; padding-bottom: 9px; }
  .dashboard-server-panel-footer { align-items: flex-start; flex-direction: column; }
  .dashboard-server-panel-actions { width: 100%; }
  .dashboard-server-panel-actions .button { flex: 1; }
}
@media (max-width: 560px) {
  .eula-callout { grid-template-columns: 1fr; padding: 17px; }
  .eula-callout > .button { grid-column: auto; }
  .eula-callout-icon { width: 42px; height: 42px; }
  .eula-dialog-header { padding: 20px 18px 17px; }
  .eula-dialog-heading { gap: 10px; }
  .eula-dialog-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .eula-dialog-body { padding: 17px 18px 6px; }
  .eula-dialog-actions { padding-left: 18px; padding-right: 18px; }
  .eula-dialog-actions .button { flex: 1; }
  .dashboard-server-panel-head { padding: 18px; }
  .dashboard-server-panel-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .dashboard-server-spec-grid > div { padding: 12px; }
  .dashboard-server-panel-footer { padding: 14px; }
  .file-storage-card { grid-template-columns: 1fr; }
  .file-storage-icon { width: 40px; height: 40px; }
  .file-storage-topline { align-items: flex-start; flex-direction: column; gap: 6px; }
  .file-search-box-v2 kbd { display: none; }
  .file-empty-actions { width: 100%; flex-direction: column; }
  .file-empty-actions .button, .file-empty-actions .file-upload-button { width: 100%; justify-content: center; }
  .file-editor-path { max-width: 88vw; }
  .file-editor-textarea-v2 { min-height: 520px; padding: 17px; font-size: 11px; }
}
.allocation-warning-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.allocation-warning-banner h2 { margin: 4px 0 6px; font-size: 16px; letter-spacing: -.02em; }
.allocation-warning-banner p { max-width: 720px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.allocation-warning-banner form { flex: 0 0 auto; }
@media (max-width: 700px) {
  .allocation-warning-banner { align-items: flex-start; flex-direction: column; }
  .allocation-warning-banner form, .allocation-warning-banner .button { width: 100%; }
}

@media (hover: none) {
  .file-row-actions { opacity: 1; }
}

@media (max-width: 640px) {
  .file-table-v2 { min-width: 0; table-layout: auto; }
  .file-table-v2 th:nth-child(2),
  .file-table-v2 td:nth-child(2),
  .file-table-v2 th:nth-child(3),
  .file-table-v2 td:nth-child(3) { display: none; }
  .file-table-v2 th:first-child { width: auto; }
  .file-table-v2 th:last-child { width: 112px; }
  .file-table-v2 td, .file-table-v2 th { padding-left: 12px; padding-right: 12px; }
  .file-table-v2 td:first-child, .file-table-v2 th:first-child { padding-left: 14px; }
  .file-row-actions { opacity: 1; }
  .file-name-copy small { max-width: 45vw; }
}

/* v1.13 billing pools */
.pool-switcher { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 26px; }
.pool-switch { display:flex; flex-direction:column; gap:5px; min-height:96px; padding:17px 19px; border:1px solid var(--border); border-radius:14px; background:var(--white); text-decoration:none; box-shadow:var(--shadow); transition:border-color .16s ease,transform .16s ease,box-shadow .16s ease; }
.pool-switch:hover { transform:translateY(-1px); border-color:var(--text-soft); }
.pool-switch.active { border-color:var(--text); box-shadow:0 0 0 1px var(--text),var(--shadow); }
.pool-switch > span { color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.16em; }
.pool-switch strong { color:var(--text); font-size:16px; }
.pool-switch small { color:var(--muted); font-size:9px; line-height:1.45; }
.billing-page { padding-bottom:80px; }
.billing-heading { margin-bottom:24px; }
.billing-hero-card,.billing-section-card { border:1px solid var(--border); border-radius:16px; background:var(--white); box-shadow:var(--shadow); }
.billing-hero-card { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr); gap:28px; padding:28px; margin-bottom:20px; }
.billing-hero-copy h2,.billing-section-heading h2,.billing-section-card h2 { margin:6px 0 9px; }
.billing-hero-copy p,.billing-section-card p { color:var(--muted); line-height:1.65; }
.billing-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:20px; }
.billing-pool-mini-grid { display:grid; grid-template-columns:1fr; gap:9px; }
.billing-pool-mini-grid > div,.billing-rate-grid > div { padding:14px 15px; border:1px solid var(--border); border-radius:11px; background:var(--surface); }
.billing-pool-mini-grid span,.billing-rate-grid span,.server-billing-date span { display:block; color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.billing-pool-mini-grid strong,.billing-rate-grid strong { display:block; margin:5px 0 3px; font-size:15px; }
.billing-pool-mini-grid small,.billing-rate-grid small { color:var(--muted); font-size:8px; }
.billing-section-card { padding:24px; margin-bottom:20px; }
.billing-section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.billing-section-heading p { margin:7px 0 0; }
.billing-pill,.billing-status-chip { display:inline-flex; align-items:center; min-height:27px; padding:0 10px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; white-space:nowrap; }
.billing-rate-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.billing-explain-row { display:grid; grid-template-columns:90px 1fr; gap:16px; margin-top:15px; padding:15px; border-top:1px solid var(--border); color:var(--muted); font-size:9px; line-height:1.6; }
.billing-explain-row strong { color:var(--text); }
.billing-reward-card { display:flex; align-items:center; justify-content:space-between; gap:28px; }
.billing-unavailable,.billing-merchant-note { color:var(--muted); font-size:9px; }
.billing-status-line { display:flex; align-items:center; gap:12px; margin-top:15px; color:var(--muted); font-size:9px; }
.billing-plan-section { margin-top:26px; }
.premium-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.premium-plan-card { display:flex; flex-direction:column; min-height:350px; padding:22px; border:1px solid var(--border); border-radius:16px; background:var(--white); box-shadow:var(--shadow); }
.premium-plan-head h3 { margin:7px 0 10px; font-size:20px; }
.premium-plan-price { display:block; margin-bottom:18px; font-size:26px; letter-spacing:-.04em; }
.premium-plan-price small { margin-left:4px; color:var(--muted); font-size:9px; font-weight:600; letter-spacing:0; }
.premium-plan-resources { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin:0 0 16px; }
.premium-plan-resources > div { padding:10px; border:1px solid var(--border); border-radius:9px; background:var(--surface); }
.premium-plan-resources span { display:block; color:var(--muted); font-size:7px; font-weight:800; }
.premium-plan-resources strong { display:block; margin-top:4px; font-size:11px; }
.premium-plan-card p { flex:1; color:var(--muted); font-size:9px; line-height:1.6; }
.premium-plan-card form,.premium-plan-card form .button,.premium-plan-card > .button { width:100%; }
.button.disabled { opacity:.55; pointer-events:none; }
.billing-empty { display:flex; flex-direction:column; gap:6px; padding:30px; border:1px dashed var(--border); border-radius:14px; color:var(--muted); text-align:center; }
.billing-empty strong { color:var(--text); }
.reward-balance-card { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.reward-balance-card > div { padding:24px; border:1px solid var(--border); border-radius:16px; background:var(--white); box-shadow:var(--shadow); }
.reward-balance-card strong { display:block; margin:7px 0 3px; font-size:28px; }
.reward-balance-card small { color:var(--muted); }
.reward-action-card { display:flex; flex-direction:column; gap:18px; }
.reward-ready { display:flex; align-items:center; gap:12px; padding:15px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.reward-ready span { flex:1; color:var(--muted); font-size:9px; }
.dashboard-pool-switcher { margin-top:-2px; margin-bottom:18px; }
.dashboard-billing-strip { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; padding:17px 19px; border:1px solid var(--border); border-radius:13px; background:var(--white); box-shadow:var(--shadow); }
.dashboard-billing-strip > div:first-child { display:flex; flex-direction:column; gap:4px; }
.dashboard-billing-strip > div:first-child > span:last-child { color:var(--muted); font-size:9px; }
.dashboard-billing-strip-actions { display:flex; gap:8px; }
.dashboard-server-billing { display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:10px; padding:13px 18px; border-top:1px solid var(--border); background:var(--surface); }
.dashboard-server-billing > div span { display:block; color:var(--muted); font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.dashboard-server-billing > div strong { display:block; margin-top:4px; font-size:10px; }
.create-pool-switcher { margin-bottom:18px; }
.create-billing-preview { display:grid; grid-template-columns:1fr auto; gap:18px; align-items:center; margin-bottom:18px; padding:18px 20px; border:1px solid var(--border); border-radius:13px; background:var(--white); box-shadow:var(--shadow); }
.create-billing-preview > div:first-child { display:flex; flex-direction:column; gap:5px; }
.create-billing-preview small { color:var(--muted); font-size:9px; line-height:1.5; }
.create-billing-preview > div:last-child { text-align:right; }
.create-billing-preview > div:last-child span,.create-billing-preview > div:last-child strong,.create-billing-preview > div:last-child a { display:block; }
.create-billing-preview > div:last-child span { color:var(--muted); font-size:8px; }
.create-billing-preview > div:last-child a { margin-top:5px; font-size:9px; }
.server-billing-card { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:0 0 18px; padding:18px 20px; border:1px solid var(--border); border-radius:13px; background:var(--white); box-shadow:var(--shadow); }
.server-billing-main { max-width:680px; }
.server-billing-main h2 { margin:5px 0 6px; font-size:16px; }
.server-billing-main p { margin:0; color:var(--muted); font-size:9px; line-height:1.55; }
.server-billing-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.server-billing-date { min-width:150px; padding-right:8px; }
.server-billing-date strong { display:block; margin:4px 0 2px; font-size:10px; }
.server-billing-date small { color:var(--muted); font-size:8px; }
.billing-admin-status-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:15px; }
.billing-admin-status-grid > div { padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.billing-admin-status-grid span { display:block; color:var(--muted); font-size:7px; font-weight:800; text-transform:uppercase; }
.billing-admin-status-grid strong { display:block; margin-top:4px; font-size:10px; }
.premium-admin-plan { margin-top:2px; }
.billing-subscriptions-card { margin-top:20px; }
.integration-health-row { padding:13px; border:1px solid var(--border); border-radius:10px; background:var(--surface); }
.integration-health-row strong,.integration-health-row small { display:block; }
.integration-health-row small { margin-top:4px; color:var(--muted); }
@media (max-width:1050px) { .premium-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.billing-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.billing-hero-card{grid-template-columns:1fr;} }
@media (max-width:700px) { .pool-switcher,.premium-plan-grid,.reward-balance-card{grid-template-columns:1fr;}.billing-rate-grid{grid-template-columns:1fr 1fr;}.billing-section-heading,.billing-reward-card,.dashboard-billing-strip,.server-billing-card,.reward-ready{align-items:flex-start;flex-direction:column;}.dashboard-billing-strip-actions,.server-billing-actions{width:100%;}.server-billing-actions .button,.server-billing-actions form{flex:1;}.server-billing-actions form .button{width:100%;}.dashboard-server-billing{grid-template-columns:1fr 1fr;}.dashboard-server-billing .billing-status-chip{grid-column:1/-1;width:max-content;}.create-billing-preview{grid-template-columns:1fr;}.create-billing-preview>div:last-child{text-align:left;}.billing-admin-status-grid{grid-template-columns:1fr;}.billing-rate-grid{grid-template-columns:1fr;} }

/* v1.13 admin billing, Premium plan builder, and destructive bulk actions */
.bulk-delete-fields { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(190px, .9fr); }
.bulk-delete-fields small { display:block; margin-top:5px; color:var(--muted); font-size:9px; line-height:1.4; }
.bulk-delete-warning { align-self:stretch; min-height:40px; padding:9px 11px; border:1px solid #ecd3d6; border-radius:8px; background:var(--dark-card, #fff7f7); }
.bulk-delete-warning strong { display:block; color:#9a4d58; font-size:10px; }
.bulk-delete-warning small { margin-top:3px; color:#8b6570; }
.table-check input:disabled + span { border-color:var(--dark-border, #d8dde2); background:var(--dark-card, #f2f3f1); box-shadow:none; cursor:not-allowed; }
.table-check input:disabled { cursor:not-allowed; }

.integration-health-action { margin-top:9px; padding:0; }

.premium-plan-form { display:grid; gap:16px; margin:0; }
.premium-plan-identity-grid { display:grid; grid-template-columns:1.1fr 1fr 1fr; gap:12px; }
.premium-plan-resource-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.premium-plan-resource-grid .field { margin:0; }
.premium-money-input { display:grid; grid-template-columns:minmax(0,1fr) 88px; }
.premium-money-input > input:first-child { border-radius:8px 0 0 8px; }
.premium-money-input > select,
.premium-money-input > input:last-child { min-width:0; border-left:0; border-radius:0 8px 8px 0; text-transform:uppercase; }
.premium-plan-builder-footer { display:grid; grid-template-columns:minmax(210px,1fr) minmax(230px,1.15fr) auto; gap:12px; align-items:stretch; }
.premium-plan-builder-footer.compact { margin-top:2px; }
.premium-plan-availability { min-height:100%; margin:0; }
.premium-plan-live-preview { display:flex; flex-direction:column; justify-content:center; min-width:0; padding:12px 14px; border:1px solid #d8e6e1; border-radius:10px; background:var(--dark-card, #f5faf8); }
.premium-plan-live-preview > span { color:var(--muted); font-size:7px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.premium-plan-live-preview > strong { display:block; margin-top:5px; font-size:13px; }
.premium-plan-live-preview > b { display:block; margin-top:3px; color:#287663; font-size:10px; }
.premium-plan-live-preview > small { display:block; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.4; }
.premium-plan-save { min-width:150px; align-self:stretch; }
.premium-plan-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.premium-plan-card-header h2 { margin:7px 0 0; font-size:20px; }
.premium-plan-card-header p { margin:6px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.premium-plan-status-line { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.premium-plan-status-line code { color:var(--muted); font-size:9px; }
.chip-success { color:#287663; background:var(--dark-card, #eaf6f1); }
.premium-plan-header-resources { display:grid; grid-template-columns:repeat(3,minmax(82px,1fr)); gap:7px; min-width:300px; }
.premium-plan-header-resources span { padding:9px 10px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--muted); font-size:8px; white-space:nowrap; }
.premium-plan-header-resources b { color:var(--text); font-size:10px; }
.billing-subscriptions-table { min-width:900px; table-layout:fixed; }
.billing-subscriptions-table th:nth-child(1) { width:25%; }
.billing-subscriptions-table th:nth-child(2) { width:19%; }
.billing-subscriptions-table th:nth-child(3) { width:13%; }
.billing-subscriptions-table th:nth-child(4) { width:25%; }
.billing-subscriptions-table th:nth-child(5) { width:18%; }
.billing-subscriptions-table td { height:76px; }
.billing-subscriptions-table .empty-table { height:88px; text-align:center; color:var(--muted); }
.billing-paypal-id { overflow-wrap:anywhere; word-break:break-word; white-space:normal; font-size:10px; line-height:1.45; }

@media (max-width:1200px) {
  .bulk-delete-fields { grid-template-columns:1fr 1fr; }
  .bulk-delete-warning { grid-column:1/-1; }
  .premium-plan-builder-footer { grid-template-columns:1fr 1fr; }
  .premium-plan-save { min-height:42px; }
}
@media (max-width:900px) {
  .premium-plan-identity-grid,
  .premium-plan-resource-grid { grid-template-columns:1fr; }
  .premium-plan-card-header { flex-direction:column; }
  .premium-plan-header-resources { width:100%; min-width:0; }
}
@media (max-width:800px) {
  .bulk-delete-fields,
  .premium-plan-builder-footer { grid-template-columns:1fr; }
  .bulk-delete-warning { grid-column:auto; }
  .premium-plan-save { width:100%; }
}
@media (max-width:560px) {
  .premium-plan-header-resources { grid-template-columns:1fr; }
}

/* v1.13.1 navigation, overview, admin grouping, and dark mode */
:root {
  --surface: var(--dark-card, #f5f5f2);
  --surface-raised: var(--dark-raised, #ffffff);
  --surface-soft: var(--dark-inset, #fafaf7);
  --ink: var(--text);
}

.sidebar-secondary { margin-top: 24px; }
.sidebar-link > span:has(strong) { min-width: 0; display: grid; gap: 2px; }
.sidebar-link > span > strong { color: inherit; font-size: 14px; font-weight: 720; line-height: 1.05; }
.sidebar-link > span > small { color: var(--dark-muted, #778294); font-size: 9px; font-weight: 650; line-height: 1.2; }
.sidebar-link:hover > span > small,
.sidebar-link.active > span > small { color: rgba(255,255,255,.72); }
.sidebar-link-free.active { background: #237f73; }
.sidebar-link-premium.active { background: #6252a8; }

.theme-toggle {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: var(--muted);
  background: var(--dark-card-alpha-0-44, rgba(255,255,255,.44));
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .05em;
}
.theme-toggle:hover { color: var(--text); border-color: var(--teal); }
.theme-toggle svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }

/* Client overview: a single all-pools fleet view. */
.overview-summary-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.overview-summary-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 19px 20px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.overview-summary-card:hover { transform: translateY(-1px); border-color: var(--border-dark); }
.overview-summary-card > span { color: var(--muted-2); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.overview-summary-card > strong { overflow: hidden; color: var(--text); font-size: 21px; line-height: 1.15; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.overview-summary-card > small { color: var(--muted); font-size: 10px; }
.overview-summary-free { border-top: 3px solid var(--teal); }
.overview-summary-premium { border-top: 3px solid #7363bc; }

.overview-pools-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-bottom: 30px; }
.overview-pool-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.overview-pool-free { border-top: 3px solid var(--teal); }
.overview-pool-premium { border-top: 3px solid #7363bc; }
.overview-pool-card.is-inactive { background: linear-gradient(145deg, var(--white), var(--surface)); }
.overview-pool-head { min-height: 138px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px; }
.overview-pool-head h2 { margin: 6px 0 7px; color: var(--text); font-size: 19px; letter-spacing: -.025em; }
.overview-pool-head p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.overview-pool-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-soft); }
.overview-pool-stats > div { min-width: 0; padding: 14px 15px; border-left: 1px solid var(--border); }
.overview-pool-stats > div:first-child { border-left: 0; }
.overview-pool-stats span { display: block; color: var(--muted-2); font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.overview-pool-stats strong { display: block; margin: 6px 0 9px; color: var(--text); font-size: 11px; }
.overview-pool-stats progress { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; background: var(--border); appearance: none; }
.overview-pool-stats progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.overview-pool-stats progress::-webkit-progress-value { background: var(--teal); border-radius: 999px; }
.overview-pool-premium .overview-pool-stats progress::-webkit-progress-value { background: #7363bc; }
.overview-pool-stats progress::-moz-progress-bar { background: var(--teal); border-radius: 999px; }
.overview-pool-premium .overview-pool-stats progress::-moz-progress-bar { background: #7363bc; }
.overview-pool-footer { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; color: var(--muted); font-size: 10px; }
.overview-pool-footer > span strong { color: var(--text); }
.overview-pool-footer > div { display: flex; gap: 14px; }
.overview-pool-footer a, .overview-premium-empty a { color: var(--teal); font-weight: 750; }
.overview-premium-empty { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-top: 1px solid var(--border); color: var(--muted); background: var(--surface-soft); font-size: 11px; }
.section-copy { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.server-pool-chip { min-height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.server-pool-chip.free { color: var(--teal); border-color: #badbd3; background: var(--teal-soft); }
.server-pool-chip.premium { color: #6858b0; border-color: #d7d0f3; background: #f2efff; }
.hosting-section-heading { margin-bottom: 24px; }

/* Admin navigation grouped by responsibility instead of one long undifferentiated row. */
.admin-tab-groups { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-bottom: 26px; }
.admin-tab-group { display: flex; flex-direction: column; gap: 6px; padding: 7px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); box-shadow: var(--shadow); }
.admin-tab-group > span { padding: 0 5px; color: var(--muted-2); font-size: 7px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.admin-tab-group > div { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-tab-group .admin-tab { min-height: 35px; padding: 0 11px; border-radius: 8px; white-space: nowrap; }
.admin-tab-group .admin-tab.active { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }

/* Legacy dark-surface rules. R144 fixes the document to data-theme="dark"; no user theme switch is exposed. */
html[data-theme="dark"] {
  --navy: #090d14;
  --navy-2: var(--dark-card, #111722);
  --page: var(--dark-page, #0e131b);
  --white: var(--dark-card, #171e28);
  --soft: var(--dark-inset, #1b222d);
  --surface: var(--dark-card, #121923);
  --surface-raised: var(--dark-raised, #171e28);
  --surface-soft: var(--dark-inset, #121820);
  --border: var(--dark-border, #2a3442);
  --border-dark: var(--dark-border, #394657);
  --text: var(--dark-text, #e8edf4);
  --ink: var(--dark-text, #e8edf4);
  --muted: var(--dark-muted, #9aa7b8);
  --muted-2: var(--dark-muted, #7f8c9e);
  --teal: #35ae9b;
  --teal-hover: #45bea9;
  --teal-soft: #14352f;
  --amber: #f2ad3e;
  --green: #2ac993;
  --red: #df7582;
  --red-soft: #351c22;
  --shadow: 0 18px 44px rgba(0,0,0,.18);
  --menu-shadow: 0 20px 55px rgba(0,0,0,.44);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .main-area,
html[data-theme="dark"] .auth-body { background: var(--page); color: var(--text); }
html[data-theme="dark"] .topbar { background: var(--dark-card-alpha-0-94, rgba(14,19,27,.94)); }
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .system-status { color: var(--muted); background: var(--dark-card-alpha-0-86, rgba(23,30,40,.86)); }
html[data-theme="dark"] .breadcrumb > span:first-child,
html[data-theme="dark"] .breadcrumb { color: var(--muted); }
html[data-theme="dark"] .user-dropdown,
html[data-theme="dark"] .notice,
html[data-theme="dark"] .button-secondary,
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .choice-box,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .user-dialog,
html[data-theme="dark"] .dialog-close,
html[data-theme="dark"] .error-card,
html[data-theme="dark"] .mobile-menu,
html[data-theme="dark"] .server-fleet-card,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .mini-action,
html[data-theme="dark"] .panel-choice-card,
html[data-theme="dark"] .global-banner-ad > a,
html[data-theme="dark"] .bulk-fields select,
html[data-theme="dark"] .file-access-chip,
html[data-theme="dark"] .file-row-action:hover,
html[data-theme="dark"] .file-row-action:focus-visible,
html[data-theme="dark"] .file-editor-file-icon,
html[data-theme="dark"] .file-editor-status-chip[data-tone="busy"],
html[data-theme="dark"] .file-editor-textarea-v2 { background: var(--white); color: var(--text); }
html[data-theme="dark"] .account-google-icon,
html[data-theme="dark"] .account-google-avatar { color: var(--text); background: var(--surface-raised); border-color: var(--border); }
html[data-theme="dark"] .button-secondary { color: var(--text); }
html[data-theme="dark"] .button-secondary:hover,
html[data-theme="dark"] .user-dropdown a:hover,
html[data-theme="dark"] .user-dropdown button:hover,
html[data-theme="dark"] .icon-button:hover,
html[data-theme="dark"] .panel-choice-card:hover { background: var(--surface); }
html[data-theme="dark"] .field input:disabled,
html[data-theme="dark"] .field select:disabled,
html[data-theme="dark"] .input-suffix b,
html[data-theme="dark"] .resource-preview > div,
html[data-theme="dark"] .switch-row,
html[data-theme="dark"] .count-pill,
html[data-theme="dark"] .server-id,
html[data-theme="dark"] .server-stats,
html[data-theme="dark"] .server-mini-stats span,
html[data-theme="dark"] .user-table th,
html[data-theme="dark"] .create-resource-intro,
html[data-theme="dark"] .server-identity-facts,
html[data-theme="dark"] .live-metric-card,
html[data-theme="dark"] .server-live-note,
html[data-theme="dark"] .server-local-id,
html[data-theme="dark"] .server-hosting-grid > div,
html[data-theme="dark"] .server-panel-unavailable,
html[data-theme="dark"] .file-table-v2 th,
html[data-theme="dark"] .file-browser-footer-v2,
html[data-theme="dark"] .file-editor-toolbar-v2,
html[data-theme="dark"] .file-editor-footer { background: var(--surface); color: var(--muted); }
html[data-theme="dark"] .user-table tbody tr:hover,
html[data-theme="dark"] .file-row:hover td,
html[data-theme="dark"] .file-parent-row td { background: var(--dark-card, #1a222d); }
html[data-theme="dark"] .avatar-soft,
html[data-theme="dark"] .chip { background: var(--dark-card, #26303d); color: var(--text); }
html[data-theme="dark"] .notice-success { border-color: #28584c; background: #132b25; }
html[data-theme="dark"] .notice-error,
html[data-theme="dark"] .danger-card,
html[data-theme="dark"] .dialog-inline-error,
html[data-theme="dark"] .bulk-delete-warning { border-color: #5b3038; background: #2a171c; color: #e2a6ae; }
html[data-theme="dark"] .resource-allocation-card,
html[data-theme="dark"] .live-metric-primary { border-color: #28534a; background: #14241f; }
html[data-theme="dark"] .server-status-chip.state-text-offline { border-color: var(--border); background: var(--surface); }
html[data-theme="dark"] .server-status-chip.state-text-suspended,
html[data-theme="dark"] .server-live-note.live-error { border-color: #5b3038; background: #2a171c; }
html[data-theme="dark"] .server-status-chip.state-text-stopping { border-color: #5f5134; background: #2a2418; }
html[data-theme="dark"] .server-pool-chip.free { border-color: #28675c; background: #14352f; }
html[data-theme="dark"] .server-pool-chip.premium { color: #b9acf1; border-color: #4d4475; background: #25213a; }
html[data-theme="dark"] .premium-plan-card,
html[data-theme="dark"] .billing-hero-card,
html[data-theme="dark"] .billing-section-card,
html[data-theme="dark"] .billing-reward-card,
html[data-theme="dark"] .dashboard-metric-card,
html[data-theme="dark"] .dashboard-empty-card,
html[data-theme="dark"] .dashboard-server-panel-card,
html[data-theme="dark"] .file-browser-card-v2,
html[data-theme="dark"] .file-editor-card-v2 { background: var(--white); }
html[data-theme="dark"] .premium-plan-resources > div,
html[data-theme="dark"] .billing-pool-mini-grid > div,
html[data-theme="dark"] .billing-rate-grid > div,
html[data-theme="dark"] .billing-pill,
html[data-theme="dark"] .billing-status-chip,
html[data-theme="dark"] .dashboard-server-billing,
html[data-theme="dark"] .billing-admin-status-grid > div,
html[data-theme="dark"] .integration-health-row,
html[data-theme="dark"] .premium-plan-resource-grid,
html[data-theme="dark"] .premium-plan-header-resources span { background: var(--surface); }
html[data-theme="dark"] .premium-plan-live-preview { border-color: #28534a; background: #14241f; }
html[data-theme="dark"] .file-editor-textarea-v2 { caret-color: var(--text); }
html[data-theme="dark"] .auth-main { background: var(--page); }
html[data-theme="dark"] .auth-copy p { color: var(--dark-muted, #9aa5b5); }

@media (max-width: 1100px) {
  .overview-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-pools-grid { grid-template-columns: 1fr; }
  .admin-tab-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .overview-summary-grid { grid-template-columns: 1fr 1fr; }
  .overview-pool-head { min-height: 0; flex-direction: column; }
  .overview-pool-stats { grid-template-columns: 1fr; }
  .overview-pool-stats > div { border-left: 0; border-top: 1px solid var(--border); }
  .overview-pool-stats > div:first-child { border-top: 0; }
  .overview-pool-footer, .overview-premium-empty { align-items: flex-start; flex-direction: column; padding-top: 14px; padding-bottom: 14px; }
  .admin-tab-groups { grid-template-columns: 1fr; }
  .theme-toggle > span { display: none; }
}
@media (max-width: 480px) {
  .overview-summary-grid { grid-template-columns: 1fr; }
  .admin-tab-group > div { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-tab-group .admin-tab { justify-content: center; }
}

/* v1.13.2 polish: quieter sidebar selection, cleaner admin lists, plan catalogue, and resumable PayPal checkout. */
.sidebar-link {
  min-height: 48px;
  border-radius: 10px;
}
.sidebar-link::before {
  left: auto;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 4px 0 0 4px;
}
.sidebar-link.active,
.sidebar-link-free.active,
.sidebar-link-premium.active {
  color: #fff;
  background: var(--dark-card-alpha-0-075, rgba(255,255,255,.075));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.sidebar-link.active::before { background: var(--amber); }
.sidebar-link.active svg { color: var(--dark-text, #f2f5f8); }
.sidebar-link.active .sidebar-count { background: var(--dark-card-alpha-0-1, rgba(255,255,255,.1)); }

.admin-users-scroll { background: var(--white); }
.admin-users-table { min-width: 980px; table-layout: auto; }
.admin-users-table th {
  height: 40px;
  padding: 0 16px;
  background: var(--surface-soft);
}
.admin-users-table td {
  height: auto;
  min-height: 74px;
  padding: 15px 16px;
  vertical-align: middle;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) { width: 46px; padding-left: 18px; padding-right: 8px; }
.admin-users-table th:nth-child(2) { min-width: 250px; }
.admin-users-table th:nth-child(3) { min-width: 150px; }
.admin-users-table th:nth-child(4) { min-width: 125px; }
.admin-users-table th:nth-child(5) { min-width: 330px; }
.admin-users-table th:nth-child(6) { width: 150px; text-align: right; }
.admin-users-table td:nth-child(6) { text-align: right; }
.admin-user-identity { min-width: 0; }
.admin-user-identity > div { min-width: 0; }
.admin-user-identity strong,
.admin-user-identity small { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-meta { display: block; margin-top: 5px; color: var(--muted-2); font-size: 8px; }
.admin-access-stack { display: grid; gap: 8px; justify-items: start; }
.admin-access-stack > div { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-hosting-stack strong { display: block; font-size: 12px; }
.admin-hosting-stack small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.admin-pool-summary { display: grid; grid-template-columns: repeat(3,minmax(78px,1fr)); gap: 6px; }
.admin-pool-summary > span { min-width: 0; padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); }
.admin-pool-summary b { display: block; color: var(--text); font-size: 10px; white-space: nowrap; }
.admin-pool-summary small { display: block; margin-top: 2px; color: var(--muted); font-size: 7px; white-space: nowrap; }
.admin-pool-used { display: block; margin-top: 6px; color: var(--muted-2); font-size: 8px; }
.admin-user-actions { justify-content: flex-end; flex-wrap: nowrap; }
.bulk-user-toolbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  box-shadow: none;
}

.premium-plan-manager { margin-top: 18px; }
.premium-plan-manager-header { align-items: center; }
.premium-plan-manager-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.premium-plan-list-table { min-width: 900px; }
.premium-plan-list-table td { height: 76px; }
.premium-plan-list-name strong { display: block; font-size: 12px; }
.premium-plan-list-name code { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.premium-plan-list-price { font-size: 12px; white-space: nowrap; }
.premium-plan-list-resources { display: flex; flex-wrap: wrap; gap: 5px; min-width: 280px; }
.premium-plan-list-resources span { padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 8px; white-space: nowrap; }
.premium-plan-list-resources b { color: var(--text); font-size: 9px; }
.premium-plan-sub-count strong { display: block; font-size: 11px; }
.premium-plan-sub-count small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.premium-plan-dialog { width: min(820px, calc(100% - 32px)); }
.premium-plan-dialog-body { gap: 14px; }
.premium-plan-create-grid { grid-template-columns: 1fr 1fr; }
.premium-plan-dialog .premium-plan-live-preview { min-height: 78px; }

.billing-premium-pending { border-color: #ead8af; background: linear-gradient(135deg,var(--white),#fffaf0); }
.billing-premium-pending .billing-actions form { margin: 0; }
.billing-pending-help { display: block; margin-top: 12px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.billing-pending-steps { display: grid; grid-template-columns: 26px 1fr; gap: 10px 12px; align-content: center; padding: 22px; border-left: 1px solid var(--border); }
.billing-pending-steps > span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #845f1d; background: #f5dfad; font-size: 9px; font-weight: 800; }
.billing-pending-steps strong { display: block; font-size: 10px; }
.billing-pending-steps small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }

html[data-theme="dark"] .sidebar-link.active,
html[data-theme="dark"] .sidebar-link-free.active,
html[data-theme="dark"] .sidebar-link-premium.active { background: var(--dark-card-alpha-0-07, rgba(255,255,255,.07)); }
html[data-theme="dark"] .admin-pool-summary > span,
html[data-theme="dark"] .premium-plan-list-resources span,
html[data-theme="dark"] .bulk-user-toolbar { background: var(--surface); }
html[data-theme="dark"] .billing-premium-pending { border-color: #5f5134; background: linear-gradient(135deg,var(--white),#211c13); }
html[data-theme="dark"] .billing-pending-steps > span { color: #f0c66e; background: #3c321d; }

@media (max-width: 760px) {
  .premium-plan-manager-header { align-items: flex-start; flex-direction: column; }
  .premium-plan-manager-actions { width: 100%; justify-content: space-between; }
  .premium-plan-create-grid { grid-template-columns: 1fr; }
  .billing-pending-steps { border-left: 0; border-top: 1px solid var(--border); }
}

/* v1.13.3: neutral overview, corrected right-edge active marker, simpler admin users, PayPal REST setup. */
.sidebar-link::before {
  left: auto;
  right: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 4px 4px 0;
}
.sidebar-link.active,
.sidebar-link-free.active,
.sidebar-link-premium.active {
  background: var(--dark-card-alpha-0-055, rgba(255,255,255,.055));
  box-shadow: none;
}
.sidebar-link.active .sidebar-count { background: var(--dark-card-alpha-0-08, rgba(255,255,255,.08)); }

/* The overview deliberately avoids Free/Premium accent colours. It is a fleet
   summary first; the dedicated Free/Premium pages carry the product identity. */
.dashboard-overview-v2 .overview-summary-card {
  border-top: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: none;
  background: var(--white);
}
.dashboard-overview-v2 .overview-summary-card:hover {
  transform: none;
  background: var(--surface-soft);
}
.overview-account-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.overview-account-card {
  min-width: 0;
  padding: 19px 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--white);
  box-shadow: none;
}
.overview-account-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.overview-account-head h2 { margin: 5px 0 0; color: var(--text); font-size: 16px; letter-spacing: -.02em; }
.overview-account-head > a { color: var(--text); font-size: 9px; font-weight: 750; text-decoration: underline; text-decoration-color: var(--border-dark); text-underline-offset: 3px; }
.overview-account-list { margin: 0; }
.overview-account-list > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.overview-account-list dt { color: var(--muted); font-size: 9px; }
.overview-account-list dd { margin: 0; color: var(--text); font-size: 10px; font-weight: 750; text-align: right; }
.overview-account-resource { align-items: center; }
.overview-account-resource dd { width: min(58%, 270px); }
.overview-account-resource dd > span { display: block; margin-bottom: 6px; }
.overview-account-resource progress { display: block; width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 999px; background: var(--border); appearance: none; }
.overview-account-resource progress::-webkit-progress-bar { background: var(--border); border-radius: 999px; }
.overview-account-resource progress::-webkit-progress-value { background: var(--teal); border-radius: 999px; }
.overview-account-resource progress::-moz-progress-bar { background: var(--teal); border-radius: 999px; }
.overview-account-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.dashboard-overview-v2 .server-pool-chip.free,
.dashboard-overview-v2 .server-pool-chip.premium,
.dashboard-overview-v2 .billing-status-chip.premium {
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface-soft);
}
.dashboard-overview-v2 .dashboard-heading-actions .button-primary { color: var(--text); border-color: var(--border-dark); background: var(--white); box-shadow: none; }
.dashboard-overview-v2 .dashboard-heading-actions .button-primary:hover { background: var(--surface-soft); }

/* Users: reduce visual density and separate destructive bulk deletion from the
   normal action selector. */
.admin-users-table { min-width: 880px; }
.admin-users-table th { height: 38px; padding: 0 13px; background: var(--white); border-bottom: 1px solid var(--border); }
.admin-users-table td { padding: 13px; }
.admin-users-table th:nth-child(2) { min-width: 225px; }
.admin-users-table th:nth-child(3) { min-width: 135px; }
.admin-users-table th:nth-child(4) { min-width: 110px; }
.admin-users-table th:nth-child(5) { min-width: 255px; }
.admin-users-table th:nth-child(6) { width: 132px; }
.admin-user-meta { margin-top: 3px; }
.admin-pool-summary { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.admin-pool-summary > span { display: flex; align-items: baseline; gap: 4px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.admin-pool-summary b { font-size: 9px; }
.admin-pool-summary small { display: inline; margin: 0; font-size: 8px; }
.admin-pool-used { margin-top: 5px; }
.bulk-user-toolbar {
  grid-template-columns: minmax(150px,.7fr) minmax(180px,.8fr) minmax(250px,1.4fr) auto;
  gap: 10px 14px;
  padding: 14px 16px;
  background: var(--white);
}
.bulk-user-actions { display: flex; align-items: end; gap: 8px; align-self: end; }
.button-danger-outline {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid color-mix(in srgb, var(--red) 45%, var(--border));
  border-radius: 8px;
  color: var(--red);
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}
.button-danger-outline:hover:not(:disabled) { background: color-mix(in srgb, var(--red) 8%, transparent); }
.button-danger-outline:disabled { opacity: .45; cursor: not-allowed; }
.bulk-delete-dialog { width: min(580px,calc(100% - 30px)); }
.bulk-delete-warning { padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border)); border-radius: 9px; background: color-mix(in srgb, var(--red) 5%, var(--white)); }
.bulk-delete-warning strong,.bulk-delete-warning small { display: block; }
.bulk-delete-warning small { margin-top: 4px; color: var(--muted); line-height: 1.5; }

.paypal-sync-card { margin-top: 18px; }
.paypal-sync-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--border); }
.paypal-sync-actions strong,.paypal-sync-actions small { display: block; }
.paypal-sync-actions small { margin-top: 4px; color: var(--muted); font-size: 9px; }

html[data-theme="dark"] .dashboard-overview-v2 .overview-summary-card,
html[data-theme="dark"] .overview-account-card,
html[data-theme="dark"] .admin-users-table th,
html[data-theme="dark"] .bulk-user-toolbar { background: var(--white); }
html[data-theme="dark"] .admin-pool-summary > span { background: transparent; }

@media (max-width: 980px) {
  .overview-account-grid { grid-template-columns: 1fr; }
  .bulk-user-toolbar { grid-template-columns: 1fr 1fr; }
  .bulk-fields { grid-column: 1 / -1; }
  .bulk-user-actions { justify-content: flex-end; }
}
@media (max-width: 620px) {
  .bulk-user-toolbar { grid-template-columns: 1fr; }
  .bulk-fields,.bulk-user-actions { grid-column: 1; }
  .bulk-user-actions { justify-content: stretch; }
  .bulk-user-actions > * { flex: 1; }
  .paypal-sync-actions { align-items: stretch; flex-direction: column; }
}

/* Overview-specific layout is isolated in the current versioned Overview stylesheet. */

.create-pool-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
}
.create-pool-context .eyebrow { margin-bottom: 5px; }
.create-pool-context strong { display: block; color: var(--text); font-size: 13px; }
.create-pool-context small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.create-pool-context > a { color: var(--text); font-size: 9px; font-weight: 750; text-decoration: underline; text-decoration-color: var(--border-dark); text-underline-offset: 3px; }

html[data-theme="dark"] .create-pool-context { background: var(--white); }

@media (max-width: 760px) {
  .create-pool-context { align-items: flex-start; flex-direction: column; }
}

/* v1.13.8 admin user billing controls */
.admin-credit-balance { display:block; margin-top:6px; color:var(--teal); font-size:8px; font-weight:750; }
.bulk-fields-credit { grid-template-columns:repeat(2,minmax(0,1fr)); }
.admin-credit-editor { display:grid; grid-template-columns:minmax(190px,1.15fr) repeat(2,minmax(160px,1fr)); gap:14px; align-items:end; padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.admin-credit-editor-copy { align-self:center; }
.admin-credit-editor-copy .eyebrow { margin-bottom:5px; }
.admin-credit-editor-copy strong { display:block; font-size:16px; letter-spacing:-.02em; }
.admin-credit-editor-copy small { display:block; margin-top:4px; color:var(--muted); font-size:8px; line-height:1.45; }
@media (max-width:820px) { .admin-credit-editor { grid-template-columns:1fr; } .bulk-fields-credit { grid-template-columns:1fr; } }

/* v1.14.0: deterministic resource meters. These use fixed grid segments rather
   than generated width classes or native <progress>, so strict CSP, cached CSS,
   and browser progress-element differences cannot collapse the bar. */
.resource-segment-meter {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  min-width: 0;
  height: 7px;
  margin: 9px 0 7px;
}
.resource-segment-meter > i {
  display: block;
  min-width: 0;
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-dark) 36%, transparent);
}
.resource-segment-meter > i.is-filled {
  background: var(--teal);
  box-shadow: none;
}
html[data-theme="dark"] .resource-segment-meter > i { background: var(--dark-card, #2b3645); }
html[data-theme="dark"] .resource-segment-meter > i.is-filled { background: var(--teal); }

/* v1.14.0 admin traceability and Premium lifecycle controls */
.admin-premium-user-line {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.35;
}
.admin-premium-user-line.is-active { color: var(--teal); }
.admin-premium-user-line.is-cancelling { color: #9a6b1e; }
.admin-user-premium-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}
.admin-user-premium-card strong,
.admin-user-premium-card small { display: block; }
.admin-user-premium-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-premium-status { display: grid; gap: 5px; }
.admin-premium-status small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.premium-plan-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.audit-filter-bar {
  display: grid;
  grid-template-columns: minmax(230px, 1.5fr) repeat(3, minmax(145px, .7fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 16px 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}
.audit-filter-actions { display: flex; gap: 8px; align-items: center; }
.audit-filter-note { padding: 9px 18px; color: var(--muted); font-size: 8px; background: var(--white); border-bottom: 1px solid var(--border); }
.panel-test-bar { margin-top: 12px; }
.dialog-warning {
  display: grid;
  gap: 4px;
  margin: 0 22px 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--red) 32%, var(--border));
  border-radius: 9px;
  background: color-mix(in srgb, var(--red) 6%, var(--white));
}
.dialog-warning strong { color: var(--red); font-size: 9px; }
.dialog-warning span { color: var(--muted); font-size: 9px; line-height: 1.5; }

/* v1.14.0 ticket dark-mode reset. Ticket light-mode intentionally keeps its
   existing look; dark mode remaps every fixed pale surface/text token. */
html[data-theme="dark"] .ticket-summary-card,
html[data-theme="dark"] .ticket-search-card,
html[data-theme="dark"] .ticket-section-card,
html[data-theme="dark"] .ticket-new-card,
html[data-theme="dark"] .ticket-detail-card,
html[data-theme="dark"] .ticket-claim-card,
html[data-theme="dark"] .ticket-staff-toolbar,
html[data-theme="dark"] .ticket-thread,
html[data-theme="dark"] .ticket-composer,
html[data-theme="dark"] .ticket-message {
  color: var(--text);
  border-color: var(--border);
  background: var(--white);
}
html[data-theme="dark"] .ticket-section-heading,
html[data-theme="dark"] .ticket-thread-header,
html[data-theme="dark"] .ticket-composer-header {
  border-color: var(--border);
  background: var(--surface);
}
html[data-theme="dark"] .ticket-section-claimed .ticket-section-heading,
html[data-theme="dark"] .ticket-claim-mine {
  border-color: #28534a;
  background: #14241f;
}
html[data-theme="dark"] .ticket-list-row { border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .ticket-list-row:hover { background: var(--dark-card, #1a222d); }
html[data-theme="dark"] .ticket-list-main > strong,
html[data-theme="dark"] .ticket-customer,
html[data-theme="dark"] .ticket-detail-main p strong,
html[data-theme="dark"] .ticket-section-heading p strong,
html[data-theme="dark"] .ticket-message-author strong,
html[data-theme="dark"] .ticket-detail-owner > strong { color: var(--text); }
html[data-theme="dark"] .ticket-list-main > small,
html[data-theme="dark"] .ticket-section-heading p,
html[data-theme="dark"] .ticket-detail-main p,
html[data-theme="dark"] .ticket-message-meta,
html[data-theme="dark"] .ticket-message-meta time,
html[data-theme="dark"] .ticket-composer-header p,
html[data-theme="dark"] .ticket-claim-copy small,
html[data-theme="dark"] .ticket-detail-owner > small,
html[data-theme="dark"] .ticket-search-card p { color: var(--muted); }
html[data-theme="dark"] .ticket-status-waiting_staff,
html[data-theme="dark"] .ticket-assignment-open { color: #e8bc69; background: #322817; }
html[data-theme="dark"] .ticket-status-waiting_user,
html[data-theme="dark"] .ticket-assignment-mine { color: #78d6c5; background: #14352f; }
html[data-theme="dark"] .ticket-status-closed,
html[data-theme="dark"] .ticket-priority,
html[data-theme="dark"] .ticket-priority-low { color: var(--muted); background: var(--dark-card, #222b36); }
html[data-theme="dark"] .ticket-priority-high { color: #f0a0aa; background: #351c22; }
html[data-theme="dark"] .ticket-message-staff { border-left-color: #357967; }
html[data-theme="dark"] .ticket-message-user { border-left-color: var(--dark-border, #465365); }
html[data-theme="dark"] .ticket-message-mine { background: var(--dark-card, #141c26); }
html[data-theme="dark"] .ticket-message-staff .ticket-message-avatar { color: #78d6c5; background: #14352f; }
html[data-theme="dark"] .ticket-search-field,
html[data-theme="dark"] .ticket-priority-form select,
html[data-theme="dark"] .ticket-new-card textarea,
html[data-theme="dark"] .ticket-reply-card textarea {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
html[data-theme="dark"] .ticket-search-field input { color: var(--text); }
html[data-theme="dark"] .ticket-search-field input::placeholder { color: var(--muted-2); }
html[data-theme="dark"] .dialog-warning { border-color: #5b3038; background: #2a171c; }

@media (max-width: 1050px) {
  .audit-filter-bar { grid-template-columns: 1fr 1fr; }
  .audit-search-field { grid-column: 1 / -1; }
  .audit-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 680px) {
  .premium-plan-feature-grid,
  .audit-filter-bar { grid-template-columns: 1fr; }
  .audit-search-field,
  .audit-filter-actions { grid-column: 1; }
  .audit-filter-actions { justify-content: stretch; }
  .audit-filter-actions > * { flex: 1; }
  .admin-user-premium-card { align-items: flex-start; flex-direction: column; }
}

/* v1.14.0 ticket dark-mode completion: remap the remaining fixed light-mode
   colors that made message text, badges, composer fields, and thread surfaces
   too low-contrast in dark mode. */
html[data-theme="dark"] .ticket-section-claimed { border-color:#28534a; }
html[data-theme="dark"] .ticket-list-row,
html[data-theme="dark"] .ticket-thread-messages,
html[data-theme="dark"] .ticket-message,
html[data-theme="dark"] .ticket-closed-notice { border-color:var(--border); }
html[data-theme="dark"] .ticket-thread-messages { background:var(--dark-card, #111821); }
html[data-theme="dark"] .ticket-message-body { color:var(--dark-text, #d9e1eb); }
html[data-theme="dark"] .ticket-message-author span,
html[data-theme="dark"] .ticket-assignment,
html[data-theme="dark"] .ticket-priority,
html[data-theme="dark"] .ticket-status-closed { color:var(--dark-text, #b6c0cc); background:var(--dark-card, #222c38); }
html[data-theme="dark"] .ticket-list-side b,
html[data-theme="dark"] .ticket-message-meta time { color:var(--dark-muted, #8996a7); }
html[data-theme="dark"] .ticket-message-avatar,
html[data-theme="dark"] .ticket-claim-icon { color:var(--dark-text, #c2ccd8); background:var(--dark-card, #202a35); box-shadow:inset 0 0 0 1px var(--border); }
html[data-theme="dark"] .ticket-message-staff .ticket-message-avatar { color:#86dfcf; background:#17372f; }
html[data-theme="dark"] .ticket-composer-field textarea,
html[data-theme="dark"] .ticket-composer-field textarea:focus,
html[data-theme="dark"] .ticket-new-card textarea,
html[data-theme="dark"] .ticket-reply-card textarea { color:var(--dark-text, #e5ebf2); border-color:var(--dark-border, #3a4655); background:var(--dark-card, #151d27); }
html[data-theme="dark"] .ticket-composer-field textarea::placeholder,
html[data-theme="dark"] .ticket-new-card textarea::placeholder,
html[data-theme="dark"] .ticket-reply-card textarea::placeholder { color:var(--dark-muted, #7f8b9b); }
html[data-theme="dark"] .ticket-detail-owner { border-color:var(--border); }
html[data-theme="dark"] .ticket-empty-icon { border-color:#28534a; background:#15322b; }
html[data-theme="dark"] .ticket-closed-notice { background:var(--dark-card, #1a222c); }
html[data-theme="dark"] .ticket-search-field { border-color:var(--dark-border, #3a4655); background:var(--dark-card, #151d27); }
html[data-theme="dark"] .ticket-search-field input { color:var(--dark-text, #e5ebf2); }
html[data-theme="dark"] .ticket-section-heading,
html[data-theme="dark"] .ticket-thread-header,
html[data-theme="dark"] .ticket-composer-header { border-bottom-color:var(--border); }

/* v1.14.4 authentication providers */
.turnstile-wrap {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.google-auth-form { display: grid; }

.google-auth-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}
.google-auth-spinner {
  display: none;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  box-sizing: border-box;
  border: 2px solid #4285f4;
  border-right-color: #34a853;
  border-bottom-color: #fbbc05;
  border-left-color: #ea4335;
  border-radius: 50%;
  animation: google-auth-spin .72s linear infinite;
}
.button-google[aria-busy="true"] .google-auth-spinner { display: inline-block; }
.button-google[aria-busy="true"] {
  cursor: wait;
  pointer-events: none;
  opacity: .92;
  transform: none;
  box-shadow: 0 5px 16px rgba(28, 39, 56, .055);
}
@keyframes google-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .google-auth-spinner { animation-duration: 1.5s; }
}

.button-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-dark);
  box-shadow: 0 8px 22px rgba(28, 39, 56, .045);
}
.button-google:hover { background: var(--soft); border-color: var(--dark-border, #b8c3cf); }
.google-mark { width: 20px; height: 20px; display: block; flex: 0 0 20px; }
.account-google-icon .google-mark { width: 21px; height: 21px; }
.account-provider-google-mark .google-mark { width: 22px; height: 22px; }
.security-provider-card { display: grid; gap: 22px; }
.security-provider-card .card-heading { align-items: center; }
.security-provider-card .card-heading .state { margin-left: auto; white-space: nowrap; }
.security-provider-fields { margin-top: 0; }

html[data-theme="dark"] .account-google-icon,
html[data-theme="dark"] .account-provider-google-mark { background: var(--dark-card, #fff); border-color: var(--dark-border, #465268); }
html[data-theme="dark"] .account-provider-identity,
html[data-theme="dark"] .account-provider-intro { background: var(--dark-card, #1e2737); border-color: var(--dark-border, #344156); }
html[data-theme="dark"] .account-provider-action-danger { background: rgba(210, 72, 72, .07); border-color: rgba(226, 99, 99, .28); }

html[data-theme="dark"] .button-google {
  color: var(--text);
  background: var(--dark-card, #202838);
  border-color: var(--dark-border, #39465b);
  box-shadow: none;
}
html[data-theme="dark"] .button-google:hover { background: var(--dark-card, #273247); border-color: var(--dark-border, #4a5b73); }
html[data-theme="dark"] .auth-divider::before,
html[data-theme="dark"] .auth-divider::after { background: var(--dark-card, #354054); }

@media (max-width: 760px) {
  .security-provider-card .card-heading .state { margin-left: 0; }
  .turnstile-wrap { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .account-provider-body { padding: 0 18px 20px; }
  .account-provider-form { width: 100%; }
  .account-provider-form-actions .button { width: 100%; }
  .account-provider-identity { align-items: flex-start; }
}


/* v1.14.12: deterministic Account -> Google link feedback with compact loading UI. */
.account-provider-link-status { min-height: 1.25rem; margin-top: -.2rem; font-size: .84rem; color: var(--muted); }
.account-provider-link-status:empty { min-height: 0; margin-top: 0; }
.account-provider-link-status[data-state="busy"] { color: var(--muted); }
.account-provider-link-status[data-state="success"] { color: var(--success, #18864b); }
.account-provider-link-status[data-state="error"] { color: var(--danger, #c53636); }
.account-google-link-submit[aria-busy="true"] { cursor: wait; opacity: .92; }

/* v1.15.0 Premium administration + upgrade polish */
.admin-user-premium-control { align-items: center; }
.admin-user-premium-buttons { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.admin-premium-access-dialog { width:min(760px,calc(100vw - 30px)); }
.premium-admin-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.premium-admin-separation { display:grid; gap:5px; padding:12px 14px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.premium-admin-separation strong { font-size:10px; }
.premium-admin-separation span { color:var(--muted); font-size:9px; line-height:1.55; }
.billing-plan-separation { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:15px; padding:12px; border:1px solid var(--border); border-radius:11px; background:var(--surface-soft); }
.billing-plan-separation>div { display:grid; gap:3px; }
.billing-plan-separation span { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.billing-plan-separation strong { font-size:12px; }
.billing-plan-separation small { grid-column:1/-1; color:var(--muted); font-size:9px; line-height:1.5; }
.billing-upgrade-pending { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; padding:18px 20px; border:1px solid color-mix(in srgb,var(--teal) 28%,var(--border)); border-radius:14px; background:color-mix(in srgb,var(--teal) 5%,var(--white)); }
.billing-upgrade-pending h2 { margin:4px 0 5px; font-size:16px; }
.billing-upgrade-pending p { margin:0; color:var(--muted); font-size:10px; line-height:1.55; }
.premium-plan-card.is-current { border-color:color-mix(in srgb,var(--teal) 40%,var(--border)); box-shadow:0 0 0 2px color-mix(in srgb,var(--teal) 8%,transparent); }
.premium-upgrade-note { display:block; margin-top:8px; color:var(--muted); font-size:9px; line-height:1.45; }
/* Remove the stray divider appearance in destructive confirmation dialogs. */
.destructive-dialog .dialog-header { border-bottom:0; padding-bottom:14px; }
.destructive-dialog .dialog-warning { margin-top:0; border-top:1px solid color-mix(in srgb,var(--red) 28%,var(--border)); box-shadow:none; }
html[data-theme="dark"] .premium-admin-separation,
html[data-theme="dark"] .billing-plan-separation { background:var(--surface); }
html[data-theme="dark"] .billing-upgrade-pending { background:color-mix(in srgb,var(--teal) 8%,var(--white)); }
@media (max-width:760px) {
  .premium-admin-fields { grid-template-columns:1fr; }
  .billing-plan-separation { grid-template-columns:1fr; }
  .billing-plan-separation small { grid-column:auto; }
  .billing-upgrade-pending { align-items:flex-start; flex-direction:column; }
  .billing-upgrade-pending form,.billing-upgrade-pending .button { width:100%; }
  .admin-user-premium-buttons { justify-content:flex-start; }
}


/* Temporary administrator user-view notice */
.impersonation-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;width:min(100% - clamp(32px,6vw,64px),1440px);margin:16px auto 0;padding:12px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-raised,var(--dark-card, #202738))}
.impersonation-bar-copy{display:flex;align-items:baseline;gap:8px;min-width:0;flex-wrap:wrap}.impersonation-bar-copy span,.impersonation-bar-copy small{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.06em}.impersonation-bar-copy strong{font-size:.98rem}.impersonation-bar form{margin:0;flex:0 0 auto}
@media(max-width:640px){.impersonation-bar{align-items:stretch;flex-direction:column;width:calc(100% - 32px)}.impersonation-bar form,.impersonation-bar button{width:100%}}

/* v1.16.0 SMTP delivery-check polish */
.admin-smtp-test-card { overflow: hidden; }
.admin-smtp-test-heading { margin-bottom: 0; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.admin-smtp-test-heading > div { min-width: 0; }
.admin-smtp-test-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 24px; align-items: stretch; }
.admin-smtp-test-preview { display: grid; align-content: center; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.admin-smtp-test-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); gap: 10px; align-items: center; }
.admin-smtp-test-route > span { display: grid; min-width: 0; gap: 4px; }
.admin-smtp-test-route > span b { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--teal); background: var(--white); font-size: 10px; }
.admin-smtp-test-route > span strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-smtp-test-route > span small { overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.admin-smtp-test-route > i { color: var(--muted); font-size: 16px; font-style: normal; }
.admin-smtp-test-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-smtp-test-note strong { color: var(--text); }
.admin-smtp-test-form { display: grid; align-content: center; gap: 14px; min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.admin-smtp-test-form .button { width: 100%; min-height: 44px; }
.admin-smtp-test-form .button svg { width: 17px; height: 17px; }

html[data-theme="dark"] .admin-smtp-test-preview { background: var(--dark-card, #1e2737); border-color: var(--dark-border, #344156); }
html[data-theme="dark"] .admin-smtp-test-route > span b,
html[data-theme="dark"] .admin-smtp-test-form { background: var(--dark-card, #202838); border-color: var(--dark-border, #39465b); }

@media (max-width: 980px) {
  .admin-smtp-test-layout { grid-template-columns: 1fr; }
  .admin-smtp-test-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
  .admin-smtp-test-form .button { width: auto; min-width: 190px; }
}

@media (max-width: 700px) {
  .admin-smtp-test-heading { align-items: flex-start; }
  .admin-smtp-test-layout { gap: 14px; }
  .admin-smtp-test-preview,
  .admin-smtp-test-form { padding: 16px; }
  .admin-smtp-test-route { grid-template-columns: 1fr; gap: 8px; }
  .admin-smtp-test-route > i { transform: rotate(90deg); justify-self: start; margin-left: 6px; }
  .admin-smtp-test-form { grid-template-columns: 1fr; }
  .admin-smtp-test-form .button { width: 100%; min-width: 0; }
}

/* v1.16 user-app soft navigation */
#soft-nav-content {
  transition: opacity .12s ease;
}
body.soft-nav-loading #soft-nav-content {
  opacity: .62;
  pointer-events: none;
}
body.soft-nav-loading .main-area::before {
  content: "";
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 288px;
  height: 2px;
  background: var(--teal);
  transform-origin: left center;
  animation: soft-nav-progress .85s ease-in-out infinite;
}
@keyframes soft-nav-progress {
  0% { transform: scaleX(.08); opacity: .45; }
  55% { transform: scaleX(.72); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
@media (max-width: 980px) {
  body.soft-nav-loading .main-area::before { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #soft-nav-content { transition: none; }
  body.soft-nav-loading .main-area::before { animation: none; transform: none; }
}

/* v1.16.1 dark-mode contrast and admin surface polish */
.admin-smtp-test-card { margin-top: 24px; }
.smtp-gmail-guard { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:14px 16px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.smtp-gmail-guard > div { min-width:0; }
.smtp-gmail-guard .eyebrow { display:block; margin-bottom:4px; }
.smtp-gmail-guard strong { display:block; font-size:12px; }
.smtp-gmail-guard small { display:block; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.55; }
.smtp-gmail-guard .count-pill { flex:0 0 auto; }
.admin-security-save { margin-bottom:0; }

html[data-theme="dark"] .detail-list strong,
html[data-theme="dark"] .detail-list code,
html[data-theme="dark"] .server-hosting-grid strong,
html[data-theme="dark"] .server-info-list strong,
html[data-theme="dark"] .server-tool-mono,
html[data-theme="dark"] .database-secret-field code,
html[data-theme="dark"] .portal-config-table code,
html[data-theme="dark"] .audit-table code { color:var(--dark-text, #cbd5e1); }
html[data-theme="dark"] .field > span,
html[data-theme="dark"] .location-fieldset > legend { color:var(--dark-text, #c8d2df); }
html[data-theme="dark"] .field small,
html[data-theme="dark"] .block-small,
html[data-theme="dark"] .dashboard-server-id,
html[data-theme="dark"] .server-tool-subtext,
html[data-theme="dark"] .server-tool-form-note { color:var(--dark-muted, #93a2b5); }
html[data-theme="dark"] .server-status-chip.state-text-good {
  color:#82bdb1;
  border-color:#28544a;
  background:#132923;
}
html[data-theme="dark"] .server-status-chip.state-text-good .status-dot { background:#4fae98; }
html[data-theme="dark"] .state-good { color:#83b8ad; }
html[data-theme="dark"] .state-good i { background:#4fae98; }
html[data-theme="dark"] .status-line { color:#83b8ad; }

/* Admin used a few older hard-coded light surfaces that bypassed theme tokens. */
html[data-theme="dark"] .page-admin .form-card,
html[data-theme="dark"] .page-admin .users-card,
html[data-theme="dark"] .page-admin .admin-stat-card,
html[data-theme="dark"] .page-admin .admin-tabs-wide,
html[data-theme="dark"] .page-admin .admin-tab-group,
html[data-theme="dark"] .page-admin .admin-search,
html[data-theme="dark"] .page-admin .admin-users-scroll,
html[data-theme="dark"] .page-admin .admin-smtp-test-form,
html[data-theme="dark"] .page-admin .admin-smtp-test-preview,
html[data-theme="dark"] .page-admin .smtp-gmail-guard { background:var(--surface-raised); }
html[data-theme="dark"] .page-admin .admin-tab.active { color:var(--text); background:var(--surface); box-shadow:inset 0 0 0 1px var(--border); }
html[data-theme="dark"] .page-admin .admin-tab span { color:var(--muted); background:var(--dark-card, #222c38); }
html[data-theme="dark"] .page-admin .mini-action { color:var(--dark-text, #c4ceda); background:var(--surface); }
html[data-theme="dark"] .page-admin .mini-danger { color:#e28a95; border-color:#5b3038; background:#2a171c; }
html[data-theme="dark"] .page-admin .admin-search input,
html[data-theme="dark"] .page-admin .audit-search-field input { color:var(--text); background:transparent; }
html[data-theme="dark"] .page-admin .user-table th { color:var(--dark-text, #aab6c5); background:var(--surface); }
html[data-theme="dark"] .page-admin .user-table td { color:var(--dark-text, #dce4ed); }
html[data-theme="dark"] .page-admin .table-date,
html[data-theme="dark"] .page-admin .audit-detail { color:var(--dark-text, #a8b4c3); }
html[data-theme="dark"] .page-admin .input-suffix b { color:var(--dark-text, #a7b3c2); background:var(--surface); }
html[data-theme="dark"] .page-admin .check-row,
html[data-theme="dark"] .page-admin .switch-row { color:var(--text); }
html[data-theme="dark"] .page-admin .card-icon,
html[data-theme="dark"] .server-summary-icon,
html[data-theme="dark"] .server-large-icon,
html[data-theme="dark"] .empty-server-icon { color:#7db8ad; background:var(--dark-card, #202a34); }
html[data-theme="dark"] .smtp-gmail-guard { border-color:var(--dark-border, #344156); }

/* Network/database identifiers need more contrast than generic muted copy. */
html[data-theme="dark"] .network-tool-table td[data-label="Hostname"] .server-tool-mono,
html[data-theme="dark"] .network-tool-table td[data-label="Port"] .server-tool-mono,
html[data-theme="dark"] .server-hosting-grid .mono-value { color:var(--dark-text, #d7e0ea); }

@media (max-width:700px) {
  .smtp-gmail-guard { align-items:flex-start; flex-direction:column; }
}

/* v1.16.1 follow-up: catch older light-only components and keep dark text readable. */
html[data-theme="dark"] .dashboard-metric-badge,
html[data-theme="dark"] .file-search-box-v2 kbd,
html[data-theme="dark"] .file-access-chip,
html[data-theme="dark"] .file-editor-status-chip[data-tone="busy"] {
  color:var(--dark-text, #aeb9c7);
  border-color:var(--border);
  background:var(--dark-card, #202936);
}
html[data-theme="dark"] .dashboard-metric-value small,
html[data-theme="dark"] .dashboard-empty-content > p strong,
html[data-theme="dark"] .resource-table-stack span,
html[data-theme="dark"] .server-live-note,
html[data-theme="dark"] .server-local-id,
html[data-theme="dark"] .server-id,
html[data-theme="dark"] .server-mini-stats span { color:var(--dark-text, #aab6c4); }
html[data-theme="dark"] .dashboard-resource-bar,
html[data-theme="dark"] .dashboard-resource-bar::-webkit-progress-bar { background:var(--dark-card, #293443); }
html[data-theme="dark"] .file-icon-folder { color:#d0ac62; border-color:#514329; background:#2b2519; }
html[data-theme="dark"] .file-editor-status-chip[data-tone="dirty"] { color:#d7b46b; border-color:#5a4821; background:#2b2415; }
html[data-theme="dark"] .primary-admin-badge { color:#d9bd78; background:#342b18; }

/* EULA controls predate theme tokens and otherwise remain bright in dark mode. */
html[data-theme="dark"] .eula-callout { border-color:#5a4821; background:#262116; }
html[data-theme="dark"] .eula-callout-icon { color:#d5af62; border-color:#5a4821; background:var(--dark-card, #201d17); }
html[data-theme="dark"] .eula-external-link,
html[data-theme="dark"] .eula-confirm-row { color:var(--text); border-color:var(--border); background:var(--surface-raised); }
html[data-theme="dark"] .eula-external-link:hover { background:var(--surface); }
html[data-theme="dark"] .eula-confirm-row:has(input:checked) { border-color:#2f6b5e; background:#15322b; }

/* Inputs and table metadata should remain readable without looking pure white. */
html[data-theme="dark"] .admin-search input::placeholder,
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder,
html[data-theme="dark"] .server-tool-search input::placeholder { color:var(--dark-muted, #778596); }
html[data-theme="dark"] .page-admin .admin-user-meta,
html[data-theme="dark"] .page-admin .admin-pool-used,
html[data-theme="dark"] .page-admin .admin-hosting-stack small,
html[data-theme="dark"] .page-admin .premium-plan-list-name code,
html[data-theme="dark"] .page-admin .premium-plan-sub-count small,
html[data-theme="dark"] .page-admin .audit-filter-note { color:var(--dark-muted, #95a3b4); }
html[data-theme="dark"] .page-admin .portal-config-link { color:#79b8ad; }
html[data-theme="dark"] .page-admin .admin-tabs,
html[data-theme="dark"] .page-admin .bulk-user-toolbar { background:var(--surface-raised); border-color:var(--border); }
html[data-theme="dark"] .page-admin .user-table tbody tr:hover { background:var(--dark-card, #1c2531); }
html[data-theme="dark"] .page-admin .count-pill,
html[data-theme="dark"] .page-admin .chip { color:var(--dark-text, #b6c1ce); background:var(--dark-card, #222c38); }
html[data-theme="dark"] .page-admin .admin-smtp-test-route > span b { color:#78afa5; border-color:var(--dark-border, #3a4758); background:var(--dark-card, #1b2430); }

/* Online/healthy labels should be calm in dark mode, not near-white neon. */
html[data-theme="dark"] .server-status-chip.state-text-good {
  color:#72a79d;
  border-color:#285048;
  background:#14261f;
}
html[data-theme="dark"] .server-status-chip.state-text-good .status-dot { background:#478f80; }
html[data-theme="dark"] .state-good,
html[data-theme="dark"] .status-line { color:#75a79e; }
html[data-theme="dark"] .state-good i { background:#478f80; }

/* v1.16.2 remaining dark-mode contrast fixes */
.smtp-gmail-help { padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent); }
.smtp-gmail-help strong { display: inline; font-size: inherit; }
html[data-theme="dark"] .form-submit-bar,
html[data-theme="dark"] .page-admin .form-submit-bar {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface-raised);
  box-shadow: 0 14px 36px rgba(0,0,0,.16);
}
html[data-theme="dark"] .form-submit-bar strong { color: var(--dark-text, #eef3f8); }
html[data-theme="dark"] .form-submit-bar span { color: var(--dark-text, #aeb9c7); }
html[data-theme="dark"] .page-admin .admin-security-save { background: var(--surface-raised); }
html[data-theme="dark"] .page-admin .admin-smtp-test-card .field > span { color: var(--dark-text, #d6dee8); }
html[data-theme="dark"] .page-admin .admin-smtp-test-card .field small { color: var(--dark-text, #aab6c5); }
html[data-theme="dark"] .page-admin .admin-smtp-test-route span {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
html[data-theme="dark"] .page-admin .admin-smtp-test-route small { color: var(--dark-text, #a6b2c0); }
html[data-theme="dark"] .page-admin .admin-smtp-test-note { color: var(--dark-text, #aeb9c7); }
html[data-theme="dark"] .smtp-gmail-help { color: var(--dark-text, #aeb9c7); border-top-color: var(--dark-border, #344156); }

/* v1.16.3 account verification, recovery, and password guidance */
.auth-field-link { margin-top: -8px; text-align: right; }
.auth-field-link a { color: var(--teal); font-size: 11px; font-weight: 750; }

.password-assist { margin-top: -7px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--soft); }
.password-strength-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; color: var(--muted); font-size: 10px; font-weight: 700; }
.password-strength-head strong { color: var(--muted-2); font-size: 10px; }
.password-strength-track { height: 5px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--border) 78%, transparent); }
.password-strength-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--dark-card, #a4aebb); transition: width .18s ease, background .18s ease; }
.password-assist[data-strength="weak"] .password-strength-track i { background: #d26868; }
.password-assist[data-strength="good"] .password-strength-track i { background: #d29a45; }
.password-assist[data-strength="ready"] .password-strength-track i,
.password-assist[data-strength="strong"] .password-strength-track i { background: var(--teal); }
.password-assist[data-strength="weak"] .password-strength-head strong { color: #bd5151; }
.password-assist[data-strength="good"] .password-strength-head strong { color: #a97022; }
.password-assist[data-strength="ready"] .password-strength-head strong,
.password-assist[data-strength="strong"] .password-strength-head strong { color: var(--teal); }
.password-requirements { display: grid; gap: 7px; margin-top: 12px; }
.password-requirements span { position: relative; padding-left: 20px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.password-requirements span::before { content: ""; position: absolute; left: 2px; top: 4px; width: 8px; height: 8px; border: 1.5px solid var(--muted-2); border-radius: 50%; }
.password-requirements span.is-valid { color: var(--text); }
.password-requirements span.is-valid::before { border-color: var(--teal); background: var(--teal); box-shadow: inset 0 0 0 2px var(--soft); }
.password-requirements span.is-invalid::before { border-color: #cf6767; }
.password-match { min-height: 15px; margin-top: -10px; color: var(--muted); font-size: 10px; }
.password-match[data-state="valid"] { color: var(--teal); }
.password-match[data-state="invalid"] { color: var(--danger); }

.account-email-heading { align-items: center; }
.account-email-heading > .state { margin-left: auto; white-space: nowrap; }
.account-email-body { padding-top: 0; }
.account-email-summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--soft) 92%, transparent), var(--white)); }
.account-email-summary.is-verified { border-color: color-mix(in srgb, var(--teal) 24%, var(--border)); }
.account-email-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--teal); background: var(--teal-soft); }
.account-email-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.account-email-copy { min-width: 0; }
.account-email-copy > span { display: block; color: var(--muted-2); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.account-email-address { display: block; margin-top: 4px; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.account-email-address a { color: inherit !important; text-decoration: none !important; pointer-events: none; }
.account-email-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.account-email-action { white-space: nowrap; }

.auth-verify-wrap { width: min(460px, 100%); }
.verify-code-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 14px 34px rgba(25, 35, 50, .055); }
.verify-code-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.verify-code-heading > div { min-width: 0; }
.verify-code-heading strong { display: block; font-size: 13px; }
.verify-code-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.verify-code-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border-radius: 11px; color: var(--teal); background: var(--teal-soft); }
.verify-code-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.verify-code-form { gap: 13px; }
.verify-code-field input { text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 22px; font-weight: 800; letter-spacing: .28em; }
.verify-resend-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--border); }
.verify-resend-row > span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.verify-resend-row form { margin: 0; }
.verify-resend-button { min-height: 34px; padding: 0; border: 0; color: var(--teal); background: transparent; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.verify-resend-button:disabled { color: var(--muted-2); cursor: default; }
.verify-help { margin: 15px 4px 0; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.verify-inline-notice { margin-bottom: 14px; }

html[data-theme="dark"] .password-assist { background: var(--dark-card, #1d2635); border-color: var(--dark-border, #344156); }
html[data-theme="dark"] .password-requirements span.is-valid::before { box-shadow: inset 0 0 0 2px #1d2635; }
html[data-theme="dark"] .account-email-summary { background: linear-gradient(135deg, var(--dark-card, #1e2838), var(--dark-card, #1a2331)); border-color: var(--dark-border, #344156); }
html[data-theme="dark"] .account-email-summary.is-verified { border-color: color-mix(in srgb, var(--teal) 38%, var(--dark-border, #344156)); }
html[data-theme="dark"] .account-email-mark,
html[data-theme="dark"] .verify-code-icon { background: rgba(56, 183, 164, .12); }
html[data-theme="dark"] .verify-code-card { background: var(--dark-card, #1b2432); border-color: var(--dark-border, #344156); box-shadow: none; }
html[data-theme="dark"] .verify-resend-row { border-color: var(--dark-border, #344156); }

@media (max-width: 700px) {
  .account-email-heading { align-items: flex-start; }
  .account-email-heading > .state { margin-left: 0; }
  .account-email-summary { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .account-email-action { grid-column: 1 / -1; width: 100%; }
  .verify-code-card { padding: 18px; }
  .verify-resend-row { align-items: flex-start; flex-direction: column; gap: 4px; }
}

/* v1.16.4 account 2FA confirmation and Cloudflare-safe identity polish */
.account-2fa-confirm-page { max-width: 760px; }
.account-2fa-confirm-heading { margin-bottom: 20px; }
.account-2fa-confirm-heading p strong { color: var(--text); font-weight: 780; }
.account-2fa-confirm-notice { margin-bottom: 14px; }
.security-confirm-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 42px rgba(25,35,50,.055);
}
.security-confirm-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 21px 22px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--soft) 86%, transparent), var(--white));
}
.security-confirm-card-head > div { min-width: 0; }
.security-confirm-card-head h2 { margin: 3px 0 5px; font-size: clamp(18px,2.1vw,23px); line-height: 1.15; }
.security-confirm-card-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.security-confirm-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  border-radius: 13px;
  color: var(--teal);
  background: var(--teal-soft);
}
.security-confirm-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.security-confirm-form { display: grid; gap: 17px; padding: 22px; }
.security-confirm-code-field { margin: 0; }
.security-confirm-code-field input {
  min-height: 58px;
  text-align: center;
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .3em;
}
.security-confirm-code-field small { margin-top: 7px; }
.security-confirm-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.security-confirm-actions .button { width: 100%; min-height: 42px; }
.security-confirm-resend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--soft) 74%, transparent);
}
.security-confirm-resend > div { min-width: 0; }
.security-confirm-resend strong { display: block; color: var(--text); font-size: 11px; }
.security-confirm-resend span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.security-confirm-resend form { margin: 0; flex: 0 0 auto; }
.security-confirm-resend-button { min-width: 150px; }
.security-confirm-resend-button:disabled { opacity: .58; cursor: default; }

html[data-theme="dark"] .security-confirm-card { background: var(--dark-card, #1b2432); border-color: var(--dark-border, #344156); box-shadow: none; }
html[data-theme="dark"] .security-confirm-card-head {
  border-bottom-color: var(--dark-border, #344156);
  background: linear-gradient(135deg, var(--dark-card, #202a39), var(--dark-card, #1b2432));
}
html[data-theme="dark"] .security-confirm-card-head h2,
html[data-theme="dark"] .security-confirm-resend strong,
html[data-theme="dark"] .account-2fa-confirm-heading p strong { color: var(--dark-text, #eef3f8); }
html[data-theme="dark"] .security-confirm-card-head p,
html[data-theme="dark"] .security-confirm-resend span { color: var(--dark-text, #aeb9c7); }
html[data-theme="dark"] .security-confirm-icon { background: rgba(56,183,164,.12); }
html[data-theme="dark"] .security-confirm-resend { border-top-color: var(--dark-border, #344156); background: var(--dark-card, #18212e); }
html[data-theme="dark"] .security-confirm-code-field input { color: #f4f7fa; background: var(--dark-card, #131b27); border-color: var(--dark-border, #3a485d); }
html[data-theme="dark"] .user-dropdown-head { border-bottom-color: var(--dark-border, #344156); }
html[data-theme="dark"] .user-dropdown-head small { color: var(--dark-text, #b9c4d1); }

@media (max-width: 620px) {
  .security-confirm-card-head,
  .security-confirm-form,
  .security-confirm-resend { padding-left: 17px; padding-right: 17px; }
  .security-confirm-actions { grid-template-columns: 1fr; }
  .security-confirm-actions .button-primary { order: -1; }
  .security-confirm-resend { align-items: stretch; flex-direction: column; gap: 11px; }
  .security-confirm-resend form,
  .security-confirm-resend-button { width: 100%; }
}

/* v1.16.5 login 2FA and admin outbound email */
.login-2fa-card { margin-top: 4px; }
.login-2fa-resend-row { margin-top: 15px; }
.auth-two-factor-body .auth-intro strong { color: var(--text); font-weight: 780; }
.auth-two-factor-body .verify-resend-button { min-width: 112px; text-align: right; }

.admin-email-compose-card { min-width: 0; }
.admin-email-form { margin-top: 6px; }
.admin-email-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-top: 1px solid var(--border); background: var(--soft); }
.admin-email-submit-row > div { min-width: 0; }
.admin-email-submit-row strong { display: block; color: var(--text); font-size: 11px; }
.admin-email-submit-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-email-info-card { padding: 20px; border: 1px solid var(--border); border-radius: 15px; background: var(--white); box-shadow: var(--shadow); }
.admin-email-info-card h3 { margin: 6px 0 8px; color: var(--text); font-size: 18px; line-height: 1.2; }
.admin-email-info-card > p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-email-rule-list { display: grid; gap: 9px; margin: 18px 0; }
.admin-email-rule-list span { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--soft); }
.admin-email-rule-list strong { color: var(--text); font-size: 13px; }
.admin-email-rule-list small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.admin-email-info-note { padding-top: 14px; border-top: 1px solid var(--border); }
html[data-theme="dark"] .admin-email-submit-row { border-top-color: var(--dark-border, #344156); background: var(--dark-card, #18212e); }
html[data-theme="dark"] .admin-email-info-card { background: var(--dark-card, #1b2432); border-color: var(--dark-border, #344156); box-shadow: none; }
html[data-theme="dark"] .admin-email-rule-list span { background: var(--dark-card, #18212e); border-color: var(--dark-border, #344156); }
html[data-theme="dark"] .admin-email-info-card h3,
html[data-theme="dark"] .admin-email-rule-list strong,
html[data-theme="dark"] .admin-email-submit-row strong { color: var(--dark-text, #eef3f8); }
html[data-theme="dark"] .admin-email-info-card > p,
html[data-theme="dark"] .admin-email-rule-list small,
html[data-theme="dark"] .admin-email-submit-row span { color: var(--dark-text, #aeb9c7); }
@media (max-width: 620px) { .admin-email-submit-row { align-items: stretch; flex-direction: column; } .admin-email-submit-row .button { width: 100%; } }

/* v1.16.6: scalable Admin lists and mail controls */
.admin-list-filter-bar {
  display:grid;
  grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(135px,.7fr)) auto;
  gap:12px;
  align-items:end;
  padding:16px 18px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--surface-soft);
}
.admin-list-filter-compact { grid-template-columns:minmax(240px,1.6fr) repeat(2,minmax(135px,.7fr)) auto; }
.admin-list-search { min-width:0; }
.admin-list-filter-actions { display:flex; gap:8px; align-items:center; }
.admin-list-range {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:9px 18px;
  border-bottom:1px solid var(--border);
  color:var(--muted);
  background:var(--white);
  font-size:9px;
}
.admin-list-range strong { color:var(--text); }
.admin-pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-top:1px solid var(--border);
  background:var(--surface-soft);
}
.admin-pagination > div { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:9px; }
.admin-pagination .button { min-height:34px; padding:0 13px; }
.admin-pagination .is-disabled { opacity:.48; pointer-events:none; }

.smtp-notification-switches { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.smtp-queue-summary {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface-soft);
}
.smtp-queue-summary span { min-width:0; }
.smtp-queue-summary strong,.smtp-queue-summary small { display:block; }
.smtp-queue-summary strong { color:var(--text); font-size:14px; }
.smtp-queue-summary small { margin-top:3px; color:var(--muted); font-size:8px; line-height:1.4; }

.admin-email-workspace { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(260px,.75fr); gap:18px; align-items:start; }
.admin-email-heading { align-items:flex-start; }
.admin-email-user-search {
  display:grid;
  grid-template-columns:minmax(220px,1.5fr) minmax(150px,.65fr) auto;
  gap:12px;
  align-items:end;
  padding:16px 18px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--surface-soft);
}
.admin-email-fields { padding-top:2px; }
.admin-email-side-stack { display:grid; gap:14px; min-width:0; }
.admin-email-queue-card { border-color:color-mix(in srgb,var(--teal) 24%,var(--border)); }

html[data-theme="dark"] .page-admin .admin-list-filter-bar,
html[data-theme="dark"] .page-admin .admin-pagination,
html[data-theme="dark"] .page-admin .admin-email-user-search,
html[data-theme="dark"] .page-admin .smtp-queue-summary { background:var(--surface-raised); border-color:var(--border); }
html[data-theme="dark"] .page-admin .admin-list-range { background:var(--white); border-color:var(--border); color:var(--dark-muted, #95a3b4); }
html[data-theme="dark"] .page-admin .admin-list-range strong,
html[data-theme="dark"] .page-admin .smtp-queue-summary strong { color:var(--dark-text, #d7e0ea); }

@media (max-width:1100px) {
  .admin-list-filter-bar,.admin-list-filter-compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-list-search { grid-column:1 / -1; }
  .admin-list-filter-actions { justify-content:flex-end; }
  .admin-email-workspace { grid-template-columns:1fr; }
  .admin-email-side-stack { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:720px) {
  .admin-list-filter-bar,.admin-list-filter-compact,.admin-email-user-search,.smtp-notification-switches,.smtp-queue-summary,.admin-email-side-stack { grid-template-columns:1fr; }
  .admin-list-search { grid-column:auto; }
  .admin-list-filter-actions { justify-content:stretch; }
  .admin-list-filter-actions > * { flex:1; }
  .admin-list-range,.admin-pagination { align-items:flex-start; flex-direction:column; }
  .admin-pagination > div:last-child { width:100%; }
  .admin-pagination .button { flex:1; justify-content:center; }
}
.page-admin .audit-filter-bar { grid-template-columns:minmax(230px,1.5fr) repeat(4,minmax(130px,.68fr)) auto; }
@media (max-width:1180px) { .page-admin .audit-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); } .page-admin .audit-search-field { grid-column:1 / -1; } }
@media (max-width:700px) { .page-admin .audit-filter-bar { grid-template-columns:1fr; } .page-admin .audit-search-field { grid-column:auto; } }

/* v1.16.9 mail usage, trusted browser and rewards layout */
.mail-usage-panel {
  display:grid;
  gap:18px;
  min-width:0;
  padding:22px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--white);
  box-shadow:var(--shadow);
}
.mail-usage-panel-compact {
  padding:18px;
  border-radius:14px;
  background:var(--surface-soft);
  box-shadow:none;
}
.mail-usage-header {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  min-width:0;
}
.mail-usage-header > div:first-child { min-width:0; }
.mail-usage-header h2 { margin:5px 0 0; color:var(--text); font-size:20px; line-height:1.2; }
.mail-usage-panel-compact .mail-usage-header h2 { font-size:16px; }
.mail-usage-total { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:flex-end; gap:6px; text-align:right; white-space:nowrap; }
.mail-usage-total strong { color:var(--text); font-size:30px; line-height:1; letter-spacing:-.8px; }
.mail-usage-total span { color:var(--muted); font-size:13px; font-weight:700; }
.mail-usage-panel-compact .mail-usage-total strong { font-size:24px; }
.mail-usage-segments { display:grid; grid-template-columns:repeat(20,minmax(2px,1fr)); gap:4px; width:100%; height:11px; }
.mail-usage-segments > span { display:block; min-width:0; border-radius:999px; background:var(--border); }
.mail-usage-segments > span.is-filled { background:var(--teal); }
.mail-usage-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.mail-usage-stats > div { min-width:0; padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }
.mail-usage-stats span,.mail-usage-stats strong { display:block; }
.mail-usage-stats span { margin-bottom:4px; color:var(--muted); font-size:11px; font-weight:700; }
.mail-usage-stats strong { color:var(--text); font-size:18px; line-height:1.1; }
.mail-usage-panel-compact .mail-usage-stats > div { padding:10px 12px; background:var(--white); }

.admin-email-overview-v2 { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(320px,.85fr); gap:18px; margin-bottom:20px; }
.email-delivery-status { min-width:0; padding:22px; border:1px solid var(--border); border-radius:18px; background:var(--white); box-shadow:var(--shadow); }
.email-delivery-status-head h2 { margin:5px 0 4px; color:var(--text); font-size:20px; line-height:1.2; }
.email-delivery-status-head p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.email-service-grid { display:grid; gap:8px; margin-top:16px; }
.email-service-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:11px; min-width:0; padding:11px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }
.email-service-dot { width:9px; height:9px; border-radius:50%; background:var(--border-strong,var(--border)); box-shadow:0 0 0 4px var(--white); }
.email-service-dot.is-on { background:var(--teal); }
.email-service-row div { min-width:0; }
.email-service-row strong,.email-service-row small { display:block; }
.email-service-row strong { color:var(--text); font-size:13px; }
.email-service-row small { margin-top:2px; overflow:hidden; color:var(--muted); font-size:10px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.email-service-row b { color:var(--text); font-size:12px; }

.trusted-device-option { display:grid; grid-template-columns:19px minmax(0,1fr); align-items:start; gap:12px; margin-top:16px; padding:14px 15px; border:1px solid var(--border); border-radius:13px; background:var(--surface-soft); user-select:none; transition:border-color .15s ease,background .15s ease; }
.trusted-device-option:focus-within { border-color:var(--teal); }
.trusted-device-table-check { margin-top:1px; }
.trusted-device-copy { min-width:0; cursor:pointer; }
.trusted-device-copy strong,.trusted-device-copy small { display:block; }
.trusted-device-copy strong { color:var(--text); font-size:13px; line-height:1.3; }
.trusted-device-copy small { margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; }

.reward-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }

html[data-theme="dark"] .mail-usage-panel,
html[data-theme="dark"] .email-delivery-status { background:var(--dark-card, #1b2432); border-color:var(--dark-border, #344156); box-shadow:none; }
html[data-theme="dark"] .mail-usage-panel-compact,
html[data-theme="dark"] .trusted-device-option,
html[data-theme="dark"] .email-service-row { background:var(--surface-raised); border-color:var(--border); }
html[data-theme="dark"] .mail-usage-panel-compact .mail-usage-stats > div,

@media (max-width:980px) { .admin-email-overview-v2 { grid-template-columns:1fr; } }
@media (max-width:760px) {
  .mail-usage-header { align-items:flex-start; flex-direction:column; gap:12px; }
  .mail-usage-total { justify-content:flex-start; text-align:left; }
  .reward-summary-grid { grid-template-columns:1fr; }
}
@media (max-width:560px) {
  .mail-usage-panel,.email-delivery-status { padding:16px; border-radius:14px; }
  .mail-usage-stats { grid-template-columns:1fr; }
  .mail-usage-segments { gap:2px; }
  .email-service-row { grid-template-columns:auto minmax(0,1fr) auto; }
  .email-service-row small { white-space:normal; }
}

/* v1.16.14 software-family allowlist */
.software-family-picker > small { display:block; margin:5px 0 10px; color:var(--muted); font-size:10px; line-height:1.5; }
.software-family-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:4px; }
.software-family-option { min-width:0; }
.software-family-option span { min-width:0; }
.software-family-option strong,.software-family-option small { overflow:hidden; text-overflow:ellipsis; }
.software-family-option small { white-space:nowrap; font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }
@media(max-width:760px){.software-family-grid{grid-template-columns:1fr}}
.soft-nav-error-notice { display:flex; align-items:center; gap:10px; }
.soft-nav-error-notice > span:nth-child(2) { flex:1 1 auto; min-width:0; }
.soft-nav-error-notice .button { flex:0 0 auto; margin-left:auto; }
@media(max-width:620px){.soft-nav-error-notice{align-items:flex-start;flex-wrap:wrap}.soft-nav-error-notice .button{margin-left:26px}}

/* v1.16.16 admin promo-code workspace */
.admin-promo-workspace { display: grid; gap: 18px; }
.admin-promo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.admin-promo-hero h2 {
  margin: 7px 0 6px;
  font-size: 24px;
  letter-spacing: -.035em;
}
.admin-promo-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.admin-promo-add-button { flex: 0 0 auto; gap: 8px; }
.admin-promo-add-icon {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}
.admin-promo-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-promo-summary-strip > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-soft);
}
.admin-promo-summary-strip span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-promo-summary-strip strong { font-size: 13px; }
.admin-promo-summary-strip small { color: var(--muted); font-size: 8px; line-height: 1.35; }
.admin-promo-list-card { min-width: 0; overflow: visible; }
.admin-promo-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 18px;
}
.admin-promo-list-head h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.admin-promo-list-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.admin-promo-filter-bar {
  margin: 0 18px;
  grid-template-columns: minmax(240px, 1fr) minmax(145px, .36fr) minmax(120px, .25fr) auto;
  border-radius: 10px;
}
.admin-promo-row-count { max-width: 150px; }
.admin-promo-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px 10px;
  color: var(--muted);
  font-size: 8px;
}
.admin-promo-list { display: grid; border-top: 1px solid var(--border); }
.admin-promo-item {
  display: grid;
  grid-template-columns: minmax(210px, .75fr) minmax(0, 1.7fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background .15s ease;
}
.admin-promo-item:hover { background: color-mix(in srgb, var(--surface-soft) 70%, var(--white)); }
.admin-promo-item-primary {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
}
.admin-promo-code-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 25%, var(--border));
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 14px;
  font-weight: 850;
}
.admin-promo-item-name { min-width: 0; }
.admin-promo-item-name > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-promo-code {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-promo-item-name p {
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-promo-item-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.admin-promo-item-details > div { min-width: 0; display: grid; gap: 3px; }
.admin-promo-item-details span {
  color: var(--muted-2);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-promo-item-details strong {
  overflow: hidden;
  color: var(--text);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-promo-item-details small {
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-promo-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-promo-item-actions form { margin: 0; }
.admin-promo-empty {
  min-height: 170px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 32px 26px;
}
.admin-promo-empty-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 17px;
  font-weight: 850;
}
.admin-promo-empty strong { font-size: 12px; }
.admin-promo-empty p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.admin-promo-pagination { padding: 15px 24px 20px; }
.admin-promo-dialog { width: min(720px, calc(100% - 32px)); }
.admin-promo-dialog-header { padding: 26px 28px 20px; }
.admin-promo-dialog-header h2 { font-size: 21px; }
.admin-promo-dialog-header p { max-width: 560px; line-height: 1.5; }
.admin-promo-dialog-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 17px;
  padding: 22px 28px;
}
.admin-promo-dialog .dialog-actions { padding: 16px 28px 24px; }
.admin-promo-dialog-note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 18px 28px 0;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--border));
  border-radius: 10px;
  background: var(--teal-soft);
}
.admin-promo-dialog-note > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--teal);
  background: var(--white);
  font-size: 13px;
  font-weight: 850;
}
.admin-promo-dialog-note strong,
.admin-promo-dialog-note small { display: block; }
.admin-promo-dialog-note strong { font-size: 9px; }
.admin-promo-dialog-note small { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.admin-promo-active { align-self: end; min-height: 48px; }
.button-ghost {
  border-color: transparent;
  color: var(--muted);
  background: transparent;
  box-shadow: none;
}
.button-ghost:hover { color: var(--text); background: var(--surface-soft); }
html[data-theme="dark"] .admin-promo-item:hover { background: var(--surface-soft); }
@media (max-width: 1180px) {
  .admin-promo-item { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.3fr); }
  .admin-promo-item-actions { grid-column: 1 / -1; justify-content: flex-end; padding-top: 3px; }
  .admin-promo-item-details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .admin-promo-summary-strip { grid-template-columns: 1fr; }
  .admin-promo-filter-bar { grid-template-columns: 1fr 1fr; }
  .admin-promo-row-count { max-width: none; }
  .admin-promo-item { grid-template-columns: 1fr; gap: 15px; }
  .admin-promo-item-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-promo-item-actions { grid-column: auto; justify-content: flex-start; }
}
@media (max-width: 650px) {
  .admin-promo-hero { align-items: flex-start; flex-direction: column; padding: 22px 20px; }
  .admin-promo-add-button { width: 100%; justify-content: center; }
  .admin-promo-filter-bar { grid-template-columns: 1fr; margin: 0 12px; }
  .admin-promo-list-head { align-items: flex-start; padding: 20px 18px 15px; }
  .admin-promo-list-meta { align-items: flex-start; flex-direction: column; gap: 4px; padding: 12px 18px 9px; }
  .admin-promo-item { padding: 17px 18px; }
  .admin-promo-item-details { grid-template-columns: 1fr 1fr; gap: 13px; }
  .admin-promo-empty { grid-template-columns: 1fr; justify-items: start; padding: 28px 20px; }
  .admin-promo-dialog-fields { grid-template-columns: 1fr; padding: 20px; }
  .admin-promo-dialog-header { padding: 22px 20px 18px; }
  .admin-promo-dialog-note { margin: 16px 20px 0; }
  .admin-promo-dialog .dialog-actions { padding: 14px 20px 20px; }
}

/* v1.16.20 keep support and account settings on the same content rail as Overview. */
.app-body .ticket-page,
.app-body .ticket-detail-page,
.app-body .account-settings-page {
  width: min(100%, var(--app-content-max, 1440px));
  max-width: var(--app-content-max, 1440px);
  margin-inline: auto;
  padding-left: var(--app-content-pad, 42px);
  padding-right: var(--app-content-pad, 42px);
}

/* v1.16.22 navigation + provisioning policy UI */
.admin-node-policy-picker > small { display: block; margin: 5px 0 14px; }
.admin-node-policy-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.admin-node-policy-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.admin-node-policy-head { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--border); background: var(--white); }
.admin-node-policy-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 9px; color: var(--teal); background: var(--teal-soft); font-size: 10px; font-weight: 850; }
.admin-node-policy-icon-premium { color: #725fc0; background: color-mix(in srgb,#725fc0 10%,var(--white)); }
.admin-node-policy-head strong,
.admin-node-policy-head small { display: block; }
.admin-node-policy-head strong { font-size: 10px; }
.admin-node-policy-head small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-node-policy-options { max-height: 310px; display: grid; gap: 7px; overflow-y: auto; padding: 10px; }
.admin-node-option { margin: 0; background: var(--white); }
.admin-node-option span { min-width: 0; }
.admin-node-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-node-option small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 720px) {
  .admin-node-policy-grid { grid-template-columns: 1fr; }
}

/* v1.16.22 shared mobile server tab rail */
@media (max-width: 700px) {
  .server-control-tabs {
    gap: 6px;
    padding: 8px;
    scroll-padding-inline: 8px;
    border-radius: 12px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .server-control-tab {
    min-height: 46px;
    gap: 7px;
    padding: 0 13px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
    scroll-snap-align: start;
  }
  .server-control-tab svg { width: 15px; height: 15px; flex: 0 0 15px; }
}


/* v1.16.26 server workspace width + Files dark-mode compatibility */
.app-body .server-overview-page,
.app-body .server-files-page,
.app-body .server-file-editor-page,
.app-body .server-tool-page {
  max-width: var(--app-content-max, 1440px);
  margin-inline: auto;
}

/* Files uses the same semantic surfaces as the rest of the portal so dark mode
   never falls back to light-only white/cream browser panels. */
.file-storage-card progress,
.file-storage-card progress::-webkit-progress-bar { background: var(--border); }
.file-search-box-v2:focus-within { background: var(--white); }
.file-search-box-v2 kbd { background: var(--white); }
.file-breadcrumb-separator { color: var(--muted-2); }
.file-browser-subbar { background: var(--surface-soft); }
.file-access-chip { background: var(--white); }
.file-table-v2 th { background: var(--surface-soft); }
.file-table-v2 td { border-bottom-color: var(--border); }
.file-row:hover td { background: var(--surface-soft); }
.file-parent-row td { background: var(--surface-soft); }
.file-icon { background: var(--surface-soft); }
.file-icon-folder {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 32%, var(--border));
  background: color-mix(in srgb, var(--amber) 9%, var(--white));
}
.file-row-action:hover,
.file-row-action:focus-visible { background: var(--white); }
.file-browser-footer-v2 { background: var(--surface-soft); }
.file-drop-overlay {
  background: color-mix(in srgb, var(--page) 91%, transparent);
}
.file-drop-overlay-card { background: var(--white); }
.file-editor-toolbar-v2 { background: var(--surface-soft); }
.file-editor-file-icon { background: var(--white); }
.file-editor-status-chip[data-tone="dirty"] {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 35%, var(--border));
  background: color-mix(in srgb, var(--amber) 10%, var(--white));
}
.file-editor-status-chip[data-tone="busy"] { background: var(--white); }
.file-editor-textarea-v2 { color: var(--text); background: var(--white); }
.file-editor-footer { background: var(--surface-soft); }

html[data-theme="dark"] .file-drop-overlay {
  background: rgba(7, 10, 15, .9);
}
html[data-theme="dark"] .file-browser-card-v2,
html[data-theme="dark"] .file-storage-card,
html[data-theme="dark"] .file-editor-card-v2 {
  border-color: var(--border);
  background: var(--surface-raised);
}
html[data-theme="dark"] .file-search-box-v2,
html[data-theme="dark"] .file-search-box-v2:focus-within {
  border-color: var(--border);
  background: var(--surface);
}
html[data-theme="dark"] .file-search-box-v2:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}
html[data-theme="dark"] .file-search-box-v2 kbd,
html[data-theme="dark"] .file-access-chip:not(.is-writable):not(.is-readonly),
html[data-theme="dark"] .file-row-action:hover,
html[data-theme="dark"] .file-row-action:focus-visible,
html[data-theme="dark"] .file-editor-file-icon,
html[data-theme="dark"] .file-editor-status-chip[data-tone="busy"] {
  background: var(--surface-raised);
}
html[data-theme="dark"] .file-table-v2 th,
html[data-theme="dark"] .file-browser-subbar,
html[data-theme="dark"] .file-browser-footer-v2,
html[data-theme="dark"] .file-editor-toolbar-v2,
html[data-theme="dark"] .file-editor-footer,
html[data-theme="dark"] .file-parent-row td,
html[data-theme="dark"] .file-row:hover td,
html[data-theme="dark"] .file-icon {
  background: var(--surface-soft);
}
html[data-theme="dark"] .file-editor-textarea-v2 {
  color: var(--dark-text, #e8edf4);
  background: var(--dark-card, #101721);
}

/* v1.16.29 file-manager row navigation */
.file-folder-row{cursor:pointer}
.file-folder-row:focus-visible{outline:2px solid var(--accent,#f3ad32);outline-offset:-2px}

/* v1.16.30 account invoices: keep billing inside the Account Settings visual system. */
.app-body .account-invoices-page,
.app-body .account-invoice-detail-page {
  width: min(100%, var(--app-content-max, 1440px));
  max-width: var(--app-content-max, 1440px);
  margin-inline: auto;
  padding-left: var(--app-content-pad, 42px);
  padding-right: var(--app-content-pad, 42px);
}
.account-invoice-history-card,
.account-invoice-detail-card { overflow: hidden; }
.account-invoice-card-heading,
.account-invoice-detail-card-heading { align-items: center; }
.account-invoice-count {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 760;
  white-space: nowrap;
}
.account-invoice-card-body { padding: 0 22px 22px; }
.account-invoice-list { display: grid; gap: 8px; }
.account-invoice-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-soft);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.account-invoice-row:hover {
  border-color: color-mix(in srgb, var(--teal) 42%, var(--border));
  background: var(--white);
  transform: translateY(-1px);
}
.account-invoice-row-icon,
.account-invoice-empty-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--teal);
  background: var(--teal-soft);
}
.account-invoice-row-icon svg,
.account-invoice-empty-icon svg,
.account-invoice-row-arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-invoice-row-main,
.account-invoice-row-total { display: grid; gap: 4px; min-width: 0; }
.account-invoice-row-main strong,
.account-invoice-row-total strong { font-size: 11px; }
.account-invoice-row-main small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.account-invoice-row-total { text-align: right; }
.account-invoice-row-total small { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; color: var(--green); font-size: 8px; font-weight: 760; }
.account-invoice-row-total small i,
.account-invoice-paid-mark i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.account-invoice-row-arrow { width: 16px; height: 16px; color: var(--muted-2); }
.account-invoice-empty { min-height: 130px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 22px; border: 1px dashed var(--border); border-radius: 12px; background: var(--surface-soft); text-align: left; }
.account-invoice-empty > div { display: grid; gap: 4px; }
.account-invoice-empty strong { font-size: 11px; }
.account-invoice-empty span { color: var(--muted); font-size: 9px; }
.account-invoice-detail-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 16px; border-bottom: 1px solid var(--border); }
.account-invoice-document { margin: 0; padding: 26px 22px 22px; }
.account-invoice-document-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.account-invoice-document-top > div { display: grid; gap: 8px; }
.account-invoice-document-top > div > span { color: var(--muted); font-size: 9px; }
.account-invoice-paid-mark { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--white)); font-size: 8px; font-weight: 800; }
.account-invoice-meta-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.account-invoice-meta-grid > div { min-width: 0; display: grid; align-content: start; gap: 5px; }
.account-invoice-meta-grid span,
.account-invoice-reference span { color: var(--muted); font-size: 8px; font-weight: 720; text-transform: uppercase; letter-spacing: .08em; }
.account-invoice-meta-grid strong { overflow-wrap: anywhere; font-size: 10px; }
.account-invoice-meta-grid small { overflow-wrap: anywhere; color: var(--muted); font-size: 8px; }
.account-invoice-line-items { padding: 22px 0; border-bottom: 1px solid var(--border); }
.account-invoice-line { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 18px; padding: 12px 0; }
.account-invoice-line-head { padding-top: 0; color: var(--muted); font-size: 8px; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.account-invoice-line > span { display: grid; gap: 4px; }
.account-invoice-line strong { font-size: 10px; }
.account-invoice-line small { color: var(--muted); font-size: 8px; }
.account-invoice-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 8px; padding-top: 15px; border-top: 1px dashed var(--border); font-size: 11px; }
.account-invoice-total strong { font-size: 16px; letter-spacing: -.02em; }
.account-invoice-reference { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding-top: 20px; }
.account-invoice-reference > div { min-width: 0; display: grid; gap: 7px; }
.account-invoice-reference code { overflow-wrap: anywhere; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-soft); font-size: 8px; }
.account-invoice-footnote { margin: 16px 0 0; color: var(--muted-2); font-size: 8px; line-height: 1.55; }
@media (max-width: 760px) {
  .account-invoice-card-heading,
  .account-invoice-detail-card-heading { align-items: flex-start; }
  .account-invoice-count { margin-left: 0; }
  .account-invoice-card-body { padding: 0 17px 17px; }
  .account-invoice-detail-actions { justify-content: stretch; padding: 0 17px 14px; }
  .account-invoice-detail-actions .button { flex: 1 1 0; }
  .account-invoice-document { padding: 20px 17px 17px; }
  .account-invoice-meta-grid { grid-template-columns: 1fr 1fr; }
  .account-invoice-reference { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .account-invoice-row { grid-template-columns: 34px minmax(0,1fr) auto; }
  .account-invoice-row-arrow { display: none; }
  .account-invoice-row-main small { white-space: normal; }
  .account-invoice-meta-grid { grid-template-columns: 1fr; }
  .account-invoice-document-top { flex-direction: column; }
}
@media print {
  body.invoice-page-body .sidebar,
  body.invoice-page-body .topbar,
  body.invoice-page-body .banner-ad,
  body.invoice-page-body .account-invoice-detail-heading,
  body.invoice-page-body .settings-nav-card,
  body.invoice-page-body .account-invoice-detail-actions { display: none !important; }
  body.invoice-page-body .app-main,
  body.invoice-page-body .main-content,
  body.invoice-page-body .account-settings-page { margin: 0 !important; padding: 0 !important; max-width: none !important; width: 100% !important; }
  body.invoice-page-body .settings-layout { display: block !important; }
  body.invoice-page-body .account-invoice-detail-card { border: 0; box-shadow: none; }
}

/* v1.16.31 responsive shell + adaptive server workspace */
.sidebar {
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--dark-card-alpha-0-16, rgba(255,255,255,.16)); }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--dark-card-alpha-0-24, rgba(255,255,255,.24)); }
.sidebar .brand { flex: 0 0 auto; }
.sidebar-footer { flex: 0 0 auto; }

/* Collapse before the fixed 288px sidebar starts squeezing tablet/narrow-laptop content. */
@media (max-width: 1120px) {
  .sidebar {
    width: min(288px, calc(100vw - 48px));
    transform: translateX(-100%);
    transition: transform .2s ease;
    box-shadow: 16px 0 45px rgba(23,29,44,.18);
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    display: block;
    border: 0;
    background: var(--dark-card-alpha-0-42, rgba(23,29,44,.42));
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .mobile-menu {
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 4px;
    margin-right: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
  }
  .mobile-menu span { width: 16px; height: 1.5px; border-radius: 2px; background: var(--muted); }
}

/* Server navigation becomes a touch-friendly horizontal rail before phone widths. */
@media (max-width: 900px) {
  .server-control-tabs {
    width: 100%;
    max-width: 100%;
    gap: 7px;
    padding: 7px;
    overflow-x: auto;
    scroll-padding-inline: 7px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .server-control-tab {
    min-height: 44px;
    padding-inline: 14px;
    scroll-snap-align: start;
    white-space: nowrap;
  }
  .server-control-tab-external { margin-left: 0; }
  .server-page-heading,
  .console-page-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .server-heading-actions,
  .console-power-actions { width: 100%; }
}

@media (max-width: 760px) {
  .server-overview-page,
  .server-files-page,
  .server-file-editor-page,
  .server-tool-page { padding-left: 16px; padding-right: 16px; }

  .server-control-tabs {
    margin-inline: -2px;
    width: calc(100% + 4px);
    border-radius: 12px;
  }
  .server-control-tab { min-height: 44px; gap: 7px; padding-inline: 12px; font-size: 10px; }

  .console-power-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .console-power-actions .button { width: 100%; justify-content: center; }
  .console-power-actions .button-primary { grid-column: 1 / -1; }

  .file-browser-tools,
  .server-files-heading .heading-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  .file-browser-tools .button,
  .file-browser-tools .file-upload-button,
  .server-files-heading .heading-actions .button,
  .server-files-heading .heading-actions .file-upload-button { width: 100%; min-width: 0; justify-content: center; }

  .file-table-v2 { min-width: 0; table-layout: auto; }
  .file-table-v2 th:nth-child(2),
  .file-table-v2 td:nth-child(2),
  .file-table-v2 th:nth-child(3),
  .file-table-v2 td:nth-child(3) { display: none; }
  .file-table-v2 th:first-child { width: auto; }
  .file-table-v2 th:last-child { width: 112px; }
  .file-table-v2 td,
  .file-table-v2 th { padding-left: 12px; padding-right: 12px; }
  .file-table-v2 td:first-child,
  .file-table-v2 th:first-child { padding-left: 14px; }
  .file-row-actions { opacity: 1; }
}

@media (max-width: 520px) {
  .page.server-overview-page,
  .page.server-files-page,
  .page.server-file-editor-page,
  .page.server-tool-page { padding-top: 22px; padding-left: 12px; padding-right: 12px; padding-bottom: 54px; }
  .server-control-tabs { gap: 5px; padding: 6px; }
  .server-control-tab { min-height: 42px; padding-inline: 10px; }
  .server-control-tab svg { width: 14px; height: 14px; }
  .console-power-actions { grid-template-columns: 1fr 1fr; }
  .file-browser-tools,
  .server-files-heading .heading-actions { grid-template-columns: 1fr; }
  .file-table-v2 th:last-child { width: 96px; }
  .file-name-link { max-width: calc(100vw - 165px); }
}

/* v1.17.1 file-manager polish */
.file-browser-tools-v3 { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: min(620px, 58vw); }
.file-browser-tools-v3 .file-search-box { flex: 1 1 260px; min-width: 200px; }
.file-tool-select { position: relative; flex: 0 0 auto; }
.file-tool-select select {
  min-width: 132px;
  height: 36px;
  padding: 0 30px 0 11px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  outline: none;
}
.file-tool-select select:focus { border-color: color-mix(in srgb, var(--teal) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 12%, transparent); }
.file-table-wrap { max-height: min(67vh, 760px); overflow: auto; }
.file-table-v2 thead { position: sticky; top: 0; z-index: 3; }
.file-table-v2 tbody .file-row { transition: background .14s ease, box-shadow .14s ease; }
.file-table-v2 tbody .file-row:hover { background: color-mix(in srgb, var(--surface-soft) 72%, transparent); }
.file-table-v2 tbody .file-folder-row:hover { cursor: pointer; }
.file-row-actions { opacity: .52; transition: opacity .14s ease; }
.file-row:hover .file-row-actions, .file-row:focus-within .file-row-actions { opacity: 1; }
.file-name-copy { min-width: 0; }
.file-name-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-browser-subbar-meta [data-file-result-count] strong { font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .file-tool-select select { background: var(--white); color: var(--text); }
@media (max-width: 1020px) {
  .file-browser-tools-v3 { width: 100%; min-width: 0; flex-wrap: wrap; justify-content: stretch; }
  .file-browser-tools-v3 .file-search-box { flex-basis: 100%; }
  .file-tool-select { flex: 1 1 150px; }
  .file-tool-select select { width: 100%; }
}
@media (max-width: 620px) {
  .file-browser-tools-v3 { display: grid; grid-template-columns: 1fr 1fr; }
  .file-browser-tools-v3 .file-search-box { grid-column: 1 / -1; min-width: 0; }
  .file-table-wrap { max-height: none; }
  .file-row-actions { opacity: 1; }
}


/* R10: Premium community-funding notice. */
.billing-nonprofit-notice { display:flex; align-items:flex-start; gap:16px; margin:-12px 0 30px; padding:19px 20px; border:1px solid var(--border); border-radius:11px; background:var(--white); box-shadow:none; }
.billing-nonprofit-icon { width:34px; height:34px; flex:0 0 34px; display:grid; place-items:center; border:1px solid var(--border); border-radius:10px; color:var(--teal); background:var(--surface-soft); font-size:15px; }
.billing-nonprofit-notice h2 { margin:5px 0 7px; color:var(--text); font-size:16px; letter-spacing:-.02em; }
.billing-nonprofit-notice p { margin:0; max-width:980px; color:var(--muted); font-size:11px; line-height:1.65; }
@media (max-width:620px) { .billing-nonprofit-notice { margin-top:-18px; padding:16px; } .billing-nonprofit-icon { display:none; } }

/* R12: authenticated errors stay inside the dashboard shell. */
.portal-error-page{display:grid;place-items:center;min-height:calc(100vh - 140px);padding-top:clamp(28px,6vw,88px);padding-bottom:clamp(36px,7vw,96px)}
.portal-error-card{width:min(760px,100%);display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;padding:clamp(24px,4vw,40px);border:1px solid var(--line,var(--dark-border, #dbe1ea));border-radius:22px;background:var(--surface,var(--dark-card, #fff));box-shadow:0 18px 50px rgba(24,35,56,.08)}
.portal-error-symbol{display:grid;place-items:center;min-width:72px;height:72px;padding:0 14px;border-radius:18px;background:rgba(239,174,38,.12);color:#b16c00;font-size:1.05rem;font-weight:900;letter-spacing:.06em}
.portal-error-copy h1{margin:.35rem 0 .7rem;font-size:clamp(1.8rem,4vw,2.65rem);line-height:1.05}
.portal-error-copy p{margin:0;max-width:58ch;color:var(--muted,var(--dark-muted, #657084));line-height:1.65}
.portal-error-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.portal-notice-region{position:relative;z-index:18;width:min(1440px,calc(100% - 48px));margin:18px auto 0;display:grid;gap:10px;pointer-events:none}
.portal-notice-region:empty{display:none}
.portal-notice-region .notice{pointer-events:auto;margin:0;box-shadow:0 10px 28px rgba(20,30,48,.1)}
.portal-notice-region .notice button{margin-left:auto;border:0;background:transparent;color:inherit;font:inherit;font-size:1.1rem;cursor:pointer;opacity:.68}
@media(max-width:720px){.portal-error-card{grid-template-columns:1fr}.portal-error-symbol{width:max-content;min-width:60px;height:60px}.portal-notice-region{width:min(100% - 24px,1440px);margin-top:12px}}

/* v1.18 Files workspace refresh */
.file-workspace-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin:8px 0 22px;
}
.file-workspace-title h1 { margin:0; font-size:34px; letter-spacing:-.045em; }
.file-workspace-title p { margin:7px 0 0; color:var(--muted); font-size:10px; }
.file-workspace-title p strong { color:var(--text); }
.file-workspace-actions { display:flex; align-items:center; gap:9px; }
.file-workspace-actions .button { min-height:38px; }
.file-workspace-actions svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.file-storage-strip {
  display:grid;
  grid-template-columns:auto minmax(150px,1fr) auto auto;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--white);
}
.file-storage-strip-label { color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.055em; }
.file-storage-strip progress { width:100%; height:8px; overflow:hidden; border:0; border-radius:999px; background:var(--surface-soft); appearance:none; }
.file-storage-strip progress::-webkit-progress-bar { background:var(--surface-soft); border-radius:999px; }
.file-storage-strip progress::-webkit-progress-value { background:var(--teal); border-radius:999px; }
.file-storage-strip progress::-moz-progress-bar { background:var(--teal); border-radius:999px; }
.file-storage-strip strong { color:var(--text); font-size:9px; font-variant-numeric:tabular-nums; }
.file-storage-strip > span:last-child { color:var(--muted); font-size:9px; white-space:nowrap; }
.file-browser-professional { overflow:hidden; border-radius:13px; box-shadow:none; }
.file-browser-commandbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:68px;
  padding:13px 15px;
  border-bottom:1px solid var(--border);
  background:var(--white);
}
.file-breadcrumbs-professional { min-width:0; display:flex; align-items:center; gap:8px; flex-wrap:nowrap; overflow:hidden; }
.file-breadcrumbs-professional a { flex:0 0 auto; max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; font-weight:760; }
.file-breadcrumbs-professional a.current { color:var(--text); }
.file-breadcrumb-root { width:30px; height:30px; flex:0 0 30px; display:grid; place-items:center; border:1px solid var(--border); border-radius:8px; color:var(--muted); background:var(--surface-soft); }
.file-breadcrumb-root svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.file-browser-tools-professional { min-width:min(600px,55vw); }
.file-browser-tools-professional .file-search-box-v2 { min-height:38px; background:var(--surface-soft); }
.file-browser-contextbar { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:42px; padding:0 15px; border-bottom:1px solid var(--border); background:var(--surface-soft); color:var(--muted); font-size:9px; }
.file-browser-contextbar > div { min-width:0; display:flex; align-items:center; gap:7px; }
.file-browser-contextbar .mono-value { max-width:min(560px,54vw); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
.file-context-separator { opacity:.55; }
.file-browser-professional .file-table-v2 { min-width:720px; }
.file-browser-professional .file-table-v2 thead th { height:42px; padding-top:0; padding-bottom:0; background:var(--white); color:var(--muted); font-size:8px; font-weight:850; text-transform:uppercase; letter-spacing:.055em; }
.file-browser-professional .file-table-v2 tbody td { height:52px; padding-top:7px; padding-bottom:7px; border-top:1px solid color-mix(in srgb,var(--border) 72%,transparent); }
.file-browser-professional .file-name-copy strong { font-size:10px; font-weight:750; }
.file-browser-professional .file-name-copy small { margin-top:2px; font-size:8px; }
.file-browser-professional .file-icon { width:30px; height:30px; border-radius:8px; background:var(--surface-soft); }
.file-browser-professional .file-icon-folder { color:#d1a520; background:color-mix(in srgb,#d1a520 12%,var(--white)); }
.file-browser-professional .file-row-action { width:30px; height:30px; border-radius:8px; }
.file-browser-professional .file-browser-footer-v2 { min-height:40px; }
html[data-theme="dark"] .file-storage-strip,
html[data-theme="dark"] .file-browser-commandbar,
html[data-theme="dark"] .file-browser-professional .file-table-v2 thead th { background:var(--white); }
html[data-theme="dark"] .file-breadcrumb-root,
html[data-theme="dark"] .file-browser-tools-professional .file-search-box-v2,
html[data-theme="dark"] .file-browser-contextbar,
html[data-theme="dark"] .file-browser-professional .file-icon { background:var(--surface-soft); }
@media (max-width:1050px) {
  .file-browser-commandbar { align-items:stretch; flex-direction:column; }
  .file-browser-tools-professional { width:100%; min-width:0; }
  .file-breadcrumbs-professional { min-height:34px; }
}
@media (max-width:700px) {
  .file-workspace-heading { align-items:stretch; flex-direction:column; }
  .file-workspace-actions { display:grid; grid-template-columns:1fr 1fr; }
  .file-workspace-actions .button { width:100%; justify-content:center; }
  .file-storage-strip { grid-template-columns:auto 1fr auto; gap:9px; }
  .file-storage-strip > span:last-child { grid-column:1/-1; }
  .file-browser-contextbar { align-items:flex-start; flex-direction:column; justify-content:center; gap:7px; padding-top:9px; padding-bottom:9px; }
  .file-browser-contextbar .mono-value { max-width:72vw; }
}

/* v1.18 native Spiget plugin manager */
.server-plugin-page { max-width:var(--app-content-max,1440px); }
.plugin-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:10px 0 26px; }
.plugin-page-heading h1 { margin:5px 0 8px; font-size:34px; letter-spacing:-.045em; }
.plugin-page-heading p { max-width:760px; margin:0; color:var(--muted); font-size:10px; line-height:1.6; }
.plugin-page-heading code { color:var(--text); }
.plugin-compatibility-panel { display:grid; grid-template-columns:auto minmax(0,1fr); gap:18px; align-items:start; margin-bottom:26px; padding:22px; border:1px solid var(--border); border-radius:14px; background:var(--white); }
.plugin-compatibility-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:10px; color:var(--muted); background:var(--surface-soft); }
.plugin-compatibility-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.plugin-compatibility-panel h2 { margin:5px 0 7px; font-size:17px; }
.plugin-compatibility-panel p { margin:0; max-width:780px; color:var(--muted); font-size:10px; line-height:1.6; }
.plugin-manager-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); margin-bottom:24px; border:1px solid var(--border); border-radius:13px; background:var(--white); overflow:hidden; }
.plugin-manager-summary > div { display:grid; gap:5px; padding:16px 18px; border-right:1px solid var(--border); }
.plugin-manager-summary > div:last-child { border-right:0; }
.plugin-manager-summary span { color:var(--muted); font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.055em; }
.plugin-manager-summary strong { color:var(--text); font-size:14px; }
.plugin-installed-section { margin-bottom:28px; }
.plugin-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:11px; }
.plugin-section-heading h2 { margin:4px 0 0; font-size:18px; letter-spacing:-.025em; }
.plugin-section-count { color:var(--muted); font-size:9px; }
.plugin-installed-list { border:1px solid var(--border); border-radius:13px; overflow:hidden; background:var(--white); }
.plugin-installed-row { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:13px; min-height:58px; padding:10px 13px; border-top:1px solid var(--border); }
.plugin-installed-row:first-child { border-top:0; }
.plugin-installed-mark { position:relative; width:32px; height:32px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--border); border-radius:8px; color:var(--teal); background:var(--teal-soft); font-size:10px; font-weight:900; }
.plugin-installed-mark img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--surface-soft); }
.plugin-installed-mark img[hidden] { display:none; }
.plugin-installed-row.is-detected .plugin-installed-mark { color:var(--muted); background:var(--surface-soft); }
.plugin-installed-copy { min-width:0; display:grid; gap:2px; }
.plugin-installed-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.plugin-installed-copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace; font-size:8px; }
.plugin-managed-label,.plugin-detected-label { padding:5px 7px; border-radius:999px; color:var(--teal); background:var(--teal-soft); font-size:8px; font-weight:800; }
.plugin-detected-label { color:var(--muted); background:var(--surface-soft); }
.plugin-catalogue-section { margin-top:10px; padding-top:28px; border-top:1px solid var(--border); }
.plugin-catalogue-head { display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,520px); gap:30px; align-items:end; margin-bottom:20px; }
.plugin-catalogue-head h2 { margin:5px 0 7px; font-size:22px; letter-spacing:-.03em; }
.plugin-catalogue-head p { margin:0; max-width:650px; color:var(--muted); font-size:10px; line-height:1.6; }
.plugin-search-form { display:flex; gap:8px; }
.plugin-search-form label { flex:1; min-width:0; display:flex; align-items:center; gap:9px; min-height:40px; padding:0 12px; border:1px solid var(--border); border-radius:10px; background:var(--white); }
.plugin-search-form label:focus-within { border-color:color-mix(in srgb,var(--teal) 55%,var(--border)); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 10%,transparent); }
.plugin-search-form svg { width:15px; height:15px; flex:0 0 15px; fill:none; stroke:var(--muted); stroke-width:1.8; }
.plugin-search-form input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:10px; }
.plugin-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.plugin-card { min-width:0; display:flex; flex-direction:column; min-height:238px; padding:17px; border:1px solid var(--border); border-radius:13px; background:var(--white); }
.plugin-card-top { display:flex; align-items:center; gap:11px; }
.plugin-card-icon { position:relative; width:38px; height:38px; flex:0 0 38px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--border); border-radius:9px; background:var(--surface-soft); }
.plugin-card-icon-fallback { font-size:12px; font-weight:900; color:var(--teal); }
.plugin-card-icon img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--surface-soft); }
.plugin-card-icon img[hidden] { display:none; }
.plugin-card-title { min-width:0; }
.plugin-card-title h3 { margin:0 0 3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; letter-spacing:-.018em; }
.plugin-card-title span { color:var(--muted); font-size:8px; }
.plugin-card > p { flex:1; margin:14px 0; color:var(--muted); font-size:9px; line-height:1.55; }
.plugin-version-line { display:grid; gap:4px; margin-bottom:14px; padding-top:11px; border-top:1px solid var(--border); }
.plugin-version-line span { color:var(--muted); font-size:7px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.plugin-version-line strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:8px; }
.plugin-card-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; }
.plugin-card-actions form { margin:0; }
.plugin-pagination { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:12px; margin-top:20px; }
.plugin-pagination > :last-child { justify-self:end; }
.plugin-pagination > span:nth-child(2) { color:var(--muted); font-size:9px; }
.plugin-empty-state { display:grid; place-items:center; gap:4px; min-height:180px; color:var(--muted); text-align:center; }
.plugin-empty-state strong { color:var(--text); font-size:13px; }
.plugin-empty-state span { font-size:9px; }
.plugin-search-empty { grid-template-columns:auto minmax(0,1fr) auto; place-items:center stretch; gap:15px; min-height:0; margin-top:4px; padding:18px 19px; border:1px dashed color-mix(in srgb,var(--border) 82%,var(--teal)); border-radius:14px; background:linear-gradient(135deg,color-mix(in srgb,var(--teal-soft) 42%,var(--white)),var(--white) 58%); text-align:left; }
.plugin-empty-icon { width:42px; height:42px; display:grid; place-items:center; border:1px solid color-mix(in srgb,var(--teal) 22%,var(--border)); border-radius:11px; background:var(--white); box-shadow:0 5px 15px rgba(15,23,42,.05); }
.plugin-empty-icon svg { width:19px; height:19px; fill:none; stroke:var(--teal); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.plugin-empty-copy { min-width:0; display:grid; gap:5px; }
.plugin-search-empty .plugin-empty-copy strong { font-size:12px; letter-spacing:-.012em; }
.plugin-search-empty .plugin-empty-copy span { max-width:720px; font-size:9px; line-height:1.55; }
.plugin-search-empty .plugin-empty-copy b { color:var(--text); font-weight:800; }
@media (max-width:1050px) { .plugin-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .plugin-catalogue-head { grid-template-columns:1fr; } }
@media (max-width:720px) {
  .plugin-page-heading { align-items:stretch; flex-direction:column; }
  .plugin-manager-summary { grid-template-columns:1fr; }
  .plugin-manager-summary > div { border-right:0; border-top:1px solid var(--border); }
  .plugin-manager-summary > div:first-child { border-top:0; }
  .plugin-installed-row { grid-template-columns:auto minmax(0,1fr) auto; }
  .plugin-installed-row form,.plugin-installed-row > .button { grid-column:2/-1; justify-self:start; }
  .plugin-card-grid { grid-template-columns:1fr; }
  .plugin-search-form { align-items:stretch; flex-direction:column; }
  .plugin-search-empty { grid-template-columns:auto minmax(0,1fr); }
  .plugin-search-empty > .button { grid-column:2; justify-self:start; }
}

/* v1.18 Files multi-select workspace */
.file-name-header,.file-name-cell { display:flex; align-items:center; gap:12px; min-width:0; }
.file-name-cell-main { min-width:0; flex:1; }
.file-select-checkbox { width:16px; height:16px; margin:0; flex:0 0 16px; accent-color:var(--teal); cursor:pointer; }
.file-browser-professional .file-row.is-selected td { background:color-mix(in srgb,var(--teal) 7%,var(--white)); }
.file-browser-professional .file-row.is-selected td:first-child { box-shadow:inset 2px 0 0 var(--teal); }
.file-selection-bar { position:fixed; left:calc(var(--sidebar-width, 238px) + (100vw - var(--sidebar-width, 238px))/2); bottom:24px; z-index:90; transform:translateX(-50%); display:flex; align-items:center; gap:18px; min-width:310px; max-width:min(620px,calc(100vw - 32px)); padding:9px 10px 9px 15px; border:1px solid var(--border); border-radius:12px; background:var(--white); box-shadow:0 16px 45px rgba(0,0,0,.18); }
.file-selection-bar[hidden] { display:none; }
.file-selection-count { min-width:0; flex:1; display:flex; align-items:baseline; gap:6px; }
.file-selection-count strong { font-size:12px; }
.file-selection-count span { color:var(--muted); font-size:9px; }
.file-selection-actions { display:flex; align-items:center; gap:7px; }
.file-selection-actions .button { min-height:32px; padding:7px 10px; }
.file-selection-actions svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; }
@media (max-width:1120px) { .file-selection-bar { left:50%; } }
@media (max-width:540px) { .file-selection-bar { bottom:14px; width:calc(100vw - 24px); min-width:0; } .file-selection-actions .button-secondary { display:none; } }

/* v1.19 Files — natural-flow file browser. No nested scrolling or filename
   truncation: long names wrap and the document itself owns page scrolling. */
.server-files-page .file-workspace-heading {
  align-items:center;
  margin:8px 0 18px;
  padding-bottom:18px;
  border-bottom:1px solid var(--border);
}
.server-files-page .file-workspace-title h1 { font-size:36px; }
.server-files-page .file-workspace-title p { font-size:9px; }
.server-files-page .file-storage-strip {
  grid-template-columns:auto minmax(220px,1fr) auto;
  gap:12px;
  margin-bottom:16px;
  padding:10px 2px 14px;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:transparent;
}
.server-files-page .file-storage-strip > span:last-child {
  grid-column:2/-1;
  justify-self:end;
  margin-top:-3px;
}
.server-files-page .file-storage-strip progress { height:7px; }
.server-files-page .file-browser-professional {
  overflow:visible;
  border:1px solid var(--border);
  border-radius:15px;
  background:var(--white);
  box-shadow:0 12px 30px rgba(16,28,48,.035);
}
.server-files-page .file-browser-commandbar {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:stretch;
  gap:12px;
  min-height:0;
  padding:15px;
  border-bottom:1px solid var(--border);
  border-radius:15px 15px 0 0;
}
.server-files-page .file-breadcrumbs-professional {
  flex-wrap:wrap;
  overflow:visible;
  gap:7px;
  min-height:32px;
}
.server-files-page .file-breadcrumbs-professional a {
  max-width:none;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:10px;
}
.server-files-page .file-browser-tools-professional {
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(135px,auto) minmax(135px,auto);
  gap:8px;
}
.server-files-page .file-browser-tools-professional .file-search-box-v2,
.server-files-page .file-browser-tools-professional .file-tool-select {
  min-width:0;
}
.server-files-page .file-browser-contextbar {
  min-height:40px;
  padding:0 15px;
  background:color-mix(in srgb,var(--surface-soft) 78%,transparent);
}
.server-files-page .file-browser-contextbar .mono-value {
  max-width:none;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  overflow-wrap:anywhere;
}
.server-files-page .file-table-wrap {
  width:100%;
  max-height:none !important;
  overflow:visible !important;
}
.server-files-page .file-table-v2 {
  width:100%;
  min-width:0 !important;
  table-layout:auto !important;
}
.server-files-page .file-table-v2 thead { position:static !important; }
.server-files-page .file-table-v2 th {
  height:39px;
  padding:0 15px;
  background:var(--white);
  color:var(--muted);
  font-size:7.5px;
  letter-spacing:.065em;
}
.server-files-page .file-table-v2 th:first-child { width:58%; padding-left:16px; }
.server-files-page .file-table-v2 th:nth-child(2) { width:11%; }
.server-files-page .file-table-v2 th:nth-child(3) { width:20%; }
.server-files-page .file-table-v2 th:last-child { width:11%; min-width:118px; }
.server-files-page .file-table-v2 td {
  height:auto;
  min-height:58px;
  padding:10px 15px;
  vertical-align:middle;
}
.server-files-page .file-table-v2 td:first-child { padding-left:16px; }
.server-files-page .file-row { background:transparent; }
.server-files-page .file-row:hover { background:color-mix(in srgb,var(--surface-soft) 70%,transparent); }
.server-files-page .file-name-cell,
.server-files-page .file-name-cell-main,
.server-files-page .file-name-link,
.server-files-page .file-name-copy { min-width:0; }
.server-files-page .file-name-link { width:100%; max-width:none !important; }
.server-files-page .file-name-copy { width:100%; }
.server-files-page .file-name-copy strong {
  display:block;
  max-width:none;
  overflow:visible !important;
  text-overflow:clip !important;
  white-space:normal !important;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-size:10.5px;
  line-height:1.35;
}
.server-files-page .file-name-copy small {
  display:block;
  max-width:none;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  margin-top:3px;
  font-size:7.5px;
}
.server-files-page .file-icon {
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:9px;
}
.server-files-page .file-row-actions { opacity:.62; }
.server-files-page .file-browser-footer-v2 {
  min-height:42px;
  border-radius:0 0 15px 15px;
}
html[data-theme="dark"] .server-files-page .file-storage-strip { background:transparent; }
@media (max-width:820px) {
  .server-files-page .file-browser-tools-professional { grid-template-columns:1fr 1fr; }
  .server-files-page .file-browser-tools-professional .file-search-box-v2 { grid-column:1/-1; }
  .server-files-page .file-table-v2 th:nth-child(3),
  .server-files-page .file-table-v2 td:nth-child(3) { display:none; }
  .server-files-page .file-table-v2 th:first-child { width:auto; }
  .server-files-page .file-table-v2 th:nth-child(2) { width:92px; }
  .server-files-page .file-table-v2 th:last-child { width:110px; min-width:110px; }
}
@media (max-width:600px) {
  .server-files-page .file-storage-strip { grid-template-columns:auto 1fr auto; }
  .server-files-page .file-storage-strip > span:last-child { grid-column:1/-1; justify-self:start; margin-top:0; }
  .server-files-page .file-browser-tools-professional { grid-template-columns:1fr; }
  .server-files-page .file-browser-tools-professional .file-search-box-v2 { grid-column:auto; }
  .server-files-page .file-table-v2 th:nth-child(2),
  .server-files-page .file-table-v2 td:nth-child(2) { display:none; }
  .server-files-page .file-table-v2 th:last-child { width:98px; min-width:98px; }
  .server-files-page .file-table-v2 th,
  .server-files-page .file-table-v2 td { padding-left:10px; padding-right:10px; }
  .server-files-page .file-table-v2 th:first-child,
  .server-files-page .file-table-v2 td:first-child { padding-left:12px; }
  .server-files-page .file-name-cell { gap:8px; }
  .server-files-page .file-name-link { gap:9px; }
  .server-files-page .file-icon { width:29px; height:29px; flex-basis:29px; }
}

/* v1.16.31 r32 — in-panel plugin details and same-origin icon proxy. */
.plugin-details-dialog {
  width:min(760px,calc(100vw - 28px));
  max-height:min(86vh,820px);
  padding:0;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--white);
  color:var(--text);
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.plugin-details-dialog::backdrop { background:rgba(8,13,23,.62); backdrop-filter:blur(3px); }
.plugin-details-dialog-shell { display:flex; flex-direction:column; max-height:min(86vh,820px); padding:24px; }
.plugin-details-dialog-header { align-items:flex-start; }
.plugin-details-heading { min-width:0; display:flex; align-items:center; gap:14px; }
.plugin-details-heading > div { min-width:0; }
.plugin-details-heading h2 { margin:5px 0 5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:23px; letter-spacing:-.035em; }
.plugin-details-heading p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.plugin-details-icon { position:relative; width:58px; height:58px; flex:0 0 58px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--border); border-radius:13px; background:var(--surface-soft); }
.plugin-details-icon-fallback { color:var(--teal); font-size:18px; font-weight:900; }
.plugin-details-icon img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--surface-soft); }
.plugin-details-icon img[hidden] { display:none; }
.plugin-details-state { min-height:150px; display:grid; place-items:center; color:var(--muted); font-size:10px; text-align:center; }
.plugin-details-state[hidden] { display:none; }
.plugin-details-content { min-height:0; overflow:auto; margin-top:18px; padding-right:4px; }
.plugin-details-content[hidden] { display:none; }
.plugin-details-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; }
.plugin-details-stats > div { min-width:0; padding:12px; border:1px solid var(--border); border-radius:11px; background:var(--surface-soft); }
.plugin-details-stats span,.plugin-details-compatibility > span { display:block; margin-bottom:4px; color:var(--muted); font-size:7px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.plugin-details-stats strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:10px; }
.plugin-details-compatibility { margin-top:10px; padding:12px; border:1px solid var(--border); border-radius:11px; }
.plugin-details-compatibility[hidden] { display:none; }
.plugin-details-compatibility strong { display:block; color:var(--text); font-size:9px; line-height:1.55; }
.plugin-details-about { margin-top:18px; padding-top:18px; border-top:1px solid var(--border); }
.plugin-details-description { margin-top:9px; white-space:pre-wrap; overflow-wrap:anywhere; color:var(--muted); font-size:10px; line-height:1.65; }
.plugin-details-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:20px; padding-top:16px; border-top:1px solid var(--border); }
@media (max-width:700px) {
  .plugin-details-dialog-shell { padding:19px; }
  .plugin-details-heading { align-items:flex-start; }
  .plugin-details-icon { width:48px; height:48px; flex-basis:48px; }
  .plugin-details-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .plugin-details-dialog-actions { flex-direction:column-reverse; }
  .plugin-details-dialog-actions .button { width:100%; justify-content:center; }
}

/* v1.19 external plugin handoff. Third-party resources always require an
   explicit second click before a new window is opened. */
.plugin-external-dialog {
  width:min(520px,calc(100vw - 28px));
  padding:0;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--white);
  color:var(--text);
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.plugin-external-dialog::backdrop { background:rgba(8,13,23,.62); backdrop-filter:blur(3px); }
.plugin-external-dialog-shell { padding:24px; }
.plugin-external-dialog-icon {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  border-radius:12px;
  color:var(--teal);
  background:var(--teal-soft);
}
.plugin-external-dialog-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.plugin-external-dialog-copy h2 { margin:6px 0 9px; font-size:22px; letter-spacing:-.035em; }
.plugin-external-dialog-copy p { margin:0; color:var(--muted); font-size:10px; line-height:1.65; }
.plugin-external-dialog-copy p strong { color:var(--text); overflow-wrap:anywhere; }
.plugin-external-dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }
@media (max-width:520px) {
  .plugin-external-dialog-shell { padding:20px; }
  .plugin-external-dialog-actions { flex-direction:column-reverse; }
  .plugin-external-dialog-actions .button { width:100%; justify-content:center; }
}

/* v1.16.31 r3 — contextual server navigation */
.sidebar-server-context .brand { padding-bottom: 15px; }
.sidebar-server-back-section { margin-top: 10px; padding: 0 12px 12px; border-bottom: 1px solid rgba(255,255,255,.075); }
.sidebar-server-back { color: var(--dark-text-alpha-0-72, rgba(229,235,243,.72)); }
.sidebar-server-back:hover { color: #fff; }
.sidebar-server-section { margin-top: 14px; padding: 0 12px; }
.sidebar-server-nav { gap: 2px; }
.sidebar-server-nav .sidebar-link { min-height: 40px; padding-top: 8px; padding-bottom: 8px; }
.sidebar-server-nav .sidebar-link svg { width: 17px; height: 17px; }
.sidebar-server-panel-section { margin-top: 10px; padding: 10px 12px 0; border-top: 1px solid rgba(255,255,255,.075); }
.sidebar-server-external { color: var(--dark-text-alpha-0-7, rgba(229,235,243,.7)); }
.sidebar-server-context .sidebar-footer { margin-top: auto; }
@media (max-height: 760px) and (min-width: 761px) {
  .sidebar-server-context .brand { padding-top: 17px; padding-bottom: 10px; }
  .sidebar-server-nav .sidebar-link { min-height: 36px; }
  .sidebar-server-section { margin-top: 10px; }
}


/* v1.16.31 r4 — server navigation + legal consent polish */
.plugin-pagination > :first-child { justify-self:start; width:auto; }
.plugin-pagination > :last-child { justify-self:end; width:auto; }
.plugin-pagination .button { min-width:86px; justify-content:center; }
.sidebar-server-context .brand { padding-bottom:18px; }
.sidebar-server-back-section { margin-top:2px; }

.legal-consent-option {
  display:grid;
  grid-template-columns:19px minmax(0,1fr);
  align-items:start;
  gap:12px;
  margin:16px 0 0;
  padding:14px 15px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--surface-soft);
  user-select:none;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease;
}
.legal-consent-option:focus-within { border-color:var(--teal); box-shadow:0 0 0 3px color-mix(in srgb,var(--teal) 10%,transparent); }
.legal-consent-check { margin-top:1px; }
.legal-consent-copy { min-width:0; cursor:pointer; }
.legal-consent-copy strong,.legal-consent-copy small { display:block; }
.legal-consent-copy strong { color:var(--text); font-size:12px; line-height:1.35; }
.legal-consent-copy small { margin-top:4px; color:var(--muted); font-size:10px; line-height:1.5; }
.legal-consent-copy a { color:var(--teal); font-weight:750; text-decoration:none; }
.legal-consent-copy a:hover { text-decoration:underline; }
html[data-theme="dark"] .legal-consent-option { background:var(--surface-raised); border-color:var(--border); }
.auth-form .legal-consent-option { margin-top:4px; }

.paypal-brand-lockup { display:inline-flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; }
.paypal-brand-lockup .brand-mark { width:28px; height:28px; }
.paypal-brand-lockup strong { font-size:13px; letter-spacing:-.02em; }
.paypal-popup-result-brand { margin-bottom:18px; justify-self:center; }

/* v1.16.31 r6 — server workspace sidebar matches the primary sidebar footprint. */
.sidebar-server-context {
  width: 288px;
  height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.sidebar-server-context .sidebar-server-back-section,
.sidebar-server-context .sidebar-server-section,
.sidebar-server-context .sidebar-server-panel-section {
  padding-left: 0;
  padding-right: 0;
}
.sidebar-server-context .sidebar-server-back-section { padding-bottom: 12px; }
.sidebar-server-context .sidebar-server-panel-section { padding-top: 10px; }
@media (max-width: 1120px) {
  .sidebar-server-context { width: min(288px, calc(100vw - 32px)); }
}
@media (max-width: 420px) {
  .sidebar-server-context { width: min(288px, calc(100vw - 20px)); }
  .sidebar-server-context .brand { padding-top: 2px; }
}

/* v1.16.31 r7 — final production billing recovery, Free resource upgrades,
   managed-plugin dialog, and small-screen Admin email polish. */
.sidebar-link-billing-hold {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 7%, transparent);
}
.sidebar-link-billing-hold svg { stroke: currentColor; }
.sidebar-link-billing-hold.active {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, var(--white));
}

.plugin-manager-summary-r7 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.plugin-manager-summary-r7 .plugin-managed-summary-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-width:0;
}
.plugin-managed-summary-item > div { min-width:0; display:grid; gap:5px; }
.plugin-manager-summary-r7 .button { flex:0 0 auto; justify-self:auto; }
.plugin-managed-dialog {
  width:min(720px,calc(100vw - 30px));
  max-height:min(760px,calc(100dvh - 30px));
  padding:0;
  border:1px solid var(--border);
  border-radius:18px;
  color:var(--text);
  background:var(--white);
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.plugin-managed-dialog::backdrop { background:rgba(9,15,24,.55); backdrop-filter:blur(3px); }
.plugin-managed-dialog-shell { display:grid; min-height:0; }
.plugin-managed-dialog .dialog-header { padding:22px 22px 18px; border-bottom:1px solid var(--border); }
.plugin-managed-dialog .dialog-header h2 { margin:5px 0 5px; font-size:20px; letter-spacing:-.03em; }
.plugin-managed-dialog .dialog-header p { max-width:580px; margin:0; color:var(--muted); font-size:11px; line-height:1.55; }
.plugin-managed-dialog-list { max-height:min(440px,52dvh); overflow:auto; overscroll-behavior:contain; }
.plugin-managed-dialog-list .plugin-installed-row { grid-template-columns:auto minmax(0,1fr) auto; padding:12px 18px; }
.plugin-managed-dialog .dialog-actions { padding:14px 18px; border-top:1px solid var(--border); }
.plugin-managed-empty { min-height:190px; padding:24px; }
html[data-theme="dark"] .plugin-managed-dialog { background:var(--surface-raised); }

.server-billing-hold-page { max-width:1220px; }
.server-resource-upgrade-page { max-width:var(--app-content-max,1440px); }
.billing-hold-hero,
.server-resource-upgrade-heading {
  display:flex;
  align-items:flex-start;
  gap:16px;
  margin:8px 0 22px;
  padding-bottom:20px;
  border-bottom:1px solid var(--border);
}
.billing-hold-icon {
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--red) 26%,var(--border));
  border-radius:13px;
  color:var(--red);
  background:var(--red-soft);
}
.billing-hold-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.8; }
.billing-hold-hero h1,
.server-resource-upgrade-heading h1 { margin:5px 0 6px; font-size:30px; line-height:1.08; letter-spacing:-.04em; }
.billing-hold-hero p,
.server-resource-upgrade-heading p { max-width:760px; margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.billing-hold-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr); gap:18px; align-items:start; }
.server-resource-upgrade-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:18px; align-items:start; }
.billing-hold-card,
.server-resource-upgrade-card,
.server-resource-upgrade-summary {
  min-width:0;
  padding:22px;
  border:1px solid var(--border);
  border-radius:17px;
  background:var(--white);
  box-shadow:var(--shadow);
}
.billing-hold-card-head h2,
.server-resource-upgrade-card-head h2 { margin:6px 0 5px; font-size:25px; line-height:1.1; letter-spacing:-.035em; }
.billing-hold-card-head p,
.server-resource-upgrade-card-head p { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.billing-hold-balance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:20px 0; }
.billing-hold-balance > div { min-width:0; padding:13px 14px; border:1px solid var(--border); border-radius:12px; background:var(--surface-soft); }
.billing-hold-balance span,.billing-hold-balance strong { display:block; }
.billing-hold-balance span { margin-bottom:4px; color:var(--muted); font-size:9px; font-weight:750; }
.billing-hold-balance strong { font-size:17px; letter-spacing:-.02em; }
.billing-hold-balance .is-short strong { color:var(--red); }
.billing-hold-balance .is-ready strong { color:var(--teal); }
.billing-hold-pay-form { display:grid; gap:14px; margin-top:16px; }
.billing-hold-deadline-card h2 { margin:6px 0 6px; font-size:20px; letter-spacing:-.025em; }
.billing-hold-deadline-card > p { margin:0; color:var(--muted); font-size:11px; line-height:1.6; }
.billing-hold-details { display:grid; gap:0; margin:18px 0 14px; border-top:1px solid var(--border); }
.billing-hold-details > div { display:flex; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--border); }
.billing-hold-details dt { color:var(--muted); font-size:10px; }
.billing-hold-details dd { margin:0; max-width:58%; overflow-wrap:anywhere; color:var(--text); font-size:10px; font-weight:800; text-align:right; }
.billing-hold-footnote { padding-top:2px; }

.server-resource-upgrade-heading { display:block; }
.server-resource-upgrade-card { padding:0; overflow:hidden; }
.server-resource-upgrade-card-head { padding:22px; border-bottom:1px solid var(--border); }
.server-resource-upgrade-fields { display:grid; gap:15px; padding:20px 22px; }
.server-resource-upgrade-actions { display:flex; justify-content:flex-end; padding:16px 22px; border-top:1px solid var(--border); background:var(--surface-soft); }
.server-resource-upgrade-summary { position:static; width:100%; padding:0; overflow:hidden; }
.server-resource-summary-head { display:flex; align-items:flex-end; justify-content:space-between; gap:28px; padding:22px 24px; border-bottom:1px solid var(--border); }
.server-resource-summary-head > div { min-width:0; }
.server-resource-summary-head h2 { margin:6px 0 0; font-size:20px; line-height:1.15; letter-spacing:-.025em; }
.server-resource-summary-head > p { max-width:560px; margin:0; color:var(--muted); font-size:11px; line-height:1.6; text-align:right; }
.server-resource-summary-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:20px 24px 18px; }
.server-resource-summary-metric { min-width:0; padding:17px 18px; border:1px solid var(--border); border-radius:13px; background:var(--surface-soft); }
.server-resource-summary-metric.is-primary { border-color:color-mix(in srgb,var(--teal) 34%,var(--border)); background:color-mix(in srgb,var(--teal) 6%,var(--white)); }
.server-resource-summary-metric > span { display:block; margin-bottom:8px; color:var(--muted); font-size:10px; font-weight:750; letter-spacing:.01em; }
.server-resource-summary-metric strong { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px; color:var(--text); font-size:22px; line-height:1.1; letter-spacing:-.03em; }
.server-resource-summary-metric.is-primary strong { color:var(--teal); }
.server-resource-summary-metric strong small { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:0; }
.server-resource-summary-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0 24px; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.server-resource-summary-details > div { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 15px; }
.server-resource-summary-details > div + div { border-left:1px solid var(--border); }
.server-resource-summary-details span { color:var(--muted); font-size:10px; }
.server-resource-summary-details strong { color:var(--text); font-size:11px; text-align:right; }
.server-resource-summary-note { display:flex; align-items:flex-start; gap:10px; margin:16px 24px 0; padding:13px 14px; border-radius:11px; color:var(--muted); background:var(--surface-soft); }
.server-resource-summary-note svg { width:17px; height:17px; flex:0 0 17px; margin-top:1px; fill:none; stroke:var(--teal); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.server-resource-summary-note p { margin:0; font-size:10px; line-height:1.55; }
.server-resource-pool-mini { display:grid; grid-template-columns:minmax(220px,1.25fr) repeat(3,minmax(0,1fr)); gap:10px; margin-top:20px; padding:18px 24px 22px; border-top:1px solid var(--border); }
.server-resource-pool-mini > header { display:flex; justify-content:center; flex-direction:column; min-width:0; padding-right:10px; }
.server-resource-pool-mini > header span { color:var(--text); font-size:11px; font-weight:800; }
.server-resource-pool-mini > header small { margin-top:4px; color:var(--muted); font-size:9px; }
.server-resource-pool-mini > div { min-width:0; padding:11px 13px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.server-resource-pool-mini strong,.server-resource-pool-mini small { display:block; }
.server-resource-pool-mini strong { overflow-wrap:anywhere; color:var(--text); font-size:13px; }
.server-resource-pool-mini small { margin-top:3px; color:var(--muted); font-size:9px; }
html[data-theme="dark"] .billing-hold-card,
html[data-theme="dark"] .server-resource-upgrade-card,
html[data-theme="dark"] .server-resource-upgrade-summary { background:var(--surface-raised); box-shadow:none; }

/* Admin > Email: keep every control readable and tappable on narrow phones. */
@media (max-width:680px) {
  [data-admin-panel="email"] .admin-email-overview-v2,
  [data-admin-panel="email"] .admin-email-workspace,
  [data-admin-panel="email"] .admin-email-side-stack { grid-template-columns:minmax(0,1fr); gap:12px; }
  [data-admin-panel="email"] .mail-usage-panel,
  [data-admin-panel="email"] .email-delivery-status,
  [data-admin-panel="email"] .admin-email-info-card,
  [data-admin-panel="email"] .form-card { min-width:0; padding:15px; border-radius:13px; }
  [data-admin-panel="email"] .mail-usage-total strong { font-size:24px; }
  [data-admin-panel="email"] .mail-usage-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  [data-admin-panel="email"] .email-service-row { grid-template-columns:auto minmax(0,1fr) auto; padding:11px; }
  [data-admin-panel="email"] .email-service-row strong { font-size:12px; }
  [data-admin-panel="email"] .email-service-row small { font-size:10px; white-space:normal; overflow-wrap:anywhere; }
  [data-admin-panel="email"] .admin-email-heading { align-items:stretch; flex-direction:column; gap:12px; }
  [data-admin-panel="email"] .admin-email-user-search { width:100%; min-width:0; grid-template-columns:minmax(0,1fr); }
  [data-admin-panel="email"] .admin-email-user-search .button { width:100%; }
  [data-admin-panel="email"] .admin-email-submit-row { padding:14px; }
  [data-admin-panel="email"] .admin-email-submit-row strong { font-size:12px; }
  [data-admin-panel="email"] .admin-email-submit-row span { font-size:10px; line-height:1.45; }
  [data-admin-panel="email"] input,
  [data-admin-panel="email"] select,
  [data-admin-panel="email"] textarea { max-width:100%; }
}
@media (max-width:420px) {
  [data-admin-panel="email"] .mail-usage-stats { grid-template-columns:1fr; }
  [data-admin-panel="email"] .mail-usage-segments { grid-template-columns:repeat(10,minmax(3px,1fr)); height:9px; }
  [data-admin-panel="email"] .email-service-row { align-items:start; }
  [data-admin-panel="email"] .email-service-row b { padding-top:1px; font-size:11px; }
}

@media (max-width:900px) {
  .billing-hold-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:620px) {
  .plugin-manager-summary-r7 { grid-template-columns:1fr; }
  .plugin-manager-summary-r7 .plugin-managed-summary-item { padding:14px 15px; }
  .plugin-managed-dialog .dialog-header { padding:18px 16px 15px; }
  .plugin-managed-dialog-list .plugin-installed-row { grid-template-columns:auto minmax(0,1fr); gap:10px; padding:12px 14px; }
  .plugin-managed-dialog-list .plugin-installed-row form,
  .plugin-managed-dialog-list .plugin-installed-row .plugin-managed-label { grid-column:2; justify-self:start; }
  .billing-hold-hero { align-items:flex-start; }
  .billing-hold-hero h1,
  .server-resource-upgrade-heading h1 { font-size:25px; }
  .billing-hold-grid,
  .server-resource-upgrade-layout { gap:13px; }
  .billing-hold-card { padding:17px; border-radius:14px; }
  .server-resource-upgrade-summary { border-radius:14px; }
  .billing-hold-balance { grid-template-columns:1fr; }
  .server-resource-upgrade-card-head,
  .server-resource-upgrade-fields { padding:17px; }
  .server-resource-upgrade-actions { padding:14px 17px; }
  .server-resource-upgrade-actions .button { width:100%; }
  .server-resource-summary-head { align-items:flex-start; flex-direction:column; gap:8px; padding:18px 17px; }
  .server-resource-summary-head > p { max-width:none; text-align:left; }
  .server-resource-summary-metrics { grid-template-columns:1fr; padding:16px 17px 14px; }
  .server-resource-summary-details { grid-template-columns:1fr; margin:0 17px; }
  .server-resource-summary-details > div + div { border-top:1px solid var(--border); border-left:0; }
  .server-resource-summary-note { margin:14px 17px 0; }
  .server-resource-pool-mini { grid-template-columns:1fr; padding:16px 17px 18px; }
  .server-resource-pool-mini > header { padding:0 0 2px; }
}

/* r11 admin fleet bulk actions and large-database resync status. */
.bulk-server-toolbar { grid-template-columns:minmax(220px,1fr) minmax(190px,.55fr) auto; margin-top:12px; }
.admin-server-table { min-width:1180px; }
.admin-server-table th:first-child,
.admin-server-table td:first-child { width:46px; padding-left:18px; padding-right:8px; }
.admin-server-job {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,320px);
  align-items:center;
  gap:10px 18px;
  margin:12px 0 0;
  padding:13px 16px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--surface-soft);
}
.admin-server-job-copy { min-width:0; }
.admin-server-job-copy strong,
.admin-server-job-copy small { display:block; }
.admin-server-job-copy strong { margin-top:3px; font-size:12px; }
.admin-server-job-copy small { margin-top:4px; color:var(--muted); font-size:9px; line-height:1.45; }
.admin-server-job-progress { width:100%; height:7px; overflow:hidden; border:0; border-radius:999px; appearance:none; background:color-mix(in srgb,var(--border) 70%,transparent); }
.admin-server-job-progress::-webkit-progress-bar { border-radius:999px; background:color-mix(in srgb,var(--border) 70%,transparent); }
.admin-server-job-progress::-webkit-progress-value { border-radius:999px; background:var(--teal); }
.admin-server-job-progress::-moz-progress-bar { border-radius:999px; background:var(--teal); }
.admin-server-job.is-failed .admin-server-job-progress::-webkit-progress-value,
.admin-server-job.is-failed .admin-server-job-progress::-moz-progress-bar { background:var(--red); }
.admin-server-job-error { grid-column:1 / -1; color:var(--red); font-size:9px; line-height:1.45; overflow-wrap:anywhere; }
html[data-theme="dark"] .page-admin .admin-server-job { background:var(--surface-raised); }
@media (max-width:800px) {
  .bulk-server-toolbar { grid-template-columns:1fr; }
  .bulk-server-toolbar .bulk-user-actions { justify-content:stretch; }
  .bulk-server-toolbar .bulk-user-actions .button { width:100%; }
  .admin-server-job { grid-template-columns:1fr; }
  .admin-server-job-error { grid-column:1; }
}


/* R15: compact numbered admin pagination and polished fleet bulk controls. */
.page-admin .admin-pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
}
.page-admin .admin-pagination-summary { color:var(--muted); font-size:10px; white-space:nowrap; }
.page-admin .admin-pagination-controls {
  min-width:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.page-admin .admin-page-numbers { display:flex; align-items:center; gap:5px; min-width:0; }
.page-admin .admin-page-number,
.page-admin .admin-page-nav {
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--white);
  color:var(--text);
  font-size:11px;
  font-weight:750;
  line-height:1;
  text-decoration:none;
  transition:border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.page-admin .admin-page-nav { font-size:19px; font-weight:600; }
.page-admin .admin-page-number:hover,
.page-admin .admin-page-nav:hover { border-color:color-mix(in srgb,var(--teal) 42%,var(--border)); transform:translateY(-1px); }
.page-admin .admin-page-number.is-current { border-color:var(--teal); background:var(--teal); color:#fff; box-shadow:0 5px 14px color-mix(in srgb,var(--teal) 20%,transparent); }
.page-admin .admin-page-nav.is-disabled { opacity:.38; pointer-events:none; }
.page-admin .admin-page-ellipsis { width:24px; color:var(--muted); font-size:13px; text-align:center; }
html[data-theme="dark"] .page-admin .admin-page-number,
html[data-theme="dark"] .page-admin .admin-page-nav { background:var(--surface-raised); }
html[data-theme="dark"] .page-admin .admin-page-number.is-current { background:var(--teal); color:#fff; }

.page-admin .bulk-server-toolbar {
  grid-template-columns:minmax(0,1fr) minmax(220px,300px) auto;
  gap:14px 18px;
  align-items:end;
  margin-top:14px;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-soft);
}
.page-admin .bulk-server-toolbar .bulk-user-summary {
  min-width:0;
  display:grid;
  gap:4px;
  align-self:center;
}
.page-admin .bulk-server-toolbar .bulk-user-summary strong { font-size:13px; color:var(--text); }
.page-admin .bulk-server-toolbar .bulk-user-summary span { max-width:620px; color:var(--muted); font-size:10px; line-height:1.45; }
.page-admin .bulk-server-toolbar .bulk-action-select { margin:0; }
.page-admin .bulk-server-toolbar .bulk-user-actions { align-self:end; padding:0; }
.page-admin .bulk-server-toolbar .bulk-apply-button { min-width:118px; }

.page-admin .admin-server-job {
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
  margin:14px 0 0;
  padding:17px 18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  box-shadow:0 8px 22px rgba(18,31,44,.04);
}
.page-admin .admin-server-job-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.page-admin .admin-server-job-head > div { min-width:0; }
.page-admin .admin-server-job-head strong { display:block; margin-top:4px; color:var(--text); font-size:14px; line-height:1.25; }
.page-admin .admin-server-job-state {
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid color-mix(in srgb,var(--teal) 28%,var(--border));
  border-radius:999px;
  background:color-mix(in srgb,var(--teal) 7%,var(--white));
  color:var(--teal);
  font-size:9px;
  font-weight:800;
  text-transform:capitalize;
}
.page-admin .admin-server-job.is-failed .admin-server-job-state { border-color:color-mix(in srgb,var(--red) 30%,var(--border)); background:color-mix(in srgb,var(--red) 7%,var(--white)); color:var(--red); }
.page-admin .admin-server-job-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.page-admin .admin-server-job-stats > span { padding:11px 12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.page-admin .admin-server-job-stats b,
.page-admin .admin-server-job-stats small { display:block; }
.page-admin .admin-server-job-stats b { color:var(--text); font-size:13px; }
.page-admin .admin-server-job-stats small { margin-top:3px; color:var(--muted); font-size:9px; }
.page-admin .admin-server-job-stats .has-failures b { color:var(--red); }
.page-admin .admin-server-job-progress { height:7px; }
.page-admin .admin-server-job-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; color:var(--muted); font-size:9px; }
.page-admin .admin-server-job-foot strong { color:var(--text); }
.page-admin .admin-server-job-error { grid-column:auto; margin:0; }
html[data-theme="dark"] .page-admin .bulk-server-toolbar,
html[data-theme="dark"] .page-admin .admin-server-job { background:var(--surface-raised); }

@media (max-width:900px) {
  .page-admin .bulk-server-toolbar { grid-template-columns:1fr; align-items:stretch; }
  .page-admin .bulk-server-toolbar .bulk-action-select { width:100%; }
  .page-admin .bulk-server-toolbar .bulk-user-actions,
  .page-admin .bulk-server-toolbar .bulk-apply-button { width:100%; }
}
@media (max-width:700px) {
  .page-admin .admin-pagination { align-items:stretch; flex-direction:column; padding:14px 16px; }
  .page-admin .admin-pagination-controls { width:100%; justify-content:space-between; overflow-x:auto; padding-bottom:2px; scrollbar-width:none; }
  .page-admin .admin-pagination-controls::-webkit-scrollbar { display:none; }
  .page-admin .admin-page-numbers { flex:0 0 auto; }
  .page-admin .admin-server-job-stats { grid-template-columns:1fr; }
  .page-admin .admin-server-job-head,
  .page-admin .admin-server-job-foot { align-items:flex-start; flex-direction:column; }
}

/* v1.16.31 r34 — richer Spigot plugin details. Resource descriptions are
   server-sanitized BBCode, then styled here without allowing inline styles. */
.plugin-details-description {
  white-space:normal;
  overflow-wrap:anywhere;
  color:var(--muted);
  font-size:10px;
  line-height:1.7;
}
.plugin-details-description > :first-child { margin-top:0; }
.plugin-details-description > :last-child { margin-bottom:0; }
.plugin-details-description a { color:var(--teal); font-weight:750; text-decoration:none; }
.plugin-details-description a:hover { text-decoration:underline; }
.plugin-details-description strong { color:var(--text); font-weight:850; }
.plugin-details-description ul,
.plugin-details-description ol { margin:10px 0 10px 20px; padding:0; }
.plugin-details-description li { margin:4px 0; }
.plugin-bb-image {
  display:block;
  width:auto;
  max-width:min(100%,680px);
  max-height:620px;
  height:auto;
  margin:14px auto;
  border-radius:10px;
  object-fit:contain;
}
.plugin-bb-image[hidden] { display:none; }
.plugin-bb-align-left { text-align:left; }
.plugin-bb-align-center { text-align:center; }
.plugin-bb-align-right { text-align:right; }
.plugin-bb-align-center .plugin-bb-image { margin-left:auto; margin-right:auto; }
.plugin-bb-align-right .plugin-bb-image { margin-left:auto; margin-right:0; }
.plugin-bb-indent { margin-left:22px; }
.plugin-bb-size-1 { font-size:.72em; }
.plugin-bb-size-2 { font-size:.82em; }
.plugin-bb-size-3 { font-size:.94em; }
.plugin-bb-size-4 { font-size:1.08em; }
.plugin-bb-size-5 { font-size:1.25em; }
.plugin-bb-size-6 { font-size:1.5em; line-height:1.4; }
.plugin-bb-size-7 { font-size:1.8em; line-height:1.3; }
.plugin-bb-code {
  max-width:100%;
  overflow:auto;
  margin:12px 0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-soft);
  color:var(--text);
  font:500 9px/1.65 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  white-space:pre-wrap;
}
.plugin-bb-inline-code {
  padding:2px 5px;
  border:1px solid var(--border);
  border-radius:5px;
  background:var(--surface-soft);
  color:var(--text);
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
}
.plugin-details-description blockquote {
  margin:12px 0;
  padding:11px 14px;
  border-left:3px solid var(--teal);
  border-radius:0 9px 9px 0;
  background:var(--surface-soft);
}
.plugin-details-description blockquote cite { display:block; margin-bottom:6px; color:var(--text); font-size:9px; font-style:normal; font-weight:800; }
.plugin-bb-spoiler { margin:12px 0; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.plugin-bb-spoiler summary { cursor:pointer; padding:10px 12px; color:var(--text); font-weight:800; }
.plugin-bb-spoiler > div { padding:0 12px 12px; }
.plugin-bb-media,
.plugin-bb-attachment { display:inline-flex; align-items:center; margin:4px 2px; padding:6px 9px; border:1px solid var(--border); border-radius:8px; background:var(--surface-soft); }
.plugin-bb-table-wrap { max-width:100%; overflow:auto; margin:12px 0; border:1px solid var(--border); border-radius:10px; }
.plugin-bb-table { width:100%; border-collapse:collapse; background:var(--white); }
.plugin-bb-table th,
.plugin-bb-table td { padding:8px 10px; border-right:1px solid var(--border); border-bottom:1px solid var(--border); text-align:left; vertical-align:top; }
.plugin-bb-table th { color:var(--text); background:var(--surface-soft); font-weight:850; }
.plugin-bb-table tr:last-child > * { border-bottom:0; }
.plugin-bb-table tr > *:last-child { border-right:0; }
@media (max-width:700px) {
  .plugin-bb-image { max-height:440px; }
  .plugin-bb-indent { margin-left:12px; }
}

/* v1.16.31 r35 — Spigot-faithful resource body. The catalogue still shows
   only the newest three tested versions; the details view can wrap the full
   compatibility list returned by Spigot. */
.plugin-details-dialog { width:min(940px,calc(100vw - 28px)); }
.plugin-details-compatibility strong { white-space:normal; overflow-wrap:anywhere; }
.plugin-details-description.plugin-spigot-rendered {
  padding:18px 20px;
  border:1px solid var(--dark-border, #d7d7d7);
  border-radius:3px;
  background:var(--dark-card, #fff);
  color:var(--dark-muted, #141414);
  font:13px/1.4 Arial,Helvetica,sans-serif;
  overflow-wrap:break-word;
}
.plugin-details-description.plugin-spigot-rendered a { color:#176093; font-weight:400; }
.plugin-details-description.plugin-spigot-rendered strong,
.plugin-details-description.plugin-spigot-rendered b { color:inherit; font-weight:700; }
.plugin-details-description.plugin-spigot-rendered p { margin:0 0 1em; }
.plugin-details-description.plugin-spigot-rendered ul,
.plugin-details-description.plugin-spigot-rendered ol { margin:.75em 0 .75em 2em; padding:0; }
.plugin-details-description.plugin-spigot-rendered li { margin:.25em 0; }
.plugin-details-description.plugin-spigot-rendered hr { height:1px; margin:1em 0; border:0; background:var(--dark-card, #d7d7d7); }
.plugin-details-description.plugin-spigot-rendered .plugin-bb-image {
  display:inline-block;
  width:auto;
  max-width:100%;
  max-height:none;
  height:auto;
  margin:3px 0;
  border:0;
  border-radius:0;
  object-fit:initial;
  vertical-align:middle;
}
.plugin-details-description.plugin-spigot-rendered .plugin-bb-block.plugin-bb-quote-block,
.plugin-details-description.plugin-spigot-rendered .plugin-bb-quote-container {
  margin:1em 0;
  padding:10px 12px;
  border:1px solid var(--dark-border, #d7d7d7);
  border-radius:3px;
  background:var(--dark-card, #f5f5f5);
}
.plugin-details-description.plugin-spigot-rendered .plugin-bb-attribution {
  margin-bottom:6px;
  color:var(--dark-muted, #555);
  font-weight:700;
}
.plugin-details-description.plugin-spigot-rendered .plugin-bb-quote { margin:0; }
@media (max-width:700px) {
  .plugin-details-description.plugin-spigot-rendered { padding:14px 12px; }
}

/* v1.16.31 r40 — calmer plugin empty search + uniform scrollable sidebar menu. */
.plugin-search-empty {
  display:flex;
  min-height:280px;
  margin:0;
  padding:48px 18px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  border:0;
  border-radius:0;
  background:transparent;
  text-align:center;
}
.plugin-search-empty .plugin-empty-copy {
  width:min(100%,520px);
  display:grid;
  justify-items:center;
  gap:7px;
}
.plugin-search-empty .plugin-empty-copy strong {
  color:var(--text);
  font-size:16px;
  font-weight:780;
  letter-spacing:-.025em;
}
.plugin-search-empty .plugin-empty-copy span {
  max-width:470px;
  color:var(--muted);
  font-size:10px;
  line-height:1.65;
}
.plugin-search-empty .plugin-empty-copy b { color:var(--text); font-weight:760; }
.plugin-search-empty > .button { margin-top:2px; }

/* Keep the shell anchored while only the navigation list scrolls. */
.sidebar {
  overflow:hidden;
}
.sidebar-menu-scroll {
  min-height:0;
  flex:1 1 auto;
  overflow-x:hidden;
  overflow-y:auto;
  padding-right:2px;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}
.sidebar-menu-scroll::-webkit-scrollbar { width:6px; }
.sidebar-menu-scroll::-webkit-scrollbar-track { background:transparent; }
.sidebar-menu-scroll::-webkit-scrollbar-thumb { border-radius:999px; background:var(--dark-card-alpha-0-16, rgba(255,255,255,.16)); }
.sidebar-menu-scroll::-webkit-scrollbar-thumb:hover { background:var(--dark-card-alpha-0-24, rgba(255,255,255,.24)); }

/* Overview is the sizing reference: every navigation option uses its footprint. */
.sidebar-link,
.sidebar-server-nav .sidebar-link {
  width:100%;
  height:48px;
  min-height:48px;
  max-height:48px;
  padding-top:0;
  padding-bottom:0;
  box-sizing:border-box;
}
.sidebar-link > span:not(.sidebar-count) { min-width:0; }
.sidebar-link > span:has(strong) { gap:1px; }
.sidebar-link > span > strong { font-size:13px; }
.sidebar-link > span > small { font-size:8px; }
.sidebar-server-nav { gap:5px; }
.sidebar-server-context .sidebar-footer { margin-top:0; }

@media (max-height:760px) and (min-width:761px) {
  .sidebar-server-nav .sidebar-link {
    height:48px;
    min-height:48px;
    max-height:48px;
  }
}
@media (max-width:720px) {
  .plugin-search-empty { min-height:220px; padding:36px 12px; }
}


/* v1.16.31 r41 — transfer-safe panel linkage and explicit remote-suspension state. */
.panel-suspension-notice { align-items: flex-start; }
.panel-suspension-notice > div { display: grid; gap: .2rem; }
.panel-suspension-notice strong { color: inherit; font-weight: 750; }

/* v1.16.31 r42 — explicit suspension states + first-party traffic analytics. */
.page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar {
  grid-template-columns:minmax(220px,1.55fr) repeat(4,minmax(125px,.68fr)) auto;
}
.admin-server-table { min-width:1320px; }

.admin-analytics-panel { display:grid; gap:18px; }
.analytics-page-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:8px 2px 2px;
}
.analytics-page-head h2 { margin:5px 0 0; font-size:28px; letter-spacing:-.025em; }
.analytics-page-head p { max-width:760px; margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.analytics-live-key { display:grid; justify-items:end; gap:3px; min-width:max-content; text-align:right; }
.analytics-live-key strong { font-size:14px; }
.analytics-live-key small { color:var(--muted); font-size:9px; }
.analytics-live-key .analytics-live-dot { margin-bottom:3px; }
.analytics-live-dot {
  width:9px;
  height:9px;
  display:inline-block;
  flex:0 0 auto;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(9,183,126,.11);
}
.analytics-stat-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--white);
}
.analytics-stat {
  min-width:0;
  padding:19px 18px 18px;
  border-right:1px solid var(--border);
}
.analytics-stat:last-child { border-right:0; }
.analytics-stat > span { display:block; color:var(--muted); font-size:8px; font-weight:800; letter-spacing:.13em; }
.analytics-stat > strong { display:block; margin-top:8px; font-size:25px; line-height:1; letter-spacing:-.035em; }
.analytics-stat > small { display:block; margin-top:7px; color:var(--muted); font-size:9px; line-height:1.45; }
.analytics-stat .analytics-date-value { font-size:16px; line-height:1.2; letter-spacing:-.01em; }
.analytics-collection-note {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 2px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
.analytics-collection-note strong { color:var(--text); }
.analytics-chart-grid,
.analytics-data-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.analytics-chart-card { overflow:hidden; }
.analytics-chart-card .users-card-header { min-height:96px; }
.analytics-chart-card-wide .users-card-header { min-height:auto; }
.analytics-chart-wrap { padding:12px 18px 10px; overflow-x:auto; }
.analytics-chart { width:100%; min-width:560px; height:auto; }
.analytics-axis { stroke:var(--border-dark); stroke-width:1; }
.analytics-gridline { stroke:var(--border); stroke-width:1; stroke-dasharray:4 6; opacity:.7; }
.analytics-bar { rx:2; ry:2; }
.analytics-bar-views { fill:var(--teal); }
.analytics-bar-visitors { fill:var(--amber); }
.analytics-axis-label,.analytics-axis-value { fill:var(--muted); font-family:Inter,ui-sans-serif,sans-serif; font-size:8px; }
.analytics-axis-value { font-size:9px; font-weight:700; }
.analytics-legend { display:flex; align-items:center; gap:14px; color:var(--muted); font-size:9px; }
.analytics-legend span { display:inline-flex; align-items:center; gap:6px; }
.analytics-legend i { width:9px; height:9px; border-radius:2px; background:var(--teal); }
.analytics-legend .is-visitors i { background:var(--amber); }
.analytics-table-scroll { max-height:410px; overflow:auto; }
.analytics-table { min-width:760px; }
.analytics-online-user { display:flex; align-items:center; gap:10px; }
.analytics-online-user > div { display:grid; gap:2px; }
.analytics-online-user small { color:var(--muted); font-size:8px; }
.analytics-ranked-list { display:grid; }
.analytics-ranked-row {
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:56px;
  padding:10px 18px;
  border-top:1px solid var(--border);
}
.analytics-ranked-row:first-child { border-top:0; }
.analytics-ranked-row > span {
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:6px;
  color:var(--muted);
  background:var(--surface-soft,var(--soft));
  font-size:8px;
  font-weight:800;
}
.analytics-ranked-row > div { min-width:0; display:grid; gap:3px; }
.analytics-ranked-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px; }
.analytics-ranked-row small { color:var(--muted); font-size:8px; }
.analytics-ranked-row > b { color:var(--text); font-size:10px; font-weight:750; white-space:nowrap; }
.analytics-list-empty { padding:30px 18px; color:var(--muted); font-size:10px; text-align:center; border-top:1px solid var(--border); }
.analytics-audit-log-card { margin-top:2px; }

html[data-theme="dark"] .analytics-stat-grid,
html[data-theme="dark"] .analytics-stat,
html[data-theme="dark"] .analytics-ranked-row { background:var(--white); }
html[data-theme="dark"] .analytics-axis { stroke:#465265; }
html[data-theme="dark"] .analytics-gridline { stroke:#344052; }
html[data-theme="dark"] .analytics-axis-label,
html[data-theme="dark"] .analytics-axis-value { fill:#95a3b4; }

@media (max-width:1250px) {
  .analytics-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .analytics-stat:nth-child(3) { border-right:0; }
  .analytics-stat:nth-child(-n+3) { border-bottom:1px solid var(--border); }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .page-admin [data-admin-panel="servers"] .admin-list-search { grid-column:span 2; }
}
@media (max-width:960px) {
  .analytics-chart-grid,.analytics-data-grid { grid-template-columns:1fr; }
  .analytics-page-head { align-items:flex-start; flex-direction:column; }
  .analytics-live-key { justify-items:start; text-align:left; }
}
@media (max-width:700px) {
  .analytics-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analytics-stat { border-right:1px solid var(--border); border-bottom:1px solid var(--border); }
  .analytics-stat:nth-child(2n) { border-right:0; }
  .analytics-stat:nth-last-child(-n+2) { border-bottom:0; }
  .analytics-collection-note { align-items:flex-start; flex-direction:column; gap:3px; }
  .analytics-page-head h2 { font-size:24px; }
  .analytics-legend { align-items:flex-start; flex-direction:column; gap:5px; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar,
  .page-admin [data-admin-panel="servers"] .admin-list-search { grid-template-columns:1fr; grid-column:auto; }
}
.mini-action-disabled { cursor:not-allowed; opacity:.62; user-select:none; }


/* v1.16.31 r43 — explicit admin suspension-reason filtering and clearer billing terminology. */

.page-admin .admin-filter-help{margin:-2px 0 14px;padding:0 2px;color:var(--muted);font-size:12px;line-height:1.55}
.page-admin .admin-filter-help strong{color:var(--text);font-weight:700;margin-right:4px}
.page-admin .admin-filter-help b{color:var(--text);font-weight:650}

/* R44 Partner hosting */
.server-pool-chip.partner { color: #1f6f54; border-color: #b9dccc; background: var(--dark-card, #eef9f4); }
.server-billing-card.partner { border-color: #c8dfd5; background: linear-gradient(135deg, var(--dark-card, #f7fcfa) 0%, var(--dark-card, #eef8f4) 100%); }
.partner-header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.partner-admin-card { overflow:visible; }
.partner-empty-state { min-height:220px; display:flex; align-items:center; justify-content:space-between; gap:28px; padding:34px; border-top:1px solid var(--border); }
.partner-empty-state h3 { margin:5px 0 8px; font-size:22px; }
.partner-empty-state p { max-width:680px; margin:0; color:var(--muted); line-height:1.65; }
.partner-resource-summary { display:flex; gap:8px; flex-wrap:wrap; min-width:250px; }
.partner-resource-summary span { min-width:72px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface-soft); }
.partner-resource-summary b,.partner-resource-summary small { display:block; }
.partner-resource-summary b { font-size:13px; }
.partner-resource-summary small { margin-top:2px; font-size:10px; color:var(--muted); }
.partner-usage,.partner-server-count { display:flex; flex-direction:column; gap:3px; min-width:150px; }
.partner-usage small,.partner-server-count small,.block-small { color:var(--muted); }
.partner-usage.is-over strong { color:var(--danger); }
.partner-dialog { width:min(760px,calc(100vw - 30px)); }
.partner-user-picker { position:relative; }
.partner-search-results { position:absolute; z-index:30; top:calc(100% - 18px); left:0; right:0; max-height:260px; overflow-y:auto; padding:6px; border:1px solid var(--border); border-radius:12px; background:var(--surface); box-shadow:0 18px 45px rgba(28,36,45,.16); }
.partner-search-result { width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:10px 12px; border:0; border-radius:9px; background:transparent; color:inherit; text-align:left; cursor:pointer; }
.partner-search-result:hover,.partner-search-result:focus-visible { background:var(--surface-soft); outline:none; }
.partner-search-result > span { min-width:0; display:flex; flex-direction:column; gap:2px; }
.partner-search-result strong,.partner-search-result small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.partner-search-result small { color:var(--muted); }
.partner-search-result > b { flex:0 0 auto; font-size:11px; color:var(--muted); }
.partner-feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.partner-table td { vertical-align:middle; }
html[data-theme="dark"] .server-pool-chip.partner { color:#9ce0c7; border-color:#315f50; background:#18342b; }
html[data-theme="dark"] .server-billing-card.partner { border-color:#315348; background:linear-gradient(135deg,#14241f 0%,#172c25 100%); }
@media (max-width: 860px) {
  .partner-empty-state { align-items:flex-start; flex-direction:column; }
  .partner-feature-grid { grid-template-columns:1fr; }
  .partner-resource-summary { min-width:0; }
}
.partner-search-empty { padding:13px 12px; color:var(--muted); font-size:11px; text-align:center; }

/* R49 — Admin server workspace cleanup + live Overview status hooks. */
.page-admin [data-admin-panel][hidden] { display:none !important; }
.page-admin [data-admin-panel="servers"] { display:grid; gap:18px; }
.page-admin [data-admin-panel="servers"] > .users-card,
.page-admin [data-admin-panel="servers"] > .admin-secondary-card {
  overflow:hidden;
  border-radius:18px;
}
.page-admin [data-admin-panel="servers"] > .users-card > .users-card-header {
  padding:22px 24px 18px;
}
.page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar {
  display:grid;
  grid-template-columns:minmax(250px,1.7fr) repeat(3,minmax(150px,1fr));
  gap:12px;
  align-items:end;
  margin:0;
  padding:18px 22px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--surface-soft);
}
.page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-search { grid-column:span 1; }
.page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions {
  grid-column:span 2;
  display:flex;
  align-items:end;
  justify-content:flex-end;
  gap:8px;
}
.page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions .button { min-width:92px; }
.page-admin [data-admin-panel="servers"] .admin-filter-help {
  margin:0;
  padding:12px 22px 0;
  font-size:10px;
  line-height:1.55;
}
.page-admin [data-admin-panel="servers"] .admin-list-range {
  padding:12px 22px 14px;
  border-bottom:1px solid var(--border);
}
.page-admin [data-admin-panel="servers"] .bulk-server-toolbar {
  margin:18px 22px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--surface-soft);
}
.page-admin [data-admin-panel="servers"] .bulk-user-summary { max-width:760px; }
.page-admin [data-admin-panel="servers"] .admin-server-job {
  margin:0 22px 18px;
  border-radius:13px;
}
.page-admin [data-admin-panel="servers"] .admin-table-scroll {
  max-height:620px;
  overflow:auto;
  border-top:1px solid var(--border);
  scrollbar-width:thin;
  scrollbar-color:var(--border-dark) transparent;
}
.page-admin .admin-server-table { min-width:1220px; }
.page-admin .admin-server-table thead th {
  position:sticky;
  top:0;
  z-index:3;
  padding-top:11px;
  padding-bottom:11px;
  background:var(--white);
  box-shadow:0 1px 0 var(--border);
  white-space:nowrap;
}
.page-admin .admin-server-table tbody td {
  padding-top:13px;
  padding-bottom:13px;
  vertical-align:middle;
}
.page-admin .admin-server-table tbody tr { transition:background .14s ease; }
.page-admin .admin-server-table tbody tr:hover { background:var(--surface-soft); }
.page-admin .admin-server-table .table-server { min-width:180px; max-width:260px; }
.page-admin .admin-server-table .table-server strong,
.page-admin .admin-server-table .table-server small,
.page-admin .admin-server-table .table-user strong,
.page-admin .admin-server-table .table-user small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.page-admin .admin-server-table .table-server strong { font-size:11px; }
.page-admin .admin-server-table .table-server small { margin-top:3px; color:var(--muted); font-size:8px; }
.page-admin .admin-server-table .table-user { min-width:185px; }
.page-admin .admin-server-table .state,
.page-admin .admin-server-table .server-pool-chip,
.page-admin .admin-server-table .admin-server-link { white-space:nowrap; }
.page-admin .admin-server-table .admin-row-actions {
  min-width:190px;
  display:flex;
  align-items:center;
  gap:6px;
  flex-wrap:wrap;
}
.page-admin .admin-server-table .admin-row-actions form { margin:0; }
.page-admin .admin-server-table .mini-action { white-space:nowrap; }
.admin-server-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface-soft);
  color:var(--muted);
  font-size:9px;
  font-weight:750;
}
.admin-server-link i { width:6px; height:6px; border-radius:50%; background:var(--muted); }
.admin-server-link.is-linked { color:var(--green); border-color:color-mix(in srgb,var(--green) 28%,var(--border)); background:color-mix(in srgb,var(--green) 6%,var(--white)); }
.admin-server-link.is-linked i { background:var(--green); }
.admin-server-link.is-pending { color:var(--amber); border-color:color-mix(in srgb,var(--amber) 30%,var(--border)); background:color-mix(in srgb,var(--amber) 7%,var(--white)); }
.admin-server-link.is-pending i { background:var(--amber); }
.page-admin [data-admin-panel="servers"] > .admin-secondary-card .users-card-header { padding:20px 22px; }
.page-admin [data-admin-panel="servers"] > .admin-secondary-card .admin-list-filter-bar { margin:0; padding:16px 20px; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:var(--surface-soft); }

/* Overview cards update in place from the owner-scoped live status endpoint. */
[data-overview-server-status-chip],
[data-overview-server-status-dot] { transition:color .15s ease,background .15s ease,border-color .15s ease; }

html[data-theme="dark"] .page-admin .admin-server-table thead th { background:var(--white); }

@media (max-width:1280px) {
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-search { grid-column:span 2; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions { grid-column:span 1; }
}
@media (max-width:900px) {
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-search,
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions { grid-column:span 2; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions { justify-content:stretch; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions .button { flex:1; }
  .page-admin [data-admin-panel="servers"] .bulk-server-toolbar { margin-left:16px; margin-right:16px; }
  .page-admin [data-admin-panel="servers"] .admin-server-job { margin-left:16px; margin-right:16px; }
}
@media (max-width:620px) {
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar,
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-search,
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions { grid-template-columns:1fr; grid-column:1; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions { flex-direction:column; }
  .page-admin [data-admin-panel="servers"] > .users-card > .admin-list-filter-bar .admin-list-filter-actions .button { width:100%; }
  .page-admin [data-admin-panel="servers"] .admin-filter-help,
  .page-admin [data-admin-panel="servers"] .admin-list-range { padding-left:16px; padding-right:16px; }
  .page-admin [data-admin-panel="servers"] .admin-table-scroll { max-height:70vh; }
}

/* R51 dashboard-native server subusers */
.server-subusers-page{max-width:1280px}.subusers-heading{align-items:flex-end}.subusers-v51-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;margin:0 0 22px;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--border)}.subusers-v51-summary>div{min-width:0;padding:16px 18px;background:var(--white);display:flex;flex-direction:column;gap:4px}.subusers-v51-summary span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}.subusers-v51-summary strong{font-size:14px}.subusers-v51-summary small{font-size:11px;line-height:1.45;color:var(--muted)}
.subusers-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr);gap:22px;align-items:start}.subusers-add-card,.subusers-list-section{border:1px solid var(--border);border-radius:18px;background:var(--white)}.subusers-v51-add-card{padding:0;overflow:hidden}.subusers-v51-card-head{padding:22px 24px 18px;border-bottom:1px solid var(--border)}.subusers-card-head h2,.subusers-list-head h2{margin:4px 0 6px}.subusers-card-head p,.subusers-v51-list-head p{margin:0;color:var(--muted);line-height:1.5}.subusers-v51-add-card form{padding:22px 24px 24px}.subuser-email-field input{font-size:14px}.subuser-email-field small{max-width:700px}
.subuser-permissions{margin-top:22px}.subuser-permissions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.subuser-permissions-head>div{display:flex;flex-direction:column;gap:4px}.subuser-permissions-head span{font-weight:800}.subuser-permissions-head small{color:var(--muted);line-height:1.45}.subuser-permission-total{flex:0 0 auto;padding:5px 9px;border:1px solid var(--border);border-radius:999px;background:var(--surface);font-size:10px;color:var(--muted)}.subuser-permission-sections{display:flex;flex-direction:column;gap:12px}.subuser-permission-group{min-width:0;border:0;padding:0;margin:0}.subuser-permission-group-v51{border:1px solid var(--border);border-radius:14px;background:var(--surface);overflow:hidden}.subuser-permission-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border-bottom:1px solid var(--border);background:var(--white)}.subuser-permission-group-head>div{min-width:0;display:flex;flex-direction:column;gap:2px}.subuser-permission-group-head strong{font-size:12px}.subuser-permission-group-head small{font-size:10px;line-height:1.4;color:var(--muted)}.subuser-group-toggle{flex:0 0 auto}.subuser-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.subuser-permission-option-v51{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:flex-start;gap:10px;padding:13px 14px;min-height:72px;border:0;border-bottom:1px solid var(--border);background:var(--white);cursor:pointer}.subuser-permission-option-v51:nth-last-child(-n+2){border-bottom:0}.subuser-permission-option-v51:nth-child(odd){border-right:1px solid var(--border)}.subuser-permission-option-v51:hover{background:var(--surface)}.subuser-permission-option-v51:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:-2px}.subuser-permission-option-v51 input{position:absolute;opacity:0;pointer-events:none}.subuser-permission-check{width:18px;height:18px;border:1px solid var(--border-dark);border-radius:5px;background:var(--white);display:grid;place-items:center;margin-top:1px}.subuser-permission-check::after{content:'';width:8px;height:4px;border-left:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(-45deg) translateY(-1px)}.subuser-permission-option-v51:has(input:checked) .subuser-permission-check{background:var(--text);border-color:var(--text)}.subuser-permission-option-v51:has(input:checked) .subuser-permission-check::after{border-color:var(--white)}.subuser-permission-option-v51:has(input:checked){background:color-mix(in srgb,var(--text) 3%,var(--white))}.subuser-permission-copy{display:flex;flex-direction:column;gap:4px}.subuser-permission-copy strong{font-size:11px;line-height:1.3}.subuser-permission-copy small{font-size:10px;line-height:1.4;color:var(--muted)}
.subusers-form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:20px}.subusers-v51-form-actions>span{max-width:540px;font-size:10px;line-height:1.45;color:var(--muted)}.subusers-v51-list-section{padding:20px}.subusers-v51-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.subusers-v51-list{display:flex;flex-direction:column;gap:10px}.subuser-card-v51{border:1px solid var(--border);border-radius:14px;padding:14px;background:var(--surface)}.subuser-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.subuser-card-main{display:flex;align-items:center;gap:11px;min-width:0}.subuser-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:11px;display:grid;place-items:center;background:var(--white);border:1px solid var(--border);font-size:13px;font-weight:850}.subuser-card-main>div:last-child{min-width:0}.subuser-name-line{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.subuser-name-line h3{font-size:13px;margin:0}.subuser-card small{color:var(--muted);font-size:10px}.subuser-card-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.subuser-access-chips{display:flex;gap:5px;flex-wrap:wrap;padding-top:11px;margin-top:11px;border-top:1px solid var(--border)}.subuser-access-chips span{display:inline-flex;align-items:center;padding:4px 7px;border-radius:999px;border:1px solid var(--border);background:var(--white);font-size:9px;font-weight:750;color:var(--muted)}.subuser-access-chips span.muted{font-weight:600}.subusers-empty{text-align:center;padding:46px 22px;color:var(--muted)}.subusers-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;border:1px solid var(--border);background:var(--surface);margin:0 auto 12px;font-size:22px}.subusers-empty h3{color:var(--text);margin:0 0 6px}.subusers-empty p{margin:0}.subuser-dialog{width:min(980px,calc(100vw - 30px))}.subuser-dialog-body{padding:0 22px 4px;max-height:68vh;overflow:auto}.subuser-dialog-v51 .subuser-permission-sections{padding-bottom:18px}.subuser-confirm-dialog{width:min(540px,calc(100vw - 30px))}.subuser-confirm-body{padding:4px 22px 8px}.subuser-confirm-body>p{margin:16px 0 8px;padding:12px 13px;border:1px solid var(--border);border-radius:11px;background:var(--surface);color:var(--muted);font-size:11px;line-height:1.5}.subuser-confirm-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--border)}.subuser-confirm-row span{font-size:10px;color:var(--muted)}.subuser-confirm-row strong{font-size:11px;overflow-wrap:anywhere}.shared-server-banner{display:flex;gap:10px;align-items:center;padding:12px 15px;border:1px solid var(--border);border-radius:12px;background:var(--surface);margin-bottom:16px;color:var(--muted);font-size:13px}.shared-server-banner strong{color:var(--text)}.shared-server-chip{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:var(--soft);border:1px solid var(--border);font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.ov44-server-card.is-shared{border-style:dashed}.ov44-server-card.is-shared .ov44-server-meta{grid-template-columns:1fr}
@media(max-width:1080px){.subusers-v51-summary{grid-template-columns:1fr}.subusers-layout{grid-template-columns:1fr}.subusers-list-section{order:-1}}@media(max-width:720px){.subusers-v51-card-head,.subusers-v51-add-card form,.subusers-v51-list-section{padding-left:16px;padding-right:16px}.subuser-permission-grid{grid-template-columns:1fr}.subuser-permission-option-v51,.subuser-permission-option-v51:nth-child(odd),.subuser-permission-option-v51:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--border)}.subuser-permission-option-v51:last-child{border-bottom:0}.subuser-permission-group-head,.subuser-card-top,.subusers-form-actions,.subuser-permissions-head{align-items:flex-start;flex-direction:column}.subuser-card-actions{width:100%;justify-content:flex-start}.subusers-v51-form-actions .button{width:100%}.subuser-confirm-row{grid-template-columns:1fr;gap:4px}}

/* R52 account-level dashboard subusers */
.account-subusers-page{max-width:var(--app-content-max,1440px)}
.account-subusers-stack,.account-subuser-editor-stack{min-width:0}
.account-subusers-intro{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:22px 24px}
.account-subusers-intro-copy{display:flex;align-items:center;gap:15px;min-width:0}.account-subusers-intro-copy>div{min-width:0}.account-subusers-intro h2{margin:3px 0 4px;font-size:17px}.account-subusers-intro p{margin:0;max-width:720px;color:var(--muted);font-size:11px;line-height:1.5}
.account-subusers-empty{min-height:360px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:48px 24px;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.account-subusers-empty-mark{width:48px;height:48px;display:grid;place-items:center;margin-bottom:16px;border-radius:50%;background:var(--surface);color:var(--muted)}.account-subusers-empty-mark svg{width:22px;height:22px}.account-subusers-empty h2{margin:0 0 7px;font-size:18px}.account-subusers-empty p{max-width:500px;margin:0 0 20px;color:var(--muted);font-size:11px;line-height:1.55}
.account-subusers-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:16px;background:var(--white);overflow:hidden}.account-subuser-row{display:grid;grid-template-columns:minmax(230px,1.05fr) minmax(170px,.55fr) minmax(220px,.95fr) auto;gap:18px;align-items:center;padding:18px 20px;border-bottom:1px solid var(--border)}.account-subuser-row:last-child{border-bottom:0}.account-subuser-identity{display:flex;align-items:center;gap:11px;min-width:0}.account-subuser-avatar{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13px;font-weight:850}.account-subuser-identity>div{min-width:0}.account-subuser-name{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.account-subuser-name>strong{font-size:13px}.account-subuser-identity small{display:block;margin-top:4px;color:var(--muted);font-size:9px}.account-subuser-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px}.account-subuser-metrics>div{display:flex;flex-direction:column;gap:3px}.account-subuser-metrics span,.account-subuser-server-list>span{font-size:8px;font-weight:800;letter-spacing:.1em;color:var(--muted);text-transform:uppercase}.account-subuser-metrics strong{font-size:12px}.account-subuser-server-list{min-width:0}.account-subuser-server-list>div,.account-subuser-permission-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.account-subuser-server-chip,.account-subuser-permission-chips>span{display:inline-flex;align-items:center;min-height:24px;padding:4px 7px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font-size:9px;font-weight:700;color:var(--muted)}.account-subuser-permission-chips{grid-column:1/4;margin:0}.account-subuser-muted{font-size:9px;color:var(--muted)}.account-subuser-actions{display:flex;justify-content:flex-end;gap:6px;grid-column:4;grid-row:1/3}.account-subuser-remove-dialog{width:min(560px,calc(100vw - 30px))}
.account-subuser-editor{display:flex;flex-direction:column;gap:16px}.account-subuser-editor-card{padding:0;overflow:hidden}.account-subuser-section-head{display:grid;grid-template-columns:38px minmax(0,1fr);gap:13px;padding:20px 22px;border-bottom:1px solid var(--border);background:var(--surface)}.account-subuser-section-head>span{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:var(--white);font-size:9px;font-weight:850;color:var(--muted)}.account-subuser-section-head h2{margin:0 0 4px;font-size:15px}.account-subuser-section-head p{margin:0;color:var(--muted);font-size:10px;line-height:1.45}.account-subuser-section-body{padding:22px}.account-subuser-fixed-account{display:flex;align-items:center;gap:11px}.account-subuser-fixed-account strong,.account-subuser-fixed-account small{display:block}.account-subuser-fixed-account strong{font-size:13px}.account-subuser-fixed-account small{margin-top:3px;color:var(--muted);font-size:10px}
.account-subuser-limit-row{display:grid;grid-template-columns:minmax(240px,.65fr) minmax(260px,1fr);gap:18px;align-items:end}.account-subuser-selection-count{min-height:72px;display:flex;flex-direction:column;justify-content:center;padding:13px 15px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.account-subuser-selection-count span{font-size:8px;font-weight:800;letter-spacing:.1em;color:var(--muted)}.account-subuser-selection-count strong{margin:3px 0;font-size:14px}.account-subuser-selection-count small{font-size:9px;color:var(--muted)}.account-subuser-server-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}.account-subuser-server-option{position:relative;display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:62px;padding:11px 12px;border:1px solid var(--border);border-radius:11px;background:var(--white);cursor:pointer}.account-subuser-server-option:hover{background:var(--surface)}.account-subuser-server-option:has(input:checked){border-color:var(--border-dark);background:var(--surface)}.account-subuser-server-option:has(input:disabled){opacity:.5;cursor:not-allowed}.account-subuser-server-option input{position:absolute;opacity:0;pointer-events:none}.account-subuser-server-check{width:18px;height:18px;border:1px solid var(--border-dark);border-radius:5px;background:var(--white)}.account-subuser-server-option:has(input:checked) .account-subuser-server-check{background:var(--text);box-shadow:inset 0 0 0 4px var(--white);border-color:var(--text)}.account-subuser-server-option-main{min-width:0}.account-subuser-server-option-main strong,.account-subuser-server-option-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-subuser-server-option-main strong{font-size:11px}.account-subuser-server-option-main small{margin-top:3px;color:var(--muted);font-size:8px}.account-subuser-no-servers{margin-top:12px;padding:15px;border:1px solid var(--border);border-radius:11px;background:var(--surface)}.account-subuser-no-servers strong,.account-subuser-no-servers span{display:block}.account-subuser-no-servers strong{font-size:11px}.account-subuser-no-servers span{margin-top:4px;color:var(--muted);font-size:9px}.account-subuser-permissions{margin-top:0}.account-subuser-editor-actions{display:flex;justify-content:flex-end;gap:8px;padding:4px 0 2px}.account-subuser-form-notice{margin:0}
@media(max-width:1050px){.account-subuser-row{grid-template-columns:minmax(220px,1fr) minmax(160px,.6fr) auto}.account-subuser-server-list{grid-column:1/3}.account-subuser-permission-chips{grid-column:1/3}.account-subuser-actions{grid-column:3;grid-row:1/4}.account-subuser-server-picker{grid-template-columns:1fr}}
@media(max-width:700px){.account-security-body .settings-layout{gap:16px}.account-security-body .settings-nav-card{display:flex;gap:6px;overflow-x:auto;padding:7px;border-radius:12px;scrollbar-width:none}.account-security-body .settings-nav-card::-webkit-scrollbar{display:none}.account-security-body .settings-nav-title{display:none}.account-security-body .settings-nav-link{flex:0 0 auto;padding-inline:12px}.account-subusers-intro{align-items:flex-start;flex-direction:column}.account-subusers-intro>.button{width:100%}.account-subuser-row{grid-template-columns:1fr;padding:16px}.account-subuser-identity,.account-subuser-metrics,.account-subuser-server-list,.account-subuser-permission-chips,.account-subuser-actions{grid-column:1;grid-row:auto}.account-subuser-actions{justify-content:flex-start}.account-subuser-metrics{max-width:280px}.account-subuser-limit-row{grid-template-columns:1fr}.account-subuser-section-body{padding:17px}.account-subuser-section-head{padding:17px}.account-subuser-editor-actions{flex-direction:column-reverse}.account-subuser-editor-actions .button{width:100%}}

/* R53 account-level subusers — professional, compact account-access workspace */
.account-subusers-body .account-settings-page{max-width:1240px}
.account-subusers-body .account-subusers-heading{margin-bottom:24px}
.account-subusers-body .account-subusers-heading h1{max-width:760px;letter-spacing:-.035em}
.account-subusers-body .account-subusers-heading p{max-width:760px;font-size:12px;line-height:1.65}
.account-subusers-body .settings-layout{align-items:start;gap:24px}
.account-subusers-body .account-subusers-stack,
.account-subusers-body .account-subuser-editor-stack{gap:14px}

/* List page */
.account-subusers-body .account-subusers-intro{
  min-height:92px;
  padding:20px 22px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  box-shadow:0 8px 24px rgba(28,39,56,.035)
}
.account-subusers-body .account-subusers-intro-copy{gap:14px}
.account-subusers-body .account-subusers-intro-copy .card-icon{
  width:42px;height:42px;flex:0 0 42px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)
}
.account-subusers-body .account-subusers-intro-copy .card-icon svg{width:19px;height:19px}
.account-subusers-body .account-subusers-intro .eyebrow{font-size:8px;letter-spacing:.14em}
.account-subusers-body .account-subusers-intro h2{margin:4px 0 3px;font-size:16px;letter-spacing:-.02em}
.account-subusers-body .account-subusers-intro p{max-width:650px;font-size:10.5px;line-height:1.55}
.account-subusers-body .account-subusers-intro>.button{min-width:126px}

.account-subusers-body .account-subusers-empty{
  min-height:310px;padding:44px 28px;border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:0 8px 24px rgba(28,39,56,.025)
}
.account-subusers-body .account-subusers-empty-mark{width:44px;height:44px;margin-bottom:14px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.account-subusers-body .account-subusers-empty h2{font-size:17px;letter-spacing:-.02em}
.account-subusers-body .account-subusers-empty p{max-width:470px;font-size:10.5px;line-height:1.6}

.account-subusers-body .account-subusers-list{gap:10px;border:0;border-radius:0;background:transparent;overflow:visible}
.account-subusers-body .account-subuser-row{
  grid-template-columns:minmax(240px,1.15fr) minmax(150px,.55fr) minmax(250px,1fr) auto;
  gap:16px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  box-shadow:0 7px 22px rgba(28,39,56,.025);
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease
}
.account-subusers-body .account-subuser-row:last-child{border-bottom:1px solid var(--border)}
.account-subusers-body .account-subuser-row:hover{border-color:var(--border-dark);box-shadow:0 10px 28px rgba(28,39,56,.045);transform:translateY(-1px)}
.account-subusers-body .account-subuser-avatar{width:40px;height:40px;flex-basis:40px;border-radius:10px;background:var(--navy);border-color:var(--navy);color:#fff;font-size:12px;letter-spacing:.01em}
.account-subusers-body .account-subuser-name>strong{font-size:12.5px;letter-spacing:-.01em}
.account-subusers-body .account-subuser-name .state{min-height:22px;padding:3px 7px;font-size:8px}
.account-subusers-body .account-subuser-identity small{margin-top:5px;font-size:9px}
.account-subusers-body .account-subuser-metrics{gap:0;border-left:1px solid var(--border);border-right:1px solid var(--border)}
.account-subusers-body .account-subuser-metrics>div{justify-content:center;padding:3px 14px}
.account-subusers-body .account-subuser-metrics>div+div{border-left:1px solid var(--border)}
.account-subusers-body .account-subuser-metrics span,
.account-subusers-body .account-subuser-server-list>span{font-size:7.5px;letter-spacing:.12em}
.account-subusers-body .account-subuser-metrics strong{font-size:13px;font-variant-numeric:tabular-nums}
.account-subusers-body .account-subuser-server-list>div{gap:5px;margin-top:7px}
.account-subusers-body .account-subuser-server-chip,
.account-subusers-body .account-subuser-permission-chips>span{
  min-height:23px;padding:4px 7px;border-radius:6px;background:var(--surface);font-size:8.5px;font-weight:650;color:var(--text)
}
.account-subusers-body .account-subuser-permission-chips{grid-column:1/4;padding-top:12px;margin-top:-3px;border-top:1px solid var(--border)}
.account-subusers-body .account-subuser-permission-chips>span{background:transparent;color:var(--muted)}
.account-subusers-body .account-subuser-actions{gap:7px;align-self:center}
.account-subusers-body .account-subuser-actions .button{min-width:92px}

/* Editor */
.account-subusers-body .account-subuser-editor{gap:14px}
.account-subusers-body .account-subuser-editor-card{
  border:1px solid var(--border);border-radius:14px;background:var(--white);box-shadow:0 8px 24px rgba(28,39,56,.025)
}
.account-subusers-body .account-subuser-section-head{
  grid-template-columns:42px minmax(0,1fr);gap:14px;padding:19px 21px;background:var(--white);border-bottom:1px solid var(--border)
}
.account-subusers-body .account-subuser-section-head>span{
  width:36px;height:36px;border:0;border-radius:9px;background:var(--navy);color:#fff;font-size:9px;letter-spacing:.06em
}
.account-subusers-body .account-subuser-section-head h2{margin:0 0 4px;font-size:15px;letter-spacing:-.02em}
.account-subusers-body .account-subuser-section-head p{max-width:760px;font-size:10px;line-height:1.55}
.account-subusers-body .account-subuser-section-body{padding:20px 21px 22px}
.account-subusers-body .account-subuser-fixed-account{min-height:58px;padding:9px 11px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.account-subusers-body .account-subuser-limit-row{grid-template-columns:minmax(230px,.55fr) minmax(280px,1fr);gap:14px;align-items:stretch}
.account-subusers-body .account-subuser-selection-count{min-height:74px;padding:13px 15px;border-radius:10px;background:var(--surface)}
.account-subusers-body .account-subuser-selection-count strong{font-size:13px}
.account-subusers-body .account-subuser-server-picker{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:340px;margin-top:14px;padding-right:4px;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--border-dark) transparent
}
.account-subusers-body .account-subuser-server-picker::-webkit-scrollbar{width:7px}
.account-subusers-body .account-subuser-server-picker::-webkit-scrollbar-thumb{background:var(--border-dark);border-radius:999px}
.account-subusers-body .account-subuser-server-option{min-height:60px;padding:10px 11px;border-radius:10px;transition:border-color .12s ease,background .12s ease,box-shadow .12s ease}
.account-subusers-body .account-subuser-server-option:hover{border-color:var(--border-dark);background:var(--surface)}
.account-subusers-body .account-subuser-server-option:has(input:checked){border-color:color-mix(in srgb,var(--teal) 55%,var(--border));background:var(--teal-soft);box-shadow:inset 3px 0 0 var(--teal)}
.account-subusers-body .account-subuser-server-option:has(input:checked) .account-subuser-server-check{background:var(--teal);border-color:var(--teal);box-shadow:inset 0 0 0 4px #fff}

/* Permission matrix */
.account-subusers-body .subuser-permissions-head-v51{align-items:center;margin-bottom:12px;padding:0 1px}
.account-subusers-body .subuser-permissions-head-v51>div{gap:3px}
.account-subusers-body .subuser-permissions-head-v51 span{font-size:12px}
.account-subusers-body .subuser-permissions-head-v51 small{max-width:700px;font-size:9.5px;line-height:1.5}
.account-subusers-body .subuser-permission-total{padding:5px 8px;border-radius:7px;background:var(--surface);font-size:9px}
.account-subusers-body .subuser-permission-sections{gap:9px}
.account-subusers-body .subuser-permission-group-v51{border-radius:11px;background:var(--white)}
.account-subusers-body .subuser-permission-group-head{padding:12px 13px;background:var(--surface)}
.account-subusers-body .subuser-permission-group-head strong{font-size:11.5px}
.account-subusers-body .subuser-permission-group-head small{font-size:9px;line-height:1.4}
.account-subusers-body .subuser-group-toggle{min-height:30px;padding:0 10px;border-radius:7px;font-size:9px}
.account-subusers-body .subuser-permission-option-v51{min-height:67px;padding:12px 13px;background:var(--white)}
.account-subusers-body .subuser-permission-option-v51:hover{background:var(--surface)}
.account-subusers-body .subuser-permission-option-v51:has(input:checked){background:var(--teal-soft)}
.account-subusers-body .subuser-permission-option-v51:has(input:checked) .subuser-permission-check{background:var(--teal);border-color:var(--teal)}
.account-subusers-body .subuser-permission-copy strong{font-size:10.5px}
.account-subusers-body .subuser-permission-copy small{font-size:9px;line-height:1.45}
.account-subusers-body .account-subuser-editor-actions{position:sticky;bottom:0;z-index:4;margin-top:2px;padding:12px 0 3px;background:linear-gradient(to bottom,transparent,var(--page) 26%)}
.account-subusers-body .account-subuser-editor-actions .button{min-width:120px}

/* Dialogs */
.account-subusers-body .subuser-confirm-dialog,
.account-subusers-body .account-subuser-remove-dialog{border-radius:16px}
.account-subusers-body .subuser-confirm-body{padding:5px 22px 10px}
.account-subusers-body .subuser-confirm-row{grid-template-columns:125px minmax(0,1fr);padding:12px 0}
.account-subusers-body .subuser-confirm-body>p{border-radius:9px;background:var(--surface);font-size:10px}

html[data-theme="dark"] .account-subusers-body .account-subuser-avatar,
html[data-theme="dark"] .account-subusers-body .account-subuser-section-head>span{background:var(--dark-card, #111827);border-color:var(--dark-border, #111827)}

@media(max-width:1100px){
  .account-subusers-body .account-subuser-row{grid-template-columns:minmax(230px,1fr) minmax(160px,.65fr) auto}
  .account-subusers-body .account-subuser-server-list,.account-subusers-body .account-subuser-permission-chips{grid-column:1/3}
  .account-subusers-body .account-subuser-actions{grid-column:3;grid-row:1/4}
}
@media(max-width:780px){
  .account-subusers-body .account-subuser-server-picker{grid-template-columns:1fr;max-height:420px}
  .account-subusers-body .account-subuser-limit-row{grid-template-columns:1fr}
  .account-subusers-body .subuser-permission-grid{grid-template-columns:1fr}
  .account-subusers-body .subuser-permission-option-v51,
  .account-subusers-body .subuser-permission-option-v51:nth-child(odd),
  .account-subusers-body .subuser-permission-option-v51:nth-last-child(-n+2){border-right:0;border-bottom:1px solid var(--border)}
  .account-subusers-body .subuser-permission-option-v51:last-child{border-bottom:0}
}
@media(max-width:700px){
  .account-subusers-body .account-subusers-heading{margin-bottom:18px}
  .account-subusers-body .account-subusers-intro{padding:17px}
  .account-subusers-body .account-subuser-row{grid-template-columns:1fr;gap:13px;padding:15px}
  .account-subusers-body .account-subuser-identity,
  .account-subusers-body .account-subuser-metrics,
  .account-subusers-body .account-subuser-server-list,
  .account-subusers-body .account-subuser-permission-chips,
  .account-subusers-body .account-subuser-actions{grid-column:1;grid-row:auto}
  .account-subusers-body .account-subuser-metrics{max-width:none;border:1px solid var(--border);border-radius:9px}
  .account-subusers-body .account-subuser-actions{justify-content:stretch}
  .account-subusers-body .account-subuser-actions .button{flex:1}
  .account-subusers-body .account-subuser-section-head{grid-template-columns:34px minmax(0,1fr);padding:16px}
  .account-subusers-body .account-subuser-section-head>span{width:32px;height:32px}
  .account-subusers-body .account-subuser-section-body{padding:16px}
  .account-subusers-body .account-subuser-editor-actions{position:static;flex-direction:column-reverse;background:none;padding-top:4px}
  .account-subusers-body .account-subuser-editor-actions .button{width:100%}
}

/* R54 account subusers — light-safe, compact dropdown editor */
.account-subusers-body .account-subuser-avatar,
.account-subusers-body .account-subuser-section-head>span{
  color:var(--teal);
  border-color:color-mix(in srgb,var(--teal) 24%,var(--border));
  background:var(--teal-soft);
}
.account-subusers-body .account-subuser-avatar{font-weight:850}
.account-subusers-body .account-subuser-editor-card{
  border-color:var(--border);
  border-radius:12px;
  background:var(--white);
  box-shadow:none;
}
.account-subusers-body .account-subuser-section-head{
  grid-template-columns:38px minmax(0,1fr);
  gap:13px;
  padding:18px 20px;
  background:var(--surface);
}
.account-subusers-body .account-subuser-section-head>span{
  width:34px;height:34px;border-radius:9px;font-size:9px;letter-spacing:.07em
}
.account-subusers-body .account-subuser-section-body{padding:20px}
.account-subusers-body .account-subuser-access-body{display:grid;gap:11px}
.account-subusers-body .account-subuser-access-grid{
  display:grid;
  grid-template-columns:minmax(220px,.55fr) minmax(320px,1fr);
  gap:14px;
  align-items:end;
}
.account-subusers-body .account-subuser-limit-field{margin:0}
.account-subusers-body .account-subuser-access-note{
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
.account-subusers-body .account-subuser-server-select{
  position:relative;
  min-width:0;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--white);
}
.account-subusers-body .account-subuser-server-select[open]{
  border-color:color-mix(in srgb,var(--teal) 34%,var(--border));
  box-shadow:0 10px 28px rgba(24,38,52,.07);
}
.account-subusers-body .account-subuser-server-select>summary{
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 14px;
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.account-subusers-body .account-subuser-server-select>summary::-webkit-details-marker{display:none}
.account-subusers-body .account-subuser-server-select>summary::after{
  content:'›';
  flex:0 0 auto;
  color:var(--muted);
  font-size:18px;
  line-height:1;
  transform:rotate(90deg);
  transition:transform .15s ease;
}
.account-subusers-body .account-subuser-server-select[open]>summary::after{transform:rotate(-90deg)}
.account-subusers-body .account-subuser-server-select-copy{display:grid;gap:3px;min-width:0}
.account-subusers-body .account-subuser-server-select-copy small{
  color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.09em;text-transform:uppercase
}
.account-subusers-body .account-subuser-server-select-copy strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:750;color:var(--text)
}
.account-subusers-body .account-subuser-server-select-count{
  flex:0 0 auto;
  min-width:48px;
  padding:5px 8px;
  border:1px solid var(--border);
  border-radius:7px;
  color:var(--muted);
  background:var(--surface);
  font-size:9px;
  font-weight:800;
  text-align:center;
}
.account-subusers-body .account-subuser-server-select[data-selection-state="selected"] .account-subuser-server-select-count{
  color:var(--teal);
  border-color:color-mix(in srgb,var(--teal) 24%,var(--border));
  background:var(--teal-soft);
}
.account-subusers-body .account-subuser-server-dropdown{
  border-top:1px solid var(--border);
  padding:10px;
  background:var(--surface);
}
.account-subusers-body .account-subuser-server-dropdown-head{
  display:flex;justify-content:space-between;gap:12px;align-items:center;padding:2px 2px 9px
}
.account-subusers-body .account-subuser-server-dropdown-head span{font-size:9px;font-weight:800;color:var(--text)}
.account-subusers-body .account-subuser-server-dropdown-head small{font-size:8.5px;color:var(--muted)}
.account-subusers-body .account-subuser-server-picker{
  display:grid;
  grid-template-columns:1fr;
  gap:5px;
  max-height:290px;
  margin:0;
  padding:0 2px 0 0;
  overflow-y:auto;
}
.account-subusers-body .account-subuser-server-option{
  min-height:54px;
  grid-template-columns:18px minmax(0,1fr) auto;
  gap:10px;
  padding:8px 10px;
  border-radius:8px;
  background:var(--white);
  box-shadow:none;
}
.account-subusers-body .account-subuser-server-option:hover{border-color:var(--border-dark);background:var(--white)}
.account-subusers-body .account-subuser-server-option:has(input:checked){
  border-color:color-mix(in srgb,var(--teal) 42%,var(--border));
  background:var(--teal-soft);
  box-shadow:none;
}
.account-subusers-body .account-subuser-server-check{
  width:17px;height:17px;border-radius:5px;background:var(--white)
}
.account-subusers-body .account-subuser-server-option:has(input:checked) .account-subuser-server-check{
  border-color:var(--teal);background:var(--teal);box-shadow:inset 0 0 0 4px var(--white)
}
.account-subusers-body .account-subuser-server-option-main{display:grid;gap:4px}
.account-subusers-body .account-subuser-server-option-main strong{font-size:10.5px;font-weight:750}
.account-subusers-body .account-subuser-server-meta{display:flex;align-items:center;gap:6px;min-width:0}
.account-subusers-body .account-subuser-server-meta small{margin:0;font-size:8px;color:var(--muted)}
.account-subusers-body .account-subuser-pool{
  display:inline-flex;align-items:center;min-height:17px;padding:2px 5px;border:1px solid var(--border);border-radius:5px;
  color:var(--muted);background:var(--surface);font-size:7px;font-weight:850;text-transform:uppercase
}
.account-subusers-body .account-subuser-pool.partner{color:var(--teal);border-color:color-mix(in srgb,var(--teal) 24%,var(--border));background:var(--teal-soft)}
.account-subusers-body .account-subuser-pool.premium{color:#8b6418;border-color:#ead9b1;background:#fff9eb}
.account-subusers-body .account-subuser-server-status{
  display:inline-flex;align-items:center;gap:6px;min-height:24px;padding:4px 7px;border:1px solid var(--border);border-radius:7px;
  font-size:8px;font-weight:750;text-transform:capitalize;white-space:nowrap
}
.account-subusers-body .account-subuser-server-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.account-subusers-body .account-subuser-server-status.is-online{color:#297c67;background:color-mix(in srgb,var(--teal-soft) 72%,var(--white))}
.account-subusers-body .account-subuser-server-status.is-offline{color:var(--dark-muted, #7d8794);background:var(--surface)}
.account-subusers-body .account-subuser-server-status.is-suspended{color:#9a5b65;background:var(--dark-card, #fff4f5);border-color:#edd5d8}
.account-subusers-body .account-subuser-server-status.is-busy{color:#9b721f;background:#fff9ec;border-color:#eadbb9}
.account-subusers-body .account-subuser-no-servers{margin:0;min-height:68px;display:grid;align-content:center;border-radius:10px}

/* Permission groups are collapsed, readable dropdowns instead of a long matrix. */
.account-subusers-body .subuser-permission-sections{display:grid;gap:7px}
.account-subusers-body .subuser-permission-dropdown{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--white);
}
.account-subusers-body .subuser-permission-dropdown[open]{border-color:color-mix(in srgb,var(--teal) 30%,var(--border))}
.account-subusers-body .subuser-permission-group-summary{
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 13px;
  list-style:none;
  cursor:pointer;
  background:var(--white);
}
.account-subusers-body .subuser-permission-group-summary::-webkit-details-marker{display:none}
.account-subusers-body .subuser-permission-group-summary>span:first-child{display:grid;gap:3px;min-width:0}
.account-subusers-body .subuser-permission-group-summary strong{font-size:11px;color:var(--text)}
.account-subusers-body .subuser-permission-group-summary small{font-size:8.5px;color:var(--muted);line-height:1.4}
.account-subusers-body .subuser-permission-group-count{
  flex:0 0 auto;min-width:46px;padding:5px 7px;border:1px solid var(--border);border-radius:7px;
  background:var(--surface);color:var(--muted);font-size:8px;font-weight:800;text-align:center
}
.account-subusers-body .subuser-permission-dropdown[open] .subuser-permission-group-count{
  color:var(--teal);border-color:color-mix(in srgb,var(--teal) 24%,var(--border));background:var(--teal-soft)
}
.account-subusers-body .subuser-permission-dropdown-body{border-top:1px solid var(--border);background:var(--surface)}
.account-subusers-body .subuser-permission-dropdown-actions{
  min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border-bottom:1px solid var(--border)
}
.account-subusers-body .subuser-permission-dropdown-actions small{font-size:8.5px;color:var(--muted)}
.account-subusers-body .subuser-permission-grid-v51{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border)}
.account-subusers-body .subuser-permission-option-v51{
  min-height:60px;padding:10px 11px;border:0!important;background:var(--white)
}
.account-subusers-body .subuser-permission-option-v51:hover{background:color-mix(in srgb,var(--surface) 80%,var(--white))}
.account-subusers-body .subuser-permission-option-v51:has(input:checked){background:var(--teal-soft)}
.account-subusers-body .subuser-permission-copy strong{font-size:10px}
.account-subusers-body .subuser-permission-copy small{font-size:8.5px;line-height:1.4}
.account-subusers-body .subuser-permission-check{background:var(--white)}
.account-subusers-body .subuser-permission-option-v51:has(input:checked) .subuser-permission-check{
  border-color:var(--teal);background:var(--teal);box-shadow:inset 0 0 0 4px var(--white)
}

/* Keep light mode light; dark mode uses the existing semantic theme surfaces. */
html[data-theme="dark"] .account-subusers-body .account-subuser-avatar,
html[data-theme="dark"] .account-subusers-body .account-subuser-section-head>span{
  color:#8ed3c6;
  border-color:color-mix(in srgb,var(--teal) 42%,var(--border));
  background:var(--teal-soft);
}
html[data-theme="dark"] .account-subusers-body .account-subuser-server-select,
html[data-theme="dark"] .account-subusers-body .account-subuser-server-option,
html[data-theme="dark"] .account-subusers-body .subuser-permission-dropdown,
html[data-theme="dark"] .account-subusers-body .subuser-permission-group-summary,
html[data-theme="dark"] .account-subusers-body .subuser-permission-option-v51{
  background:var(--surface-raised);
}
html[data-theme="dark"] .account-subusers-body .account-subuser-server-option:hover,
html[data-theme="dark"] .account-subusers-body .subuser-permission-option-v51:hover{background:var(--surface)}
html[data-theme="dark"] .account-subusers-body .account-subuser-pool.premium{color:#ddb86d;border-color:#594c31;background:#2c261a}
html[data-theme="dark"] .account-subusers-body .account-subuser-server-status.is-suspended{color:#e5a4aa;border-color:#57373c;background:#281b1e}
html[data-theme="dark"] .account-subusers-body .account-subuser-server-status.is-busy{color:#dfb866;border-color:#55482f;background:#292319}

@media(max-width:880px){
  .account-subusers-body .account-subuser-access-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .account-subusers-body .account-subuser-section-head{grid-template-columns:32px minmax(0,1fr);gap:11px;padding:15px}
  .account-subusers-body .account-subuser-section-head>span{width:30px;height:30px}
  .account-subusers-body .account-subuser-section-body{padding:15px}
  .account-subusers-body .account-subuser-server-select>summary{min-height:62px;padding:10px 11px}
  .account-subusers-body .account-subuser-server-dropdown-head{align-items:flex-start;flex-direction:column;gap:3px}
  .account-subusers-body .account-subuser-server-option{grid-template-columns:18px minmax(0,1fr)}
  .account-subusers-body .account-subuser-server-status{grid-column:2;justify-self:start}
  .account-subusers-body .subuser-permission-grid-v51{grid-template-columns:1fr}
  .account-subusers-body .subuser-permission-dropdown-actions{align-items:flex-start;flex-direction:column}
}

/* R55 account settings rail + stable Pterodactyl-inspired subuser editor */
.app-body .account-settings-page{
  box-sizing:border-box;
  width:100%;
  max-width:1480px;
  margin-inline:auto;
  padding:34px 42px 96px;
}
.app-body .account-settings-page .settings-layout{display:block}
.app-body .account-settings-page .settings-content-stack{width:100%;max-width:none}
.account-settings-global-nav-wrap{
  width:100%;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--white) 96%,transparent);
}
.account-settings-global-nav-inner{
  box-sizing:border-box;
  width:100%;
  max-width:1480px;
  margin-inline:auto;
  padding:10px 42px 0;
}
.account-settings-global-nav-card.settings-nav-card{
  min-width:0;
  display:flex;
  align-items:flex-end;
  gap:4px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.account-settings-global-nav-card .settings-nav-title{
  flex:0 0 auto;
  padding:0 12px 13px 0;
  color:var(--muted-2);
  font-size:9px;
  font-weight:800;
  letter-spacing:.15em;
}
.account-settings-global-nav-card .settings-nav-link{
  min-height:42px;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 13px;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:8px 8px 0 0;
  color:var(--muted);
  background:transparent;
  font-size:11px;
  font-weight:720;
}
.account-settings-global-nav-card .settings-nav-link svg{width:16px;height:16px;stroke-width:1.8}
.account-settings-global-nav-card .settings-nav-link:hover{color:var(--text);background:var(--surface-soft)}
.account-settings-global-nav-card .settings-nav-link.active{
  color:var(--teal);
  border-bottom-color:var(--teal);
  background:var(--teal-soft);
}

.account-subusers-body .account-subusers-page{max-width:1480px}
.account-subusers-body .account-subuser-editor{display:grid;gap:16px}
.account-subusers-body .account-subuser-editor-card{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  box-shadow:none;
}
.account-subusers-body .account-subuser-section-head{
  min-height:76px;
  display:grid;
  grid-template-columns:36px minmax(0,1fr);
  align-items:center;
  gap:13px;
  padding:17px 20px;
  border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--surface-soft) 64%,var(--white));
}
.account-subusers-body .account-subuser-section-head>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--teal) 24%,var(--border));
  border-radius:9px;
  color:var(--teal);
  background:var(--teal-soft);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
}
.account-subusers-body .account-subuser-section-head h2{margin:0;font-size:15px;letter-spacing:-.018em}
.account-subusers-body .account-subuser-section-head p{max-width:760px;margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.55}
.account-subusers-body .account-subuser-section-body{padding:20px}

.account-subusers-body .account-subuser-access-body{display:grid;gap:14px}
.account-subusers-body .account-subuser-access-toolbar{
  display:grid;
  grid-template-columns:minmax(240px,320px) minmax(180px,1fr);
  align-items:end;
  gap:14px;
}
.account-subusers-body .account-subuser-limit-field{margin:0}
.account-subusers-body .account-subuser-access-summary{
  min-height:64px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto;
  align-content:center;
  gap:2px 12px;
  padding:11px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface-soft);
}
.account-subusers-body .account-subuser-access-summary>span{
  color:var(--muted-2);
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.account-subusers-body .account-subuser-access-summary>strong{
  grid-column:2;
  grid-row:1/3;
  align-self:center;
  font-size:18px;
  letter-spacing:-.04em;
  font-variant-numeric:tabular-nums;
}
.account-subusers-body .account-subuser-access-summary>small{color:var(--muted);font-size:9px}
.account-subusers-body .account-subuser-server-board{
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--white);
}
.account-subusers-body .account-subuser-server-board-head{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 14px;
  border-bottom:1px solid var(--border);
  background:var(--surface-soft);
}
.account-subusers-body .account-subuser-server-board-head>div{min-width:0}
.account-subusers-body .account-subuser-server-board-head strong{display:block;font-size:10px}
.account-subusers-body .account-subuser-server-board-head small{display:block;margin-top:3px;color:var(--muted);font-size:8.5px;line-height:1.45}
.account-subusers-body .account-subuser-server-board-head>span{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:var(--white);
  font-size:8px;
  font-weight:800;
}
.account-subusers-body .account-subuser-server-picker{
  max-height:330px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  overflow-y:auto;
  scrollbar-gutter:stable;
  background:var(--white);
}
.account-subusers-body .account-subuser-server-option{
  min-width:0;
  min-height:62px;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  margin:0;
  padding:10px 12px;
  border:0;
  border-right:1px solid var(--border);
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:var(--white);
  transition:background .12s ease,border-color .12s ease;
}
.account-subusers-body .account-subuser-server-option:nth-child(2n){border-right:0}
.account-subusers-body .account-subuser-server-option:hover{background:var(--surface-soft)}
.account-subusers-body .account-subuser-server-option:has(input:checked){background:color-mix(in srgb,var(--teal-soft) 72%,var(--white))}
.account-subusers-body .account-subuser-server-option-main strong{font-size:10.5px}
.account-subusers-body .account-subuser-server-status{white-space:nowrap}
.account-subusers-body .account-subuser-access-note{margin:0;color:var(--muted);font-size:8.5px;line-height:1.5}

.account-subusers-body .account-subuser-permissions{border:0;background:transparent}
.account-subusers-body .subuser-permissions-head-v51{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:0 0 14px;
  border:0;
  background:transparent;
}
.account-subusers-body .subuser-permissions-head-v51 span{font-size:11px;font-weight:800}
.account-subusers-body .subuser-permissions-head-v51 small{display:block;max-width:760px;margin-top:3px;color:var(--muted);font-size:8.5px;line-height:1.5}
.account-subusers-body .subuser-permission-total{
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:var(--surface-soft);
  font-size:8px;
}
.account-subusers-body .subuser-permission-sections-stable{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.account-subusers-body .subuser-permission-panel{
  min-width:0;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--white);
}
.account-subusers-body .subuser-permission-panel-head{
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-bottom:1px solid var(--border);
  background:var(--surface-soft);
}
.account-subusers-body .subuser-permission-panel-head>div:first-child{min-width:0}
.account-subusers-body .subuser-permission-panel-head strong{display:block;font-size:10.5px}
.account-subusers-body .subuser-permission-panel-head small{display:block;margin-top:3px;color:var(--muted);font-size:8px;line-height:1.45}
.account-subusers-body .subuser-permission-panel-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.account-subusers-body .subuser-permission-group-count{
  min-width:42px;
  padding:5px 7px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  background:var(--white);
  text-align:center;
  font-size:8px;
  font-variant-numeric:tabular-nums;
}
.account-subusers-body .subuser-permission-panel .subuser-permission-grid-v51{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  background:var(--white);
}
.account-subusers-body .subuser-permission-panel .subuser-permission-option-v51{
  min-height:55px;
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:0;
  padding:9px 11px;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
  background:var(--white);
}
.account-subusers-body .subuser-permission-panel .subuser-permission-option-v51:last-child{border-bottom:0}
.account-subusers-body .subuser-permission-panel .subuser-permission-option-v51:hover{background:var(--surface-soft)}
.account-subusers-body .subuser-permission-panel .subuser-permission-option-v51:has(input:checked){background:color-mix(in srgb,var(--teal-soft) 68%,var(--white))}
.account-subusers-body .subuser-permission-panel .subuser-permission-copy strong{font-size:9.5px}
.account-subusers-body .subuser-permission-panel .subuser-permission-copy small{font-size:8px;line-height:1.45}

html[data-theme="dark"] .account-settings-global-nav-wrap{background:var(--white)}
html[data-theme="dark"] .account-subusers-body .account-subuser-section-head,
html[data-theme="dark"] .account-subusers-body .account-subuser-server-board-head,
html[data-theme="dark"] .account-subusers-body .subuser-permission-panel-head{background:var(--surface-soft)}
html[data-theme="dark"] .account-subusers-body .account-subuser-server-board,
html[data-theme="dark"] .account-subusers-body .account-subuser-server-picker,
html[data-theme="dark"] .account-subusers-body .account-subuser-server-option,
html[data-theme="dark"] .account-subusers-body .subuser-permission-panel,
html[data-theme="dark"] .account-subusers-body .subuser-permission-panel .subuser-permission-grid-v51,
html[data-theme="dark"] .account-subusers-body .subuser-permission-panel .subuser-permission-option-v51{background:var(--white)}

@media(max-width:980px){
  .account-subusers-body .subuser-permission-sections-stable{grid-template-columns:1fr}
  .account-subusers-body .account-subuser-server-picker{grid-template-columns:1fr}
  .account-subusers-body .account-subuser-server-option{border-right:0}
}
@media(max-width:700px){
  .app-body .account-settings-page{padding:26px 18px 72px}
  .account-settings-global-nav-inner{padding:8px 18px 0;overflow-x:auto;scrollbar-width:none}
  .account-settings-global-nav-inner::-webkit-scrollbar{display:none}
  .account-settings-global-nav-card.settings-nav-card{width:max-content;min-width:100%}
  .account-settings-global-nav-card .settings-nav-title{display:none}
  .account-settings-global-nav-card .settings-nav-link{min-height:40px;padding-inline:11px}
  .account-subusers-body .account-subuser-access-toolbar{grid-template-columns:1fr}
  .account-subusers-body .account-subuser-section-head{grid-template-columns:32px minmax(0,1fr);padding:15px}
  .account-subusers-body .account-subuser-section-head>span{width:30px;height:30px}
  .account-subusers-body .account-subuser-section-body{padding:15px}
  .account-subusers-body .account-subuser-server-picker{max-height:300px}
  .account-subusers-body .subuser-permission-panel-head{align-items:flex-start;flex-direction:column}
  .account-subusers-body .subuser-permission-panel-actions{width:100%;justify-content:space-between}
}

/* R56 account-only navigation, cleaner subuser workspace, and node stock controls */
.admin-node-policy-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-node-policy-icon-stock{color:var(--red);background:var(--red-soft)}
.admin-node-stock-option:has(input:checked){border-color:color-mix(in srgb,var(--red) 28%,var(--border));background:color-mix(in srgb,var(--red-soft) 78%,var(--white))}
.admin-node-stock-option:has(input:checked) strong{color:var(--red)}

.account-settings-global-nav-wrap{
  border:0;
  background:transparent;
}
.account-settings-global-nav-inner{
  padding:18px 42px 0;
}
.account-settings-global-nav-card.settings-nav-card{
  min-height:52px;
  align-items:center;
  gap:5px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--white);
  box-shadow:0 6px 18px rgba(28,39,56,.035);
}
.account-settings-global-nav-card .settings-nav-title{
  min-height:38px;
  display:flex;
  align-items:center;
  margin-right:3px;
  padding:0 15px 0 10px;
  border-right:1px solid var(--border);
  color:var(--muted-2);
  font-size:8px;
  letter-spacing:.16em;
}
.account-settings-global-nav-card .settings-nav-link{
  min-height:38px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:9px;
  color:var(--muted);
  font-size:10px;
  font-weight:760;
}
.account-settings-global-nav-card .settings-nav-link svg{width:15px;height:15px}
.account-settings-global-nav-card .settings-nav-link:hover{
  color:var(--text);
  border-color:var(--border);
  background:var(--surface-soft);
}
.account-settings-global-nav-card .settings-nav-link.active{
  color:var(--teal);
  border-color:color-mix(in srgb,var(--teal) 22%,var(--border));
  background:var(--teal-soft);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--teal) 5%,transparent);
}
html[data-theme="dark"] .account-settings-global-nav-wrap{background:transparent}

.account-subusers-body .account-subusers-heading{margin-bottom:20px}
.account-subusers-body .account-subusers-heading p{max-width:720px;font-size:11px}
.account-subusers-body .account-subusers-stack,
.account-subusers-body .account-subuser-editor-stack{gap:16px}
.account-subusers-body .account-subusers-intro{
  min-height:0;
  padding:18px 20px;
  border-radius:14px;
  box-shadow:none;
  background:linear-gradient(135deg,var(--white),color-mix(in srgb,var(--teal-soft) 22%,var(--white)));
}
.account-subusers-body .account-subusers-intro-copy .card-icon{
  width:40px;height:40px;flex-basis:40px;
  border-radius:10px;
  color:var(--teal);
  background:var(--teal-soft);
}
.account-subusers-body .account-subusers-intro h2{font-size:15px}
.account-subusers-body .account-subusers-intro p{font-size:10px}

.account-subusers-body .account-subusers-list{gap:12px}
.account-subusers-body .account-subuser-row{
  grid-template-columns:minmax(245px,1.05fr) minmax(170px,.55fr) minmax(260px,1fr) auto;
  gap:18px;
  padding:17px 18px;
  border-radius:13px;
  box-shadow:none;
  transition:border-color .14s ease,background .14s ease;
}
.account-subusers-body .account-subuser-row:hover{
  transform:none;
  box-shadow:none;
  border-color:color-mix(in srgb,var(--teal) 20%,var(--border));
  background:color-mix(in srgb,var(--surface-soft) 40%,var(--white));
}
.account-subusers-body .account-subuser-avatar{
  width:38px;height:38px;flex-basis:38px;
  border-radius:10px;
  font-size:11px;
}
.account-subusers-body .account-subuser-name>strong{font-size:12px}
.account-subusers-body .account-subuser-identity small{font-size:8.5px}
.account-subusers-body .account-subuser-metrics{
  gap:6px;
  border:0;
}
.account-subusers-body .account-subuser-metrics>div{
  justify-content:center;
  min-height:48px;
  padding:7px 10px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface-soft);
}
.account-subusers-body .account-subuser-metrics>div+div{border-left:1px solid var(--border)}
.account-subusers-body .account-subuser-metrics span,
.account-subusers-body .account-subuser-server-list>span{font-size:7.5px}
.account-subusers-body .account-subuser-server-chip,
.account-subusers-body .account-subuser-permission-chips>span{
  min-height:22px;
  padding:3px 7px;
  border-radius:999px;
  background:var(--surface-soft);
  font-size:8px;
}
.account-subusers-body .account-subuser-permission-chips{
  grid-column:1/4;
  padding-top:10px;
  margin-top:-2px;
}
.account-subusers-body .account-subuser-actions{gap:6px}
.account-subusers-body .account-subuser-actions .button{min-width:88px}

.account-subusers-body .account-subuser-editor{gap:14px}
.account-subusers-body .account-subuser-editor-card{
  border-radius:14px;
  box-shadow:none;
}
.account-subusers-body .account-subuser-section-head{
  min-height:72px;
  grid-template-columns:34px minmax(0,1fr);
  gap:12px;
  padding:16px 18px;
  background:var(--surface-soft);
}
.account-subusers-body .account-subuser-section-head>span{
  width:31px;height:31px;
  border-radius:50%;
  font-size:8px;
}
.account-subusers-body .account-subuser-section-head h2{font-size:14px}
.account-subusers-body .account-subuser-section-head p{margin-top:3px;font-size:9.5px;line-height:1.5}
.account-subusers-body .account-subuser-section-body{padding:18px}
.account-subusers-body .account-subuser-access-toolbar{
  grid-template-columns:minmax(230px,300px) minmax(200px,1fr);
  gap:12px;
}
.account-subusers-body .account-subuser-access-summary{
  min-height:62px;
  border-radius:9px;
}
.account-subusers-body .account-subuser-server-board,
.account-subusers-body .subuser-permission-panel{border-radius:10px}
.account-subusers-body .account-subuser-server-board-head,
.account-subusers-body .subuser-permission-panel-head{background:var(--surface-soft)}
.account-subusers-body .account-subuser-server-picker{max-height:320px}
.account-subusers-body .account-subuser-server-option{
  min-height:58px;
  padding:9px 11px;
}
.account-subusers-body .account-subuser-server-option:has(input:checked){
  background:color-mix(in srgb,var(--teal-soft) 72%,var(--white));
  box-shadow:inset 3px 0 0 var(--teal);
}
.account-subusers-body .subuser-permissions-head-v51{min-height:48px;padding-bottom:12px}
.account-subusers-body .subuser-permissions-head-v51 span{font-size:10.5px}
.account-subusers-body .subuser-permissions-head-v51 small{font-size:8.5px}
.account-subusers-body .subuser-permission-sections-stable{gap:10px}
.account-subusers-body .subuser-permission-panel-head{min-height:58px;padding:10px 11px}
.account-subusers-body .subuser-permission-panel-head strong{font-size:10px}
.account-subusers-body .subuser-permission-panel-head small{font-size:8px}
.account-subusers-body .subuser-permission-panel .subuser-permission-option-v51{
  min-height:52px;
  padding:8px 10px;
}
.account-subusers-body .subuser-permission-panel .subuser-permission-copy strong{font-size:9.5px}
.account-subusers-body .subuser-permission-panel .subuser-permission-copy small{font-size:8px}
.account-subusers-body .account-subuser-editor-actions{
  position:sticky;
  bottom:10px;
  z-index:4;
  margin-top:0;
  padding:10px;
  border:1px solid var(--border);
  border-radius:12px;
  background:color-mix(in srgb,var(--white) 94%,transparent);
  box-shadow:0 10px 28px rgba(28,39,56,.07);
  backdrop-filter:blur(10px);
}

@media(max-width:1180px){
  .admin-node-policy-grid{grid-template-columns:1fr}
}
@media(max-width:1100px){
  .account-subusers-body .account-subuser-row{grid-template-columns:minmax(220px,1fr) minmax(170px,.6fr) auto}
  .account-subusers-body .account-subuser-server-list,
  .account-subusers-body .account-subuser-permission-chips{grid-column:1/3}
  .account-subusers-body .account-subuser-actions{grid-column:3;grid-row:1/4}
}
@media(max-width:700px){
  .account-settings-global-nav-inner{padding:12px 18px 0}
  .account-settings-global-nav-card.settings-nav-card{
    width:max-content;
    min-width:100%;
    min-height:48px;
    padding:5px;
  }
  .account-settings-global-nav-card .settings-nav-title{display:none}
  .account-settings-global-nav-card .settings-nav-link{min-height:36px;padding-inline:10px}
  .account-subusers-body .account-subusers-intro{padding:16px}
  .account-subusers-body .account-subuser-row{gap:12px;padding:14px}
  .account-subusers-body .account-subuser-metrics{grid-template-columns:1fr 1fr}
  .account-subusers-body .account-subuser-section-head{grid-template-columns:31px minmax(0,1fr);padding:14px}
  .account-subusers-body .account-subuser-section-body{padding:14px}
  .account-subusers-body .account-subuser-access-toolbar{grid-template-columns:1fr}
  .account-subusers-body .account-subuser-editor-actions{position:static;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}
}

/* Plugin and mod marketplace controls */
.server-plugin-page { min-width:0; }
.plugin-catalogue-head > * { min-width:0; }
.plugin-marketplace-form { width:100%; min-width:0; max-width:100%; display:grid; grid-template-columns:minmax(120px,145px) minmax(0,1fr) auto; gap:8px; align-items:stretch; }
.plugin-marketplace-form.plugin-marketplace-form-single-source { width:min(100%,520px); justify-self:end; grid-template-columns:minmax(0,1fr) auto; }
.plugin-marketplace-form .plugin-marketplace-select { min-width:0; display:grid; align-content:center; gap:1px; padding:5px 10px; }
.plugin-marketplace-form .plugin-marketplace-select > span { color:var(--muted); font-size:7px; font-weight:800; letter-spacing:.055em; text-transform:uppercase; }
.plugin-marketplace-form select { width:100%; min-width:0; padding:0; border:0; outline:0; color:var(--text); background:transparent; font:inherit; font-size:10px; font-weight:700; cursor:pointer; }
.plugin-marketplace-form select option { color:var(--text); background:var(--white); }
.plugin-marketplace-form .plugin-marketplace-search { min-width:0; }
.plugin-marketplace-form > .button { min-width:0; max-width:100%; }
@media (max-width:1050px) {
  .plugin-catalogue-head { grid-template-columns:minmax(0,1fr); }
  .plugin-marketplace-form { grid-template-columns:minmax(120px,145px) minmax(0,1fr) auto; }
  .plugin-marketplace-form.plugin-marketplace-form-single-source { width:min(100%,520px); justify-self:end; grid-template-columns:minmax(0,1fr) auto; }
}
@media (max-width:720px) {
  .plugin-marketplace-form,.plugin-marketplace-form.plugin-marketplace-form-single-source { grid-template-columns:minmax(0,1fr) auto; }
  .plugin-marketplace-form.plugin-marketplace-form-single-source { width:100%; max-width:none; justify-self:stretch; }
  .plugin-marketplace-form .plugin-marketplace-select { grid-column:1/-1; }
}
@media (max-width:460px) {
  .plugin-marketplace-form,.plugin-marketplace-form.plugin-marketplace-form-single-source { grid-template-columns:minmax(0,1fr); }
  .plugin-marketplace-form > .button { width:100%; justify-content:center; }
}

/* R86: configured branding stays visible in the compact authenticated shell. */
.topbar-mobile-brand{display:none;align-items:center;gap:9px;min-width:0;color:var(--text);font-size:13px;font-weight:780;text-decoration:none}
.topbar-mobile-brand .brand-mark{width:31px;height:31px;flex:0 0 31px;border-radius:9px}
.topbar-mobile-brand .brand-mark img{width:100%;height:100%;object-fit:contain}
.topbar-mobile-brand .brand-mark svg{width:18px;height:18px}
@media(max-width:900px){.topbar-mobile-brand{display:inline-flex}.breadcrumb{margin-left:13px}.topbar-mobile-brand span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:560px){.topbar-mobile-brand span{display:none}.breadcrumb{margin-left:5px}}

/* R92: grouped server navigation. */
.sidebar-server-context .sidebar-server-group + .sidebar-server-group{margin-top:10px;padding-top:12px;border-top:1px solid var(--border)}
.sidebar-server-context .sidebar-server-group .sidebar-label{margin-bottom:6px}

/* R93: server-group dividers match the account/sign-out separator. */
.sidebar-server-context .sidebar-server-group + .sidebar-server-group{
  margin-top:12px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.11);
}

/* R94: server sidebar grouping mirrors the Overview sidebar: spacing + labels,
   without extra dividers between normal navigation groups. */
.sidebar-server-context .sidebar-server-group + .sidebar-server-group{
  margin-top:24px;
  padding-top:0;
  border-top:0;
}
.sidebar-server-context .sidebar-server-group .sidebar-label{
  margin:0;
  padding:0 1px 11px;
}

/* R94: compact owner resource-upgrade page to match the smaller server tools. */
.server-resource-upgrade-page{
  max-width:1120px;
}
.server-resource-upgrade-heading{
  margin:4px 0 16px;
}
.server-resource-upgrade-heading h1{
  margin:4px 0 5px;
  font-size:29px;
  line-height:1.06;
  letter-spacing:-.035em;
}
.server-resource-upgrade-heading p{
  max-width:700px;
  font-size:10px;
  line-height:1.55;
}
.server-resource-upgrade-layout{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.82fr);
  gap:14px;
  align-items:start;
}
.server-resource-upgrade-card,
.server-resource-upgrade-summary{
  border-radius:11px;
  box-shadow:none;
}
.server-resource-upgrade-card-head{padding:16px 18px}
.server-resource-upgrade-card-head h2{margin:4px 0 4px;font-size:18px;letter-spacing:-.02em}
.server-resource-upgrade-card-head p{font-size:9px;line-height:1.5}
.server-resource-upgrade-fields{gap:11px;padding:15px 18px}
.server-resource-upgrade-fields .field>span{font-size:9px}
.server-resource-upgrade-fields .field small{font-size:8px}
.server-resource-upgrade-actions{padding:12px 18px}
.server-resource-upgrade-actions .button{min-height:38px}
.server-resource-summary-head{display:block;padding:16px 18px}
.server-resource-summary-head h2{margin:4px 0 4px;font-size:17px}
.server-resource-summary-head>p{max-width:none;font-size:9px;line-height:1.5;text-align:left}
.server-resource-summary-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:13px 14px 11px}
.server-resource-summary-metric{padding:11px 10px;border-radius:9px}
.server-resource-summary-metric>span{margin-bottom:5px;font-size:8px}
.server-resource-summary-metric strong{gap:3px;font-size:16px;letter-spacing:-.02em}
.server-resource-summary-metric strong small{font-size:8px}
.server-resource-summary-details{grid-template-columns:1fr;margin:0 14px;border-radius:9px}
.server-resource-summary-details>div{padding:10px 11px}
.server-resource-summary-details>div+div{border-top:1px solid var(--border);border-left:0}
.server-resource-summary-details span{font-size:8px}
.server-resource-summary-details strong{font-size:9px}
.server-resource-summary-note{gap:8px;margin:11px 14px 0;padding:10px 11px;border-radius:9px}
.server-resource-summary-note svg{width:15px;height:15px;flex-basis:15px}
.server-resource-summary-note p{font-size:8px;line-height:1.5}
.server-resource-pool-mini{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:13px;padding:13px 14px 14px}
.server-resource-pool-mini>header{grid-column:1/-1;padding:0 0 2px}
.server-resource-pool-mini>header span{font-size:9px}
.server-resource-pool-mini>header small{margin-top:2px;font-size:8px}
.server-resource-pool-mini>div{padding:9px 10px;border-radius:8px}
.server-resource-pool-mini strong{font-size:11px}
.server-resource-pool-mini small{font-size:8px}
@media(max-width:960px){
  .server-resource-upgrade-layout{grid-template-columns:minmax(0,1fr)}
  .server-resource-upgrade-page{max-width:820px}
}
@media(max-width:620px){
  .server-resource-upgrade-heading h1{font-size:25px}
  .server-resource-upgrade-card-head,.server-resource-upgrade-fields{padding:14px}
  .server-resource-upgrade-actions{padding:12px 14px}
  .server-resource-summary-head{padding:14px}
  .server-resource-summary-metrics{grid-template-columns:1fr;padding:12px 14px 10px}
  .server-resource-summary-details{margin:0 14px}
  .server-resource-summary-note{margin:11px 14px 0}
  .server-resource-pool-mini{grid-template-columns:1fr;padding:12px 14px 14px}
}

/* R114: restored original server setup overlay flow. */
.server-setup-lock{position:fixed;z-index:5000;top:82px;right:0;bottom:0;left:288px;display:grid;place-items:center;padding:24px;background:rgba(8,13,22,.58);backdrop-filter:blur(4px) saturate(.9);-webkit-backdrop-filter:blur(4px) saturate(.9);pointer-events:all}
.server-setup-lock-card{width:min(520px,calc(100vw - 48px));display:grid;justify-items:center;gap:10px;padding:8px;color:#fff;text-align:center;text-shadow:0 1px 3px rgba(0,0,0,.35)}
.server-setup-lock-card .eyebrow{color:rgba(255,255,255,.72)}
.server-setup-lock-card>strong{margin-top:1px;color:#fff;font-size:clamp(16px,2vw,20px);font-weight:800;line-height:1.25;letter-spacing:-.02em}
.server-setup-lock-card>small{max-width:470px;color:rgba(255,255,255,.86);font-size:13px;line-height:1.55}
.server-setup-spinner{width:32px;height:32px;margin-bottom:2px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:server-setup-spin .78s linear infinite}@keyframes server-setup-spin{to{transform:rotate(360deg)}}
.server-setup-shell-page{min-height:420px}.server-setup-shell-heading{display:grid;gap:5px}.server-setup-shell-heading h1{margin:0}.server-setup-shell-surface{display:grid;gap:12px;margin-top:26px;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--white)}.server-setup-shell-surface span{display:block;height:12px;border-radius:999px;background:color-mix(in srgb,var(--border) 70%,transparent)}.server-setup-shell-surface span:nth-child(1){width:42%}.server-setup-shell-surface span:nth-child(2){width:76%}.server-setup-shell-surface span:nth-child(3){width:58%}
html[data-theme="dark"] .server-setup-shell-surface{background:var(--surface-raised)}
@media(max-width:1120px){.server-setup-lock{left:0}}
@media(max-width:700px){.server-setup-lock{top:70px;padding:20px}.server-setup-lock-card>small{font-size:12px}}


/* R134 supplied Pterodactyl Monaco editor port: desktop uses the supplied
   editor behavior; textarea remains the safe mobile/load-failure fallback. */
.file-editor-monaco {
  width: 100%;
  height: 75vh;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--dark-card, #1e1e1e);
}
.file-editor-monaco[hidden],
.file-editor-textarea-v2[hidden] { display: none !important; }
.reward-turnstile-wrap { margin: 16px 0; }
.reward-turnstile-error {
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 12px;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .file-editor-monaco { min-height: 520px; }
}
