/* Warden Casino dashboard: the IronVault look (public/styles.css on ironvaulthost.com and the Warden dashboards'
   IronVault theme): warm paper, ink text and buttons, logo copper as the one accent, Manrope + IBM Plex Mono,
   flat 4px corners, no glows. */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --ink: #16181b;
  --text: #2b2e33;
  --muted: #5f646c;
  --line: #d8d6ce;
  --line-strong: #b9b6ac;
  --accent: #b8670f;
  --accent-ink: #8e4e09;
  --accent-soft: #f4e6d6;
  --ok: #1d7f47;
  --warn: #a86a00;
  --bad: #c0392b;
  --radius: 4px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 19px; font-weight: 800; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* The IronVault bar (from IronVault's /api/suite), the same as on every IronVault page. */
.suite-bar { background: #16181b; color: #c9ccd1; font: 500 13px/1 var(--font); }
.suite-bar__inner { display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; padding: 0 16px; }
.suite-bar a { color: inherit; text-decoration: none; padding: 9px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.suite-bar a:hover { color: #fff; }
.suite-bar a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.suite-bar .suite-bar__home { font-weight: 800; color: #fff; padding-left: 0; margin-right: 8px; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(244, 243, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 62px; width: min(1180px, 100% - 32px); margin-inline: auto; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 18px var(--font); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.topbar__server { flex: 1; min-width: 0; }
.topbar__server select { max-width: 280px; }
.topbar__user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); white-space: nowrap; }

/* buttons: ink primary, outlined secondary (IronVault .btn / .btn--ghost) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 14px/1.2 var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn--danger { background: transparent; color: var(--bad); border-color: #e3b6b0; }
.btn--danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn--sm { padding: 6px 11px; font-size: 13px; }
.btn--lg { padding: 13px 22px; font-size: 15.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 28px 0 48px; }
.side { position: sticky; top: 86px; align-self: start; display: grid; gap: 2px; }
.side a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: var(--radius); color: var(--muted); font-weight: 600; font-size: 14.5px; }
.side a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.side .lock { margin-left: auto; font: 600 10.5px var(--mono); color: var(--accent-ink); }

.head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.eyebrow { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); margin-bottom: 6px; }
.section { display: grid; gap: 18px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card > h2 { margin-bottom: 4px; }
.card > .muted { margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid--stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat__label { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.stat__value { font: 800 26px/1.2 var(--font); color: var(--ink); letter-spacing: -0.03em; margin-top: 6px; }
.stat__sub { font-size: 13px; color: var(--muted); }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 12px 14px; border-radius: var(--radius); font-size: 14px; color: var(--ink); }
.notice--ok { border-left-color: var(--ok); background: #e8f3ec; }
.notice--bad { border-left-color: var(--bad); background: #f8e7e5; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #faf9f6; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11.5px var(--mono); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill--ok { background: #e3f1e8; color: var(--ok); }
.pill--warn { background: #f7ecd6; color: var(--warn); }
.pill--bad { background: #f6e1de; color: var(--bad); }
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }

form.form, .form { display: grid; gap: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 16px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field small { color: var(--muted); font-size: 12.5px; }
input, select, textarea { width: 100%; font: 400 14.5px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 9px 11px; }
textarea { min-height: 70px; resize: vertical; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="color"] { padding: 2px; height: 40px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13.5px; }

.list { display: grid; gap: 0; }
.list__row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list__row:last-child { border-bottom: 0; }
.list__row .grow { flex: 1; min-width: 0; }
.rank { font: 800 15px var(--font); color: var(--accent-ink); width: 26px; }

.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.server { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--ink); }
.server:hover { border-color: var(--ink); text-decoration: none; }
.server img, .server .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); flex: none; display: grid; place-items: center; font-weight: 800; color: var(--muted); }
.server b { display: block; }

.signin { max-width: 520px; margin: 64px auto; text-align: center; display: grid; gap: 16px; justify-items: center; }
.signin img { width: 72px; height: 72px; }

.editor { border: 1px solid var(--ink); }
.editor__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-size: 14px; z-index: 50; max-width: calc(100% - 32px); }
.toast--bad { background: var(--bad); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 22px 0 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 900px) {
  .grid--stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .side a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface); padding: 7px 11px; }
  .side a[aria-current="page"] { box-shadow: none; border-color: var(--ink); }
  .grid--2 { grid-template-columns: 1fr; }
  .topbar__inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 10px; }
  .topbar__server { order: 3; flex-basis: 100%; }
  .topbar__server select { max-width: none; }
  .topbar__user span { display: none; }
  h1 { font-size: 24px; }
  .stat__value { font-size: 22px; }
  .hide-sm { display: none; }
}
.pad-page { padding: 28px 0 48px; }
.mt { margin-top: 12px; }
.mb { margin-bottom: 12px; }
.w-edge { width: 84px; }
