/* [project]/src/app/panel.css.css [app-client] (css) */
:root {
  --radius: 8px;
  --console-bg: #0a0a0a;
  --console-text: #ededed;
  --console-font: var(--font-geist-mono), monospace;
  --console-font-size: 13px;
  --console-line-height: 1.6;
  --fx-bg: #141418;
  --fx-row-hover: #1c1c22;
  --fx-icon: #7000fd;
  --fx-font: var(--font-geist-sans), sans-serif;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

body {
  margin: 0;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 3px;
}

input:not([type="color"]):not([type="checkbox"]):not([type="range"]), select, textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  width: 100%;
  min-width: 0;
  color: var(--color-foreground);
  padding: 9px 11px;
}

input::placeholder, textarea::placeholder {
  color: var(--color-muted);
  opacity: .65;
}

textarea {
  resize: vertical;
}

input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

input[type="range"] {
  accent-color: var(--color-accent);
}

.panel-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100dvh;
  display: grid;
}

.workspace-portal {
  flex-direction: column;
  justify-content: center;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
}

.workspace-portal-heading {
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  display: flex;
}

.workspace-portal-heading > svg {
  color: var(--color-accent-hover);
}

.workspace-portal-heading h1 {
  margin: 0;
  font-size: 24px;
}

.workspace-portal-heading p, .workspace-portal-empty {
  color: var(--color-muted);
  margin: 6px 0 0;
}

.workspace-portal-list {
  gap: 12px;
  display: grid;
}

.workspace-portal-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px;
  display: flex;
}

.workspace-portal-card:hover {
  border-color: var(--color-accent);
}

.workspace-portal-card span {
  gap: 5px;
  display: grid;
}

.workspace-portal-card small {
  color: var(--color-muted);
}

.workspace-portal-card > svg {
  color: var(--color-accent-hover);
  flex: none;
}

.create-form-page {
  gap: 18px;
  max-width: 900px;
  padding: 24px;
  display: grid;
}

.create-form-page .field {
  min-width: 0;
}

.owner-search-field {
  max-width: none;
}

.owner-search-results {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  overflow: hidden;
}

.owner-search-result {
  border: 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  width: 100%;
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  display: flex;
}

.owner-search-result:first-child {
  border-top: 0;
}

.owner-search-result:hover {
  background: var(--color-surface-2);
}

.owner-search-result small {
  color: var(--color-muted);
  margin-top: 4px;
  display: block;
}

.owner-search-empty {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  display: flex;
}

.sidebar {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  z-index: 30;
  flex-direction: column;
  height: 100dvh;
  padding: 28px 16px 16px;
  display: flex;
  position: sticky;
  top: 0;
}

.brand {
  white-space: nowrap;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  font-size: 22px;
  font-weight: 650;
  display: flex;
}

.brand svg, .sign-in-brand svg, .boot-screen > svg {
  color: var(--color-accent-hover);
  fill: color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.brand-suffix {
  color: var(--color-muted);
  margin-top: -2px;
  font-size: 12px;
  font-weight: 400;
  display: block;
}

.sidebar nav {
  margin-top: 36px;
}

.nav-label {
  color: var(--color-muted);
  text-transform: uppercase;
  padding: 0 12px 10px;
  font-size: 11px;
  font-weight: 500;
}

.nav-label-admin {
  margin-top: 30px;
}

.nav-item {
  border-radius: var(--radius);
  min-height: 42px;
  color: var(--color-muted);
  align-items: center;
  gap: 11px;
  margin: 3px 0;
  padding: 10px 12px;
  transition: background .15s, color .15s;
  display: flex;
}

.nav-item:hover {
  background: var(--color-surface-2);
  color: var(--color-foreground);
}

.nav-item.nav-active {
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  color: var(--color-foreground);
}

.nav-active svg {
  color: var(--color-accent-hover);
}

.nav-switch {
  border: 1px solid var(--color-border);
  color: var(--color-foreground);
  margin: 3px 0 6px;
}

.nav-switch:hover {
  border-color: var(--color-accent);
}

.staff-area .sidebar {
  background: color-mix(in srgb, var(--color-accent) 6%, var(--color-surface));
}

.staff-area .brand-suffix {
  color: var(--color-accent-hover);
}

.staff-area .page-content {
  padding-top: 42px;
  padding-bottom: 88px;
}

.staff-area .page-heading {
  margin-bottom: 36px;
}

.staff-area .summary-strip {
  margin-bottom: 52px;
  padding-block: 28px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.account {
  border-top: 1px solid var(--color-border);
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding-top: 17px;
  display: grid;
}

.account-link {
  width: 100%;
  min-width: 0;
  color: inherit;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: grid;
}

.account-link:hover strong, .account-link[aria-current="page"] strong {
  color: var(--color-accent-hover);
}

.account-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.avatar {
  background: var(--color-surface-2);
  width: 34px;
  min-width: 34px;
  height: 34px;
  color: var(--color-muted);
  border-radius: 50%;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  display: grid;
}

.account-link > div {
  flex: 1;
  min-width: 0;
}

.account strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  display: block;
  overflow: hidden;
}

.account small {
  color: var(--color-muted);
  font-size: 11px;
}

.panel-main {
  min-width: 0;
}

.topbar {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 66px;
  padding: 0 36px;
  display: flex;
}

.breadcrumbs {
  color: var(--color-muted);
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 12px;
  display: flex;
}

.breadcrumbs strong {
  color: var(--color-foreground);
  font-weight: 450;
}

.workspace-label {
  color: var(--color-muted);
  white-space: nowrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  display: flex;
}

.workspace-switcher {
  color: var(--color-muted);
  z-index: 20;
  flex: none;
  position: relative;
}

.workspace-switcher summary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
  align-items: center;
  gap: 8px;
  max-width: min(280px, 42vw);
  padding: 8px 10px;
  font-size: 12px;
  list-style: none;
  display: flex;
}

.workspace-switcher summary::-webkit-details-marker {
  display: none;
}

.workspace-switcher summary:hover, .workspace-switcher[open] summary {
  color: var(--color-foreground);
  border-color: var(--color-accent);
}

.workspace-switcher-current {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.workspace-switcher-menu {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  gap: 6px;
  width: min(320px, 100vw - 24px);
  max-height: min(70vh, 480px);
  padding: 12px;
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  overflow-y: auto;
  box-shadow: 0 16px 40px #0008;
}

.workspace-switcher-menu > strong {
  color: var(--color-foreground);
  padding: 4px 8px;
  font-size: 12px;
}

.workspace-switcher-menu > a {
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  font-size: 12px;
  display: flex;
}

.workspace-switcher-menu > a:hover, .workspace-switcher-menu > a[aria-current="page"] {
  background: var(--color-surface-2);
}

.workspace-switcher-menu > a small, .workspace-switcher-menu > p {
  color: var(--color-muted);
}

.workspace-switcher-menu > p {
  margin: 4px 8px;
  font-size: 12px;
}

.workspace-switcher-menu .workspace-switcher-all {
  border-top: 1px solid var(--color-border);
  color: var(--color-accent-hover);
  margin-top: 4px;
  padding-top: 12px;
}

.connection-dot {
  background: #69cf9c;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.page-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 34px 36px 64px;
}

.page-heading {
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  display: flex;
}

.page-heading h1 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.page-heading p {
  color: var(--color-muted);
  overflow-wrap: anywhere;
  margin: 8px 0 0;
  font-size: 12px;
}

.page-actions, .button-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.button {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 38px;
  color: var(--color-foreground);
  background: var(--color-surface);
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  display: inline-flex;
}

.button:hover:not(:disabled) {
  background: var(--color-surface-2);
}

.button-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.button-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.button-danger {
  color: #f09a9a;
  background: #29171b;
  border-color: #693c40;
}

.icon-button {
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  color: var(--color-muted);
  background: none;
  border: 1px solid #0000;
  flex: 0 0 32px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.icon-button:hover:not(:disabled) {
  background: var(--color-surface-2);
  border-color: var(--color-border);
  color: var(--color-foreground);
}

.spin {
  animation: 1s linear infinite spin;
}

.busy {
  color: var(--color-muted);
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 56px 16px;
  font-size: 12px;
  display: flex;
}

.error-notice {
  color: #ef9e9e;
  border-radius: var(--radius);
  background: #a6464614;
  border: 1px solid #a6464640;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 12px;
  display: flex;
}

.error-notice span {
  overflow-wrap: anywhere;
  flex: 1;
}

.summary-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
  padding: 23px 0;
  display: grid;
}

.summary-strip > div {
  border-left: 1px solid var(--color-border);
  min-width: 0;
  padding: 0 24px;
}

.summary-strip > div:first-child {
  border-left: 0;
  padding-left: 0;
}

.summary-label {
  color: var(--color-muted);
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  font-size: 11px;
  display: flex;
}

.summary-value {
  overflow-wrap: anywhere;
  font-size: 23px;
  font-weight: 550;
  line-height: 1.1;
}

.staff-section {
  margin-top: 64px;
}

.staff-section-heading {
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
  display: flex;
}

.staff-section-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.staff-section-heading p, .staff-section-heading > span, .staff-cell-note {
  color: var(--color-muted);
  margin: 5px 0 0;
  font-size: 11px;
  display: block;
}

.staff-finance-grid {
  border-block: 1px solid var(--color-border);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  display: grid;
}

.staff-finance-grid > div {
  border-left: 1px solid var(--color-border);
  padding: 24px 22px;
}

.staff-finance-grid > div:nth-child(3n+1) {
  border-left: 0;
}

.staff-finance-grid > div:nth-child(n+4) {
  border-top: 1px solid var(--color-border);
}

.staff-finance-grid dt {
  color: var(--color-muted);
  font-size: 11px;
}

.staff-finance-grid dd {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 550;
}

.staff-create-grid {
  grid-template-columns: 1.4fr 1fr 1fr .8fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 4px 0 26px;
  display: grid;
}

.staff-budget-form {
  grid-template-columns: 1fr .8fr .7fr 1.3fr auto;
}

.staff-inline-form {
  align-items: center;
  gap: 7px;
  min-width: 400px;
  display: flex;
}

.staff-inline-form select {
  width: auto;
  min-width: 105px;
}

.staff-inline-form input {
  min-width: 180px !important;
}

.staff-permission-list {
  border-block: 1px solid var(--color-border);
}

.staff-permission-row {
  border-top: 1px solid var(--color-border);
  grid-template-columns: minmax(180px, .8fr) minmax(420px, 2fr) auto;
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  display: grid;
}

.staff-permission-row:first-child {
  border-top: 0;
}

.staff-permission-user span, .staff-permission-user small {
  color: var(--color-muted);
  margin-top: 5px;
  font-size: 11px;
  display: block;
}

.staff-permission-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  display: grid;
}

.toolbar {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  display: flex;
}

.search-field {
  flex: 1;
  max-width: 340px;
  position: relative;
}

.search-field > svg {
  color: var(--color-muted);
  position: absolute;
  top: 12px;
  left: 12px;
}

.search-field input {
  font-size: 12px;
  padding-left: 36px !important;
}

.toolbar select {
  width: 160px;
  font-size: 12px;
}

.table-scroll {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: auto;
}

.data-table {
  border-collapse: collapse;
  text-align: left;
  width: 100%;
  font-size: 12px;
}

.data-table th {
  color: var(--color-muted);
  text-transform: uppercase;
  background: var(--color-surface);
  white-space: nowrap;
  height: 42px;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 500;
}

.data-table td {
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
  padding: 18px 16px;
}

.data-table tbody tr:hover {
  background: var(--color-surface);
}

