/* A trimmed copy of the console's stylesheet, served from this package at
   /portal/static/style.css. Deliberately a copy: the portal must not lose its
   styling because a route in internal/web moved, and it has no reason to share
   an asset with the surface it is kept separate from. */
:root {
  --bg: #f6f7f9; --fg: #1a1d21; --muted: #6b7280; --line: #dfe3e8;
  --card: #ffffff; --accent: #2f6feb; --bad: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181d; --fg: #e8eaed; --muted: #9aa1ab; --line: #2b2f36;
    --card: #1e2127; --accent: #7aa2f7; --bad: #f0806c;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0.85rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 650; letter-spacing: -0.01em; color: var(--fg); }
nav { display: flex; align-items: center; gap: 1.1rem; margin-left: auto; }
nav form { margin: 0; }
.who, .link { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.link:hover { color: var(--fg); }
main { max-width: 48rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.4rem; margin-bottom: 1.1rem;
}
.card.narrow { max-width: 30rem; margin: 3rem auto; }
h1 { font-size: 1.35rem; margin: 0 0 0.6rem; letter-spacing: -0.015em; }
h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
p { margin: 0 0 0.7rem; }
.muted { color: var(--muted); font-size: 0.88rem; }
.bad { color: var(--bad); }
a { color: var(--accent); }
.button, button {
  display: inline-block; padding: 0.5rem 0.95rem; border-radius: 7px;
  border: 1px solid var(--line); background: var(--accent); color: #fff;
  text-decoration: none; font: inherit; font-size: 0.92rem; cursor: pointer;
}
button.link { background: none; border: none; padding: 0; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 550; }
table.facts th { width: 9rem; }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: none; }
code { font: 0.88em ui-monospace, "Cascadia Code", Consolas, monospace; }
code.wrap { word-break: break-all; }
ol, ul { margin: 0 0 0.7rem; padding-left: 1.3rem; }
li { margin-bottom: 0.3rem; }
.flash {
  padding: 0.7rem 0.95rem; border-radius: 8px; margin-bottom: 1.1rem;
  border: 1px solid var(--line); background: var(--card);
}
.flash.good { border-left: 3px solid #1a7f45; }
.flash.bad { border-left: 3px solid var(--bad); color: var(--fg); }
form.stack { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
form.row, .row { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
form.stack label { display: block; font-size: 0.9rem; width: 100%; max-width: 30rem; }
input[type=text], input[type=password], textarea {
  display: block; width: 100%; max-width: 30rem; margin-top: 0.25rem;
  padding: 0.45rem 0.6rem; border: 1px solid var(--line); border-radius: 7px;
  background: var(--bg); color: var(--fg); font: inherit; font-size: 0.92rem;
}
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.hint { display: block; color: var(--muted); font-size: 0.83rem; margin-top: 0.3rem; line-height: 1.45; }
.tag {
  display: inline-block; padding: 0.08rem 0.4rem; margin-right: 0.25rem;
  border: 1px solid var(--line); border-radius: 5px; font-size: 0.78rem; color: var(--muted);
}
details { margin-top: 0.9rem; }
summary { cursor: pointer; color: var(--muted); font-size: 0.88rem; }
details form { margin-top: 0.7rem; }
