:root {
  --bg: #0f1012; --panel: #17191c; --line: #2a2d32; --text: #e8e6e3; --muted: #8b8f96;
  --accent: #e0a526; --ok: #4caf7a; --bad: #e0565b; --warn: #d9a03f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: var(--accent); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
       padding: .9rem 1.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; }
main { max-width: 1100px; margin: 1.5rem auto; padding: 0 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
        padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; overflow-x: auto; }
.card.narrow { max-width: 560px; margin-inline: auto; }
h1 { font-size: 1.35rem; margin: 0 0 .5rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.hint { color: var(--muted); font-size: .85rem; margin: 0; }
.stack { display: flex; flex-direction: column; gap: .85rem; }
.row { display: flex; gap: .85rem; align-items: end; flex-wrap: wrap; }
.grow { flex: 1; min-width: 12rem; }
.year { width: 7rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--muted); }
label.radio { flex-direction: row; align-items: center; gap: .5rem; color: var(--text); font-size: .95rem; }
input:not([type=radio]):not([type=file]) {
  background: #0c0d0f; color: var(--text); border: 1px solid var(--line);
  border-radius: 6px; padding: .55rem .65rem; font: inherit; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=file] { color: var(--text); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .9rem .8rem;
           display: flex; flex-direction: column; gap: .4rem; margin: 0; }
legend { color: var(--muted); font-size: .88rem; padding: 0 .3rem; }
.btn { background: var(--accent); color: #17130a; border: 0; border-radius: 6px; padding: .6rem 1.1rem;
       font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.small { padding: .35rem .8rem; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.link.danger { color: var(--bad); }
form.inline { display: inline; }
.actions { white-space: nowrap; }
.actions > * + * { margin-left: .6rem; }
.flash { padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--panel); }
.flash.ok { border-color: var(--ok); }
.flash.error { border-color: var(--bad); }
.flash.info { border-color: var(--warn); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
td.path { word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
tr.dim td { opacity: .55; }
.bad { color: var(--bad); }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 99px; background: #23262b; font-size: .8rem; }
.st-disponivel .badge { background: #1d3a2a; color: #9be0b8; }
.st-erro .badge { background: #3d1e20; color: #f0a5a8; }
.st-removido td { opacity: .5; }
.bar { height: 6px; background: #23262b; border-radius: 3px; overflow: hidden; margin: .35rem 0 .15rem; max-width: 220px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; }
.stats .label { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.stats strong { font-size: 1.2rem; }
.dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin: 0 .3rem 0 .4rem; }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 2rem 0; }
code { background: #23262b; padding: .05rem .35rem; border-radius: 4px; }