.user-link {
  color: var(--color-foreground);
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.user-link:hover strong {
  text-decoration: underline;
}

.data-table td.row-action {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.server-cell {
  align-items: center;
  gap: 12px;
  display: flex;
}

.server-icon {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-2);
  width: 36px;
  height: 36px;
  color: var(--color-muted);
  place-items: center;
  display: grid;
}

.server-cell strong {
  overflow-wrap: anywhere;
  max-width: 320px;
  font-size: 13px;
  font-weight: 550;
  display: block;
}

.server-cell small {
  color: var(--color-muted);
  margin-top: 4px;
  font-size: 10px;
  display: block;
}

.mono {
  font-family: var(--font-mono), monospace;
  font-size: 11px;
}

.activity-details dl {
  gap: 8px;
  margin: 10px 0 0;
  display: grid;
}

.activity-details dl > div {
  grid-template-columns: minmax(90px, 120px) minmax(0, 1fr);
  gap: 12px;
  display: grid;
}

.activity-details dt {
  color: var(--color-muted);
}

.activity-details dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.activity-diff-row {
  grid-template-columns: 1fr !important;
}

.activity-code-diff {
  border: 1px solid var(--color-border);
  color: #d7dde7;
  max-width: min(900px, 72vw);
  max-height: 420px;
  font: 12px/1.65 var(--font-mono), monospace;
  white-space: pre;
  background: #080a0d;
  border-radius: 8px;
  margin: 0;
  padding: 12px 14px;
  overflow: auto;
}

.muted {
  color: var(--color-muted);
}

.status {
  white-space: nowrap;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 4px;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  font-size: 10px;
  display: inline-flex;
}

.status i {
  background: currentColor;
  border-radius: 50%;
  width: 5px;
  height: 5px;
}

.status-running, .status-active {
  color: #80d8a8;
  background: #66b1840b;
  border-color: #66b18435;
}

.status-installing {
  color: #ebc27c;
  border-color: #dca64c35;
}

.status-install_failed, .status-offline, .status-suspended {
  color: #ee949b;
  border-color: #e1727b35;
}

.empty-state {
  text-align: center;
  color: var(--color-muted);
  padding: 72px 18px;
}

.empty-state > svg {
  color: var(--color-muted);
  margin: 0 auto 16px;
}

.empty-state h2 {
  color: var(--color-foreground);
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
}

.table-footer {
  color: var(--color-muted);
  justify-content: space-between;
  margin-top: 14px;
  font-size: 11px;
  display: flex;
}

.modal {
  color: var(--color-foreground);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: min(520px, 100vw - 32px);
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  box-shadow: 0 24px 90px #0008;
}

.modal-wide {
  width: min(720px, 100vw - 32px);
}

.modal::backdrop {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: #0009;
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  display: flex;
}

.modal-header h2 {
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 550;
}

.modal-body {
  padding: 22px;
}

.modal-actions {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 20px;
  display: flex;
}

.field {
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin-bottom: 16px;
  font-size: 12px;
  display: flex;
}

.field > span {
  color: var(--color-muted);
  font-size: 11px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  display: grid;
}

.form-span {
  grid-column: 1 / -1;
}

.form-section {
  border-top: 1px solid var(--color-border);
  margin: 20px 0 16px;
  padding-top: 20px;
  font-size: 12px;
  font-weight: 550;
}

.check-field {
  align-items: center;
  gap: 9px;
  font-size: 12px;
  display: flex;
}

.server-title-row {
  align-items: center;
  gap: 12px;
  display: flex;
}

.server-title-row h1 {
  font-size: 26px;
}

.server-tabbar {
  border-bottom: 1px solid var(--color-border);
  align-items: stretch;
  gap: 24px;
  margin: 12px 0 22px;
  display: flex;
}

.server-tabs {
  flex-wrap: wrap;
  flex: auto;
  gap: 0 24px;
  min-width: 0;
  display: flex;
}

.server-tabs > button, .nav-dropdown > button {
  color: var(--color-muted);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  align-items: center;
  gap: 7px;
  padding: 12px 0;
  font-size: 12px;
  text-decoration: none;
  display: flex;
}

.server-tabs > button:hover, .nav-dropdown > button:hover {
  color: var(--color-foreground);
}

.server-tabs > button[aria-selected="true"], .nav-dropdown > button[aria-selected="true"] {
  color: var(--color-foreground);
  border-bottom-color: var(--color-accent);
}

.nav-dropdown {
  flex: none;
  position: relative;
}

.nav-chevron {
  transition: transform .15s;
}

.nav-chevron.open {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  z-index: 30;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  margin-top: 4px;
  padding: 6px;
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  box-shadow: 0 12px 30px #00000059;
}

.nav-dropdown-menu button {
  color: var(--color-foreground);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  border-radius: var(--radius);
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 12px;
  display: flex;
}

.nav-dropdown-menu button:hover, .nav-dropdown-menu button.active {
  background: var(--color-surface-2);
}

.server-runtime-strip {
  color: var(--color-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: -10px;
  font-size: 11px;
  display: flex;
}

.resource-band {
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  padding: 0 0 22px;
  display: grid;
}

.resource-band small {
  color: var(--color-muted);
  margin-bottom: 10px;
  font-size: 10px;
  display: block;
}

.resource-band strong {
  font-size: 18px;
  font-weight: 500;
}

.resource-band em {
  color: var(--color-muted);
  margin-left: 6px;
  font-size: 10px;
  font-style: normal;
}

.meter {
  background: var(--color-border);
  border-radius: 2px;
  height: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.meter span {
  background: #68bca2;
  max-width: 100%;
  height: 100%;
  display: block;
}

.terminal-tool {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--console-bg);
  overflow: hidden;
}

.terminal-toolbar {
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-surface);
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 10px;
  display: flex;
}

.terminal-toolbar > span {
  align-items: center;
  gap: 7px;
  display: flex;
}

.terminal-viewport {
  min-width: 0;
  height: clamp(200px, 100dvh - 515px, 420px);
  font-family: var(--console-font);
  font-size: var(--console-font-size);
  line-height: var(--console-line-height);
  padding: 14px 12px;
}

.terminal-viewport .xterm {
  height: 100%;
}

.command-bar {
  border-top: 1px solid var(--color-border);
  color: var(--color-accent-hover);
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  display: flex;
}

.command-bar input {
  outline-offset: 1px;
  font-family: var(--console-font);
  font-size: var(--console-font-size);
  background: none !important;
  border: 0 !important;
  padding: 4px !important;
}

.command-picker {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  max-height: 240px;
  overflow: auto;
}

.command-picker-heading {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 550;
  display: flex;
  position: sticky;
  top: 0;
}

.command-picker-heading span {
  color: var(--color-muted);
  font-weight: 400;
}

.command-picker button {
  width: 100%;
  color: var(--color-foreground);
  text-align: left;
  background: none;
  border: 0;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 7px 12px;
  font-size: 12px;
  display: flex;
}

.command-picker button.active {
  background: var(--color-surface-2);
}

.command-picker code {
  font-family: var(--console-font);
  color: var(--color-accent-hover);
  overflow-wrap: anywhere;
}

.command-picker button span {
  color: var(--color-muted);
  text-align: right;
  font-size: 11px;
}

.plugin-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-top: 14px;
}

.plugin-panel summary {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 550;
  list-style: none;
  display: flex;
}

.plugin-panel summary::-webkit-details-marker {
  display: none;
}

.plugin-chevron {
  color: var(--color-muted);
  margin-left: auto;
  transition: transform .15s;
}

.plugin-panel[open] .plugin-chevron {
  transform: rotate(180deg);
}

.plugin-panel-body {
  border-top: 1px solid var(--color-border);
  padding: 12px;
}

