/* 110dB PR - base styles */
:root {
  --bg: #0d0d0f;
  --panel: #17171b;
  --panel-2: #1f1f25;
  --line: #2c2c34;
  --text: #ececef;
  --muted: #9a9aa6;
  --accent: #ff3b2f;     /* the needle in the red */
  --accent-2: #ffb020;
  --ok: #2fbf71;
  --radius: 10px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: var(--accent-2); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--panel-2); padding: .1em .35em; border-radius: 4px; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.5rem; border-bottom: 1px solid var(--line); background: #0a0a0c; position: sticky; top: 0; z-index: 5; }
.brand { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand .db { color: var(--accent); }
.brand .pr { margin-left: .35rem; font-size: .75rem; letter-spacing: .2em; color: var(--muted); vertical-align: middle; }
.topbar nav { display: flex; gap: 1.1rem; align-items: center; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover, .topbar nav a.on { color: var(--text); }
.inline { display: inline; margin: 0; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
.linkish:hover { color: var(--text); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem; border-top: 1px solid var(--line); }

h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; }
h2 { font-size: 1.15rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 1.4rem 0 .6rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: #cfcfd6; max-width: 46rem; }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }

.hero { padding: 4rem 0 2rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; letter-spacing: -.03em; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin: 0 0 1.4rem; overflow-x: auto; }
.card.narrow { max-width: 26rem; margin: 2rem auto; }
.card.narrowish { max-width: 42rem; }

label { display: block; margin: 0 0 1rem; font-size: .9rem; color: #cfcfd6; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; padding: .6rem .7rem; background: #0f0f12; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: .6rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.danger { background: #5a1a17; color: #ffd9d6; }
.btn.small { padding: .3rem .6rem; font-size: .8rem; }
.row-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0 1.4rem; }
.titlebar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.titlebar .row-actions { margin: 0; }

.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 10rem; margin: 0; }

.flash { padding: .75rem 1rem; border-radius: 7px; margin: 0 0 1.2rem; border: 1px solid; }
.flash.ok { background: #0f2a1c; border-color: #1f6b43; color: #b8f0d0; }
.flash.err { background: #2a1210; border-color: #7a2a22; color: #ffd0cb; }

.reveal { background: #2a2110; border: 1px solid #8a6a1a; border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1.4rem; }
.reveal code.big { display: inline-block; font-size: 1.3rem; padding: .3rem .7rem; margin: .4rem 0 .2rem .5rem; user-select: all; }
.reveal p { margin: .4rem 0 0; color: #e8d6a8; font-size: .9rem; }

.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: .5rem .6rem; }
.tbl td { border-bottom: 1px solid #222228; padding: .55rem .6rem; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }

.pill { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 99px; background: var(--panel-2); color: var(--muted); vertical-align: middle; }
.pill.active { background: #0f2a1c; color: #6fe0a5; }
.pill.suspended, .pill.disabled { background: #2a1210; color: #ff9a90; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.3rem; min-width: 9rem; }
.stat .n { display: block; font-size: 2rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: .85rem; }

.facts { display: grid; grid-template-columns: 8rem 1fr; gap: .4rem 1rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.tile h3 { margin: 0 0 .4rem; }
.tile p { color: var(--muted); margin: 0 0 .8rem; font-size: .9rem; }
.tile.soon { opacity: .75; }
