:root {
  color-scheme: dark;
  --bg: #090806;
  --bg-2: #12100d;
  --panel: #17130f;
  --panel-2: #201a14;
  --panel-3: #2a2118;
  --line: rgba(190, 132, 56, .28);
  --line-strong: rgba(220, 158, 72, .52);
  --gold: #d69a46;
  --gold-bright: #f0bd65;
  --gold-pale: #ffe0a2;
  --bronze: #8b572b;
  --text: #f3ede3;
  --muted: #a99e90;
  --good: #57d38a;
  --warn: #e9b958;
  --bad: #e87766;
  --shadow: 0 28px 80px rgba(0, 0, 0, .46);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 67% 8%, rgba(115, 69, 25, .16), transparent 34rem),
    radial-gradient(circle at 15% 75%, rgba(86, 50, 19, .1), transparent 38rem),
    linear-gradient(145deg, #070604, #0c0a08 56%, #110d09);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button:disabled { opacity: .48; cursor: not-allowed; }

/* Login / public */
.public-page, .login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
}
.public-card, .login-card {
  position: relative;
  width: min(100%, 500px);
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(45, 33, 23, .96), rgba(13, 10, 7, .98)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.045);
}
.public-card { width: min(100%, 620px); }
.brand-mark { width: 126px; height: 126px; object-fit: contain; border-radius: 25px; filter: drop-shadow(0 16px 28px rgba(0,0,0,.55)); }
.public-card h1, .login-card h1 { margin: 10px 0 8px; color: var(--gold-pale); font-family: Georgia, serif; font-size: clamp(32px, 6vw, 46px); }
.public-card p, .login-card p { color: var(--muted); line-height: 1.65; }
.login-card form { margin-top: 24px; text-align: left; }
.fineprint { font-size: 12px; }

