/* Aerial panel — warm, calm and readable. Every value lives in a token so
   light and dark themes stay consistent. No inline styles anywhere (CSP). */

:root {
  --bg: #f6f4f0;
  --bg-accent: #eef1fb;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --surface-3: #ebe8e1;
  --text: #1c1e22;
  --text-2: #4a4f57;
  --muted: #767b83;
  --border: #e4e0d8;
  --border-strong: #d4cfc5;
  --accent: #3a5fd9;
  --accent-hover: #2f4fc0;
  --accent-soft: #e9eefc;
  --accent-text: #ffffff;
  --ok: #1d7f55;
  --ok-soft: #e2f3ea;
  --warn: #a2650c;
  --warn-soft: #fbf0db;
  --danger: #c23a33;
  --danger-soft: #fbe6e4;
  --terminal: #14161b;
  --terminal-text: #d9dde4;
  --shadow: 0 1px 2px rgba(28, 30, 34, .04), 0 6px 20px rgba(28, 30, 34, .05);
  --shadow-lg: 0 12px 40px rgba(28, 30, 34, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar: 256px;
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --bg-accent: #161b2b;
    --surface: #181b20;
    --surface-2: #1f2228;
    --surface-3: #272b32;
    --text: #eceef2;
    --text-2: #c3c8d0;
    --muted: #8f95a0;
    --border: #2a2e36;
    --border-strong: #363b45;
    --accent: #8ba4ff;
    --accent-hover: #a3b7ff;
    --accent-soft: #212a45;
    --accent-text: #0e1220;
    --ok: #5fd39c;
    --ok-soft: #173327;
    --warn: #e9b35c;
    --warn-soft: #33281a;
    --danger: #ff7b72;
    --danger-soft: #3a1d1c;
    --terminal: #0b0c0f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 1.75rem; font-weight: 650; }
h2 { font-size: 1.15rem; font-weight: 620; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 18px; height: 18px; flex: none; }
.i-lg .i, .i.i-lg { width: 22px; height: 22px; }

/* ------------------------------------------------------------ shell --- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar); flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px; padding: 20px 14px;
  background: var(--surface); border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: var(--text); font-weight: 680; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #4f74ea, #7c5ce0); color: #fff;
}
.brand-mark .i { width: 20px; height: 20px; stroke-width: 2.2; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: .72rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 14px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
}
.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--accent); }

.sidebar-foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .85rem;
}
.me-text { min-width: 0; }
.me-name { font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-mail { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout { margin-top: 6px; }
.logout button { width: 100%; justify-content: flex-start; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 28px 48px; flex: 1; }
.footer { color: var(--muted); font-size: .82rem; padding: 18px 28px 28px; max-width: 1080px; margin: 0 auto; width: 100%; display: flex; gap: 14px; }
.footer a { color: var(--muted); }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center;
    gap: 8px; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--border); overflow-x: auto;
  }
  .brand { padding: 0 6px 0 0; }
  .brand span:last-child { display: none; }
  .nav { flex-direction: row; gap: 2px; }
  .nav-label, .sidebar-foot .me { display: none; }
  .nav a { white-space: nowrap; padding: 8px 10px; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .logout { margin: 0; }
  .logout button span { display: none; }
  .container { padding: 22px 16px 40px; }
  .footer { padding: 16px; }
}

/* ------------------------------------------------------------- page --- */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); margin-top: 6px; }
.eyebrow { color: var(--muted); font-size: .85rem; font-weight: 550; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.eyebrow a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 550; margin-bottom: 14px; }
.lead { font-size: 1.02rem; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > .grow { flex: 1 1 200px; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.card-head .i-wrap {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: var(--surface-2); color: var(--text-2);
}
.card-head p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.card-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.card.danger-zone { border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.card.danger-zone .i-wrap { background: var(--danger-soft); color: var(--danger); }
.card.admin-zone { border-style: dashed; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card + .card { margin-top: 0; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

.subnav { display: flex; gap: 4px; margin: 0 0 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.subnav a { padding: 10px 14px; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.subnav a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------- buttons --- */

.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 600; line-height: 1.2;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
}
.btn:hover, button:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active, button:active { transform: translateY(1px); }
.btn-secondary, button.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover, button.secondary:hover { background: var(--surface-2); }
.btn-danger, button.danger { background: var(--danger); color: #fff; }
.btn-danger:hover, button.danger:hover { background: color-mix(in srgb, var(--danger) 85%, #000); }
.btn-ghost, button.ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover, button.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-soft-danger, button.soft-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
.btn-soft-danger:hover, button.soft-danger:hover { background: var(--danger-soft); }
.btn-lg { padding: 12px 20px; font-size: 1rem; }
.btn-sm, button.sm { padding: 6px 10px; font-size: .85rem; border-radius: 8px; }
button.link { background: none; color: var(--accent); padding: 0; border: 0; font-weight: 550; }
button.link:hover { background: none; text-decoration: underline; }
button.link.danger { color: var(--danger); }
button[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
form.inline { display: inline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ forms --- */

label { display: block; font-weight: 580; font-size: .92rem; margin-bottom: 14px; }
label .hint, .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 5px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-weight: 400;
  color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[disabled] { background: var(--surface-2); color: var(--muted); }
input[type=checkbox] { display: inline; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
input[type=file] { padding: 8px; }
label.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 450; margin: 0 16px 10px 0; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px 6px; margin: 0 0 16px; }
legend { font-weight: 600; font-size: .9rem; padding: 0 6px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { margin: 0; flex: 1 1 180px; }
.inline-form input { margin-top: 6px; }

/* --------------------------------------------------- pills & meters --- */

.pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
  font-size: .82rem; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.warn .dot { animation: pulse 1.6s ease-in-out infinite; }
.pill.danger { background: var(--danger-soft); color: var(--danger); }
.pill.muted { background: var(--surface-2); color: var(--muted); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.warn .dot { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; }
.stat-label { color: var(--muted); font-size: .82rem; font-weight: 550; display: flex; gap: 6px; align-items: center; }
.stat-value { font-size: 1.25rem; font-weight: 650; margin-top: 4px; }
.stat-sub { color: var(--muted); font-size: .82rem; }
meter { display: block; width: 100%; height: 8px; margin-top: 10px; border: 0; border-radius: 99px; background: var(--surface-3); }
meter::-webkit-meter-bar { background: var(--surface-3); border: 0; border-radius: 99px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--ok); border-radius: 99px; }
meter::-webkit-meter-suboptimum-value { background: var(--warn); border-radius: 99px; }
meter::-webkit-meter-even-less-good-value { background: var(--danger); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--ok); border-radius: 99px; }
meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--warn); }
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--danger); }

/* ---------------------------------------------------- server cards --- */

.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.server-card {
  display: flex; flex-direction: column; gap: 14px; padding: 20px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.server-card:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .server-card:hover { transform: none; } }
.server-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.server-card h3 { font-size: 1.05rem; }
.server-card .game { color: var(--muted); font-size: .88rem; margin-top: 2px; }
.specs { display: flex; gap: 14px; color: var(--text-2); font-size: .86rem; flex-wrap: wrap; }
.specs span { display: inline-flex; gap: 6px; align-items: center; }
.specs .i { width: 15px; height: 15px; color: var(--muted); }
.server-card .address { margin-top: auto; }

.address {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px;
}
.address .value { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address .label { color: var(--muted); font-size: .78rem; }
.copy { padding: 7px 10px; font-size: .82rem; }

.hero {
  background: linear-gradient(135deg, var(--bg-accent), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.hero-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.hero h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text-2);
}
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.danger { background: var(--danger-soft); color: var(--danger); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.accent { background: var(--accent-soft); color: var(--accent); }
.notice .i { margin-top: 2px; }
.notice p { color: inherit; }

.empty {
  text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--border-strong);
  border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.empty .i-wrap { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.empty .i-wrap .i { width: 30px; height: 30px; }
.empty p { color: var(--text-2); max-width: 460px; }

/* ----------------------------------------------------------- lists --- */

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.list-item .title { font-weight: 580; }
.list-item .meta { color: var(--muted); font-size: .85rem; }
.list-empty { color: var(--muted); padding: 10px 0 4px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
td.actions-cell { text-align: right; white-space: nowrap; }

.dns { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-top: 8px; }
.dns dt { color: var(--muted); }
.dns dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }

/* ---------------------------------------------------------- console --- */

.terminal { background: var(--terminal); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; color: #9aa1ad; font-size: .85rem; border-bottom: 1px solid #22252c; }
.console-output {
  height: 62vh; overflow-y: auto; margin: 0; padding: 16px; background: var(--terminal); color: var(--terminal-text);
  white-space: pre-wrap; word-break: break-word; font-size: .86rem; line-height: 1.5; border-radius: 0;
}
.terminal form { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid #22252c; }
.terminal .prompt { color: #7c8cff; font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; padding-left: 6px; }
.terminal input { margin: 0; background: #1b1e24; border-color: #2a2e36; color: var(--terminal-text); font-family: ui-monospace, Menlo, Consolas, monospace; }
.vnc-screen { width: 100%; height: 70vh; background: #000; }
.ansi-bold { font-weight: 700; }
.ansi-k { color: #5c6370; } .ansi-r { color: #e06c75; } .ansi-g { color: #98c379; } .ansi-y { color: #e5c07b; }
.ansi-b { color: #61afef; } .ansi-m { color: #c678dd; } .ansi-c { color: #56b6c2; } .ansi-w { color: #d7dae0; }
.ansi-K { color: #7f848e; } .ansi-R { color: #ff7b86; } .ansi-G { color: #b5e890; } .ansi-Y { color: #ffd68a; }
.ansi-B { color: #82c4ff; } .ansi-M { color: #dd9cf0; } .ansi-C { color: #7fd8e3; } .ansi-W { color: #ffffff; }

/* ------------------------------------------------------- auth pages --- */

.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background: radial-gradient(1200px 600px at 10% -10%, var(--bg-accent), transparent 60%), var(--bg);
}
.auth-box { width: 100%; max-width: 420px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 680; font-size: 1.15rem; margin-bottom: 22px; color: var(--text); }
.auth .card { padding: 30px; }
.auth h1 { font-size: 1.45rem; }
.auth .lead { margin: 6px 0 22px; }
.auth form button[type=submit], .auth .btn-block { width: 100%; margin-top: 6px; }
.auth-links { text-align: center; margin-top: 18px; color: var(--muted); font-size: .9rem; }
.auth-foot { text-align: center; margin-top: 22px; font-size: .82rem; color: var(--muted); }
.auth-foot a { color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.qr { display: block; margin: 8px auto 14px; border-radius: 12px; background: #fff; padding: 10px; }
.secret-box {
  font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px dashed var(--border-strong);
  padding: 14px; border-radius: var(--radius-sm); word-break: break-all; user-select: all; margin: 12px 0;
}

/* ------------------------------------------------- toasts & dialog --- */

.toast {
  display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px 13px 16px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--ok);
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.toast .i { color: var(--ok); margin-top: 2px; }
.toast span { flex: 1; }
.toast--error { border-left-color: var(--danger); }
.toast--error .i { color: var(--danger); }
.toast-close { background: none; color: var(--muted); padding: 2px; }
.toast-close:hover { background: var(--surface-2); color: var(--text); }
.toast.is-hidden { display: none; }

dialog.confirm {
  border: 0; border-radius: var(--radius); padding: 26px; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
dialog.confirm::backdrop { background: rgba(15, 17, 21, .45); backdrop-filter: blur(2px); }
dialog.confirm h2 { margin-bottom: 8px; }
dialog.confirm p { color: var(--text-2); }
dialog.confirm .actions { justify-content: flex-end; margin-top: 22px; }

/* ------------------------------------------------------------ prose --- */

.prose { max-width: 760px; }
.prose h1 { margin-bottom: 14px; }
.prose h2 { margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
pre.block { background: var(--surface-2); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

a.list-item { color: var(--text); border-radius: var(--radius-sm); padding-left: 8px; padding-right: 8px; margin: 0 -8px; }
a.list-item:hover { background: var(--surface-2); text-decoration: none; }
td .row { flex-wrap: nowrap; }
td .title { font-weight: 580; }
ol { padding-left: 20px; }

/* The hidden attribute must win over component display rules. */
[hidden] { display: none !important; }
.actions { align-items: center; }
.inline-form > input, .inline-form > select { width: auto; flex: 1 1 160px; margin: 0; }
.list-item .inline-form { flex-wrap: nowrap; }
@media (max-width: 600px) { .list-item .inline-form { flex-wrap: wrap; } }
