/* Valheim Admin — tema nórdico: vidro escuro, ouro-bronze, ilustrações do jogo */
:root {
  --ink:#0b1017; --panel:rgba(13,19,28,.66); --panel2:rgba(255,255,255,.05);
  --gold:#e0b25a; --gold2:#b8862f; --goldline:rgba(224,178,90,.28); --line:rgba(255,255,255,.12);
  --frost:#7fd9d2; --txt:#f0e9dc; --mut:#a9b1bd; --red:#e0604f; --grn:#79cf8a;
  --serif:"Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
}
* { box-sizing:border-box; }
html { background:var(--ink); }
body { margin:0; color:var(--txt); font:14px/1.5 system-ui,"Segoe UI",sans-serif; min-height:100vh; }
[hidden] { display:none !important; }
::selection { background:var(--gold); color:#1a1000; }

/* ---- fundos ---- */
#bgs { position:fixed; inset:0; z-index:-1; background:var(--ink); }
#bgs div { position:absolute; inset:0; background:center/cover no-repeat; opacity:0; transition:opacity .8s ease; }
#bgs div.on { opacity:1; }
#bgs::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(6,9,14,.35),rgba(6,9,14,.6)), radial-gradient(ellipse at center,transparent 40%,rgba(0,0,0,.55)); }
#bgs [data-bg=login]{background-image:url(/img/login.jpg)} #bgs [data-bg=dash]{background-image:url(/img/dash.jpg)}
#bgs [data-bg=config]{background-image:url(/img/config.jpg)} #bgs [data-bg=players]{background-image:url(/img/lists.jpg)} #bgs [data-bg=perms]{background-image:url(/img/yard.jpg)}
#bgs [data-bg=backups]{background-image:url(/img/elder.jpg)} #bgs [data-bg=invite]{background-image:url(/img/battle.jpg)} #bgs [data-bg=worlds]{background-image:url(/img/worlds.jpg)} #bgs [data-bg=account]{background-image:url(/img/account.jpg)}

/* ---- tipografia ---- */
h1 { font:700 26px var(--serif); letter-spacing:.18em; margin:0; text-align:center; }
h1 em { color:var(--gold); font-style:normal; }
h2 { display:flex; align-items:center; gap:10px; font:700 17px var(--serif); letter-spacing:.06em; text-transform:uppercase; margin:0 0 14px; color:var(--gold); text-shadow:0 1px 8px #000a; }
h3 { font:600 12px var(--serif); letter-spacing:.14em; text-transform:uppercase; color:var(--mut); margin:18px 0 10px; }
.runes { text-align:center; letter-spacing:.5em; color:var(--gold2); margin:6px 0 22px; font-size:15px; }
.kicker { font:600 12px var(--serif); letter-spacing:.2em; text-transform:uppercase; color:var(--gold); margin:0 0 8px; }
.muted { color:var(--mut); font-size:12px; } .err { color:var(--red); font-weight:600; }
.note { background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--gold); border-radius:8px; padding:10px 14px; backdrop-filter:blur(10px); }

/* ---- ícones ---- */
.ic { width:20px; height:20px; flex:none; stroke:currentColor; }
h2 .ic { width:24px; height:24px; }

/* ---- cartões de vidro com cantos entalhados ---- */
.card { position:relative; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:20px; margin-bottom:16px;
  backdrop-filter:blur(14px) saturate(1.2); -webkit-backdrop-filter:blur(14px) saturate(1.2); box-shadow:0 10px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(224,178,90,.06); }
.card::before, .card::after { content:""; position:absolute; width:14px; height:14px; border:2px solid var(--gold2); opacity:.8; pointer-events:none; }
.card::before { top:6px; left:6px; border-right:0; border-bottom:0; border-top-left-radius:6px; }
.card::after { bottom:6px; right:6px; border-left:0; border-top:0; border-bottom-right-radius:6px; }
.card.strip { padding-top:96px; overflow:hidden; }
.card.strip::before { display:none; }
.card.strip > h2 { position:absolute; left:20px; top:0; height:76px; margin:0; z-index:2; }
.card.strip::after { content:""; position:absolute; inset:0 0 auto 0; width:auto; bottom:auto; height:76px; border:0; border-bottom:1px solid var(--goldline); border-radius:0;
  background:linear-gradient(90deg,rgba(9,13,20,.92) 10%,rgba(9,13,20,.35) 75%), linear-gradient(180deg,rgba(9,13,20,.1),rgba(9,13,20,.7)), var(--img) center 35%/cover; opacity:1; z-index:1; }
.card.strip > h2 { z-index:2; }
.intro { margin:-4px 0 14px; font-size:13px; }
.opts { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:10px; margin-bottom:8px; }
label.opt { flex-direction:row; align-items:flex-start; gap:12px; padding:11px 13px; margin:0 0 12px; border:1px solid var(--line); border-radius:10px; background:rgba(0,0,0,.25); transition:.15s; }
.opts label.opt { margin:0; }
label.opt:hover { border-color:var(--goldline); background:rgba(224,178,90,.07); }
label.opt input { margin-top:1px; }
label.opt b { display:block; font:600 14px system-ui; color:var(--txt); }
label.opt small { display:block; color:var(--mut); font:400 12px/1.4 system-ui; margin-top:2px; }
.hint { color:#7f8898; font:400 11px system-ui; text-transform:none; letter-spacing:0; }
.grid > label { justify-content:flex-start; }
.invmsg { height:auto; min-height:140px; margin-top:8px; font:13px/1.6 system-ui; white-space:pre-wrap; color:var(--txt); }
.steps { margin:0 0 12px; padding-left:22px; } .steps li { margin-bottom:8px; }
code, .code { background:rgba(0,0,0,.5); border:1px solid var(--line); border-radius:6px; padding:1px 7px; font:12px Consolas,monospace; color:var(--gold); }
pre.code { height:auto; padding:9px 12px; margin:6px 0 8px; user-select:all; }
.ways { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:16px; }
.ways .card { margin:0; }
.tag { display:inline-block; margin-bottom:10px; font:700 10px var(--serif); letter-spacing:.14em; text-transform:uppercase; padding:3px 10px; border-radius:99px; background:var(--gold); color:#1f1400; }
.tag.alt { background:#4a5568; color:var(--txt); }
.joincode { margin-top:16px; padding:14px 18px; border:1px dashed var(--gold); border-radius:10px; background:rgba(224,178,90,.08); display:flex; flex-direction:column; align-items:flex-start; }
.joincode small { color:var(--mut); text-transform:uppercase; letter-spacing:.12em; font-size:11px; }
.joincode b { font:700 34px var(--serif); letter-spacing:.25em; color:var(--gold); }
.narrow { width:100%; max-width:400px; }
#tab-account .narrow { margin:0 0 16px; max-width:520px; }

/* ---- login ---- */
.center { min-height:100vh; display:grid; place-items:center; padding:16px; }
.login { padding:30px 28px; background:rgba(11,16,24,.72); }
.crest { width:64px; height:64px; margin:-62px auto 12px; border-radius:50%; display:grid; place-items:center; color:var(--gold);
  background:radial-gradient(circle,#1b2431,#0b1017); border:2px solid var(--gold2); box-shadow:0 0 24px rgba(224,178,90,.35); }
.crest svg { width:38px; height:38px; }

/* ---- app: sidebar + conteúdo ---- */
#app { display:flex; min-height:100vh; }
#side { width:236px; flex:none; position:sticky; top:0; height:100vh; padding:22px 14px; display:flex; flex-direction:column; gap:6px;
  background:linear-gradient(180deg,rgba(8,12,18,.82),rgba(8,12,18,.62)); border-right:1px solid var(--goldline); backdrop-filter:blur(16px); }
.brand { position:relative; display:flex; align-items:center; gap:14px; padding:6px 8px 20px; border-bottom:1px solid var(--goldline); margin-bottom:12px; cursor:default; }
#side { --st:#7f8898; }
#side[data-state=running] { --st:var(--grn); } #side[data-state=stopped] { --st:var(--red); }
#side[data-state=starting], #side[data-state=stopping] { --st:var(--gold); }
.logowrap { position:relative; width:42px; height:42px; flex:none; display:grid; place-items:center; color:var(--gold); }
.logowrap::before { content:""; position:absolute; inset:-5px; border-radius:50%; border:2px solid var(--st); box-shadow:0 0 14px var(--st), inset 0 0 8px color-mix(in srgb, var(--st) 40%, transparent); animation:pulse 2s infinite; }
.brand .logo { width:38px; height:38px; }
.brandtxt > b { display:block; font:700 19px var(--serif); letter-spacing:.18em; }
.st { display:flex; align-items:center; gap:6px; margin-top:3px; white-space:nowrap; font:600 10px var(--serif); letter-spacing:.05em; text-transform:uppercase; color:var(--st); }
.st .dot { width:7px; height:7px; border-radius:50%; background:var(--st); box-shadow:0 0 8px var(--st); animation:pulse 2s infinite; flex:none; }
.tip { position:absolute; left:6px; right:6px; top:calc(100% - 6px); z-index:20; padding:12px 14px; border-radius:10px; background:rgba(8,12,18,.96); border:1px solid var(--goldline); box-shadow:0 10px 30px #000c; opacity:0; visibility:hidden; transform:translateY(-4px); transition:.15s; pointer-events:none; }
.brand:hover .tip { opacity:1; visibility:visible; transform:none; }
.tip h4 { margin:0 0 8px; font:700 11px var(--serif); letter-spacing:.16em; text-transform:uppercase; color:var(--gold); }
.tip p { margin:0 0 4px; font-size:13px; } .tip small { color:var(--mut); }
#tabs { display:flex; flex-direction:column; gap:4px; flex:1; }
#side button { display:flex; align-items:center; gap:12px; text-align:left; background:none; border:1px solid transparent; color:var(--mut);
  padding:11px 14px; border-radius:8px; cursor:pointer; font:600 14px var(--serif); letter-spacing:.05em; transition:.15s; }
#side button:hover { color:var(--txt); background:var(--panel2); }
#side button.active { color:var(--gold); background:linear-gradient(90deg,rgba(224,178,90,.2),rgba(224,178,90,.03)); border-color:var(--goldline); box-shadow:inset 3px 0 0 var(--gold); }
#side .ghost { margin-top:auto; }
.badge.mini { font-size:13px; padding:3px 12px; }
#content { flex:1; min-width:0; }
main { max-width:1280px; margin:0 auto; padding:26px 24px 40px; }

/* ---- botões ---- */
.btn { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:8px; border:1px solid #4a5568; background:#2a3342;
  color:var(--txt); font:600 13px var(--serif); letter-spacing:.06em; cursor:pointer; transition:.15s; }
.btn:hover:not(:disabled) { background:#3a4558; transform:translateY(-1px); }
.btn:disabled { opacity:.4; background:rgba(255,255,255,.06); box-shadow:none; cursor:not-allowed; }
.btn.primary { background:linear-gradient(180deg,#f0c56c,#c0902f); color:#1f1400; border-color:#f5d48e; box-shadow:0 2px 14px rgba(224,178,90,.3); }
.btn.primary:hover:not(:disabled) { background:linear-gradient(180deg,#f7d382,#cb9a38); }
.btn.danger { background:#7a2a22; border-color:var(--red); color:#ffd5cf; }
.btn.danger:hover:not(:disabled) { background:#98352b; }
.btn.wide { width:100%; justify-content:center; padding:12px; margin-top:6px; }
.btns { display:flex; gap:8px; flex-wrap:wrap; }

/* ---- hero do status ---- */
.hero { position:relative; border-radius:14px; overflow:hidden; margin-bottom:16px; border:1px solid var(--goldline); box-shadow:0 12px 40px rgba(0,0,0,.55);
  background:linear-gradient(90deg,rgba(8,10,18,.9) 5%,rgba(8,10,18,.25) 70%), var(--img) center 45%/cover; }
.hero-in { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; padding:70px 24px 22px; }
.statusline { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.badge { display:inline-flex; align-items:center; gap:8px; padding:6px 16px; border-radius:99px; font:700 16px var(--serif); letter-spacing:.1em; text-transform:uppercase;
  background:rgba(0,0,0,.5); border:1px solid var(--line); }
.badge::before { content:""; width:10px; height:10px; border-radius:50%; background:currentColor; box-shadow:0 0 10px currentColor; }
.badge.running { color:var(--grn); border-color:var(--grn); } .badge.stopped { color:var(--red); border-color:var(--red); }
.badge.starting, .badge.stopping { color:var(--gold); border-color:var(--gold); animation:pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity:.45; } }
.players { display:flex; gap:8px; flex-wrap:wrap; margin:0; color:var(--mut); }
.chip { padding:5px 14px; border-radius:99px; background:rgba(224,178,90,.14); border:1px solid var(--goldline); color:var(--gold); font:600 13px var(--serif); }

/* ---- log ---- */
pre { background:rgba(4,6,10,.75); border:1px solid var(--line); border-radius:8px; padding:12px; height:340px; overflow:auto; margin:0;
  font:12px/1.5 Consolas,monospace; color:#c9d4c8; white-space:pre-wrap; word-break:break-all; }

/* ---- banner de pendência ---- */
.banner { position:sticky; top:0; z-index:5; display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:10px 24px;
  background:linear-gradient(90deg,rgba(120,58,20,.92),rgba(70,30,15,.92)); border-bottom:1px solid var(--gold); backdrop-filter:blur(8px); }
.banner .ic { color:#ffb454; } .banner span { flex:1; }

/* ---- formulários ---- */
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:0 18px; }
.contents { display:contents; }
label { display:flex; flex-direction:column; gap:5px; color:var(--mut); font:600 11px var(--serif); letter-spacing:.06em; text-transform:uppercase; margin-bottom:12px; }
input, select { background:rgba(4,7,12,.65); color:var(--txt); border:1px solid var(--line); border-radius:8px; padding:9px 11px; font:14px system-ui; width:100%; text-transform:none; letter-spacing:0; }
input:focus, select:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(224,178,90,.2); }
select option { background:#10161f; }
label.check { flex-direction:row; align-items:center; gap:10px; color:var(--txt); font:14px system-ui; text-transform:none; letter-spacing:0; cursor:pointer; }
label.check i { display:none; }
input[type=checkbox] { appearance:none; -webkit-appearance:none; width:42px; height:24px; padding:0; border-radius:99px; position:relative; flex:none; cursor:pointer; background:rgba(255,255,255,.12); border:1px solid var(--line); transition:.2s; }
input[type=checkbox]::after { content:""; position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#d5d0c6; transition:.2s; }
input[type=checkbox]:checked { background:var(--gold2); border-color:var(--gold); }
input[type=checkbox]:checked::after { left:20px; background:#fff6de; }
details summary { cursor:pointer; display:flex; align-items:center; gap:10px; font:700 15px var(--serif); letter-spacing:.06em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; list-style:none; }
details summary::-webkit-details-marker { display:none; }
.row { display:flex; align-items:center; } .gap { gap:14px; } .wrap { flex-wrap:wrap; }
.actions { position:sticky; bottom:0; display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:14px 18px; margin:0 -6px;
  background:rgba(8,12,18,.82); border:1px solid var(--goldline); border-radius:12px; backdrop-filter:blur(12px); }

/* ---- listas e tabelas ---- */
.lists { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; margin-top:14px; }
.lists .card { margin:0; }
.lists ul { list-style:none; padding:0; margin:0 0 12px; }
.lists li { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:7px 0; border-bottom:1px solid var(--line); word-break:break-all; }
.lists li button { display:grid; place-items:center; width:26px; height:26px; padding:0; border-radius:6px; border:1px solid var(--red); background:#3a1a17; color:#ffb4a8; cursor:pointer; }
.lists li button:hover { background:#7a2a22; }
.lists form { display:flex; gap:6px; }
.lists form button { border-radius:8px; border:1px solid var(--gold2); background:#3a2f18; color:var(--gold); padding:0 12px; font:600 13px var(--serif); cursor:pointer; }
.tablewrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; } th { font:600 11px var(--serif); letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
th, td { text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); }

#toast { position:fixed; right:20px; bottom:20px; z-index:20; background:rgba(11,16,24,.94); border:1px solid var(--gold); border-radius:10px; padding:11px 16px; max-width:80vw; box-shadow:0 8px 30px #000a; }
#toast.bad { border-color:var(--red); color:#ffb4a8; }

/* ---- mobile ---- */
@media (max-width:820px) {
  #app { flex-direction:column; }
  #side { width:auto; height:auto; position:sticky; z-index:6; flex-direction:row; align-items:center; padding:8px 10px; gap:6px; border-right:0; border-bottom:1px solid var(--goldline); }
  .brand { padding:0; margin:0; border:0; gap:10px; } .brandtxt > b, .tip { display:none; } .logowrap { width:30px; height:30px; margin:0 4px; } .brand .logo { width:26px; height:26px; } .logowrap::before { inset:-3px; }
  #tabs { flex-direction:row; overflow-x:auto; }
  #side button span { display:none; } #side button { padding:10px; } #side .ghost { margin:0; }
  main { padding:16px 12px 30px; } .banner { padding:10px 12px; top:58px; }
  .hero-in { padding-top:50px; }
}

/* ---- saves ---- */
.bigname { font:700 30px var(--serif); letter-spacing:.06em; color:var(--txt); margin-bottom:4px; }
.activebox .btn { margin-top:6px; }
.prog { position:relative; height:26px; border-radius:8px; background:rgba(0,0,0,.5); border:1px solid var(--line); overflow:hidden; margin:12px 0; }
.prog i { position:absolute; inset:0 auto 0 0; width:0; background:linear-gradient(90deg,#b8862f,#f0c56c); transition:width .15s; }
.prog span { position:relative; display:block; text-align:center; line-height:24px; font-size:12px; font-weight:600; text-shadow:0 1px 4px #000; }
td.acts { text-align:right; white-space:nowrap; } td.acts .btn { padding:5px 12px; margin-left:6px; }
input[type=file] { padding:7px; }
input[type=file]::file-selector-button { margin-right:10px; padding:5px 12px; border-radius:6px; border:1px solid var(--gold2); background:#3a2f18; color:var(--gold); font:600 12px var(--serif); cursor:pointer; }
dialog { border:1px solid var(--gold2); border-radius:14px; background:rgba(11,16,24,.97); color:var(--txt); padding:22px; width:min(420px,92vw); box-shadow:0 20px 60px #000c; }
dialog::backdrop { background:rgba(0,0,0,.6); backdrop-filter:blur(3px); }

/* ---- jogadores ---- */
.pagetitle { margin:0 0 12px; }
.toolbar { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.toolbar input { flex:1; min-width:220px; width:auto; } .toolbar select { width:auto; min-width:190px; }
.ptable td { vertical-align:middle; } .ptable .pid { font-size:11px; color:var(--mut); word-break:break-all; }
.tag2 { display:inline-block; margin-left:8px; padding:1px 8px; border-radius:99px; font:700 10px var(--serif); letter-spacing:.08em; text-transform:uppercase; background:#333c4c; color:var(--txt); }
.tag2.gold { background:var(--gold); color:#1f1400; } .tag2.red { background:#7a2a22; color:#ffd5cf; }
.spill { display:inline-flex; align-items:center; gap:7px; padding:3px 12px; border-radius:99px; font:700 12px var(--serif); letter-spacing:.06em; background:#2b3442; color:var(--mut); }
.spill::before { content:""; width:8px; height:8px; border-radius:50%; background:currentColor; }
.spill.online { background:rgba(121,207,138,.16); color:var(--grn); } .spill.online::before { box-shadow:0 0 8px currentColor; }
.spill.conn { background:rgba(224,178,90,.16); color:var(--gold); }
.filebtn { cursor:pointer; margin:0; }
label.filebtn { flex-direction:row; color:var(--txt); font:600 13px var(--serif); text-transform:none; letter-spacing:.06em; }


/* ---- regras do mundo: detalhe do nível escolhido ---- */
.hint .detail { display:block; color:var(--gold); font-size:12px; margin-bottom:2px; min-height:1px; }
.hint .gen { display:block; }
.notice { border-left-color:var(--red); margin-bottom:16px; }
body[data-locked="1"] #tabs button:not([data-tab="account"]) { opacity:.35; pointer-events:none; }

.invmsg { word-break:normal; overflow-wrap:anywhere; }

/* ---- jogadores: tabela mais larga, colunas centralizadas ---- */
.ptable td:first-child { min-width:210px; }
.ptable th:nth-child(n+2):nth-child(-n+7), .ptable td:nth-child(n+2):nth-child(-n+7) { text-align:center; }
.ptable th { white-space:nowrap; }

/* ---- barras de rolagem e setas no estilo do site ---- */
:root { color-scheme:dark; }
* { scrollbar-width:thin; scrollbar-color:var(--gold2) rgba(0,0,0,.35); }
::-webkit-scrollbar { width:11px; height:11px; }
::-webkit-scrollbar-track { background:rgba(0,0,0,.35); border-radius:99px; }
::-webkit-scrollbar-thumb { background:linear-gradient(180deg,#d9a441,#8f6a26); border-radius:99px; border:2px solid rgba(11,16,24,.9); }
::-webkit-scrollbar-thumb:hover { background:linear-gradient(180deg,#f0c56c,#b8862f); }
::-webkit-scrollbar-corner { background:transparent; }
select { appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:38px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23e0b25a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; background-size:14px; }
select:hover { border-color:var(--goldline); }
input[type=number]::-webkit-inner-spin-button { opacity:.6; }

#tab-players .card { padding:16px; }
.ptable th, .ptable td { padding:9px 6px; }
.ptable td.acts .btn { padding:5px 10px; font-size:12px; margin-left:4px; }
.ptable td:first-child { min-width:190px; }

/* ---- contas: colunas centralizadas ---- */
.utable th:nth-child(n+2):nth-child(-n+5), .utable td:nth-child(n+2):nth-child(-n+5) { text-align:center; }
.utable th { white-space:nowrap; } .utable th, .utable td { padding:9px 6px; }
.utable td.acts .btn { padding:5px 10px; font-size:12px; margin-left:4px; }

#worldsBody .spill { margin-left:10px; padding:2px 10px; font-size:11px; }

.cols2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:8px 28px; margin-top:6px; }

input[readonly] { color:var(--gold); font-weight:600; cursor:default; border-style:dashed; }
input[readonly]:focus { box-shadow:none; border-color:var(--line); }

/* ---- atividade recente ---- */
.actlist { list-style:none; margin:0; padding:0; }
.actlist li { display:flex; gap:10px; align-items:baseline; padding:7px 0; border-bottom:1px solid var(--line); }
.actlist li:last-child { border-bottom:0; }
.actlist .when { color:var(--mut); font-size:12px; min-width:78px; }
.stale { display:inline-flex; align-items:center; gap:10px; flex-wrap:wrap; color:var(--gold); font-size:13px; }
.stale .btn { padding:5px 10px; font-size:12px; }

/* ---- backups e recursos ---- */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; margin-bottom:18px; }
.tile { background:rgba(0,0,0,.28); border:1px solid var(--line); border-radius:10px; padding:12px 14px; display:flex; flex-direction:column; gap:2px; }
.tile small, .meterbox small { color:var(--mut); font:600 11px var(--serif); letter-spacing:.1em; text-transform:uppercase; }
.tile b, .meterbox b { font:600 24px system-ui; color:var(--txt); }
.tile span { color:var(--mut); font-size:12px; }
.charts { display:grid; grid-template-columns:repeat(auto-fit,minmax(340px,1fr)); gap:18px; }
.chartbox { position:relative; }
.chart { width:100%; height:auto; display:block; overflow:visible; outline:none; }
.chart .grid { stroke:rgba(255,255,255,.08); stroke-width:1; } .chart .axis { stroke:rgba(255,255,255,.22); stroke-width:1; }
.chart .tick { fill:#898781; font:11px system-ui; } .chart .cross { stroke:rgba(255,255,255,.35); stroke-width:1; }
.chart .dot { stroke:#0d1117; stroke-width:2; }
.chart:focus-visible { outline:2px solid var(--gold); outline-offset:2px; border-radius:6px; }
.legend { display:flex; gap:18px; flex-wrap:wrap; margin-bottom:6px; font-size:13px; }
.lg { display:inline-flex; align-items:center; gap:8px; color:var(--mut); } .lg b { color:var(--txt); font-weight:600; }
.lgkey { display:inline-block; width:14px; height:3px; border-radius:2px; flex:none; }
.ctip { position:absolute; top:34px; z-index:5; pointer-events:none; background:rgba(8,12,18,.96); border:1px solid var(--line); border-radius:8px; padding:8px 10px; box-shadow:0 8px 24px #000a; font-size:12px; white-space:nowrap; }
.ctip .tt { color:var(--mut); margin-bottom:4px; } .ctip .tr { display:flex; align-items:center; gap:8px; } .ctip .tr b { font-size:14px; color:var(--txt); } .ctip .tr span { color:var(--mut); }
.tview { margin-top:12px; } .tview summary { font-size:12px; margin-bottom:8px; text-transform:none; letter-spacing:0; font-family:system-ui; }
.meterbox { display:flex; flex-direction:column; gap:6px; margin-bottom:10px; }
.meterbox b { font-size:16px; }
.meter { height:8px; background:rgba(255,255,255,.1); border-radius:99px; overflow:hidden; } .meter i { display:block; height:100%; width:0; background:#3987e5; border-radius:99px; }
.sizebars { display:flex; flex-direction:column; gap:8px; }
.srow { display:grid; grid-template-columns:minmax(150px,300px) 1fr 84px; gap:12px; align-items:center; font-size:13px; }
.srow > span { color:var(--mut); } .srow b { text-align:right; font-weight:600; }
.sbar { height:10px; background:rgba(255,255,255,.07); border-radius:4px; overflow:hidden; } .sbar i { display:block; height:100%; background:#3987e5; border-radius:0 4px 4px 0; }
.bkhead { display:flex; gap:16px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
.bkhead select { width:auto; min-width:200px; }
.btable th, .btable td { padding:9px 8px; } .btable td:nth-child(n+3):nth-child(-n+5), .btable th:nth-child(n+3):nth-child(-n+5) { text-align:center; }
.btable td.acts .btn { padding:5px 10px; font-size:12px; margin-left:4px; }
.btable tr.empty td { color:var(--mut); }
@media (max-width:700px) { .srow { grid-template-columns:1fr 84px; } .srow .sbar { grid-column:1 / -1; order:3; } }