/* Shell */
.forge-shell { min-height: 100vh; display: grid; grid-template-columns: 275px minmax(0, 1fr); }
.forge-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(22, 17, 12, .99), rgba(8, 7, 5, .99)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 5px);
  box-shadow: 20px 0 60px rgba(0,0,0,.23);
  z-index: 5;
}
.forge-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 2px 7px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.forge-brand img {
  width: 67px;
  height: 67px;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 0 1px rgba(236,177,82,.18);
}
.forge-brand strong { display: block; color: var(--gold-bright); font-family: Georgia, serif; font-size: 24px; line-height: 1; letter-spacing: -.03em; }
.forge-brand span { display: block; margin-top: 6px; color: #c3b39f; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.forge-nav { display: grid; gap: 5px; padding: 18px 0; overflow-y: auto; }
.forge-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b8afa4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: .18s ease;
}
.forge-nav a:hover { color: #f2d49b; border-color: rgba(207,145,58,.18); background: rgba(143,88,31,.1); }
.forge-nav a.active {
  color: #ffe1a6;
  border-color: rgba(224,159,67,.42);
  background: linear-gradient(90deg, rgba(139,82,27,.44), rgba(81,48,20,.15));
  box-shadow: inset 3px 0 #d69745, 0 10px 24px rgba(0,0,0,.12);
}
.nav-icon { color: #d3994c; font-size: 20px; text-align: center; line-height: 1; }
.nav-separator { height: 1px; margin: 8px 9px; background: linear-gradient(90deg, transparent, rgba(199,138,61,.32), transparent); }
.sidebar-system {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sidebar-system strong { display: block; color: #cfc6bb; font-size: 12px; }
.sidebar-system small { display: block; margin-top: 3px; color: #796f65; font-size: 11px; }
.system-light { width: 9px; height: 9px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px rgba(87,211,138,.75); }
.logout-form { margin: 12px 0 0; }
.logout-button { width: 100%; padding: 9px 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; background: rgba(255,255,255,.025); color: #978d82; cursor: pointer; }
.logout-button:hover { color: #f0c276; border-color: rgba(214,154,70,.35); }

.forge-main { min-width: 0; padding: 24px clamp(18px, 3vw, 44px) 70px; }
.forge-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(197,134,55,.18);
}
.breadcrumb { margin-bottom: 10px; color: #796d61; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; }
.forge-topbar h1 { margin: 0; color: var(--gold-pale); font-family: Georgia, serif; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.035em; }
.forge-topbar p { max-width: 720px; margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.status-cluster { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; padding-top: 4px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: #bbb2a8;
  font-size: 11px;
  font-weight: 750;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px rgba(87,211,138,.6); }
.status-pill.warning .status-dot { background: var(--warn); box-shadow: 0 0 8px rgba(233,185,88,.6); }

/* Content */
.forge-card {
  position: relative;
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(37, 29, 22, .93), rgba(17, 13, 10, .96)),
    var(--panel);
  box-shadow: 0 16px 42px rgba(0,0,0,.21), inset 0 1px rgba(255,255,255,.025);
  overflow: hidden;
}
.forge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.02), transparent 22% 76%, rgba(211,144,57,.025));
}
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.metric-grid.compact { grid-template-columns: repeat(2, minmax(220px, 1fr)); max-width: 720px; }
.metric-card { min-height: 132px; display: flex; flex-direction: column; justify-content: center; }
.metric-card::after { content: ""; position: absolute; width: 110px; height: 110px; right: -38px; top: -44px; border: 1px solid rgba(217,151,66,.16); border-radius: 50%; box-shadow: 0 0 0 20px rgba(217,151,66,.025); }
.metric-kicker, .eyebrow { color: #b6864b; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.metric-card > strong { margin: 7px 0 4px; color: #fff0ce; font-family: Georgia, serif; font-size: 36px; line-height: 1; }
.metric-card small { color: var(--muted); }
.content-grid { display: grid; gap: 14px; margin-top: 14px; }
.content-grid.two-thirds { grid-template-columns: minmax(0, 1.6fr) minmax(310px, .8fr); }
.content-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card-heading h2 { margin: 4px 0 0; color: #eadbc1; font-family: Georgia, serif; font-size: 21px; }
.table-heading { padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.055); }
.online-badge, .offline-badge, .count-chip { padding: 5px 8px; border-radius: 4px; font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.online-badge { color: #89e5ac; border: 1px solid rgba(87,211,138,.3); background: rgba(35,115,67,.16); }
.offline-badge { color: #f2a99e; border: 1px solid rgba(232,119,102,.3); background: rgba(126,44,34,.16); }
.count-chip { color: #d8b67d; border: 1px solid rgba(214,154,70,.2); background: rgba(128,77,29,.12); }
.text-link { color: #c5904f; font-size: 12px; text-decoration: none; }
.text-link:hover { color: var(--gold-pale); }

.server-card { min-height: 330px; }
.server-visual { position: relative; display: grid; place-items: center; height: 160px; margin: -4px 0 18px; overflow: hidden; }
.server-visual img { position: relative; z-index: 2; width: 116px; height: 116px; object-fit: contain; border-radius: 26px; filter: drop-shadow(0 18px 26px rgba(0,0,0,.6)); }
.server-rings span { position: absolute; left: 50%; top: 50%; width: 180px; height: 70px; border: 1px solid rgba(211,145,61,.16); border-radius: 50%; transform: translate(-50%,-50%); }
.server-rings span:nth-child(2) { width: 270px; height: 105px; }
.server-rings span:nth-child(3) { width: 380px; height: 145px; }
.server-data { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.055); }
.server-data > div { padding: 14px 12px 3px; border-right: 1px solid rgba(255,255,255,.045); }
.server-data > div:last-child { border-right: 0; }
.server-data span { display: block; color: #756d64; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.server-data strong { display: block; margin-top: 6px; color: #d9cbb8; font-size: 13px; }
.server-data.vertical { grid-template-columns: 1fr; border-top: 0; }
.server-data.vertical > div { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.server-data.vertical strong { margin: 0; }

.quick-actions { position: relative; z-index: 1; display: grid; gap: 9px; }
.quick-actions a { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 11px; padding: 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 8px; background: rgba(0,0,0,.14); text-decoration: none; transition: .16s ease; }
.quick-actions a:hover { transform: translateX(2px); border-color: rgba(213,148,65,.3); background: rgba(103,61,24,.14); }
.quick-actions a > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(214,154,70,.24); border-radius: 7px; color: #d69a46; background: rgba(112,67,27,.16); font-size: 19px; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { color: #ddd2c3; font-size: 13px; }
.quick-actions small { margin-top: 3px; color: #83796e; font-size: 11px; }

.activity-list, .template-list, .feature-list { position: relative; z-index: 1; display: grid; }
.activity-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.activity-item:last-child { border-bottom: 0; }
.activity-mark { width: 7px; height: 7px; border-radius: 50%; background: #c68d43; box-shadow: 0 0 8px rgba(198,141,67,.45); }
.activity-item strong, .activity-item small { display: block; }
.activity-item strong { color: #cfc5b8; font-size: 12px; }
.activity-item small { margin-top: 3px; color: #746c63; font-size: 10px; }
.activity-item time { color: #6f675f; font-size: 10px; white-space: nowrap; }
.feature-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.feature-list > div:last-child { border-bottom: 0; }
.feature-list > div > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(214,154,70,.23); border-radius: 50%; color: #d69a46; font-size: 10px; font-weight: 850; }
.feature-list strong, .feature-list small { display: block; }
.feature-list strong { color: #ddd2c3; font-size: 13px; }
.feature-list small { margin-top: 4px; color: var(--muted); line-height: 1.45; }
.template-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.template-item:last-child { border-bottom: 0; }
.template-item strong, .template-item span, .template-item small { display: block; }
.template-item strong { color: #e1d5c5; }
.template-item span { margin-top: 4px; color: #c49860; font-size: 12px; }
.template-item small { margin-top: 5px; color: var(--muted); line-height: 1.45; }
.hint-box { margin-top: 18px; padding: 13px; border: 1px solid rgba(214,154,70,.16); border-radius: 8px; color: #9e8f7e; background: rgba(109,65,25,.1); font-size: 12px; line-height: 1.55; }

/* Forms */
.field { position: relative; z-index: 1; display: grid; gap: 7px; margin-bottom: 14px; }
.field > span { color: #c9bba8; font-size: 12px; font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(184,135,76,.22);
  border-radius: 7px;
  background: rgba(5,4,3,.58);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: .16s ease;
}
input:focus, textarea:focus, select:focus { border-color: #d39749; box-shadow: 0 0 0 3px rgba(211,151,73,.1); background: rgba(7,5,4,.83); }
textarea { resize: vertical; min-height: 112px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 14px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .span-two { grid-column: span 2; }
.toggle-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.toggle-row strong, .toggle-row small { display: block; }
.toggle-row strong { color: #ddd1c2; font-size: 13px; }
.toggle-row small { margin-top: 4px; color: #82786e; font-size: 11px; }
.switch { position: relative; width: 48px; height: 25px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: #28231e; transition: .2s; }
.switch span::after { content: ""; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #9d9388; transition: .2s; }
.switch input:checked + span { border-color: rgba(214,154,70,.55); background: rgba(139,82,27,.65); }
.switch input:checked + span::after { transform: translateX(23px); background: #f0bd65; }
.btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; text-decoration: none; font-weight: 800; transition: .15s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primary { color: #1c1105; border-color: #f0bd65; background: linear-gradient(135deg, #efbd68, #a8662b); box-shadow: 0 8px 22px rgba(135,79,29,.22); }
.btn-secondary { color: #d5c9b9; border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.035); }
.btn-danger { color: #ffd7d0; border-color: rgba(232,119,102,.25); background: rgba(143,49,38,.2); }
.btn-small { min-height: 31px; padding: 6px 9px; font-size: 11px; }
.btn-block { width: 100%; }
.filter-card { padding: 15px; }
.filter-bar { display: grid; grid-template-columns: minmax(260px,1fr) 190px auto; gap: 10px; align-items: center; }
.search-field { position: relative; display: block; }
.search-field > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8c7f70; z-index: 1; }
.search-field input { padding-left: 34px; }

/* Tables */
.table-card { padding: 0; }
.table-card > .card-heading { padding: 20px 20px 14px; margin: 0; }
.table-wrap { position: relative; z-index: 1; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
th { color: #a48661; background: rgba(0,0,0,.15); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
tbody tr:hover { background: rgba(135,79,29,.065); }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 3px; color: #766f67; line-height: 1.4; }
td a { text-decoration: none; }
td a:hover { color: #efbd68; }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge-good { color: #a7edc0; border-color: rgba(87,211,138,.2); background: rgba(42,137,76,.14); }
.badge-bad { color: #f7b3a9; border-color: rgba(232,119,102,.2); background: rgba(142,47,36,.14); }
.badge-warn { color: #f2d28b; border-color: rgba(233,185,88,.2); background: rgba(139,94,31,.14); }
.badge-muted { color: #a79e94; border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.code-chip, .audit-meta { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 6px; border: 1px solid rgba(255,255,255,.055); border-radius: 5px; background: rgba(0,0,0,.24); color: #b6aa9b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.audit-meta { max-width: 360px; }
.copy-row, .inline-actions { display: flex; align-items: center; gap: 6px; }
.inline-actions { flex-wrap: wrap; }
.inline-actions form { margin: 0; }
.copy-button { padding: 4px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; background: transparent; color: #92877b; font-size: 9px; cursor: pointer; }
.empty { padding: 28px !important; text-align: center; color: var(--muted); }
.empty-block { padding: 24px 0; color: var(--muted); text-align: center; }
.pagination { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid rgba(255,255,255,.05); color: var(--muted); font-size: 11px; }
.top-gap { margin-top: 14px; }

.flash { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(214,154,70,.28); border-radius: 8px; color: #f1d7a6; background: rgba(121,73,28,.2); }
.flash.error { border-color: rgba(232,119,102,.3); color: #ffd1ca; background: rgba(130,43,33,.2); }

/* Player detail compatibility */
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 275px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: linear-gradient(180deg,#17110c,#080604); display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 18px; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 62px; height: 62px; object-fit: contain; border-radius: 14px; }
.sidebar-brand strong { display: block; color: var(--gold-bright); font-family: Georgia,serif; font-size: 21px; }
.sidebar-brand small { color: var(--muted); }
.sidebar nav { display: grid; gap: 5px; margin-top: 18px; }
.sidebar nav a { padding: 10px 11px; border-radius: 7px; color: #b8afa4; text-decoration: none; }
.sidebar nav a:hover { color: #ffe1a6; background: rgba(139,82,27,.2); }
.sidebar-footer { margin-top: auto; }
.main-panel { min-width: 0; padding: 27px clamp(18px,3vw,44px) 65px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 14px 0 24px; }
.topbar h1 { margin: 0; color: var(--gold-pale); font-family: Georgia,serif; font-size: clamp(30px,4vw,40px); }
.topbar p { margin: 6px 0 0; color: var(--muted); }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { color: #b8894e; text-decoration: none; font-size: 12px; }
.section { margin-top: 23px; }
.section-head { margin-bottom: 11px; }
.section-head h2 { margin: 0; color: #e5d7c3; font-family: Georgia,serif; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-copy { margin: 8px 0 16px; color: var(--muted); line-height: 1.6; }
.card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg,rgba(37,29,22,.93),rgba(17,13,10,.96)); box-shadow: 0 16px 42px rgba(0,0,0,.2); }
.cards, .detail-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric-value { color: var(--gold-pale); font-family: Georgia,serif; font-size: 34px; font-weight: 800; }
.metric-label { margin-top: 5px; color: var(--muted); font-size: 12px; }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.detail-list { display: grid; gap: 0; }
.detail-list > div:not(.detail-row) { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.detail-list > div:not(.detail-row):last-child { border-bottom: 0; }
.detail-list > div:not(.detail-row) span { color: var(--muted); }
.detail-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.detail-row:last-child { border-bottom: 0; }
.detail-row-id { align-items: flex-start; flex-direction: column; }
.code-chip-full { max-width: 420px; }
.card-lead { color: var(--muted); line-height: 1.55; }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .content-grid.two-thirds, .content-grid.equal { grid-template-columns: 1fr; }
  .server-data { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid.three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 840px) {
  .forge-shell, .admin-layout { grid-template-columns: 1fr; }
  .forge-sidebar, .sidebar { position: relative; height: auto; }
  .forge-nav { display: flex; overflow-x: auto; padding-bottom: 9px; }
  .forge-nav a { min-width: max-content; grid-template-columns: 26px auto; }
  .nav-separator, .sidebar-system, .logout-form, .sidebar-footer { display: none; }
  .forge-topbar, .topbar { flex-direction: column; }
  .status-cluster { justify-content: flex-start; }
  .filter-bar { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .forge-main, .main-panel { padding-inline: 12px; }
  .metric-grid, .metric-grid.compact, .cards, .detail-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .form-grid .span-two, .form-grid .full { grid-column: auto; }
  .server-data { grid-template-columns: 1fr; }
  .server-data > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.045); }
  .forge-card, .card { padding: 16px; }
  .public-card, .login-card { padding: 26px 20px; }
}

/* API and SSO */
.api-flow { position: relative; z-index: 1; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.api-flow li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.api-flow li:last-child { border-bottom: 0; }
.api-flow li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(214,154,70,.28); border-radius: 50%; color: #e0ae67; background: rgba(112,67,27,.16); font-weight: 850; }
.api-flow strong, .api-flow small { display: block; }
.api-flow strong { color: #e0d4c3; font-size: 13px; }
.api-flow small { margin-top: 5px; color: var(--muted); line-height: 1.55; }
.api-flow code, .endpoint-row code { color: #e9c98f; font-family: "SFMono-Regular", Consolas, monospace; }
.security-card > p { position: relative; z-index: 1; color: #a89d91; line-height: 1.65; }
.security-rule { position: relative; z-index: 1; display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.055); }
.security-rule strong { color: #ddcfbd; font-size: 13px; }
.security-rule span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-description { max-width: 760px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.endpoint-list { position: relative; z-index: 1; display: grid; gap: 10px; }
.endpoint-row { display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.5fr); gap: 18px; padding: 15px; border: 1px solid rgba(255,255,255,.055); border-radius: 9px; background: rgba(0,0,0,.14); }
.endpoint-route { display: flex; align-items: center; align-content: flex-start; gap: 9px; flex-wrap: wrap; min-width: 0; }
.endpoint-route > code { overflow-wrap: anywhere; font-size: 12px; }
.method-badge, .auth-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 900; letter-spacing: .08em; white-space: nowrap; }
.method-badge { min-width: 48px; border: 1px solid rgba(214,154,70,.25); color: #e6bc7f; background: rgba(118,72,29,.18); }
.method-get { border-color: rgba(85,183,226,.28); color: #9edcf3; background: rgba(31,99,128,.17); }
.method-post { border-color: rgba(87,211,138,.28); color: #9be5b7; background: rgba(35,115,67,.16); }
.method-delete { border-color: rgba(232,119,102,.3); color: #f2a99e; background: rgba(126,44,34,.16); }
.auth-badge { border: 1px solid rgba(255,255,255,.07); color: #9c9185; background: rgba(255,255,255,.025); }
.endpoint-copy { display: grid; gap: 8px; min-width: 0; }
.endpoint-copy > strong { color: #dcd0c0; font-size: 13px; }
.endpoint-copy > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: start; }
.endpoint-copy > div > span { color: #756d64; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.endpoint-copy > div > code { overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.endpoint-copy > p { margin: 0; color: #9b8e7e; font-size: 11px; line-height: 1.55; }

@media (max-width: 920px) {
  .endpoint-row { grid-template-columns: 1fr; }
}

/* Expanded API reference */
.api-doc-toolbar { display: grid; gap: 14px; }
.api-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.api-search { position: relative; z-index: 1; display: grid; gap: 7px; }
.api-search > span { color: #c9bba8; font-size: 12px; font-weight: 750; }
.endpoint-details { overflow: hidden; border: 1px solid rgba(255,255,255,.065); border-radius: 10px; background: rgba(0,0,0,.15); transition: border-color .16s ease, background .16s ease; }
.endpoint-details[open] { border-color: rgba(214,154,70,.25); background: rgba(13,9,6,.48); }
.endpoint-details[hidden], [data-api-group][hidden] { display: none !important; }
.endpoint-summary { display: grid; grid-template-columns: minmax(310px,.9fr) minmax(0,1.35fr) 24px; gap: 16px; align-items: center; padding: 15px; cursor: pointer; list-style: none; }
.endpoint-summary::-webkit-details-marker { display: none; }
.endpoint-summary:hover { background: rgba(139,82,27,.08); }
.endpoint-summary-copy { min-width: 0; }
.endpoint-summary-copy strong, .endpoint-summary-copy small { display: block; }
.endpoint-summary-copy strong { color: #dcd0c0; font-size: 13px; line-height: 1.45; }
.endpoint-summary-copy small { margin-top: 4px; color: #71685f; font-size: 10px; }
.endpoint-chevron { color: #b98a52; font-size: 20px; text-align: center; transition: transform .16s ease; }
.endpoint-details[open] .endpoint-chevron { transform: rotate(180deg); }
.endpoint-detail-body { display: grid; gap: 16px; padding: 0 15px 17px; border-top: 1px solid rgba(255,255,255,.055); }
.endpoint-description { padding-top: 15px; }
.endpoint-description h3, .api-example-card h3, .chatgpt-task-card h3 { margin: 0; color: #e0d4c3; font-size: 13px; }
.endpoint-description p, .endpoint-note p, .chatgpt-task-card > p { margin: 7px 0 0; color: #9d9184; font-size: 12px; line-height: 1.65; }
.endpoint-contract-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.endpoint-contract-grid > div { min-width: 0; padding: 12px; border: 1px solid rgba(255,255,255,.055); border-radius: 8px; background: rgba(255,255,255,.018); }
.endpoint-contract-grid span, .endpoint-contract-grid strong { display: block; }
.endpoint-contract-grid span { color: #766d64; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.endpoint-contract-grid strong { margin-top: 6px; color: #c8bbaa; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.endpoint-note { padding: 12px; border: 1px solid rgba(214,154,70,.17); border-radius: 8px; background: rgba(109,65,25,.08); }
.endpoint-note > strong { color: #d2b17d; font-size: 11px; }
.api-example-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.api-example-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 9px; background: #090705; }
.api-example-card.api-example-error { grid-column: 1 / -1; border-color: rgba(232,119,102,.15); }
.api-example-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.025); }
.api-example-heading .eyebrow { display: block; margin-bottom: 4px; }
.api-example-card pre, .chatgpt-task-card pre { max-height: 430px; margin: 0; padding: 13px; overflow: auto; white-space: pre; tab-size: 2; }
.api-example-card code, .chatgpt-task-card code { color: #cfc3b4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.55; }
.copy-code-button { flex: 0 0 auto; padding: 5px 8px; border: 1px solid rgba(255,255,255,.09); border-radius: 5px; color: #b9aa98; background: rgba(255,255,255,.025); cursor: pointer; font-size: 9px; font-weight: 800; }
.copy-code-button:hover { border-color: rgba(214,154,70,.3); color: #efbd68; }
.chatgpt-task-card { overflow: hidden; border: 1px solid rgba(214,154,70,.23); border-radius: 10px; background: linear-gradient(145deg,rgba(73,43,18,.18),rgba(8,6,4,.86)); }
.chatgpt-task-card > p { padding: 0 12px; }
.chatgpt-task-card pre { max-height: 620px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.055); background: rgba(0,0,0,.25); }

@media (max-width: 980px) {
  .endpoint-summary { grid-template-columns: 1fr 24px; }
  .endpoint-summary-copy { grid-column: 1 / -1; grid-row: 2; }
  .endpoint-chevron { grid-column: 2; grid-row: 1; }
  .endpoint-contract-grid, .api-example-grid { grid-template-columns: 1fr; }
  .api-example-card.api-example-error { grid-column: auto; }
}
@media (max-width: 580px) {
  .endpoint-summary { padding: 12px; }
  .endpoint-detail-body { padding-inline: 12px; }
  .api-toolbar-actions { justify-content: stretch; }
  .api-toolbar-actions .btn { flex: 1; }
  .api-example-heading { align-items: flex-start; flex-direction: column; }
}

/* External API audit rows */
.audit-api-failed { background: rgba(130,43,33,.07); }
.audit-api-success { background: rgba(42,137,76,.025); }
.audit-error-message { color: #f1b1a8; font-size: 11px; line-height: 1.45; }
.audit-success-message { color: #9ed6b1; font-size: 11px; }
.audit-raw { margin-top: 7px; }
.audit-raw summary { color: #8f8377; cursor: pointer; font-size: 10px; }
.audit-raw pre { max-width: 620px; max-height: 240px; margin: 7px 0 0; padding: 10px; overflow: auto; border: 1px solid rgba(255,255,255,.055); border-radius: 6px; background: rgba(0,0,0,.28); color: #a99d90; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 9px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }

.audit-filter-bar { display: grid; grid-template-columns: minmax(260px,1fr) auto auto; gap: 10px; align-items: end; }
.audit-filter-bar .field { margin: 0; }
@media (max-width: 720px) { .audit-filter-bar { grid-template-columns: 1fr; } }

/* Personal account and optional MFA */
.copy-field { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: start; }
.copy-field code { min-width: 0; padding: 10px; overflow-wrap: anywhere; border: 1px solid rgba(255,255,255,.065); border-radius: 7px; background: rgba(0,0,0,.26); color: #d5c7b4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.55; }
.recovery-code-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; margin: 14px 0; padding: 16px; white-space: pre-wrap; border: 1px solid rgba(214,154,70,.2); border-radius: 8px; background: rgba(0,0,0,.26); color: #e6c88f; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.8; }
.mfa-recovery-card { border-color: rgba(87,211,138,.23); }
@media (max-width: 580px) {
  .copy-field { grid-template-columns: 1fr; }
  .copy-field .copy-code-button { justify-self: start; }
  .recovery-code-grid { grid-template-columns: 1fr; }
}

/* LandForge v0.22.2: zentrale Balancing-Editoren */
.balance-list { display: grid; gap: .75rem; }
.balance-editor { border: 1px solid rgba(198, 151, 75, .24); border-radius: 14px; background: rgba(8, 7, 5, .38); overflow: hidden; }
.balance-editor > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; }
.balance-editor > summary::-webkit-details-marker { display: none; }
.balance-editor > summary span:first-child { display: grid; gap: .22rem; }
.balance-editor > summary small { color: var(--muted); }
.balance-editor[open] > summary { border-bottom: 1px solid rgba(198, 151, 75, .2); background: rgba(198, 151, 75, .06); }
.balance-editor-body { padding: 1rem 1.1rem 1.2rem; }
.balance-editor-body .form-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.balance-editor-body .field-wide { grid-column: 1 / -1; }
.balance-editor-body textarea { min-height: 86px; }
.compact-feature-list { gap: .7rem; }
@media (max-width: 720px) { .balance-editor > summary { align-items: flex-start; } }
.balance-editor-body .field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(0,0,0,.28);
  color: #f2eadf;
  padding: 10px 11px;
}

/* Destructive player/account deletion */
.destructive-card { border-color: rgba(232,119,102,.32); background: linear-gradient(145deg,rgba(75,24,20,.34),rgba(17,10,9,.97)); }
.destructive-card h3 { margin: 0; color: #ffd7d0; }
.destructive-copy { margin-bottom: 18px; }
.destructive-copy p { margin: 8px 0 0; color: #c8aaa5; line-height: 1.6; }
.danger-confirmation-field { max-width: 620px; margin-bottom: 14px; }
.danger-confirmation-field code { display: block; margin: 7px 0; color: #f1b4aa; font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; overflow-wrap: anywhere; }
.danger-confirmation-field input { border-color: rgba(232,119,102,.36); }

/* Build 67 · Leitstand-Referenzlayout */
.forge-sidebar { padding: 18px 14px; background: linear-gradient(180deg,#0d1512 0%,#090f0d 74%,#070b0a 100%); border-right-color: rgba(202,146,55,.45); }
.forge-brand-original { display:block; min-height:92px; padding:10px 8px 18px; }
.forge-brand-original img { width:100%; height:auto; max-height:66px; object-fit:contain; border-radius:0; box-shadow:none; filter:drop-shadow(0 7px 10px rgba(0,0,0,.65)); }
.forge-nav { gap:3px; padding-top:12px; }
.nav-group-label { display:block; margin:15px 12px 7px; padding-bottom:7px; border-bottom:1px solid rgba(201,151,67,.22); color:#c59a50; font:700 10px/1 Georgia,serif; letter-spacing:.14em; text-transform:uppercase; }
.forge-nav a { grid-template-columns:30px 1fr; min-height:48px; padding:7px 10px; border-radius:4px; }
.forge-nav a > span:last-child strong,.forge-nav a > span:last-child small { display:block; }
.forge-nav a > span:last-child strong { color:inherit; font-size:13px; font-weight:700; }
.forge-nav a > span:last-child small { margin-top:2px; color:#6f7a74; font-size:10px; font-weight:500; }
.forge-nav a.active { background:linear-gradient(90deg,rgba(150,94,28,.46),rgba(60,43,22,.12)); border-color:transparent; box-shadow:inset 3px 0 #e0aa4f; }
.forge-nav a.active small { color:#a99a80; }
.forge-main { padding-top:18px; background:linear-gradient(180deg,rgba(8,15,13,.72),rgba(6,10,9,.94)); }
.forge-commandbar { align-items:center; min-height:62px; margin-bottom:24px; padding:0 0 16px; }
.command-status,.command-actions,.command-admin,.command-button { display:flex; align-items:center; }
.command-status { gap:10px; color:#d7d4ca; }
.command-status small,.command-status strong,.command-admin small,.command-admin strong { display:block; }
.command-status small { color:#7d887f; font-size:11px; }
.command-status strong { margin-top:2px; font-size:13px; }
.command-shield { display:grid; place-items:center; width:31px; height:36px; color:#d8f0c2; background:linear-gradient(145deg,#5d8e35,#28431d); clip-path:polygon(50% 0,92% 16%,83% 70%,50% 100%,17% 70%,8% 16%); }
.command-actions { gap:9px; }
.command-button { gap:9px; min-height:40px; padding:0 16px; border:1px solid rgba(211,155,61,.48); border-radius:4px; color:#efcc83; background:linear-gradient(180deg,rgba(132,86,28,.32),rgba(62,43,19,.28)); text-decoration:none; font-size:12px; font-weight:750; box-shadow:inset 0 0 0 1px rgba(255,221,153,.08); }
.command-button.muted { color:#999c94; border-color:rgba(255,255,255,.12); background:rgba(255,255,255,.025); }
.command-admin { gap:9px; margin-left:6px; padding-left:14px; border-left:1px solid rgba(255,255,255,.08); }
.command-avatar { display:grid; place-items:center; width:38px; height:38px; border:1px solid rgba(217,160,65,.42); border-radius:50%; color:#e0b15e; background:#15201c; }
.command-admin strong { color:#ddd8cb; font-size:12px; }.command-admin small { margin-top:2px; color:#7f877f; font-size:10px; }
.admin-page-hero { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:116px; margin-bottom:16px; padding:22px 26px; border:1px solid rgba(209,146,52,.52); background:linear-gradient(90deg,rgba(7,15,12,.96),rgba(18,28,24,.82)),radial-gradient(circle at 75% 35%,rgba(46,98,116,.22),transparent 38%); box-shadow:inset 0 0 38px rgba(0,0,0,.45); overflow:hidden; }
.admin-page-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(115deg,transparent 0 55%,rgba(76,135,162,.07) 70%,transparent); }
.admin-page-hero h1 { margin:4px 0 3px; color:#e7b94f; font:700 clamp(29px,3vw,40px)/1 Georgia,serif; text-transform:uppercase; }
.admin-page-hero p { max-width:780px; margin:0; color:#c5bba7; font-family:Georgia,serif; }
.admin-page-hero img { position:relative; z-index:1; width:min(31vw,310px); max-height:78px; object-fit:contain; opacity:.82; filter:drop-shadow(0 10px 18px rgba(0,0,0,.65)); }
.reference-dashboard-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:16px; }
.reference-dashboard-main,.reference-dashboard-side { min-width:0; }.reference-dashboard-side { display:grid; align-content:start; gap:14px; }
.reference-metric-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)); gap:12px; }
.reference-metric-card { position:relative; display:flex; min-height:190px; flex-direction:column; align-items:center; justify-content:center; padding:18px 12px; border:1px solid rgba(215,159,70,.28); color:#d6d0c2; background:#0d1814; text-decoration:none; text-align:center; box-shadow:inset 0 0 0 4px rgba(0,0,0,.22),0 10px 30px rgba(0,0,0,.22); transition:.16s ease; }
.reference-metric-card:hover { transform:translateY(-2px); border-color:rgba(232,178,85,.58); }
.reference-metric-card::after { content:""; position:absolute; inset:5px; border:1px solid rgba(255,255,255,.025); pointer-events:none; }
.metric-round { display:grid; place-items:center; width:76px; height:76px; margin-bottom:14px; border:2px solid currentColor; border-radius:50%; background:radial-gradient(circle,rgba(255,255,255,.08),rgba(0,0,0,.42)); box-shadow:0 0 0 8px rgba(255,255,255,.018),inset 0 0 22px rgba(0,0,0,.5); font-size:30px; }
.reference-metric-card small { min-height:31px; color:#d1c9ba; font-family:Georgia,serif; font-size:13px; }.reference-metric-card strong { margin:8px 0 7px; color:#e8bd63; font:700 29px/1 Georgia,serif; }.reference-metric-card em { color:#7d817b; font-size:10px; font-style:normal; }
.metric-green .metric-round{color:#76a94d}.metric-orange .metric-round{color:#b7732d}.metric-blue .metric-round{color:#5f9bb6}.metric-purple .metric-round{color:#8d659a}.metric-cyan .metric-round{color:#55989d}.metric-gold .metric-round{color:#c99535}
.reference-quick-access { margin-top:14px; }.reference-quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.reference-quick-grid a { display:grid; place-items:center; min-height:106px; padding:12px; border:1px solid rgba(209,151,61,.22); color:#cfc7b6; background:#101a16; text-align:center; text-decoration:none; }.reference-quick-grid a:hover { border-color:rgba(225,173,88,.55); background:#15221d; }.reference-quick-grid a>span { color:#c79a4d; font-size:27px; }.reference-quick-grid strong,.reference-quick-grid small { display:block; }.reference-quick-grid strong { margin-top:6px; font-family:Georgia,serif; }.reference-quick-grid small { margin-top:3px; color:#747d76; font-size:10px; }
.reference-side-card { border-color:rgba(199,139,50,.45); border-radius:0; }.reference-change-list,.system-warning-list { display:grid; gap:8px; }
.reference-change-list a,.system-warning-list a { display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:center; min-height:58px; padding:8px; border-bottom:1px solid rgba(255,255,255,.05); color:#c8c4b9; text-decoration:none; }.reference-change-list strong,.reference-change-list small,.system-warning-list strong,.system-warning-list small { display:block; }.reference-change-list strong,.system-warning-list strong { font:700 12px Georgia,serif; }.reference-change-list small,.system-warning-list small { margin-top:3px; color:#747d76; font-size:9px; }.change-icon,.system-warning-list>a>span { display:grid; place-items:center; width:32px; height:32px; border:1px solid rgba(206,151,65,.24); color:#c4984f; background:#15201b; }
.system-warning-list a.ok>span{color:#82b85a}.system-warning-list a.warn>span{color:#dc9b46}.system-warning-list a.info>span{color:#65a0bd}
.device-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.device-detail-card { border-radius:6px; }.device-card-head { display:flex; justify-content:space-between; gap:12px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.06); }.device-card-head h2 { margin:4px 0; color:#e2d4b9; font:700 20px Georgia,serif; }.device-card-head p { margin:0;color:#7f887f;font-size:11px; }.device-card-head a{color:#d2a657}.device-platform { color:#6eb4d0;font-size:9px;font-weight:850;letter-spacing:.15em; }
.device-fact-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; margin:14px 0; background:rgba(255,255,255,.055); }.device-fact-grid>div { min-width:0; padding:12px; background:#0e1714; }.device-fact-grid span,.device-fact-grid strong,.device-fact-grid small { display:block; }.device-fact-grid span { color:#778078;font-size:9px;text-transform:uppercase;letter-spacing:.1em; }.device-fact-grid strong { margin-top:5px;color:#d5ccb9;font-size:13px;overflow-wrap:anywhere; }.device-fact-grid small { margin-top:3px;color:#6c756e;font-size:9px; }
.device-technical { padding:10px 12px; border:1px solid rgba(255,255,255,.06); background:rgba(0,0,0,.12); }.device-technical summary { color:#b99558;cursor:pointer;font-size:11px; }.device-technical dl { display:grid; grid-template-columns:130px minmax(0,1fr); gap:7px 12px; margin:12px 0 0; }.device-technical dt { color:#727b74;font-size:10px; }.device-technical dd { min-width:0;margin:0;color:#aeb4ac;font-size:10px;overflow-wrap:anywhere; }.device-card-actions { display:flex;justify-content:flex-end;gap:8px;margin-top:13px; }
.metric-code { font-size:18px!important; overflow-wrap:anywhere; }.play-package { display:flex;align-items:center;gap:14px;padding:16px;border:1px solid rgba(111,183,104,.22);background:#101b17; }.play-triangle { display:grid;place-items:center;width:54px;height:54px;border-radius:14px;color:#7fd06d;background:linear-gradient(145deg,#264e2c,#16271d);font-size:25px; }.play-package strong,.play-package small { display:block; }.play-package strong { color:#e0d8c7; }.play-package small { margin-top:4px;color:#788279;font-size:11px; }
.liveops-template-library { margin-bottom:14px; }.liveops-preset-grid { display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:10px; }.liveops-preset-grid article { display:flex;flex-direction:column;min-height:230px;padding:15px;border:1px solid rgba(210,153,65,.2);background:#0e1814; }.liveops-preset-grid h3 { margin:7px 0;color:#dfd0b4;font:700 17px Georgia,serif; }.liveops-preset-grid p { flex:1;margin:0;color:#7f887f;font-size:11px;line-height:1.45; }.liveops-preset-grid dl { display:grid;gap:5px;margin:12px 0; }.liveops-preset-grid dl div { display:flex;justify-content:space-between;gap:8px; }.liveops-preset-grid dt,.liveops-preset-grid dd { margin:0;font-size:9px; }.liveops-preset-grid dt{color:#68716b}.liveops-preset-grid dd{color:#bdb5a6}.preset-type{color:#c3974c;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.14em;}
@media(max-width:1450px){.reference-dashboard-grid{grid-template-columns:1fr}.reference-dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-metric-grid{grid-template-columns:repeat(4,minmax(135px,1fr))}.liveops-preset-grid{grid-template-columns:repeat(3,minmax(180px,1fr))}}
@media(max-width:1120px){.reference-metric-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}.device-card-grid{grid-template-columns:1fr}.liveops-preset-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.command-button.muted{display:none}}
@media(max-width:760px){.forge-brand-original{min-height:auto}.forge-brand-original img{max-height:45px}.forge-commandbar{align-items:flex-start}.command-actions{flex-wrap:wrap;justify-content:flex-end}.command-admin{display:none}.admin-page-hero img{display:none}.reference-dashboard-side{grid-template-columns:1fr}.reference-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.device-fact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.liveops-preset-grid{grid-template-columns:1fr}}
.brand-mark { width:min(100%,380px); height:auto; border-radius:0; box-shadow:none; }
.sidebar-brand img,.login-logo,.brand img { width:min(100%,300px); height:auto; max-height:78px; object-fit:contain; border-radius:0; }

.stacked-actions { display: grid; gap: 6px; min-width: 220px; }
.stacked-actions input { min-width: 0; width: 100%; }
.top-gap-small { margin-top: 8px; }
