/* Warden Voice dashboard — IronVault's "paper & ink" look (public/styles.css on the IronVault site and the bots'
   DASHBOARD_THEME=ironvault): warm light surfaces, ink type and buttons, the logo copper as the one accent, flat 4px
   corners. Every colour is a token below. No external fonts or scripts: the page works under a strict CSP. */
:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --ink: #16181b;
  --text: #2b2e33;
  --muted: #5f646c;
  --line: #d8d6ce;
  --line-strong: #b9b6ac;
  --accent: #b8670f;       /* logo copper */
  --accent-ink: #8e4e09;   /* copper dark enough for text on light backgrounds */
  --accent-soft: #f4e6d6;
  --ok: #1d7f47;
  --warn: #a86a00;
  --bad: #c0392b;
  --info: #2b6f99;
  --radius: 4px;
  --wrap: 1120px;
  --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; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 10px; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono, code, .tk { font-family: var(--mono); font-size: 13px; }
.tk { word-break: break-all; }
.eyebrow { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.right { text-align: right; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.scroll-x { overflow-x: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(244,243,239,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links form { display: inline-flex; }
.impersonate-bar { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 8px 16px; flex-wrap: wrap;
  background: var(--accent-soft); border-bottom: 1px solid var(--accent); color: var(--accent-ink); font: 500 12.5px var(--mono); }
@media (max-width: 720px) { .nav-links .hide { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--ink);
  border-radius: var(--radius); background: var(--ink); color: #fff; font: 600 14.5px/1.2 var(--font); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }
.btn.primary { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(192,57,43,.45); }
.btn.danger:hover { background: rgba(192,57,43,.08); color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.big { padding: 13px 24px; font-size: 16px; }
.btn.full { width: 100%; }

/* page */
.sec { padding: 32px 0 56px; }
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; margin: 12px 0 14px; }
.lead { color: var(--muted); font-size: 17.5px; max-width: 60ch; margin-bottom: 26px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 800; margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 18px; }
.panel > h2 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.panel > h2 .tag { font: 500 11px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-left: 8px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.card .n { font: 700 26px var(--font); color: var(--ink); }
.server { border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin-bottom: 14px; background: var(--surface); }
.server h3 { font-size: 17px; }
details.settings { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
details.settings > summary { cursor: pointer; font-weight: 600; color: var(--ink); }

/* forms */
.fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--muted); }
.field.grow { flex: 1 1 280px; }
.input, select, textarea { font: 400 14.5px var(--font); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 8px 10px; }
.input.num { width: 90px; }
textarea.input { width: 100%; }
.input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
form.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.checks { display: flex; flex-wrap: wrap; gap: 14px; }
.checks label, label.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text); }

/* notices & badges */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--info); background: var(--surface); padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; }
.notice.warn { border-left-color: var(--warn); background: #fff8eb; }
.notice.ok { border-left-color: var(--ok); }
.notice.bad { border-left-color: var(--bad); background: #fdf1ef; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 600 11.5px var(--mono); border: 1px solid var(--line-strong); color: var(--muted); }
.badge.ok { color: var(--ok); border-color: rgba(29,127,71,.4); background: rgba(29,127,71,.07); }
.badge.warn { color: var(--warn); border-color: rgba(168,106,0,.4); background: rgba(168,106,0,.07); }
.badge.bad { color: var(--bad); border-color: rgba(192,57,43,.4); background: rgba(192,57,43,.06); }

/* usage */
meter { width: 100%; height: 10px; }
.usage { font-size: 14px; color: var(--text); }
.usage b { color: var(--ink); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line-strong); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
pre.config { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow-x: auto; font: 13px var(--mono); color: var(--ink); }
audio { height: 32px; max-width: 260px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--muted); margin-left: 14px; }
