/* The admin page shares the /ui dashboard's palette and type so the two read
   as one product. Separate file, not inline: the admin CSP forbids inline style. */
:root {
  --bg: #0d1117; --panel: #161b22; --line: #21262d; --fg: #e6edf3; --dim: #8b949e;
  --green: #3fb950; --red: #f85149; --amber: #d29922; --blue: #58a6ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
       font: 14px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
main.narrow { max-width: 520px; padding-top: 48px; }
h1 { font-size: 16px; margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
h1 .dim, .age { font-weight: normal; font-size: 12px; }
h2 { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin: 22px 0 8px; }
h3 { font-size: 12px; color: var(--dim); text-transform: uppercase; margin: 14px 0 6px; }
a { color: var(--blue); }
header.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; margin: 10px 0; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--dim); font-size: 11px; text-transform: uppercase;
     letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.site button.link { background: none; border: 0; color: var(--fg); font: inherit; font-weight: bold;
                      padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
tr.site.selected td { background: var(--panel); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.ok    { background: rgba(63,185,80,.15);  color: var(--green); }
.bad   { background: rgba(248,81,73,.15);  color: var(--red); }
.warn  { background: rgba(210,153,34,.15); color: var(--amber); }
.mute  { background: rgba(139,148,158,.15); color: var(--dim); }
.dim { color: var(--dim); }
label { display: block; margin: 8px 0 3px; color: var(--dim); font-size: 12px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; color: var(--fg); }
input[type=text], input[type=password], input[type=url], input[type=search], select {
  width: 100%; background: var(--bg); color: var(--fg); border: 1px solid var(--line);
  border-radius: 4px; padding: 7px 8px; font: inherit;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.row > div { flex: 1 1 200px; }
button { background: #21262d; color: var(--fg); border: 1px solid #30363d; border-radius: 4px;
         padding: 6px 12px; font: inherit; cursor: pointer; margin: 6px 6px 0 0; }
button:hover:not(:disabled) { border-color: var(--dim); }
button.primary { background: #238636; border-color: #2ea043; color: #fff; }
button.danger { background: rgba(248,81,73,.15); border-color: var(--red); color: var(--red); }
button:disabled { opacity: .45; cursor: not-allowed; }
pre, .secret { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 8px;
               overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: 12px; margin: 4px 0; }
pre.logs { max-height: 420px; overflow: auto; white-space: pre; word-break: normal; }
.msg { margin: 8px 0; padding: 8px 10px; border-radius: 4px; }
.msg:empty { display: none; }
.msg.error { background: rgba(248,81,73,.15); color: var(--red); }
.msg.info  { background: rgba(88,166,255,.12); color: var(--blue); }
.msg.warn  { background: rgba(210,153,34,.15); color: var(--amber); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.keys li { display: flex; justify-content: space-between; align-items: center; }
.keys button { margin: 0; padding: 2px 8px; font-size: 12px; }
.danger-zone { border-color: rgba(248,81,73,.5); }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
