/**
 * dshost panel bridge — map Pterodactyl shell → DST sketchy
 * Requires tokens.css (+ optional components.css) loaded first.
 */

body.ds-panel {
  background-color: var(--ds-bg, #14110e) !important;
  color: var(--ds-ink, #e8dcc4);
}

/* Sharp / ink — soften Tailwind rounded across panel chrome */
.ds-panel .rounded,
.ds-panel .rounded-md,
.ds-panel .rounded-lg,
.ds-panel .rounded-xl {
  border-radius: 2px !important;
}

.ds-panel .rounded-full {
  /* keep pills for avatars / status dots */
}

.ds-logo-link {
  text-decoration: none;
}

.ds-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.ds-logo--nav {
  height: 2.25rem;
  width: auto;
  max-width: min(180px, 42vw);
}

@media (max-width: 520px) {
  .ds-logo--nav {
    height: 1.9rem;
    max-width: min(140px, 40vw);
  }
}

.ds-logo--header {
  height: clamp(2.75rem, 7vw, 3.75rem);
  width: auto;
  max-width: min(280px, 70vw);
}

.ds-logo--hero {
  height: clamp(3.5rem, 12vw, 6.5rem);
  width: auto;
  max-width: min(420px, 92vw);
}

.ds-hero__logo-wrap {
  margin: 0.35rem 0 0;
  line-height: 0;
}

.ds-logo--footer {
  height: 2rem;
  width: auto;
  opacity: 0.92;
}

.ds-panel .ds-topnav {
  background: var(--ds-bg-raised, #1c1814) !important;
  border-bottom: 2px solid var(--ds-line-dim, #6a5c48);
  box-shadow: none !important;
}

/* ========== Admin shell (hosting + server) ========== */
.ds-admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto minmax(0, 1fr);
  grid-template-areas:
    "top"
    "mob"
    "main";
  background: var(--ds-bg, #14110e);
}

.ds-admin-topbar {
  grid-area: top;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.5rem;
  padding: 0 0.75rem;
  background: var(--ds-bg-raised, #1c1814);
  border-bottom: 2px solid var(--ds-line-dim, #6a5c48);
  z-index: 20;
}

.ds-admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ds-admin-topbar__brand--mobile {
  display: inline-flex;
}

.ds-admin-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  margin-left: auto;
}

.ds-admin-topbar__actions > a,
.ds-admin-topbar__actions > button,
.ds-admin-topbar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-width: 2.75rem;
  padding: 0 0.85rem;
  color: var(--ds-ink-muted, #c4b08a);
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ds-admin-topbar__actions > a:hover,
.ds-admin-topbar__actions > button:hover,
.ds-admin-topbar__icon:hover,
.ds-admin-topbar__icon.active {
  color: var(--ds-gold, #e8b84a);
  background: rgba(232, 184, 74, 0.08);
  box-shadow: inset 0 -2px var(--ds-gold, #e8b84a);
}

.ds-admin-sidebar {
  display: none;
}

.ds-admin-sidebar__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 3.5rem;
  padding: 0 0.85rem;
  border-bottom: 2px solid var(--ds-line-dim, #6a5c48);
}

.ds-admin-sidebar__nav.ds-sidebar {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0.85rem 0.65rem 1.25rem;
}

.ds-admin-mobile-nav {
  grid-area: mob;
  display: flex;
  width: 100%;
  overflow-x: auto;
  gap: 0.15rem;
  padding: 0.35rem 0.5rem;
  background: var(--ds-bg-raised, #1c1814);
  border-bottom: 1px solid var(--ds-line-dim, #6a5c48);
  -webkit-overflow-scrolling: touch;
}

.ds-admin-mobile-nav .ds-sidebar__label {
  display: none;
}

.ds-admin-mobile-nav .ds-sidebar__link {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.45rem 0.7rem;
  font-size: 0.68rem;
}

.ds-admin-main {
  grid-area: main;
  min-width: 0;
  width: 100%;
  padding: 0.5rem 0.75rem 1.25rem;
}

/* Fill admin main horizontally (no 1200px / 72rem center column) */
.ds-admin-main .ds-page {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

.ds-admin-main .ds-page--foot {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .ds-admin-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    grid-template-columns: 15.75rem minmax(0, 1fr);
    grid-template-rows: 3.5rem minmax(0, 1fr);
    grid-template-areas:
      "side top"
      "side main";
  }

  .ds-admin-sidebar {
    grid-area: side;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ds-bg-raised, #1c1814);
    border-right: 2px solid var(--ds-line-dim, #6a5c48);
  }

  .ds-admin-sidebar__nav.ds-sidebar {
    overflow-y: auto;
  }

  .ds-admin-topbar {
    grid-area: top;
    border-left: 0;
  }

  .ds-admin-topbar__brand--mobile {
    display: none;
  }

  .ds-admin-mobile-nav {
    display: none;
  }

  .ds-admin-main {
    grid-area: main;
    overflow: auto;
    padding: 0.75rem 1.5rem 1.75rem;
  }
}

/* Content cards — double-line frame feel */
.ds-panel .ds-content-box {
  background: var(--ds-surface, #221e19) !important;
  border: 2px solid var(--ds-line, #c4b08a) !important;
  box-shadow:
    inset 0 0 0 1px rgba(196, 176, 138, 0.28),
    3px 3px 0 rgba(0, 0, 0, 0.45) !important;
  border-radius: 2px !important;
}

/* Sub-nav strip */
.ds-panel .ds-subnav {
  background: var(--ds-surface, #221e19) !important;
  border-bottom: 1px solid var(--ds-line-dim, #6a5c48);
  box-shadow: none !important;
}

/* Buttons (legacy styled Button + module CSS hooks) */
.ds-panel button,
.ds-panel [type="button"],
.ds-panel [type="submit"] {
  letter-spacing: 0.06em;
}

/* Progress bar top — gold */
.ds-panel #nprogress .bar {
  background: var(--ds-gold, #e8b84a) !important;
}

.ds-panel #nprogress .peg {
  box-shadow: 0 0 10px var(--ds-gold, #e8b84a), 0 0 5px var(--ds-gold, #e8b84a) !important;
}

/* Links in panel body */
.ds-panel a {
  text-underline-offset: 3px;
}

/* Grey row / server cards */
.ds-panel .ds-server-row {
  border: 2px solid var(--ds-line-dim, #6a5c48) !important;
  background: var(--ds-surface, #221e19) !important;
  border-radius: 2px !important;
  box-shadow: inset 0 0 0 1px rgba(196, 176, 138, 0.2);
}

.ds-panel .ds-server-row:hover {
  border-color: var(--ds-gold, #e8b84a) !important;
}

/* Scrollbar — warm ink */
.ds-panel ::-webkit-scrollbar-thumb {
  -webkit-box-shadow:
    inset 0 0 0 1px #7a6e58,
    inset 0 0 0 4px #2a241e !important;
}

/* ========== Screen blocks (install / error / 404) ========== */
.ds-panel .ds-screen-block-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem) 0;
}

.ds-panel .ds-screen-block {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  border-style: solid;
  box-shadow:
    inset 0 0 0 1px rgba(196, 176, 138, 0.28),
    3px 3px 0 rgba(0, 0, 0, 0.45);
}

.ds-panel .ds-screen-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.5rem;
  margin-bottom: 1.25rem;
}

.ds-panel .ds-screen-block__frame--error {
  border-color: var(--ds-danger, #8b3a2f);
  background:
    linear-gradient(135deg, transparent 45%, rgba(139, 58, 47, 0.14) 45%, rgba(139, 58, 47, 0.14) 55%, transparent 55%),
    rgba(46, 24, 22, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(139, 58, 47, 0.35),
    inset 0 0 18px rgba(139, 58, 47, 0.12);
}

.ds-panel .ds-screen-block__back {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
}

.ds-panel .ds-btn--icon {
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding: 0.4rem;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes ds-screen-retry-spin {
  to { transform: rotate(360deg); }
}

.ds-panel .ds-screen-block__retry:hover svg {
  animation: ds-screen-retry-spin 900ms steps(8, end) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ds-panel .ds-screen-block__retry:hover svg {
    animation: none;
  }
}

/* ========== Modal (panel popups) ========== */
.ds-panel .ds-modal--panel {
  width: 100%;
  max-width: none;
  border-color: var(--ds-line, #c4b08a);
}

.ds-panel .ds-modal__body--panel {
  padding: clamp(1rem, 3vw, 1.5rem);
  max-height: calc(100vh - 8rem);
  color: var(--ds-ink, #e8dcc4);
}

.ds-panel .ds-modal__close--panel {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.ds-panel .ds-modal__overlay-spinner {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 14, 0.72);
  border-radius: inherit;
}

/* ========== Dropdown (context menus) ========== */
.ds-panel .ds-dropdown {
  position: relative;
  overflow: visible;
}

.ds-panel .ds-dropdown:has(.ds-dropdown__menu--floating) {
  z-index: 220;
}

.ds-panel .ds-dropdown__menu--floating {
  display: block !important;
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  left: auto !important;
  margin-top: 0;
  padding: 0.35rem 0;
  z-index: 220;
}

.ds-panel .ds-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
  min-height: auto;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

/* ========== Titled section boxes ========== */
.ds-panel .ds-panel-titled-box {
  border-color: var(--ds-line-dim, #6a5c48);
  box-shadow:
    inset 0 0 0 1px rgba(196, 176, 138, 0.2),
    3px 3px 0 rgba(0, 0, 0, 0.45);
}

.ds-panel .ds-panel-titled-box__head {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1rem;
  border-bottom: 1px dashed var(--ds-line-dim, #6a5c48);
  background: rgba(20, 17, 14, 0.55);
}

.ds-panel .ds-panel-titled-box__body {
  position: relative;
  z-index: 2;
  padding: 1rem;
}

/* ========== Headless dialog overlay ========== */
.ds-dialog-overlay {
  background: rgba(14, 12, 10, 0.82);
  backdrop-filter: blur(3px);
}

/* ========== Alerts in panel body ========== */
.ds-panel .ds-alert {
  font-size: 0.92rem;
}

.ds-panel .ds-alert__body {
  color: inherit;
}

/* ========== Switch in panel ========== */
.ds-panel .ds-switch {
  position: relative;
}

.ds-panel .ds-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ========== Console name + edit (next to title, not power) ========== */
.ds-panel .ds-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--ds-ink-muted, #c4b08a);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.ds-panel .ds-name-edit:hover {
  color: var(--ds-gold-bright, #f0c96a);
  background: rgba(232, 184, 74, 0.1);
  border-color: var(--ds-line-dim, #6a5c48);
}

.ds-panel .ds-name-edit:active {
  transform: translate(1px, 1px);
}

/* ========== Server power controls (compact segmented bar) ========== */
.ds-panel .ds-power-bar {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
  max-width: 100%;
  border: 2px solid var(--ds-line-dim, #6a5c48);
  border-radius: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(196, 176, 138, 0.2),
    2px 2px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ds-panel .ds-power-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.28rem 0.55rem;
  font-family: var(--ds-font-ui, Inter, system-ui, sans-serif);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ds-ink-muted, #c4b08a);
  background: var(--ds-surface, #221e19);
  border: 0;
  border-right: 1px solid var(--ds-line-dim, #6a5c48);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.ds-panel .ds-power-bar__btn:last-child {
  border-right: 0;
}

.ds-panel .ds-power-bar__btn:hover:not(:disabled) {
  color: var(--ds-gold-bright, #f0c96a);
  background: rgba(232, 184, 74, 0.1);
}

.ds-panel .ds-power-bar__btn:active:not(:disabled) {
  transform: translate(1px, 1px);
}

.ds-panel .ds-power-bar__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.ds-panel .ds-power-bar__btn--start:not(:disabled):hover {
  color: #c5d9a8;
  background: rgba(107, 143, 78, 0.22);
}

.ds-panel .ds-power-bar__btn--restart:not(:disabled):hover {
  color: var(--ds-gold-bright, #f0c96a);
  background: rgba(232, 184, 74, 0.14);
}

.ds-panel .ds-power-bar__btn--stop:not(:disabled):hover {
  color: #e8b4a8;
  background: rgba(122, 50, 40, 0.28);
}

.ds-panel .ds-power-bar__icon {
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
}

.ds-panel .ds-power-bar__label {
  white-space: nowrap;
}

@media (max-width: 639px) {
  .ds-panel .ds-power-bar__label {
    display: none;
  }

  .ds-panel .ds-power-bar__btn {
    min-width: 2.35rem;
    padding: 0.28rem 0.45rem;
  }
}

@media (min-width: 640px) and (max-width: 860px) {
  .ds-panel .ds-power-bar__label--long {
    display: none;
  }
}

/* ========== Account hosting — SaaS pricing (5 → 3 → 2 → 1) ========== */
.ds-panel .ds-account-plans__head {
  margin-bottom: 1.25rem;
}

.ds-panel .ds-account-plans__title {
  font-family: var(--ds-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.ds-panel .ds-account-plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .ds-panel .ds-account-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ds-panel .ds-account-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .ds-panel .ds-account-plans {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.ds-panel .ds-account-plan {
  min-width: 0;
  height: 100%;
}

.ds-panel .ds-account-plan .ds-card__title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.ds-panel .ds-account-plan .ds-card__price {
  font-size: clamp(1.35rem, 1.1vw + 1rem, 1.75rem);
  word-break: break-word;
}

.ds-panel .ds-account-plan .ds-card__price small {
  display: inline;
  margin-left: 0.2rem;
}

.ds-panel .ds-account-plan .ds-card__features {
  margin-top: 0.75rem;
  gap: 0.35rem;
}

.ds-panel .ds-account-plan .ds-card__features li {
  font-size: 0.82rem;
  line-height: 1.35;
}

.ds-panel .ds-account-plan .ds-card__body {
  padding: 1rem 1rem 0.35rem;
}

.ds-panel .ds-account-plan .ds-card__footer {
  padding: 0.75rem 1rem 1rem;
}

.ds-panel .ds-account-plan .ds-card__ribbon {
  font-size: 0.62rem;
  padding: 0.25rem 0.65rem 0.25rem 0.55rem;
}

.ds-panel .ds-trial-offer {
  margin-bottom: 1.15rem;
}

/* Account hosting — active coupons (sidebar + mobile page) */
.ds-sidebar__coupons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.45rem 0 0.15rem;
}

.ds-admin-mobile-nav .ds-sidebar__coupons {
  display: none;
}

.ds-account-coupons {
  display: none;
}

@media (max-width: 767px) {
  .ds-account-coupons {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 0 1.15rem;
  }
}

.ds-sidebar-coupon {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  cursor: pointer;
  color: inherit;
  background: transparent;
  border: 2px solid var(--ds-line-dim, #6a5c48);
  border-radius: var(--ds-radius, 2px);
  box-shadow: inset 0 0 0 1px rgba(196, 176, 138, 0.18);
}

.ds-sidebar-coupon:hover,
.ds-sidebar-coupon:focus-visible {
  border-color: var(--ds-gold, #e8b84a);
  outline: none;
}

.ds-sidebar-coupon--ticket {
  padding: 0 0 0.45rem;
  overflow: hidden;
}

.ds-sidebar-coupon__banner {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  background: var(--ds-bg-sunken, #0f0d0b);
  border-bottom: 2px solid var(--ds-line-dim, #6a5c48);
}

.ds-sidebar-coupon__banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ds-sidebar-coupon--ticket .ds-sidebar-coupon__row,
.ds-sidebar-coupon--ticket .ds-sidebar-coupon__meta {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.ds-sidebar-coupon--ticket .ds-sidebar-coupon__row {
  margin-top: 0.4rem;
}

.ds-sidebar-coupon__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.ds-sidebar-coupon__code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ds-gold, #e8b84a);
  overflow-wrap: anywhere;
}

.ds-sidebar-coupon__value {
  flex-shrink: 0;
  font-family: var(--ds-font-ui, Inter, system-ui, sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ds-ink, #f4ead8);
}

.ds-sidebar-coupon__meta {
  font-family: var(--ds-font-ui, Inter, system-ui, sans-serif);
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--ds-ink-muted, #c4b08a);
}

/* ========== Help library (YouTube) ========== */
.ds-help {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ds-help__mail {
  display: inline-block;
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  color: var(--ds-gold, #e8b84a);
  text-decoration: none;
}

.ds-help__mail:hover {
  color: var(--ds-gold-bright, #f1c65c);
}

.ds-help .ds-tabs__list {
  margin: 0;
}

.ds-help__stage {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ds-help__player {
  position: relative;
  width: 100%;
  max-width: 56rem;
  aspect-ratio: 16 / 9;
  background: var(--ds-bg-sunken, #0f0d0b);
  border: 2px solid var(--ds-line, #c4b08a);
  border-radius: var(--ds-radius, 2px);
  box-shadow:
    inset 0 0 0 1px rgba(196, 176, 138, 0.28),
    3px 3px 0 rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.ds-help__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ds-help__title {
  margin: 0;
  font-family: var(--ds-font-display, inherit);
  font-size: 1.35rem;
  color: var(--ds-ink, #e8dcc4);
}

.ds-help__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr));
  gap: 0.75rem;
}

.ds-help__item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  text-align: left;
  background: var(--ds-surface, #221e19);
  border: 2px solid var(--ds-line-dim, #6a5c48);
  border-radius: var(--ds-radius, 2px);
  box-shadow: inset 0 0 0 1px rgba(196, 176, 138, 0.2);
  cursor: pointer;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ds-help__item:hover {
  border-color: var(--ds-gold, #e8b84a);
}

.ds-help__item.is-active {
  border-color: var(--ds-gold, #e8b84a);
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 74, 0.35),
    0 0 0 1px rgba(232, 184, 74, 0.25);
}

.ds-help__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--ds-bg-sunken, #0f0d0b);
  overflow: hidden;
}

.ds-help__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ds-help__caption {
  display: block;
  padding: 0 0.7rem 0.7rem;
  font-family: var(--ds-font-ui, inherit);
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ds-ink, #e8dcc4);
}

/* ========== My servers — tabs + admin filter ========== */
.ds-panel .ds-servers-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.ds-panel .ds-servers-toolbar .ds-tabs {
  margin: 0;
}

/* ========== My servers — horizontal cards ========== */
.ds-panel .ds-server-cards {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ds-panel .ds-server-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "id"
    "facts"
    "actions";
  align-items: start;
  gap: 0.95rem;
  padding: 1.1rem 1.2rem;
}

.ds-panel .ds-server-card > * {
  position: relative;
  z-index: 2;
}

.ds-panel .ds-server-card__id {
  grid-area: id;
  min-width: 0;
}

.ds-panel .ds-server-card__id .ds-card__eyebrow {
  margin-bottom: 0.2rem;
}

.ds-panel .ds-server-card__name {
  font-family: var(--ds-font-display, "Cormorant Garamond", Georgia, serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
  color: var(--ds-ink, #e8dcc4);
}

.ds-panel .ds-server-card__name a {
  color: inherit;
  text-decoration: none;
}

.ds-panel .ds-server-card__name a:hover {
  color: var(--ds-gold, #e8b84a);
}

.ds-panel .ds-server-card__spec {
  margin: 0.35rem 0 0;
  color: var(--ds-ink-muted, #b8a88a);
  font-size: 0.95rem;
}

.ds-panel .ds-server-card__addr {
  margin: 0.25rem 0 0;
  font-family: var(--ds-font-mono, ui-monospace, monospace);
  font-size: 0.82rem;
  color: var(--ds-gold, #e8b84a);
  word-break: break-all;
}

.ds-panel .ds-server-card__facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  margin: 0;
}

.ds-panel .ds-server-card__facts dt {
  font-family: var(--ds-font-ui, Inter, sans-serif);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ds-ink-faint, #7a6e58);
}

.ds-panel .ds-server-card__facts dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ds-ink, #e8dcc4);
}

.ds-panel .ds-server-card__facts dd.is-ok {
  color: var(--ds-success-ink, #c5d9a8);
}

.ds-panel .ds-server-card__facts dd.is-soon {
  color: var(--ds-warning-ink, #e8c898);
}

.ds-panel .ds-server-card__facts dd.is-urgent {
  color: var(--ds-danger-ink, #e8b4a8);
}

.ds-panel .ds-server-card__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 640px) {
  .ds-panel .ds-server-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "id id"
      "facts actions";
    align-items: end;
    gap: 0.85rem 1.25rem;
  }

  .ds-panel .ds-server-card__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .ds-panel .ds-server-card {
    grid-template-columns: minmax(12rem, 1.35fr) minmax(14rem, 1fr) auto;
    grid-template-areas: "id facts actions";
    align-items: center;
    gap: 1rem 1.75rem;
    padding: 1.15rem 1.35rem;
  }

  .ds-panel .ds-server-card__facts {
    grid-template-columns: repeat(2, minmax(0, auto));
  }
}