.plugin-toolbar, .plugin-group-heading, .plugin-list li {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.plugin-toolbar {
  margin-bottom: 12px;
}

.plugin-group + .plugin-group {
  margin-top: 16px;
}

.plugin-group-heading {
  margin-bottom: 8px;
  font-size: 12px;
}

.plugin-group-heading .muted {
  margin-right: auto;
  font-size: 11px;
}

.plugin-list {
  max-height: 360px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.plugin-list li {
  border-top: 1px solid var(--color-border);
  padding: 6px 0;
  font-size: 12px;
}

.plugin-list .button {
  min-height: 30px;
  padding: 4px 10px;
}

.plugin-empty {
  font-size: 12px;
}

.config-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  display: grid;
}

.config-sidebar .search-field {
  max-width: none;
  margin-bottom: 12px;
}

.config-list-group {
  margin-bottom: 16px;
}

.config-list-heading {
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.config-list-heading .muted {
  margin-right: auto;
}

.config-list-group ul {
  max-height: 60dvh;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

.config-list-group li button {
  border-radius: var(--radius);
  width: 100%;
  color: var(--color-foreground);
  text-align: left;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  font-size: 12px;
  display: flex;
}

.config-list-group li button:hover, .config-list-group li button.active {
  background: var(--color-surface-2);
}

.config-editor-heading {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  display: flex;
}

.config-editor-heading > div:first-child {
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.config-editor .code-editor {
  width: 100%;
  min-height: 60dvh;
}

.cfg-section {
  margin-top: 20px;
}

.cfg-section h3 {
  color: var(--color-muted);
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 550;
}

.cfg-row {
  border-top: 1px solid var(--color-border);
  grid-template-columns: 40px minmax(0, 1fr) minmax(160px, 320px);
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  display: grid;
}

.cfg-info {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  display: flex;
}

.cfg-info code {
  font-family: var(--font-mono), monospace;
  overflow-wrap: anywhere;
}

.cfg-row:not(.enabled) .cfg-info code {
  color: var(--color-muted);
}

.cfg-value {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.cfg-value input[aria-invalid="true"] {
  border-color: #a64646 !important;
}

.cfg-error {
  color: #f09a9a;
  font-size: 10px;
}

.cfg-switch {
  width: 34px;
  height: 20px;
  display: inline-flex;
  position: relative;
}

.cfg-switch input {
  opacity: 0;
  cursor: pointer;
  margin: 0;
  position: absolute;
  inset: 0;
}

.cfg-switch span {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  pointer-events: none;
  border-radius: 10px;
  width: 100%;
  transition: background .15s;
}

.cfg-switch span:after {
  content: "";
  background: var(--color-muted);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: transform .15s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.cfg-switch input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.cfg-switch input:checked + span:after {
  background: #fff;
  transform: translateX(14px);
}

.cfg-switch input:focus-visible + span {
  outline: 2px solid var(--color-accent-hover);
  outline-offset: 2px;
}

.cfg-extra {
  min-height: 140px;
}

.cfg-identity {
  max-width: 260px;
}

.rust-favorites {
  max-width: 760px;
}

.rust-favorites-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  display: flex;
}

.rust-favorites-heading h2 {
  margin-bottom: 4px;
}

.rust-favorites-heading > svg {
  color: var(--color-accent);
  flex: none;
  margin-top: 3px;
}

.rust-favorites-hint {
  margin: 8px 0 20px;
}

.rust-favorites-actions {
  justify-content: flex-end;
  margin-top: 18px;
  display: flex;
}

@media (max-width: 760px) {
  .config-layout, .cfg-row {
    grid-template-columns: 1fr;
  }

  .cfg-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cfg-value {
    grid-column: 1 / -1;
  }
}

.file-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  display: flex;
}

.file-path {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  width: 100%;
  min-width: 0;
  color: var(--color-muted);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  overflow: auto;
}

.file-path button {
  color: var(--color-accent-hover);
  white-space: nowrap;
  background: none;
  border: 0;
  padding: 0;
}

.file-path button:hover {
  color: var(--color-foreground);
  text-decoration: underline;
}

.file-search {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: min(250px, 100%);
  color: var(--color-muted);
  background: var(--color-background);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  display: flex;
}

.file-search input {
  background: none !important;
  border: 0 !important;
  padding-inline: 0 !important;
}

.file-search input:focus-visible {
  outline: 0;
}

.file-table {
  background: var(--fx-bg);
  font-family: var(--fx-font);
}

.file-table tbody tr:hover {
  background: var(--fx-row-hover);
}

.file-name {
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  align-items: center;
  gap: 10px;
  padding: 0;
  display: inline-flex;
}

.file-name svg {
  color: var(--fx-icon);
  flex-shrink: 0;
}

.file-name:hover {
  color: var(--color-accent-hover);
}

.file-name-disabled {
  cursor: not-allowed;
  opacity: .45;
}

.file-actions {
  justify-content: flex-end;
  gap: 2px;
  display: flex;
}

.code-editor {
  min-height: 400px;
  font: 12px/1.7 var(--font-mono),
    monospace;
  tab-size: 2;
  white-space: pre;
}

.server-file-editor {
  gap: 12px;
  display: grid;
}

.file-editor-location {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  min-width: 0;
  color: var(--color-muted);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.file-editor-location .mono {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.file-editor-breadcrumb {
  display: contents;
}

.support-page {
  gap: 16px;
  min-height: 0;
  display: grid;
}

.support-chat-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: min(680px, 100vh - 210px);
  display: grid;
  overflow: hidden;
}

.support-messages {
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 22px;
  display: flex;
  overflow-y: auto;
}

.support-message {
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 4px 14px 14px;
  align-self: flex-start;
  width: min(72%, 680px);
  padding: 12px 14px;
}

.support-message-staff {
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-border));
  background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
  border-radius: 14px 4px 14px 14px;
  align-self: flex-end;
}

.support-message > div {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
  font-size: 11px;
  display: flex;
}

.support-message time {
  color: var(--color-muted);
  white-space: nowrap;
}

.support-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.5;
}

.support-composer {
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 14px;
}

.support-composer textarea {
  resize: vertical;
  width: 100%;
  min-height: 72px;
}

.support-composer > div:last-child {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  display: flex;
}

.support-empty {
  text-align: center;
  color: var(--color-muted);
  margin: auto;
  padding: 40px 20px;
}

.support-empty h2 {
  color: var(--color-foreground);
  margin: 10px 0 4px;
  font-size: 16px;
}

.support-status {
  text-transform: uppercase;
  border-radius: 999px;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
}

.support-status-open {
  color: #86efac;
  background: #22c55e1f;
  border: 1px solid #22c55e4d;
}

.support-status-closed {
  color: var(--color-muted);
  background: var(--color-background);
  border: 1px solid var(--color-border);
}

.staff-support-layout {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 14px;
  min-height: min(680px, 100vh - 210px);
  display: grid;
}

.support-queue {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  overflow-y: auto;
}

.support-queue-heading {
  z-index: 1;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  justify-content: space-between;
  padding: 14px;
  display: flex;
  position: sticky;
  top: 0;
}

.support-queue-heading span {
  color: var(--color-muted);
  font-size: 11px;
}

.support-queue > button {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  width: 100%;
  color: inherit;
  background: none;
  padding: 14px;
}

.support-queue > button:hover, .support-queue > button.active {
  background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
}

.support-queue > button > div {
  justify-content: space-between;
  gap: 8px;
  display: flex;
}

.support-queue > button p {
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 7px 0;
  overflow: hidden;
}

.support-queue > button time {
  color: var(--color-muted);
  font-size: 10px;
}

.staff-support-chat {
  min-height: 0;
}

.support-chat-header {
  border-bottom: 1px solid var(--color-border);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  display: flex;
}

.support-chat-header h2, .support-chat-header p {
  margin: 0;
}

.support-chat-header p {
  color: var(--color-muted);
  margin-top: 4px;
  font-size: 11px;
}

.support-toolbox {
  border-bottom: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 88%, var(--color-accent) 12%);
  gap: 10px;
  padding: 12px 16px;
  display: grid;
}

.support-toolbox > div {
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  display: flex;
}

.support-toolbox > div span {
  color: var(--color-muted);
  font-size: 11px;
}

.support-toolbox nav {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.support-toolbox .button {
  min-height: 32px;
}

@media (max-width: 800px) {
  .staff-support-layout {
    grid-template-columns: 1fr;
  }

  .support-queue {
    max-height: 260px;
  }

  .support-message {
    width: 90%;
  }

  .support-chat-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.file-editor-location a {
  color: var(--color-accent-hover);
}

.file-editor-unsaved {
  color: var(--color-warning, #f0ad4e);
  white-space: nowrap;
  margin-left: auto;
}

.server-file-code {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #09090b;
  min-height: min(70vh, 900px);
  overflow: hidden;
  box-shadow: 0 18px 50px #0000002e;
}

.server-file-code .monaco-editor, .server-file-code .overflow-guard {
  border-radius: inherit;
}

.json-editor-workspace {
  gap: 10px;
  min-width: 0;
  display: grid;
}

.json-editor-tabs {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 8px;
  gap: 3px;
  width: fit-content;
  padding: 3px;
  display: flex;
}

.json-editor-tabs button {
  min-height: 28px;
  color: var(--color-muted);
  background: none;
  border: 0;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
}

.json-editor-tabs button:hover:not(:disabled), .json-editor-tabs button.active {
  color: var(--color-foreground);
  background: var(--color-surface-2);
}

.json-editor-tabs button.active {
  color: var(--color-accent-hover);
}

.rich-json-editor {
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-surface) 65%, var(--color-background));
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

.json-search {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-muted);
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  margin: 10px;
  padding: 0 11px;
  display: flex;
}

.json-search input {
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-height: 36px;
  padding: 0;
}

.json-tree {
  max-height: min(68vh, 820px);
  padding: 0 10px 12px;
  overflow: auto;
}

.json-node {
  min-width: 760px;
}

.json-row {
  min-height: 44px;
  padding: 5px 7px 5px calc(7px + var(--json-depth) * 18px);
  background: color-mix(in srgb, var(--color-background) 78%, transparent);
  border: 1px solid #0000;
  border-radius: 7px;
  grid-template-columns: 24px minmax(170px, .7fr) minmax(230px, 1fr) 106px 30px;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  display: grid;
}

.json-row:hover {
  border-color: color-mix(in srgb, var(--color-border) 80%, transparent);
  background: var(--color-background);
}

.json-disclosure, .json-delete {
  width: 28px;
  height: 28px;
  color: var(--color-muted);
  background: none;
  border: 0;
  place-items: center;
  padding: 0;
  display: grid;
}

.json-disclosure:disabled {
  opacity: 0;
}

.json-delete {
  color: #e56565;
}

.json-key, .json-value > input:not(.json-color), .json-type {
  background: var(--color-surface-2);
  border: 1px solid #0000;
  border-radius: 6px;
  width: 100%;
  min-height: 32px;
  padding: 5px 9px;
}

.json-key:focus, .json-value > input:focus, .json-type:focus {
  border-color: var(--color-accent);
  outline: 0;
}

.json-key-label {
  color: var(--color-muted);
  font-family: var(--font-mono), monospace;
  padding: 0 9px;
  font-size: 11px;
}

.json-value {
  align-items: center;
  gap: 8px;
  min-width: 0;
  display: flex;
}

.json-count, .json-null {
  color: var(--color-muted);
  font-family: var(--font-mono), monospace;
  font-size: 10px;
}

.json-color {
  background: none;
  border: 0;
  border-radius: 50%;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  overflow: hidden;
}

.json-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.json-color::-webkit-color-swatch {
  border: 2px solid var(--color-border);
  border-radius: 50%;
}

.json-boolean {
  color: var(--color-muted);
  font-family: var(--font-mono), monospace;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  display: inline-flex;
}

.json-boolean input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.json-boolean span {
  background: var(--color-surface-2);
  width: 36px;
  height: 20px;
  box-shadow: inset 0 0 0 1px var(--color-border);
  border-radius: 999px;
  position: relative;
}

.json-boolean span:after {
  content: "";
  background: var(--color-muted);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  transition: transform .16s, background .16s;
  position: absolute;
  top: 3px;
  left: 3px;
}

.json-boolean input:checked + span {
  background: color-mix(in srgb, var(--color-accent) 35%, var(--color-surface-2));
}

.json-boolean input:checked + span:after {
  background: var(--color-accent-hover);
  transform: translateX(16px);
}

.json-boolean:focus-within span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.json-type {
  color: var(--color-muted);
  font-size: 10px;
}

.json-add {
  margin: 3px 0 7px calc(40px + var(--json-depth) * 18px);
  color: var(--color-muted);
  background: none;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  font-size: 10px;
  display: inline-flex;
}

.json-add:hover {
  color: var(--color-accent-hover);
  background: var(--color-surface-2);
}

@media (max-width: 800px) {
  .json-row {
    grid-template-columns: 24px minmax(130px, .65fr) minmax(180px, 1fr) 92px 30px;
  }

  .json-node {
    min-width: 650px;
  }
}

.editor-meta {
  color: var(--color-muted);
  justify-content: space-between;
  margin: 8px 0 18px;
  font-size: 10px;
  display: flex;
}

.appearance-layout {
  max-width: 1000px;
}

.appearance-section {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.appearance-section h2 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 550;
}

.token-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
  display: grid;
}

.token-row {
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  display: flex;
}

.token-row > label {
  flex: 1;
  font-size: 12px;
}

.token-row input[type="color"] {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  border-radius: 4px;
  width: 34px;
  height: 30px;
  padding: 2px;
}

.token-row input[type="range"] {
  width: 92px;
}

.token-row input[type="number"] {
  width: 78px !important;
}

.token-row select {
  width: 135px;
  padding: 6px;
  font-size: 11px;
}

.token-value {
  min-width: 44px;
  color: var(--color-muted);
  font-size: 10px;
}

.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  display: grid;
}

.console-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--console-bg);
  height: 160px;
  color: var(--console-text);
  font-family: var(--console-font);
  font-size: var(--console-font-size);
  line-height: var(--console-line-height);
  padding: 16px;
  overflow: auto;
}

.file-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--fx-bg);
  height: 160px;
  font-family: var(--fx-font);
  padding: 10px;
  overflow: auto;
}

.file-preview > div {
  align-items: center;
  gap: 10px;
  padding: 10px;
  font-size: 12px;
  display: flex;
}

.file-preview > div:hover {
  background: var(--fx-row-hover);
}

.file-preview svg {
  color: var(--fx-icon);
}

.saved-indicator {
  color: #87cfa8;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  display: flex;
}

.metrics-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  display: grid;
}

.metrics-config {
  border-left: 1px solid var(--color-border);
  padding-left: 26px;
}

.metrics-config h2, .settings-section h2 {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 550;
}

.grafana-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  width: 100%;
  min-height: 620px;
}

.metrics-source {
  color: var(--color-muted);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-size: 11px;
  display: flex;
}

.metrics-source a {
  color: var(--color-accent-hover);
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.settings-section {
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.configuration-form {
  gap: 14px;
  max-width: 760px;
  display: grid;
}

.configuration-form .button {
  justify-self: start;
}

.configuration-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.settings-subsection {
  gap: 10px;
  display: grid;
}

.settings-subsection h3 {
  margin: 4px 0 2px;
  font-size: 13px;
  font-weight: 550;
}

.configuration-saved {
  color: #87cfa8;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  display: flex;
}

.configuration-note {
  align-items: center;
  gap: 8px;
  min-width: 260px;
  display: flex;
}

.configuration-note input {
  width: 100%;
  min-width: 0;
}

.discord-section-heading, .discord-guild-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}

.discord-section-heading p {
  margin: -12px 0 0;
  font-size: 12px;
}

.discord-connect-section {
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  display: flex;
}

.discord-connect-copy {
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  display: flex;
}

.discord-connect-copy h2 {
  margin-bottom: 5px;
}

.discord-connect-copy p {
  max-width: 590px;
  margin: 0;
  font-size: 12px;
}

.discord-section-icon, .discord-guild-avatar {
  background: color-mix(in srgb, var(--color-accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, var(--color-border));
  border-radius: var(--radius);
  color: var(--color-accent-hover);
  flex: none;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
}

.discord-connect-action {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  display: flex;
}

.discord-ready {
  color: #87cfa8;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  display: inline-flex;
}

.discord-install-button {
  min-width: 166px;
}

.discord-prerequisite {
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  display: grid;
}

.discord-prerequisite > svg {
  color: var(--color-warning, #e9b65c);
}

.discord-prerequisite strong, .discord-prerequisite span {
  display: block;
}

.discord-prerequisite span {
  color: var(--color-muted);
  margin-top: 3px;
  font-size: 11px;
}

.discord-saved {
  margin: 4px 0 2px;
  padding: 9px 0;
}

.discord-empty {
  padding: 38px 18px;
}

.discord-empty p {
  margin: -8px 0 0;
  font-size: 12px;
}

.discord-guilds-section {
  min-width: 0;
}

.discord-guild-list {
  gap: 14px;
  margin-top: 20px;
  display: grid;
}

.discord-guild {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.discord-guild-heading {
  background: var(--color-surface);
  align-items: center;
  margin: 0;
  padding: 14px 16px;
}

.discord-guild-heading h2 {
  margin: 0 0 4px;
  font-size: 13px;
}

.discord-guild-identity, .discord-server-name {
  align-items: center;
  gap: 10px;
  min-width: 0;
  display: flex;
}

.discord-guild-avatar {
  width: 32px;
  height: 32px;
}

.discord-connected-status, .discord-notification-state {
  color: var(--color-muted);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  display: inline-flex;
}

.discord-connected-status > span, .discord-notification-state > span {
  background: #54c486;
  border-radius: 50%;
  width: 6px;
  height: 6px;
}

.discord-grant-list {
  display: grid;
}

.discord-grant-row {
  border-top: 1px solid var(--color-border);
  grid-template-columns: minmax(180px, 1fr) minmax(120px, auto) minmax(220px, auto);
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 16px;
  display: grid;
}

.discord-grant-row:first-child {
  border-top: 0;
}

.discord-server-name > span, .discord-server-name strong, .discord-server-name small {
  display: block;
}

.discord-server-name > svg {
  color: var(--color-muted);
  flex: none;
}

.discord-server-name strong {
  font-size: 12px;
  font-weight: 550;
}

.discord-server-name small {
  margin-top: 3px;
  font-size: 10px;
}

.discord-grant-access .check-field {
  margin: 0;
}

.discord-grant-permissions {
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  display: flex;
}

.discord-permission-toggle {
  color: var(--color-muted);
  align-items: center;
  gap: 7px;
  min-height: 28px;
  font-size: 11px;
  display: flex;
}

.discord-permission-toggle > span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}

.discord-notifications-section .configuration-form {
  max-width: none;
}

.discord-notification-state > span {
  background: var(--color-muted);
}

.discord-notification-state.is-enabled {
  color: #87cfa8;
}

.discord-notification-state.is-enabled > span {
  background: #54c486;
}

.discord-notification-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.discord-inline-note {
  align-items: center;
  gap: 7px;
  margin: -3px 0 0;
  font-size: 11px;
  display: flex;
}

.discord-master-toggle {
  border-bottom: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  margin: 4px 0 0;
  padding: 13px 0;
}

.discord-master-toggle span, .discord-master-toggle strong, .discord-master-toggle small, .discord-event-list .check-field span, .discord-event-list .check-field strong, .discord-event-list .check-field small {
  display: block;
}

.discord-master-toggle strong, .discord-event-list .check-field strong {
  font-size: 12px;
  font-weight: 550;
}

.discord-master-toggle small, .discord-event-list .check-field small {
  margin-top: 3px;
  font-size: 10px;
}

.discord-event-list {
  gap: 0;
}

.discord-event-list h3 {
  margin: 4px 0 9px;
}

.discord-event-list .check-field {
  border-top: 1px solid var(--color-border);
  margin: 0;
  padding: 10px 0;
}

.discord-event-list .check-field:last-child {
  border-bottom: 1px solid var(--color-border);
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.data-table td.row-actions {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .discord-connect-section, .discord-guild-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .discord-connect-action {
    align-items: stretch;
    width: 100%;
  }

  .discord-install-button {
    justify-content: center;
    width: 100%;
  }

  .discord-prerequisite {
    flex-wrap: wrap;
    grid-template-columns: auto 1fr;
  }

  .discord-prerequisite .button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .discord-grant-row {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .discord-grant-permissions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 25px;
  }

  .discord-notification-fields {
    grid-template-columns: 1fr;
  }
}

.data-table td.row-actions > * {
  vertical-align: middle;
  margin-left: 4px;
}

.allocation-add {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.allocation-add select {
  min-width: 220px;
}

.allocation-hint {
  margin-top: 10px;
  font-size: 11px;
}

.configuration-variable-actions {
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-top: 6px;
  display: flex;
}

.configuration-variable-actions > span {
  overflow-wrap: anywhere;
  margin-right: auto;
}

.startup-command {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-family: var(--font-mono), monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 260px;
  margin: 0 0 16px;
  padding: 14px;
  font-size: 11px;
  line-height: 1.6;
  overflow: auto;
}

.settings-list {
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 15px 20px;
  font-size: 12px;
  display: grid;
}

.settings-list dt {
  color: var(--color-muted);
}

.settings-list dd {
  overflow-wrap: anywhere;
  margin: 0;
}

.secret-value {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-background);
  font: 11px/1.7 var(--font-mono),
    monospace;
  overflow-wrap: anywhere;
  margin: 12px 0 18px;
  padding: 14px;
  display: block;
}

.sign-in {
  background: var(--color-background);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  padding: 36px 20px;
  display: flex;
}

.sign-in-brand {
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  font-size: 25px;
  font-weight: 550;
  display: flex;
}

.sign-in-form {
  width: min(360px, 100%);
}

.sign-in-heading {
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  display: flex;
}

.sign-in-heading svg {
  color: var(--color-muted);
}

.sign-in-heading h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
}

.sign-in-form .field {
  margin-bottom: 20px;
}

.sign-in-form > .button {
  width: 100%;
  margin-top: 8px;
}

.sign-in-help {
  color: var(--color-muted);
  margin: 0 0 22px;
  font-size: 12px;
  line-height: 1.6;
}

.sign-in-account {
  color: var(--color-muted);
  overflow-wrap: anywhere;
  margin: -4px 0 8px;
  font-size: 11px;
}

.sign-in-account strong {
  color: var(--color-foreground);
  font-weight: 500;
}

.sign-in-back {
  width: 100%;
  color: var(--color-muted);
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 4px;
  font-size: 12px;
  display: flex;
}

.sign-in-back:hover {
  color: var(--color-foreground);
}

.sign-in-divider {
  color: var(--color-muted);
  text-transform: uppercase;
  align-items: center;
  gap: 12px;
  margin: 26px 0 16px;
  font-size: 10px;
  display: flex;
}

.sign-in-divider:before, .sign-in-divider:after {
  content: "";
  background: var(--color-border);
  flex: 1;
  height: 1px;
}

.provider-buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.provider-button {
  min-width: 0;
  padding-inline: 8px;
}

.provider-mark {
  flex: none;
  width: 15px;
  height: 15px;
}

.provider-mark-discord {
  color: #8b94ff;
}

.provider-mark-google {
  color: #4285f4;
}

.provider-mark-github {
  color: var(--color-foreground);
}

.sign-in-footer {
  color: var(--color-muted);
  align-items: center;
  gap: 7px;
  margin-top: 32px;
  font-size: 10px;
  display: flex;
}

.boot-screen {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 100dvh;
  font-size: 22px;
  display: flex;
}

.mobile-nav-toggle, .mobile-nav-close, .nav-backdrop {
  display: none;
}

@media (max-width: 1100px) {
  .staff-create-grid, .staff-budget-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-permission-row {
    grid-template-columns: minmax(160px, .6fr) minmax(360px, 1.4fr);
  }

  .staff-permission-row > .button {
    grid-column: 2;
    justify-self: start;
  }

  .metrics-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .metrics-config {
    border-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    padding-left: 0;
  }

  .metrics-config form {
    max-width: 600px;
  }
}

@media (max-width: 800px) {
  .panel-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    visibility: hidden;
    pointer-events: none;
    width: 224px;
    transition: transform .18s;
    position: fixed;
    transform: translateX(-100%);
  }

  .sidebar-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .nav-backdrop {
    z-index: 25;
    background: #0008;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .mobile-nav-close {
    display: inline-flex;
    position: absolute;
    top: 22px;
    right: 10px;
  }

  .topbar {
    justify-content: flex-start;
    gap: 10px;
    height: 58px;
    padding: 0 18px;
  }

  .workspace-label {
    margin-left: auto;
  }

  .page-content {
    padding: 24px 18px 48px;
  }

  .staff-area .page-content {
    padding: 28px 18px 64px;
  }

  .staff-area .summary-strip {
    margin-bottom: 40px;
  }

  .staff-section {
    margin-top: 48px;
  }

  .staff-permission-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .staff-permission-row > .button {
    grid-column: auto;
  }

  .page-heading h1 {
    font-size: 23px;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
    padding: 18px 0;
  }

  .summary-strip > div {
    padding: 0 16px;
  }

  .summary-strip > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .summary-value {
    font-size: 20px;
  }

  .staff-finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-finance-grid > div:nth-child(3n+1) {
    border-left: 1px solid var(--color-border);
  }

  .staff-finance-grid > div:nth-child(odd) {
    border-left: 0;
  }

  .staff-finance-grid > div:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }

  .data-table {
    min-width: 650px;
  }

  .resource-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .token-grid, .preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .terminal-viewport {
    height: clamp(220px, 100dvh - 540px, 360px);
  }
}

@media (max-width: 480px) {
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .workspace-label {
    display: none;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .staff-create-grid, .staff-budget-form, .staff-finance-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .staff-finance-grid > div {
    border-top: 1px solid var(--color-border);
    border-left: 0 !important;
  }

  .staff-finance-grid > div:first-child {
    border-top: 0;
  }

  .staff-permission-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-field {
    min-width: 160px;
    max-width: none;
  }

  .toolbar select {
    width: 130px;
  }

  .server-tabs {
    gap: 0 18px;
  }

  .modal-body {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spin {
    animation: none;
  }

  .sidebar, .nav-item {
    transition: none;
  }
}

.monitoring-view {
  min-width: 0;
}

.monitoring-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  display: flex;
}

.monitoring-toolbar select {
  width: 170px;
}

.monitoring-status {
  color: #22c55e;
  font-size: 11px;
}

.monitoring-empty, .monitoring-setup {
  border-block: 1px solid var(--color-border);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  min-height: 260px;
  display: flex;
}

.monitoring-setup h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.monitoring-setup-controls {
  gap: 12px;
  width: min(100%, 300px);
  display: grid;
}

.panel-shell .monitoring-player-filter {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-block: 18px;
  display: flex;
}

.monitoring-player-filter input:not([type="color"]):not([type="checkbox"]):not([type="range"]) {
  width: 200px;
  max-width: 100%;
}

.monitoring-updated {
  color: var(--color-muted);
  text-align: right;
  font-size: 11px;
}

.monitoring-section {
  margin-block: 22px;
}

.monitoring-section h3 {
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.monitoring-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.monitoring-panel {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}

.monitoring-panel header {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 4px;
  display: flex;
}

.monitoring-panel h4 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
}

.monitoring-panel header > span {
  font-size: 10px;
}

.monitoring-canvas {
  width: 100%;
  height: 240px;
}

.monitoring-no-data {
  height: 240px;
  color: var(--color-muted);
  justify-content: center;
  align-items: center;
  font-size: 12px;
  display: flex;
}

.monitoring-stat {
  min-height: 130px;
  font: 30px var(--font-geist-mono),
    monospace;
  align-items: center;
  padding: 18px;
  display: flex;
}

.monitoring-panel-compact .monitoring-no-data {
  height: 130px;
}

.monitoring-table {
  height: 240px;
  overflow: auto;
}

.monitoring-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
}

.monitoring-table th, .monitoring-table td {
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  overflow-wrap: anywhere;
  padding: 10px 16px;
}

.monitoring-table td:last-child {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .monitoring-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.egg-definition {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 100%;
  max-height: 400px;
  padding: 12px;
  font-size: 12px;
  overflow: auto;
}

.segmented {
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.segmented button {
  color: var(--color-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  min-height: 40px;
  padding: 10px 12px;
}

.segmented button.active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-accent-hover);
}

.text-button {
  color: var(--color-foreground);
  text-align: left;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
}

.server-details dd {
  overflow-wrap: anywhere;
  min-width: 0;
}

.marketplace-tabs {
  margin-bottom: 22px;
}

.marketplace-tabs button {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.marketplace-section {
  gap: 18px;
  display: grid;
}

.marketplace-provider-grid, .marketplace-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  display: grid;
}

.marketplace-provider, .marketplace-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 10px;
  min-width: 0;
  padding: 16px;
}

.marketplace-provider {
  gap: 10px;
  display: grid;
}

.marketplace-provider > div:first-child {
  justify-content: space-between;
  gap: 10px;
  display: flex;
}

.marketplace-provider span, .marketplace-card-heading span, .marketplace-card-meta {
  color: var(--color-muted);
  font-size: 12px;
}

.marketplace-provider p, .marketplace-card p {
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

.marketplace-provider .button {
  justify-self: start;
}

.marketplace-provider-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.marketplace-search {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 7px;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 0 10px;
  display: flex;
}

.marketplace-search input {
  background: none;
  border: 0;
  width: 100%;
  min-height: 38px;
  padding: 0;
}

.marketplace-card {
  flex-direction: column;
  gap: 14px;
  display: flex;
}

.marketplace-card-heading {
  align-items: center;
  gap: 12px;
  display: flex;
}

.marketplace-icon {
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.marketplace-card h2 {
  margin: 0;
  font-size: 15px;
}

.marketplace-card p {
  flex: 1;
}

.marketplace-card-meta, .marketplace-card-actions, .marketplace-pagination {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  display: flex;
}

.marketplace-card-actions {
  justify-content: flex-end;
}

.marketplace-pagination {
  justify-content: center;
}

.marketplace-back {
  margin-bottom: 14px;
}

.notice-success {
  border: 1px solid color-mix(in srgb, var(--color-success) 45%, transparent);
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
  border-radius: 7px;
  padding: 12px;
}

@media (max-width: 640px) {
  .marketplace-provider-grid, .marketplace-grid {
    grid-template-columns: 1fr;
  }
}

.rust-startup {
  gap: 22px;
  max-width: 1180px;
  padding-bottom: 28px;
  display: grid;
}

.rust-startup-heading h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

.rust-startup-heading p, .rust-section-help {
  color: var(--color-muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.rust-settings-card {
  border: 1px solid var(--color-border, #27272a);
  background: var(--color-surface, #111113);
  border-radius: 12px;
  padding: 24px;
}

.rust-settings-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.rust-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  display: grid;
}

.rust-field-help {
  color: var(--color-muted);
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.rust-input-row {
  align-items: center;
  gap: 6px;
  display: flex;
}

.rust-input-row input {
  flex: 1;
  min-width: 0;
}

.rust-map-upload {
  background: var(--color-background, #09090b);
  border: 1px solid var(--color-border, #27272a);
  border-radius: 8px;
  margin: 20px 0 26px;
  padding: 20px;
}

.rust-map-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.rust-map-actions .rust-field-help {
  margin: 0;
}

.rust-map-progress {
  border: 3px solid color-mix(in srgb, var(--color-border, #27272a) 78%, transparent);
  width: 58px;
  height: 58px;
  color: var(--color-text, #f4f4f5);
  font-variant-numeric: tabular-nums;
  border-radius: 50%;
  place-items: center;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  position: relative;
}

.rust-map-progress:before {
  content: "";
  border: 3px solid #0000;
  border-top-color: var(--color-accent, #8b5cf6);
  border-right-color: color-mix(in srgb, var(--color-accent, #8b5cf6) 55%, transparent);
  border-radius: inherit;
  animation: .8s linear infinite rust-map-progress-spin;
  position: absolute;
  inset: -3px;
}

.rust-map-progress span {
  z-index: 1;
  position: relative;
}

@keyframes rust-map-progress-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rust-map-progress:before {
    animation-duration: 1.8s;
  }
}

.rust-settings-card summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.rust-details-content, .rust-settings-card[open] > .rust-section-help {
  margin-top: 22px;
}

.rust-technical {
  margin-top: 24px;
}

.rust-technical summary {
  color: var(--color-muted);
  font-size: 13px;
}

.rust-apply-map {
  border-top: 1px solid var(--color-border, #27272a);
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  display: flex;
}

.rust-apply-map > div {
  max-width: 730px;
}

.rust-apply-map > button {
  flex-shrink: 0;
}

.rust-map-notice {
  align-items: flex-start;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .rust-settings-grid {
    grid-template-columns: 1fr;
  }

  .rust-settings-card {
    padding: 18px;
  }

  .rust-apply-map {
    flex-direction: column;
    align-items: flex-start;
  }
}

.billing-page {
  width: min(1200px, 100% - 48px);
  margin: 40px auto 72px;
}

.page-content > .billing-page {
  width: 100%;
  margin: 0 auto;
}

.billing-overview {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  grid-template-columns: 1.2fr 1fr 1fr;
  margin-bottom: 28px;
  display: grid;
  overflow: hidden;
}

.billing-plan-summary, .billing-summary-item {
  min-width: 0;
  padding: 26px;
}

.billing-plan-summary h2 {
  margin: 10px 0 6px;
  font-size: 26px;
}

.billing-plan-summary p {
  margin: 0 0 16px;
}

.billing-eyebrow {
  letter-spacing: .12em;
  color: #a99bd1;
  font-size: 10px;
  font-weight: 650;
}

.billing-summary-item {
  border-left: 1px solid var(--color-border);
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  display: flex;
}

.billing-summary-item > span {
  color: var(--color-muted);
  font-size: 12px;
}

.billing-summary-item strong {
  font-size: 21px;
}

.billing-summary-item small {
  color: var(--color-muted);
  line-height: 1.7;
}

.billing-plans-heading {
  margin: 30px 0 20px;
}

.billing-plans-heading h2 {
  margin: 0 0 7px;
  font-size: 19px;
}

.billing-plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.billing-plan-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  display: flex;
}

.billing-plan-card.is-current {
  background: linear-gradient(145deg, #8b5cf610, #0000 65%);
  border-color: #8061bf;
}

.billing-plan-card h3 {
  margin: 16px 0;
  font-size: 22px;
}

.billing-price {
  letter-spacing: -1px;
  font-size: 34px;
  font-weight: 650;
}

.billing-price small {
  color: var(--color-muted);
  letter-spacing: 0;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 400;
}

.billing-plan-card p {
  min-height: 44px;
  line-height: 1.7;
}

.billing-plan-card ul {
  margin-bottom: 26px;
  padding-left: 17px;
  font-size: 12px;
  line-height: 2.4;
}

.billing-plan-card .button {
  justify-content: center;
  width: 100%;
  margin-top: auto;
}

.discord-hub-hero {
  background: linear-gradient(110deg, #5865f21c, #0000);
  border: 1px solid #7560ae55;
  border-radius: 14px;
  align-items: center;
  gap: 22px;
  margin-bottom: 25px;
  padding: 28px;
  display: flex;
}

.discord-hub-icon {
  color: #a9afff;
  background: #5865f222;
  border-radius: 16px;
  padding: 18px;
}

.discord-hub-hero h2 {
  margin: 10px 0;
  font-size: 25px;
}

.discord-hub-hero p {
  color: var(--color-muted);
  max-width: 620px;
  margin: 0;
  line-height: 1.8;
}

.discord-hub-account {
  border: 1px solid var(--color-border);
  white-space: nowrap;
  border-radius: 20px;
  margin-left: auto;
  padding: 8px 12px;
  font-size: 11px;
}

.discord-hub-tabs {
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.discord-hub-tabs button {
  align-items: center;
  gap: 8px;
  display: flex;
}

.discord-coming-soon {
  color: #bca5ed;
  background: #8b5cf622;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 9px;
}

.discord-heartbeat-preview {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 30px;
}

.discord-heartbeat-preview > p {
  color: var(--color-muted);
  max-width: 660px;
  line-height: 1.8;
}

.discord-heartbeat-message {
  background: var(--color-surface);
  border-left: 3px solid #8b5cf6;
  border-radius: 6px;
  max-width: 480px;
  margin: 25px 0;
  padding: 22px;
}

@media (max-width: 900px) {
  .billing-page {
    width: min(100% - 28px, 1200px);
    margin-top: 24px;
  }

  .page-content > .billing-page {
    width: 100%;
    margin-top: 0;
  }

  .billing-overview, .billing-plan-grid {
    grid-template-columns: 1fr;
  }

  .billing-summary-item {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .discord-hub-hero {
    flex-wrap: wrap;
  }

  .discord-hub-account {
    margin-left: 0;
  }
}

.editor-launch-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  display: grid;
}

.editor-launch-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  text-decoration: none;
  display: flex;
}

.editor-launch-card:hover {
  border-color: #8b5cf6;
}

.editor-launch-card strong {
  font-size: 17px;
}

.editor-launch-card span {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.8;
}

@media (max-width: 650px) {
  .editor-launch-grid {
    grid-template-columns: 1fr;
  }
}

.import-layout {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: start;
  gap: 24px;
  display: grid;
}

.import-layout h2 {
  margin: 14px 0 24px;
  font-size: 24px;
}

.import-guide p, .import-note {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.9;
}

.import-note {
  background: #8b5cf609;
  border-left: 2px solid #9776ce;
  padding: 10px 14px;
}

.import-count-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
  display: grid;
}

.import-count-grid > div {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  display: flex;
}

.import-count-grid strong {
  font-size: 25px;
}

.import-count-grid span {
  color: var(--color-muted);
  text-transform: capitalize;
  font-size: 11px;
}

@media (max-width: 850px) {
  .import-layout {
    grid-template-columns: 1fr;
  }

  .import-count-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rust-startup-gamemode {
  border-top: 1px solid var(--color-border);
  max-width: 700px;
  margin-top: 22px;
  padding-top: 22px;
}

.panel-shell {
  grid-template-columns: var(--sidebar-width, 224px) minmax(0,1fr);
  font-family: var(--panel-font, var(--font-sans));
  font-size: var(--panel-font-size, 13px);
}

.panel-shell .sidebar {
  background: var(--sidebar-bg, var(--color-surface));
}

.panel-shell .topbar {
  background: var(--topbar-bg, var(--color-background));
}

.panel-shell .page-content {
  max-width: var(--content-width-resolved, 1600px);
}

[data-contentwidth="full"] {
  --content-width-resolved: none;
}

[data-contentwidth="centered"] {
  --content-width-resolved: 1180px;
}

[data-density="compact"] .page-content {
  padding: 22px 24px 44px;
}

[data-density="compact"] .data-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

[data-density="compact"] .nav-item {
  min-height: 34px;
  padding-top: 8px;
  padding-bottom: 8px;
}

[data-density="spacious"] .page-content {
  padding-top: 44px;
}

[data-density="spacious"] .data-table td {
  padding-top: 22px;
  padding-bottom: 22px;
}

[data-density="spacious"] .nav-item {
  padding-top: 15px;
  padding-bottom: 15px;
}

[data-surfacestyle="flat"] :is(.rust-settings-card, .billing-plan-card, .discord-guild, .marketplace-card, .summary-strip) {
  border-color: #0000;
  border-bottom-color: var(--color-border);
  background: none;
  border-radius: 0;
}

[data-surfacestyle="glass"] :is(.rust-settings-card, .billing-plan-card, .discord-guild, .marketplace-card, .summary-strip) {
  background: color-mix(in srgb,var(--color-surface) 72%,transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px #0002;
}

[data-surfacestyle="glass"] .panel-main {
  background: radial-gradient(ellipse at 85% 5%,color-mix(in srgb,var(--color-accent) 8%,transparent),transparent 60%);
}

[data-serversview="cards"] .server-list-table {
  display: block;
}

[data-serversview="cards"] .server-list-table thead {
  display: none;
}

[data-serversview="cards"] .server-list-table tbody {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  display: grid;
}

[data-serversview="cards"] .server-list-table tr {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  grid-template-columns: 1fr 1fr;
  padding: 12px;
  display: grid;
}

[data-serversview="cards"] .server-list-table td {
  border: 0;
  display: block;
}

[data-serversview="cards"] .server-list-table td:first-child {
  grid-column: 1 / -1;
}

.appearance-preset-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  display: grid;
}

.appearance-preset {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  text-align: left;
  cursor: pointer;
  color: var(--color-foreground);
  border-radius: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  display: flex;
}

.appearance-preset:hover {
  border-color: var(--color-accent);
}

.appearance-preset small {
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.7;
}

.appearance-layout-mini {
  background: var(--color-background);
  border: 1px solid #8883;
  border-radius: 5px;
  grid-template-rows: 20px 1fr 1fr;
  grid-template-columns: 24% 1fr;
  gap: 5px;
  width: 100%;
  height: 85px;
  padding: 5px;
  display: grid;
}

.appearance-layout-mini i {
  background: color-mix(in srgb,var(--color-accent) 25%,var(--color-surface));
  border-radius: 3px;
}

.appearance-layout-mini i:first-child {
  grid-row: 1 / -1;
}

.appearance-layout-mini i:nth-child(2) {
  background: var(--color-surface-2);
}

.mini-command {
  grid-template-columns: 12% 1fr;
}

.mini-horizon {
  grid-template-columns: 1fr 1fr;
}

.mini-horizon i:first-child {
  grid-area: 1 / 1 / auto / -1;
}

.mini-studio {
  gap: 7px;
  padding: 9px;
}

.appearance-transfer {
  margin: 20px 0;
}

@media (min-width: 801px) {
  [data-sidebarstyle="compact"] .panel-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  [data-sidebarstyle="compact"] .sidebar {
    align-items: center;
    padding: 28px 10px 14px;
  }

  [data-sidebarstyle="compact"] .sidebar nav {
    width: 100%;
  }

  [data-sidebarstyle="compact"] .sidebar .nav-label, [data-sidebarstyle="compact"] .brand > span, [data-sidebarstyle="compact"] .account-link > div {
    display: none;
  }

  [data-sidebarstyle="compact"] .sidebar .nav-item {
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
    padding: 14px 0;
    font-size: 0;
  }

  [data-sidebarstyle="compact"] .sidebar .nav-item svg {
    width: 20px;
    height: 20px;
  }

  [data-sidebarstyle="compact"] .sidebar .brand {
    padding: 0;
  }

  [data-sidebarstyle="compact"] .sidebar .account {
    flex-direction: column;
    gap: 14px;
  }

  [data-sidebarstyle="compact"] .sidebar .account-link {
    padding: 0;
  }

  [data-sidebarstyle="floating"] .sidebar {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    height: calc(100dvh - 32px);
    margin: 16px 0 16px 16px;
    top: 16px;
    box-shadow: 0 8px 30px #0002;
  }

  [data-panellayout="focus"] .panel-main > .topbar {
    background: none;
    border-bottom: 0;
  }

  [data-panellayout="focus"] .page-content {
    padding-top: 12px;
  }

  [data-panellayout="topbar"] .panel-shell {
    display: block;
  }

  [data-panellayout="topbar"] .panel-shell > .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    height: auto;
    min-height: 72px;
    margin: 0;
    padding: 12px 24px;
    position: sticky;
    top: 0;
  }

  [data-panellayout="topbar"] .sidebar nav {
    flex-wrap: wrap;
    flex: 1;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    display: flex;
  }

  [data-panellayout="topbar"] .sidebar .nav-label {
    display: none;
  }

  [data-panellayout="topbar"] .sidebar .nav-item {
    gap: 7px;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    font-size: 11px;
  }

  [data-panellayout="topbar"] .sidebar-bottom {
    border: 0;
    margin: 0;
    padding: 0;
  }

  [data-panellayout="topbar"] .sidebar .account {
    flex-direction: row;
  }

  [data-panellayout="topbar"] .sidebar .account-link > div {
    display: none;
  }

  [data-panellayout="topbar"] .panel-main > .topbar {
    height: 48px;
  }
}

@media (max-width: 1000px) {
  .appearance-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .panel-shell {
    grid-template-columns: 1fr;
  }

  .appearance-preset-grid {
    grid-template-columns: 1fr 1fr;
  }

  [data-serversview="cards"] .server-list-table tbody {
    grid-template-columns: 1fr;
  }

  [data-density] .page-content {
    padding: 24px 18px 48px;
  }
}

[data-serversview="cards"] .server-list-table td[data-label]:before {
  content: attr(data-label);
  color: var(--color-muted);
  margin-bottom: 7px;
  font-size: 10px;
  display: block;
}

.heartbeat-settings {
  gap: 24px;
  display: grid;
}

.heartbeat-intro {
  border: 1px solid var(--color-border);
  background: linear-gradient(120deg, #8b5cf611, #0000);
  border-radius: 12px;
  align-items: center;
  gap: 22px;
  padding: 25px;
  display: flex;
}

.heartbeat-intro h2 {
  margin: 10px 0;
  font-size: 24px;
}

.heartbeat-intro p {
  max-width: 700px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
}

.heartbeat-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  align-items: start;
  gap: 22px;
  display: grid;
}

.heartbeat-guide ul {
  color: var(--color-muted);
  padding-left: 18px;
  font-size: 12px;
  line-height: 2;
}

.heartbeat-guide p, .heartbeat-publish-note, .heartbeat-account-hint {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.8;
}

.heartbeat-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
  margin-top: 14px;
  padding: 22px;
}

.heartbeat-card-heading, .heartbeat-card-footer {
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  display: flex;
}

.heartbeat-card-heading h3 {
  margin: 0 0 8px;
}

.heartbeat-card-heading p {
  margin: 0;
  font-size: 11px;
}

.heartbeat-card-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 18px;
  padding-top: 18px;
  font-size: 11px;
}

.heartbeat-state {
  white-space: nowrap;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 11px;
}

.heartbeat-live {
  color: #67dca4;
  border-color: #67dca444;
}

.heartbeat-error {
  color: #f5bd70;
  border-color: #f5bd7044;
}

.heartbeat-pending {
  color: #b89af0;
}

.heartbeat-list > h2 {
  margin: 0 0 15px;
  font-size: 18px;
}

@media (max-width: 850px) {
  .heartbeat-layout {
    grid-template-columns: 1fr;
  }

  .heartbeat-intro {
    align-items: flex-start;
  }

  .heartbeat-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .heartbeat-card-footer .button-row {
    flex-wrap: wrap;
  }
}

.file-mass-actions {
  background: var(--fx-bg, #090a0d);
  border: 1px solid #7000fd;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  padding: 10px 12px;
  display: flex;
  position: sticky;
  bottom: 12px;
}

.file-mass-actions span {
  font-family: var(--fx-font);
  margin-right: auto;
}

.public-status {
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.public-status-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  gap: 18px;
  width: min(480px, 100%);
  padding: 32px;
  display: grid;
}

.public-status-card h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.public-status-state {
  align-items: center;
  gap: 8px;
  font-weight: 500;
  display: inline-flex;
}

.public-status-state i {
  background: currentColor;
  border-radius: 50%;
  width: 9px;
  height: 9px;
}

.public-status-online {
  color: #80d8a8;
}

.public-status-offline {
  color: #ee949b;
}

.public-status-unavailable {
  color: #ebc27c;
}

.public-status-notice {
  border-left: 2px solid var(--color-border);
  margin: 0;
  padding: 12px 14px;
  line-height: 1.6;
}

.public-status-facts {
  gap: 12px;
  margin: 0;
  display: grid;
}

.public-status-facts dt {
  color: var(--color-muted);
  font-size: 12px;
}

.public-status-facts dd {
  margin: 2px 0 0;
  font-size: 18px;
}

.status-link {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.status-link input {
  flex: 1;
  min-width: 220px;
}

.check-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.palette-backdrop {
  z-index: 100;
  background: #0000008c;
  justify-content: center;
  align-items: flex-start;
  padding: 14vh 16px 16px;
  display: flex;
  position: fixed;
  inset: 0;
}

.palette {
  border: 1px solid var(--color-border);
  background: var(--color-background, #0c0c0c);
  border-radius: 12px;
  width: min(560px, 100%);
  overflow: hidden;
}

.palette-input {
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  display: flex;
}

.palette-input input {
  min-height: 48px;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
}

.palette-list {
  max-height: 340px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
}

.palette-list li {
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  display: flex;
}

.palette-list li.palette-active {
  background: #ffffff14;
}

.palette-list li.palette-empty {
  cursor: default;
}

.palette-foot {
  border-top: 1px solid var(--color-border);
  gap: 16px;
  padding: 9px 14px;
  font-size: 12px;
  display: flex;
}

.nav-search {
  width: 100%;
  font: inherit;
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
}

.nav-search kbd {
  opacity: .7;
  margin-left: auto;
  font-size: 11px;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.page-enter {
  animation: .22s ease-out both page-enter;
}

.modal[open] {
  animation: .18s cubic-bezier(.22, 1, .36, 1) both pop-in;
}

.modal[open]::backdrop {
  animation: .18s ease-out both fade-in;
}

.nav-dropdown-menu {
  transform-origin: 0 0;
  animation: .14s ease-out both menu-in;
}

.button, .nav-dropdown-menu button, .server-tabs button, .server-tabs a {
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}

.button:active:not(:disabled) {
  transform: translateY(1px);
}

tbody tr {
  transition: background .12s;
}

@media (prefers-reduced-motion: reduce) {
  .page-enter, .modal[open], .nav-dropdown-menu, .toast {
    animation: .35s ease-out both fade-in;
  }

  .modal[open]::backdrop {
    animation: none;
  }

  .button, .nav-dropdown-menu button, .server-tabs button, .server-tabs a, tbody tr {
    transition: none;
  }
}

.toast-viewport {
  z-index: 100;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
  width: min(360px, 100vw - 32px);
  display: flex;
  position: fixed;
  top: 16px;
  right: 16px;
}

.toast {
  pointer-events: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--toast-color, var(--color-accent));
  border-radius: var(--radius);
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  animation: .24s cubic-bezier(.22, 1, .36, 1) both toast-in;
  display: flex;
  box-shadow: 0 12px 30px #0006;
}

.toast-leaving {
  animation: .2s ease-in both toast-out;
}

.toast-success {
  --toast-color: #22c55e;
}

.toast-info {
  --toast-color: var(--color-accent);
}

.toast-warning {
  --toast-color: #f59e0b;
}

.toast-error {
  --toast-color: #ef4444;
}

.toast-icon {
  color: var(--toast-color);
  flex: none;
  margin-top: 1px;
}

.toast-body {
  flex-direction: column;
  flex: 1;
  gap: 2px;
  min-width: 0;
  font-size: 12px;
  display: flex;
}

.toast-body strong {
  font-size: 13px;
}

.toast-body span {
  color: var(--color-muted);
}

.toast-body a {
  color: var(--toast-color);
  width: fit-content;
  margin-top: 4px;
  font-weight: 600;
}

.toast-close {
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 4px;
  flex: none;
  padding: 2px;
}

.toast-close:hover {
  color: var(--color-foreground);
  background: var(--color-surface-2);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(24px);
  }
}

.node-name {
  color: var(--color-foreground);
  font-weight: 600;
}

.node-name:hover {
  color: var(--color-accent);
}

.clickable-row {
  cursor: default;
}

.usage {
  min-width: 150px;
}

.usage small {
  color: var(--color-muted);
  font-size: 11px;
}

.usage-bar {
  background: var(--color-surface-2);
  border-radius: 999px;
  height: 6px;
  margin-bottom: 4px;
  overflow: hidden;
}

.usage-bar span {
  border-radius: inherit;
  height: 100%;
  transition: width .4s;
  display: block;
}

.usage-low {
  background: #22c55e;
}

.usage-mid {
  background: #f59e0b;
}

.usage-high {
  background: #ef4444;
}

.node-health {
  white-space: nowrap;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  display: inline-flex;
}

.node-health i {
  background: var(--color-muted);
  border-radius: 50%;
  width: 8px;
  height: 8px;
}

.node-health-online i {
  background: #22c55e;
  box-shadow: 0 0 0 3px #22c55e33;
}

.node-health-offline i {
  background: #ef4444;
  box-shadow: 0 0 0 3px #ef444433;
}

.node-health-maintenance i {
  background: #f59e0b;
}

.node-tabs {
  border-bottom: 1px solid var(--color-border);
  gap: 4px;
  margin-bottom: 18px;
  display: flex;
  overflow-x: auto;
}

.node-tabs button {
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  margin-bottom: -1px;
  padding: 10px 14px;
  font-size: 13px;
  transition: color .15s, border-color .15s;
}

.node-tabs button:hover {
  color: var(--color-foreground);
}

.node-tabs button.active {
  color: var(--color-foreground);
  border-bottom-color: var(--color-accent);
}

.node-about {
  gap: 16px;
  display: grid;
}

.node-facts {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px 24px;
  margin: 0;
  display: grid;
}

.node-facts dt {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
}

.node-facts dd {
  margin: 3px 0 0;
}

.node-fieldset {
  border: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.node-fieldset h2 {
  margin-top: 22px;
}

.node-fieldset h2:first-child {
  margin-top: 0;
}

.node-danger {
  border-color: #ef444455;
}

.terminal-stage {
  position: relative;
}

.install-progress {
  z-index: 3;
  border: 1px solid var(--color-accent);
  background: color-mix(in srgb, var(--console-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  pointer-events: none;
  border-radius: 8px;
  width: min(280px, 100% - 24px);
  padding: 8px 10px;
  font-size: 12px;
  position: absolute;
  top: 10px;
  left: 12px;
}

.install-progress-label {
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  display: flex;
}

.install-progress-track {
  background: var(--color-accent-soft);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.install-progress-fill {
  border-radius: inherit;
  background: var(--color-accent);
  height: 100%;
  transition: width .4s;
}

.install-progress.failed {
  border-color: #dc2626;
}

.install-progress.failed .install-progress-fill {
  background: #dc2626;
}

@media (prefers-reduced-motion: reduce) {
  .install-progress-fill {
    transition: none;
  }
}

.assistant {
  gap: 12px;
  display: grid;
}

.assistant-thread {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  max-height: 55vh;
  padding: 12px;
  display: flex;
  overflow-y: auto;
}

.assistant-empty {
  color: var(--color-muted);
  gap: 10px;
  display: grid;
}

.assistant-starters {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.assistant-msg {
  border-radius: 10px;
  max-width: 85%;
  padding: 10px 12px;
  line-height: 1.5;
}

.assistant-user {
  background: var(--color-accent-soft);
  align-self: flex-end;
}

.assistant-bot {
  border: 1px solid var(--color-border);
  align-self: flex-start;
  gap: 8px;
  display: grid;
}

.assistant-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-finding {
  color: var(--color-accent);
  margin: 0;
  font-size: 12px;
}

.assistant-confirm, .assistant-feedback {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.assistant-feedback .icon-button.active {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.assistant-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

.assistant-form textarea {
  resize: vertical;
}

.assistant-options {
  color: var(--color-muted);
  justify-items: start;
  gap: 8px;
  font-size: 13px;
  display: grid;
}

.checkbox-row {
  align-items: center;
  gap: 8px;
  display: flex;
}

.assistant-overlay {
  z-index: 60;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  display: flex;
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.assistant-bubble {
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 56px;
  height: 56px;
  transition: transform .15s, background .15s;
  display: grid;
  position: relative;
  box-shadow: 0 6px 20px #00000059;
}

.assistant-overlay {
  --assistant-accent: var(--color-accent);
}

.assistant-overlay[data-position="left"] {
  align-items: flex-start;
  left: 20px;
  right: auto;
}

.assistant-bubble {
  background: var(--assistant-accent);
}

.assistant-bubble:hover {
  filter: brightness(1.12);
  transform: scale(1.06);
}

.assistant-badge {
  color: #fff;
  background: #dc2626;
  border-radius: 10px;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 12px;
  font-weight: 600;
  display: grid;
  position: absolute;
  top: -2px;
  right: -2px;
}

.assistant-window {
  border: 1px solid var(--color-border);
  background: var(--color-background);
  border-radius: 14px;
  width: min(420px, 100vw - 32px);
  max-height: min(640px, 100dvh - 120px);
  padding: 16px;
  animation: .18s ease-out both assistant-in;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 12px 40px #00000073;
}

.assistant-window[hidden] {
  display: none;
}

.assistant-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.assistant-window .assistant-thread {
  min-height: 160px;
  max-height: 38vh;
}

.assistant-window .assistant-msg {
  max-width: 95%;
}

.assistant-pick {
  gap: 10px;
  display: grid;
}

@keyframes assistant-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 800px) {
  .assistant-overlay {
    bottom: 12px;
    right: 12px;
  }

  .assistant-overlay[data-position="left"] {
    left: 12px;
    right: auto;
  }
}

.sidebar .nav-search {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  width: 100%;
  min-height: 40px;
  color: var(--color-muted);
  border-radius: 10px;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 10px 8px 12px;
  font-size: 13px;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  box-shadow: inset 0 1px #ffffff08;
}

.sidebar .nav-search svg {
  opacity: .8;
  flex: none;
  width: 16px;
  height: 16px;
}

.sidebar .nav-search:hover {
  border-color: color-mix(in srgb, var(--color-accent) 55%, var(--color-border));
  background: var(--color-surface-2);
  color: var(--color-foreground);
}

.sidebar .nav-search:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 25%, transparent);
  outline: none;
}

.sidebar .nav-search kbd {
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-muted);
  letter-spacing: .02em;
  opacity: 1;
  border-bottom-width: 2px;
  border-radius: 6px;
  margin-left: auto;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.3;
}

.sidebar .nav-label {
  letter-spacing: .09em;
  color: color-mix(in srgb, var(--color-muted) 80%, transparent);
  align-items: center;
  gap: 10px;
  padding: 0 12px 8px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
}

.sidebar .nav-label:after {
  content: "";
  background: var(--color-border);
  opacity: .7;
  flex: 1;
  height: 1px;
}

.sidebar .nav-label-admin {
  margin-top: 26px;
}

.account-page {
  gap: 20px;
  max-width: 1100px;
  display: grid;
}

.account-page > * {
  min-width: 0;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 20px;
  display: grid;
}

.account-grid > .account-card:last-child {
  grid-column: 1 / -1;
}

.account-grid > .account-card {
  flex-direction: column;
  display: flex;
}

.account-grid > .account-card > .account-card-body {
  flex: 1;
  align-content: start;
}

.account-toggle {
  cursor: pointer;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.account-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex: none;
}

.account-hero {
  border: 1px solid var(--color-border);
  background: linear-gradient(135deg, var(--color-accent-soft), transparent 60%), var(--color-surface);
  border-radius: 16px;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 24px;
  display: flex;
}

.account-avatar {
  background: var(--color-accent);
  color: #fff;
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
  border-radius: 50%;
  flex: none;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  display: grid;
}

.account-hero-main {
  flex: 220px;
  min-width: 0;
}

.account-hero-main h2 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 22px;
}

.account-hero-main p {
  color: var(--color-muted);
  overflow-wrap: anywhere;
  margin: 2px 0 8px;
}

.account-hero-meta {
  color: var(--color-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  display: flex;
}

.account-hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}

.account-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  min-width: 0;
  padding: 20px;
}

.account-card-head {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  display: flex;
}

.account-card-icon {
  background: var(--color-accent-soft);
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  border-radius: 10px;
  flex: none;
  place-items: center;
  display: grid;
}

.account-card-title {
  flex: 1;
  min-width: 0;
}

.account-card-title h2 {
  margin: 0;
  font-size: 16px;
}

.account-card-title p {
  color: var(--color-muted);
  margin: 2px 0 0;
  font-size: 13px;
}

.account-card-actions {
  flex: none;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  display: flex;
}

.account-card-body {
  gap: 12px;
  min-width: 0;
  display: grid;
}

.account-list {
  gap: 10px;
  display: grid;
}

.account-row .button {
  flex: none;
}

.account-row {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: flex;
}

.account-row-main {
  overflow-wrap: anywhere;
  gap: 2px;
  min-width: 0;
  display: grid;
}

.account-muted {
  color: var(--color-muted);
  margin: 0;
  font-size: 13px;
}

.account-notice {
  color: var(--color-accent);
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  display: flex;
}

.account-table {
  overflow-x: auto;
}

.account-pill {
  white-space: nowrap;
  border: 1px solid #0000;
  border-radius: 999px;
  align-items: center;
  margin-left: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
}

.account-card-actions .account-pill, .account-hero-meta .account-pill {
  margin-left: 0;
}

.account-pill-good {
  color: #4ade80;
  background: #22c55e24;
  border-color: #22c55e4d;
}

.account-pill-warn {
  color: #fbbf24;
  background: #f59e0b24;
  border-color: #f59e0b4d;
}

.account-pill-bad {
  color: #f87171;
  background: #ef444424;
  border-color: #ef44444d;
}

.account-pill-muted {
  background: var(--color-surface-2);
  color: var(--color-muted);
  border-color: var(--color-border);
}

@media (max-width: 800px) {
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-hero {
    padding: 18px;
  }
}

.opt-badge {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 999px;
  align-self: flex-start;
  padding: 1px 7px;
  font-size: 10px;
}

.opt-active {
  color: #7fd69a;
  border-color: #2f6b45;
}

.opt-partial {
  color: #e6c36a;
  border-color: #7a6422;
}

.opt-failed {
  color: #f09a9a;
  border-color: #7a3030;
}

.lm {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.lm-bar {
  color: var(--color-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: flex;
}

.lm-bar button, .lm-player button, .lm-setup button {
  font: inherit;
}

.lm-bar > button {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-foreground);
  cursor: pointer;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  display: inline-flex;
}

.lm-spacer {
  flex: 1;
}

.lm-pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-foreground);
  border-radius: 999px;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  display: inline-flex;
}

.lm-pill i {
  border-radius: 50%;
  width: 8px;
  height: 8px;
  display: inline-block;
}

.lm-toggle {
  text-transform: capitalize;
  cursor: pointer;
  align-items: center;
  gap: 4px;
  display: inline-flex;
}

.lm-stage {
  border: 1px solid var(--color-border);
  background: #0b0d12;
  border-radius: 14px;
  height: min(78vh, 860px);
  min-height: 460px;
  position: relative;
  overflow: hidden;
}

.lm-canvas {
  position: absolute;
  inset: 0;
}

.lm-canvas canvas {
  touch-action: none;
  display: block;
}

.lm-loading {
  z-index: 2;
  background: #0b0d12cc;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 0;
}

.lm-list {
  border: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 3;
  background: #141418e6;
  border-radius: 12px;
  flex-direction: column;
  gap: 8px;
  width: 220px;
  padding: 10px;
  display: flex;
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 12px;
}

.lm-list ul {
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  overflow: auto;
}

.lm-list li > button {
  width: 100%;
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  display: flex;
}

.lm-list li > button:hover, .lm-list li > button.active {
  background: var(--color-accent-soft);
}

.lm-list li > button span {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.lm-list li > button i {
  border-radius: 50%;
  flex: none;
  width: 8px;
  height: 8px;
}

.lm-list i.awake {
  background: #43e08a;
}

.lm-list i.sleep {
  background: #7a7f8c;
}

.lm-list small {
  color: var(--color-muted);
}

.lm-search {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  display: flex;
}

.lm-search input {
  min-width: 0;
  color: var(--color-foreground);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  flex: 1;
}

.lm-player {
  border: 1px solid var(--color-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 3;
  background: #141418f2;
  border-radius: 12px;
  flex-direction: column;
  gap: 12px;
  width: 360px;
  max-width: calc(100% - 270px);
  padding: 14px;
  display: flex;
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 12px;
  overflow: auto;
}

.lm-player header {
  justify-content: space-between;
  gap: 8px;
  display: flex;
}

.lm-player h3 {
  margin: 0;
  font-size: 16px;
}

.lm-player code {
  color: var(--color-muted);
  -webkit-user-select: all;
  user-select: all;
  font-size: 11px;
}

.lm-player h4, .lm-player h5 {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-muted);
  margin: 0;
  font-size: 12px;
}

.lm-player h5 small {
  text-transform: none;
  letter-spacing: 0;
}

.lm-stats {
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 0;
  display: grid;
}

.lm-stats div {
  background: var(--color-surface-2);
  border-radius: 8px;
  padding: 6px 8px;
}

.lm-stats dt {
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: 10px;
}

.lm-stats dd {
  margin: 0;
  font-size: 13px;
}

.lm-actions, .lm-inventory {
  flex-direction: column;
  gap: 8px;
  display: flex;
}

.lm-row {
  align-items: center;
  gap: 6px;
  display: flex;
}

.lm-row input {
  flex: 1;
  min-width: 0;
}

.lm-player input, .lm-player select {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-foreground);
  font: inherit;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
}

.lm-player .lm-row button {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-foreground);
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  display: inline-flex;
}

.lm-player button.danger {
  color: #f09a9a;
  border-color: #7a3030;
}

.lm-player button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.lm-icon {
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  padding: 4px;
  display: inline-grid;
}

.lm-icon:hover {
  background: var(--color-surface-2);
  color: var(--color-foreground);
}

.lm-inv-head {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.lm-container ul {
  flex-direction: column;
  gap: 3px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.lm-item {
  background: var(--color-surface-2);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  font-size: 12px;
  display: flex;
}

.lm-item-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.lm-item-name b {
  color: var(--color-muted);
  margin-right: 4px;
}

.lm-item-name small {
  color: var(--color-muted);
}

.lm-player .lm-amount {
  flex: none;
  width: 64px;
}

.lm-player .lm-move {
  flex: none;
  width: 76px;
}

.lm-muted {
  color: var(--color-muted);
  margin: 0;
  font-size: 12px;
}

.lm-notice {
  color: #7fd69a;
  background: #123524;
  border-radius: 8px;
  margin: 0;
  padding: 6px 10px;
  font-size: 12px;
}

.lm-hint {
  border: 1px solid var(--color-accent);
  z-index: 4;
  background: #141418;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.lm-hint button {
  color: var(--color-accent-hover);
  cursor: pointer;
  background: none;
  border: 0;
  margin-left: 8px;
}

.lm-toast {
  border: 1px solid var(--color-border);
  z-index: 4;
  background: #141418;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  animation: 3.5s forwards lm-toast;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes lm-toast {
  0%, 85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.lm-credit {
  color: var(--color-muted);
  z-index: 2;
  font-size: 11px;
  position: absolute;
  bottom: 10px;
  left: 244px;
}

.lm-setup {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin: 40px auto;
  padding: 28px;
  display: flex;
}

.lm-setup h2 {
  margin: 0;
}

.lm-setup p {
  color: var(--color-muted);
  margin: 0;
}

.lm-setup ol {
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  display: flex;
}

@media (max-width: 900px) {
  .lm-list {
    width: 160px;
  }

  .lm-player {
    width: 300px;
    max-width: calc(100% - 190px);
  }

  .lm-credit {
    left: 184px;
  }
}

.pm {
  flex-direction: column;
  gap: 12px;
  display: flex;
}

.pm-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.pm-head h2 {
  margin: 0;
  font-size: 20px;
}

.pm-head p {
  margin: 2px 0 0;
}

.pm-spacer {
  flex: 1;
}

.pm-fw {
  color: #e6c36a;
  background: #e6c36a14;
  border: 1px solid #7a6422;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}

.pm-sync {
  color: #7fd69a;
  border: 1px solid #2f6b45;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}

.pm-sync.pending {
  color: #e6c36a;
  border-color: #7a6422;
}

.pm-count {
  background: #ffffff26;
  border-radius: 999px;
  margin-left: 6px;
  padding: 1px 8px;
}

.pm-tabs {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  align-self: flex-start;
  gap: 6px;
  padding: 4px;
  display: flex;
}

.pm-tabs button {
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 6px 16px;
}

.pm-tabs button.active {
  background: var(--color-accent-soft);
  color: var(--color-foreground);
}

.pm-tools {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.pm-search, .pm-compare {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  border-radius: 10px;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  display: flex;
}

.pm-search input, .pm-compare input {
  color: var(--color-foreground);
  font: inherit;
  background: none;
  border: 0;
  outline: 0;
  min-width: 180px;
}

.pm-legend {
  color: var(--color-muted);
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  display: inline-flex;
}

.pm-legend .g, .pm-matrix td.on svg {
  color: #5ed08a;
}

.pm-legend .b, .pm-matrix td svg.b {
  color: #6aa7ff;
}

.pm-legend i.w {
  border: 1px solid #e6c36a;
  border-radius: 3px;
  width: 10px;
  height: 10px;
  display: inline-block;
}

.pm-scroll {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
  max-height: 68vh;
  overflow: auto;
}

.pm-matrix table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.pm-matrix th, .pm-matrix td {
  border-bottom: 1px solid #ffffff0d;
  padding: 0;
}

.pm-corner {
  z-index: 4;
  background: var(--color-surface);
  text-align: left;
  min-width: 300px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  position: sticky;
  top: 0;
  left: 0;
  padding: 10px 12px !important;
}

.pm-col {
  z-index: 3;
  background: var(--color-surface);
  vertical-align: bottom;
  border-left: 1px solid #ffffff0d;
  width: 40px;
  min-width: 40px;
  height: 120px;
  position: sticky;
  top: 0;
}

.pm-col span {
  writing-mode: vertical-rl;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-height: 90px;
  margin: 0 auto 6px;
  font-weight: 600;
  display: block;
  overflow: hidden;
  transform: rotate(180deg);
}

.pm-col.user {
  box-shadow: inset 2px 0 #4b7bff;
}

.pm-col small, .pm-col button {
  color: var(--color-muted);
  cursor: pointer;
  text-align: center;
  background: none;
  border: 0;
  margin: 0 auto 6px;
  display: block;
}

.pm-plugin {
  cursor: pointer;
}

.pm-plugin th {
  z-index: 2;
  background: var(--color-surface-2);
  text-align: left;
  color: #a9b8ff;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 12px;
  position: sticky;
  left: 0;
  padding: 8px 12px !important;
}

.pm-plugin td {
  background: var(--color-surface-2);
}

.pm-plugin small {
  color: var(--color-muted);
  margin-left: 6px;
}

.pm-perm {
  z-index: 1;
  background: var(--color-surface);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
  font-family: ui-monospace, monospace;
  font-weight: 500;
  position: sticky;
  left: 0;
  overflow: hidden;
  padding: 7px 12px !important;
}

.pm-matrix td {
  text-align: center;
  border-left: 1px solid #ffffff0d;
}

.pm-matrix td button {
  cursor: pointer;
  background: none;
  border: 0;
  place-items: center;
  width: 100%;
  height: 30px;
  padding: 0;
  display: grid;
}

.pm-matrix td button:disabled {
  cursor: default;
}

.pm-matrix td.on {
  background: #2f6b4533;
}

.pm-matrix td.via {
  background: #4b7bff14;
}

.pm-matrix td.pending {
  outline-offset: -1px;
  background: #e6c36a1f;
  outline: 1px solid #e6c36a;
}

.pm-matrix tr:hover .pm-perm {
  color: var(--color-accent-hover);
}

.pm-empty {
  color: var(--color-muted);
  padding: 24px !important;
}

.pm-list {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.pm-form {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.pm-form input, .pm-fields input, .pm-fields select {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-foreground);
  font: inherit;
  border-radius: 8px;
  padding: 6px 10px;
}

.pm-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  display: flex;
}

.pm-card.pending {
  border-color: #7a6422;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.pm-card.removed {
  opacity: .5;
  border-color: #7a3030;
}

.pm-card-head {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.pm-card-head code {
  color: var(--color-muted);
  -webkit-user-select: all;
  user-select: all;
  font-size: 11px;
}

.pm-fields {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

.pm-fields label {
  color: var(--color-muted);
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  display: flex;
}

.pm-chips {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}

.pm-chips button {
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  background: none;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 12px;
}

.pm-chips button.on {
  color: #7fd69a;
  background: #2f6b4533;
  border-color: #2f6b45;
}

.pm-chips button.pending {
  outline: 1px solid #e6c36a;
}

.pm-x {
  color: var(--color-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  place-items: center;
  padding: 4px;
  display: inline-grid;
}

.pm-x:hover {
  background: var(--color-surface-2);
  color: var(--color-foreground);
}

.pm-modal {
  z-index: 50;
  background: #000a;
  place-items: center;
  display: grid;
  position: fixed;
  inset: 0;
}

.pm-sheet {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  flex-direction: column;
  width: min(560px, 92vw);
  max-height: 80vh;
  display: flex;
}

.pm-sheet header, .pm-sheet footer {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  display: flex;
}

.pm-sheet h3 {
  margin: 0;
}

.pm-sheet ul {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0 18px;
  list-style: none;
  display: flex;
  overflow: auto;
}

.pm-sheet li {
  background: var(--color-surface-2);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  display: flex;
}

.pm-setup {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 520px;
  margin: 40px auto;
  padding: 28px;
  display: flex;
}

.pm-setup h2, .pm-setup p {
  margin: 0;
}

.pm-scroll {
  width: 100%;
}

.pm-matrix table {
  width: max-content;
  min-width: 100%;
}

.pm-plugin th {
  white-space: nowrap;
}

.pm-plugin-name {
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.pm-plugin-name b {
  font-weight: 700;
}

.pm-plugin-name small {
  background: #ffffff12;
  border-radius: 999px;
  padding: 1px 7px;
}

.pm-col {
  width: 44px;
  min-width: 44px;
  height: 130px;
}

.pm-col span {
  margin: 0 auto 8px;
}

.pm-matrix td {
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  min-width: 44px;
}

.pm-matrix td button {
  height: 32px;
}

.pm-matrix td:hover {
  background: #ffffff0d;
}

.pm-matrix td.on:hover {
  background: #2f6b4555;
}

.pm-matrix tbody tr:not(.pm-plugin) .pm-perm {
  width: 300px;
  min-width: 300px;
}

.pm-update {
  color: #e6c36a;
  background: #e6c36a14;
  border: 1px solid #7a6422;
  border-radius: 10px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13px;
  display: flex;
}

.pm-seg {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  gap: 2px;
  padding: 3px;
  display: inline-flex;
}

.pm-seg button {
  color: var(--color-muted);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 12px;
}

.pm-seg button.on {
  color: var(--color-foreground);
  background: #ffffff1a;
}

.pm-seg button.on.owner {
  color: #ff9a9a;
  background: #ff5c5c33;
}

.pm-seg button.on.moderator {
  color: #9db8ff;
  background: #4b7bff33;
}

.pm-card.pm-auth {
  flex-direction: column;
}

.pm-card.pending-card {
  border-color: #e6c36a;
}

.pm-list > p.muted {
  margin: 0;
}

.cd-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 14px;
  gap: 18px;
  margin-bottom: 28px;
  padding: 24px;
  display: grid;
}

.cd-head {
  align-items: flex-start;
  gap: 14px;
  display: flex;
}

.cd-head svg {
  color: #a99bd1;
  flex: none;
  margin-top: 3px;
}

.cd-head h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.cd-head p {
  margin: 0;
}

.cd-locked {
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  border-radius: 10px;
  margin: 0;
  padding: 14px 16px;
}

.cd-state {
  gap: 14px;
  display: grid;
}

.cd-host {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.cd-host strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.cd-badge {
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 650;
}

.cd-badge.is-ok {
  color: #7ee0a5;
  background: #7ee0a510;
  border-color: #7ee0a540;
}

.cd-badge.is-wait {
  color: #f0c36b;
  background: #f0c36b10;
  border-color: #f0c36b40;
}

.cd-ok {
  color: #7ee0a5;
  align-items: center;
  gap: 8px;
  margin: 0;
  display: flex;
}

.cd-value {
  align-items: center;
  gap: 6px;
  min-width: 0;
  display: flex;
}

.cd-value code {
  border: 1px solid var(--color-border);
  overflow-wrap: anywhere;
  background: #00000030;
  border-radius: 8px;
  min-width: 0;
  padding: 6px 9px;
}

.cd-hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.cd-actions {
  gap: 10px;
  display: flex;
}

.cd-form {
  border-top: 1px solid var(--color-border);
  gap: 8px;
  padding-top: 14px;
  display: grid;
}

.cd-form label {
  color: var(--color-muted);
  font-size: 12px;
}

.cd-row {
  gap: 10px;
  display: flex;
}

.cd-row input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 720px) {
  .cd-records thead {
    display: none;
  }

  .cd-records tr {
    border-bottom: 1px solid var(--color-border);
    gap: 4px;
    padding: 10px 0;
    display: grid;
  }

  .cd-row {
    flex-direction: column;
  }
}

.brand-logo-custom {
  object-fit: contain;
  border-radius: 8px;
  width: 36px;
  height: 36px;
}

.powered-by {
  color: var(--color-muted, #8b93a7);
  text-align: center;
  margin: auto 0 0;
  padding: 12px 16px;
  font-size: 11px;
}

.ws-page {
  gap: 28px;
  max-width: 920px;
  display: grid;
}

.ws-section {
  gap: 12px;
  display: grid;
}

.ws-section label {
  gap: 6px;
  display: grid;
}

.ws-search {
  align-items: center;
  gap: 8px;
  display: flex;
}

.ws-search input {
  flex: 1;
}

.cd-head .cd-badge {
  flex: none;
  margin-left: auto;
}

.cd-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.cd-step {
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  display: grid;
  position: relative;
}

.cd-step:last-child {
  padding-bottom: 0;
}

.cd-step:before {
  content: "";
  background: var(--color-border);
  width: 2px;
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 14px;
}

.cd-step:last-child:before {
  display: none;
}

.cd-step.is-done:before {
  background: #7ee0a560;
}

.cd-step-dot {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  width: 30px;
  height: 30px;
  color: var(--color-muted);
  border-radius: 50%;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  display: grid;
}

.cd-step.is-active .cd-step-dot {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.cd-step.is-done .cd-step-dot {
  color: #7ee0a5;
  background: #7ee0a51a;
  border-color: #7ee0a560;
}

.cd-step-body {
  align-content: start;
  gap: 10px;
  min-width: 0;
  display: grid;
}

.cd-step-body h3 {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 650;
}

.cd-step.is-todo .cd-step-body h3 {
  color: var(--color-muted);
}

.cd-step .cd-form {
  border: 0;
  padding: 0;
}

.cd-record {
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  border-radius: 12px;
  grid-template-columns: 64px 1fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  display: grid;
}

.cd-type {
  letter-spacing: .06em;
  text-align: center;
  background: var(--color-accent-soft);
  color: #c9b8ff;
  border-radius: 8px;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 700;
}

.cd-field {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.cd-field small {
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-size: 11px;
}

.cd-tip {
  color: #e8d5a3;
  background: #f0c36b10;
  border: 1px solid #f0c36b30;
  border-radius: 10px;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.55;
  display: flex;
}

.cd-tip svg {
  flex: none;
  margin-top: 2px;
}

.cd-help {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0 16px;
}

.cd-help summary {
  cursor: pointer;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
}

.cd-help dl {
  gap: 4px;
  margin: 0 0 14px;
  display: grid;
}

.cd-help dt {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 650;
}

.cd-help dd {
  color: var(--color-muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.cd-help code, .cd-tip code {
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .cd-record {
    grid-template-columns: 1fr;
  }

  .cd-type {
    justify-self: start;
    padding: 4px 12px;
  }

  .cd-row {
    flex-direction: column;
  }
}

.cd-records {
  gap: 10px;
  display: grid;
}

/* [project]/node_modules/@xterm/xterm/css/xterm.css.css [app-client] (css) */
.xterm {
  cursor: text;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}

.xterm.focus, .xterm:focus {
  outline: none;
}

.xterm .xterm-helpers {
  z-index: 5;
  position: absolute;
  top: 0;
}

.xterm .xterm-helper-textarea {
  opacity: 0;
  z-index: -5;
  white-space: nowrap;
  resize: none;
  border: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 0;
  left: -9999em;
  overflow: hidden;
}

.xterm .composition-view {
  color: #fff;
  white-space: nowrap;
  z-index: 1;
  background: #000;
  display: none;
  position: absolute;
}

.xterm .composition-view.active {
  display: block;
}

.xterm .xterm-viewport {
  cursor: default;
  background-color: #000;
  position: absolute;
  inset: 0;
  overflow-y: scroll;
}

.xterm .xterm-screen {
  position: relative;
}

.xterm .xterm-screen canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.xterm-char-measure-element {
  visibility: hidden;
  line-height: normal;
  display: inline-block;
  position: absolute;
  top: 0;
  left: -9999em;
}

.xterm.enable-mouse-events {
  cursor: default;
}

.xterm.xterm-cursor-pointer, .xterm .xterm-cursor-pointer {
  cursor: pointer;
}

.xterm.column-select.focus {
  cursor: crosshair;
}

.xterm .xterm-accessibility:not(.debug), .xterm .xterm-message {
  z-index: 10;
  color: #0000;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.xterm .xterm-accessibility-tree:not(.debug) ::selection {
  color: #0000;
}

.xterm .xterm-accessibility-tree {
  -webkit-user-select: text;
  user-select: text;
  white-space: pre;
  font-family: monospace;
}

.xterm .xterm-accessibility-tree > div {
  transform-origin: 0;
  width: fit-content;
}

.xterm .live-region {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

.xterm-dim {
  opacity: 1 !important;
}

.xterm-underline-1 {
  text-decoration: underline;
}

.xterm-underline-2 {
  -webkit-text-decoration: underline double;
  text-decoration: underline double;
}

.xterm-underline-3 {
  -webkit-text-decoration: underline wavy;
  text-decoration: underline wavy;
}

.xterm-underline-4 {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
}

.xterm-underline-5 {
  -webkit-text-decoration: underline dashed;
  text-decoration: underline dashed;
}

.xterm-overline {
  text-decoration: overline;
}

.xterm-overline.xterm-underline-1 {
  text-decoration: underline overline;
}

.xterm-overline.xterm-underline-2 {
  -webkit-text-decoration: overline double underline;
  text-decoration: overline double underline;
}

.xterm-overline.xterm-underline-3 {
  -webkit-text-decoration: overline wavy underline;
  text-decoration: overline wavy underline;
}

.xterm-overline.xterm-underline-4 {
  -webkit-text-decoration: overline dotted underline;
  text-decoration: overline dotted underline;
}

.xterm-overline.xterm-underline-5 {
  -webkit-text-decoration: overline dashed underline;
  text-decoration: overline dashed underline;
}

.xterm-strikethrough {
  text-decoration: line-through;
}

.xterm-screen .xterm-decoration-container .xterm-decoration {
  z-index: 6;
  position: absolute;
}

.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
  z-index: 7;
}

.xterm-decoration-overview-ruler {
  z-index: 8;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
}

.xterm-decoration-top {
  z-index: 2;
  position: relative;
}

.xterm .xterm-scrollable-element > .scrollbar {
  cursor: default;
}

.xterm .xterm-scrollable-element > .scrollbar > .scra {
  cursor: pointer;
  font-size: 11px !important;
}

.xterm .xterm-scrollable-element > .visible {
  opacity: 1;
  z-index: 11;
  background: none;
  transition: opacity .1s linear;
}

.xterm .xterm-scrollable-element > .invisible {
  opacity: 0;
  pointer-events: none;
}

.xterm .xterm-scrollable-element > .invisible.fade {
  transition: opacity .8s linear;
}

.xterm .xterm-scrollable-element > .shadow {
  display: none;
  position: absolute;
}

.xterm .xterm-scrollable-element > .shadow.top {
  width: 100%;
  height: 3px;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
  display: block;
  top: 0;
  left: 3px;
}

.xterm .xterm-scrollable-element > .shadow.left {
  width: 3px;
  height: 100%;
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
  display: block;
  top: 3px;
  left: 0;
}

.xterm .xterm-scrollable-element > .shadow.top-left-corner {
  width: 3px;
  height: 3px;
  display: block;
  top: 0;
  left: 0;
}

.xterm .xterm-scrollable-element > .shadow.top.left {
  box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
}

/*# sourceMappingURL=_1g_xgbure6i08._.css.map*/