/* MikroCentral — thème sombre */
:root {
  --bg: #070b12;
  --panel: #0d131d;
  --panel-2: #111925;
  --row: #0f1621;
  --border: #1c2635;
  --border-2: #263244;
  --text: #e8edf5;
  --muted: #8b97a8;
  --accent: #1f7aed;
  --accent-2: #3b8cff;
  --accent-text: #ffffff;
  --ok: #2bd46b;   --ok-bg: rgba(43, 212, 107, .12);
  --bad: #ff4d4d;  --bad-bg: rgba(255, 77, 77, .12);
  --warn: #f5a524; --warn-bg: rgba(245, 165, 36, .12);
  --wait: #9aa6b8; --wait-bg: rgba(154, 166, 184, .12);
  --purple: #c9a7ff; --purple-bg: #2a1a4a;
  --code-bg: #0a1018;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.45rem; margin: .2rem 0 1rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
code, pre, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
code { background: var(--code-bg); border: 1px solid var(--border); padding: .05rem .35rem; border-radius: 6px; font-size: .85em; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 10px; padding: .9rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; font-size: .85rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic { flex: none; display: inline-block; vertical-align: -0.2em; }

/* --- Structure : barre latérale + contenu --- */
body.app { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; border-right: 1px solid var(--border); background: var(--bg); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.01em; padding: 4px 8px; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), #6b46ff); color: #fff; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: 14px; color: #b7c2d2; font-size: 1.02rem; position: relative; }
.nav-item:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--panel-2); color: var(--text); font-weight: 600; }
.nav-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #9fb0c6; }
.nav-item.active .nav-ic { background: var(--accent); color: #fff; }
.nav-item.small { font-size: .92rem; padding: .5rem .8rem; }
.nav-badge { margin-left: auto; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .05rem .5rem; }
.nav-sep { margin: 14px 10px 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: #5d6b80; }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.who { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .9rem; padding: 0 .8rem; overflow: hidden; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 28px 32px 48px; min-width: 0; max-width: 1600px; }
.mobilebar, .nav-toggle, .nav-backdrop { display: none; }

/* --- Éléments communs --- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.1rem; }
.card.note { border-left: 3px solid var(--accent); }
.card.center { text-align: center; }
details.card summary { cursor: pointer; font-weight: 600; }
details.card[open] summary { margin-bottom: .8rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.1rem; margin-bottom: 1.1rem; }
.grid > .card { margin-bottom: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.buttons { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.buttons form { margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 600; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #3a4a62; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(31, 122, 237, .25); }
.btn.primary:hover { background: var(--accent-2); }
.btn.light { background: #fff; border-color: #fff; color: #0b1220; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); border-color: rgba(255, 77, 77, .5); background: transparent; }
.btn.sm { padding: .35rem .7rem; font-size: .85rem; font-weight: 500; border-radius: 8px; }
.btn.ok { color: var(--ok); border-color: rgba(43, 212, 107, .4); }
.btn.bad { color: var(--bad); border-color: rgba(255, 77, 77, .4); }
.btn .count { background: var(--bad); color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 .45rem; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-2); cursor: pointer; }
.link.danger { color: var(--bad); }
form.inline, td.actions form { display: inline; }
form.danger { margin-top: 2rem; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; color: var(--text); }

input, select, textarea { font: inherit; color: var(--text); background: var(--code-bg); border: 1px solid var(--border-2); border-radius: 10px; padding: .6rem .75rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
.form label { display: block; margin-bottom: .9rem; font-weight: 500; color: #cdd6e3; }
.form label input, .form label textarea, .form label select { margin-top: .3rem; font-weight: 400; }
fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 .9rem; padding: .7rem 1rem; }
legend { color: #cdd6e3; padding: 0 .3rem; }
label.radio { font-weight: 400; display: flex; gap: .55rem; align-items: center; margin: .35rem 0; }
.toolbar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.toolbar input { flex: 1 1 240px; width: auto; }
.toolbar select { width: auto; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.1rem; }
.table-wrap.flat { border: 0; background: transparent; border-radius: 0; margin: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
table.compact th, table.compact td { padding: .45rem .55rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions { white-space: nowrap; }
td.actions a { margin-right: .7rem; }
td.empty { text-align: center; padding: 2rem; color: var(--muted); }

.badge { display: inline-block; font-size: .76rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; white-space: nowrap; }
.badge.online { color: var(--ok); background: var(--ok-bg); }
.badge.offline { color: var(--bad); background: var(--bad-bg); }
.badge.tunnel { color: var(--warn); background: var(--warn-bg); }
.badge.pending { color: var(--wait); background: var(--wait-bg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wait); }
.dot.online { background: var(--ok); } .dot.offline { background: var(--bad); } .dot.tunnel { background: var(--warn); }
.pill { display: inline-flex; align-items: center; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border-2); font-weight: 600; font-size: .9rem; }
.pill.accent { border-color: rgba(31, 122, 237, .5); color: var(--accent-2); background: rgba(31, 122, 237, .08); }
.chip { display: inline-block; font-size: .76rem; padding: .12rem .55rem; margin: .1rem .2rem .1rem 0; border-radius: 999px; }
.chip.error { color: var(--bad); background: var(--bad-bg); }
.chip.warn { color: var(--warn); background: var(--warn-bg); }
.chip-link { white-space: nowrap; font-size: .85rem; }

.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; background: var(--ok-bg); color: var(--ok); border: 1px solid rgba(43, 212, 107, .25); }
.flash.error { background: var(--bad-bg); color: #ff8080; border-color: rgba(255, 77, 77, .3); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; margin-bottom: 1.2rem; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; color: var(--muted); }
.stat span { display: block; font-size: 1.9rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.stat.ok span { color: var(--ok); } .stat.bad span { color: var(--bad); } .stat.wait span { color: var(--wait); }
a.stat:hover { text-decoration: none; border-color: var(--accent); }

dl { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; }
ul.events, ul.files { list-style: none; padding: 0; margin: 0; }
ul.events li, ul.files li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
ul.events li:last-child, ul.files li:last-child { border-bottom: 0; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .35rem 1rem; margin: .5rem 0 1rem; max-height: 380px; overflow-y: auto; }
.pick label { display: flex; gap: .45rem; align-items: center; font-weight: 400; margin: 0; }
.qr svg { width: 240px; height: 240px; background: #fff; padding: 8px; border-radius: 10px; }

/* --- Tableau de bord --- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; align-items: start; }
.hero { padding: 1.5rem 1.8rem; }
.hero-top { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.who-chip { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); }
.who-chip .ic { width: 30px; height: 30px; padding: 6px; border-radius: 50%; border: 1px solid var(--border-2); }
.eyebrow { margin-top: 1.1rem; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.balance { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .2rem; }
.balance .coin { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d48a, #b07a1f); color: #3a2604; box-shadow: 0 0 0 3px rgba(246, 212, 138, .15); }
.balance .amount { font-size: 2.9rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.balance .unit { color: var(--muted); font-size: 1.1rem; align-self: flex-end; margin-bottom: .6rem; }
.hero-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 1.2rem; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.counters { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: flex-end; font-size: .82rem; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.counters a { color: var(--muted); }
.counters a:hover { text-decoration: none; color: var(--text); }
.counters b { color: var(--text); font-size: 1.15rem; letter-spacing: 0; margin-left: .35rem; }
.counters .ok b { color: var(--ok); } .counters .warn b { color: var(--warn); } .counters .bad b { color: var(--bad); }
.hero-alert { display: flex; gap: 1rem; align-items: center; margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.hero-alert strong { font-size: 1.1rem; }
.hero-alert.bad { color: var(--bad); }
.hero-alert.info { color: #b7c2d2; }
.alert-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid currentColor; opacity: .9; flex: none; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 1rem; flex-wrap: wrap; }
.section-head h2 { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: 1.15rem; }
.section-head h2 .ic { color: var(--accent-2); }
.searchbar { position: relative; max-width: 440px; margin-bottom: 1rem; display: flex; gap: .6rem; align-items: center; }
.searchbar input { padding-left: 2.6rem; border-radius: 12px; background: var(--panel); }
.search-ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }

.router-list { display: flex; flex-direction: column; gap: .7rem; }
/* colonnes fixes : les lignes restent alignées entre elles */
.router-row { display: grid; grid-template-columns: 32px minmax(120px, 1fr) 56px 76px 54px 118px 30px 92px 48px 88px; align-items: center; gap: .7rem; padding: .7rem 1rem; background: var(--row); border: 1px solid var(--border); border-radius: 14px; }
.row-title { display: flex; align-items: center; gap: .1rem .4rem; flex-wrap: wrap; min-width: 0; }
.router-row .ping { width: 92px; }
.router-row details.menu summary { width: 88px; }
.router-row:hover { border-color: var(--border-2); }
.row-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--warn); }
.row-ic.ok { color: var(--ok); background: var(--ok-bg); }
.row-name { color: var(--text); font-weight: 500; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: calc(100% - 30px); }
.row-name:hover { color: var(--accent-2); text-decoration: none; }
.row-owner { flex-basis: 100%; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-r { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 6px; border: 1px solid var(--warn); color: var(--warn); font-size: .75rem; font-weight: 800; vertical-align: 1px; }
.tag-vpn { background: var(--purple-bg); color: var(--purple); font-weight: 700; font-size: .78rem; padding: .3rem .6rem; border-radius: 6px; letter-spacing: .04em; text-align: center; min-width: 52px; }
.row-cpu { color: var(--muted); font-size: .78rem; letter-spacing: .08em; white-space: nowrap; min-width: 62px; }
.row-cpu b { color: var(--ok); letter-spacing: 0; font-size: .9rem; }
.score { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--border-2); color: var(--muted); }
.score:hover { text-decoration: none; }
.score.good { color: var(--ok); border-color: rgba(43, 212, 107, .35); background: var(--ok-bg); }
.score.mid { color: var(--warn); border-color: rgba(245, 165, 36, .35); background: var(--warn-bg); }
.score.low { color: var(--bad); border-color: rgba(255, 77, 77, .35); background: var(--bad-bg); }
.row-status { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.row-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.row-status.online { color: var(--ok); }
.row-status.offline { color: var(--warn); }
.row-status.tunnel { color: var(--warn); }
.row-status.pending, .row-status.disabled { color: var(--wait); }
.row-status.suspended { color: var(--bad); }
.row-ver { color: var(--muted); font-size: .85rem; }

.switch { position: relative; width: 48px; height: 26px; display: inline-block; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border-radius: 999px; background: #2a3546; transition: background .15s; cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .slider { background: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:disabled + .slider { opacity: .45; cursor: not-allowed; }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent-2); outline-offset: 2px; }

details.menu { position: relative; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 12px; padding: .35rem; box-shadow: 0 12px 30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; }
.menu-list a { padding: .55rem .75rem; border-radius: 8px; color: var(--text); }
.menu-list a:hover { background: var(--panel); text-decoration: none; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 2.5rem; color: var(--muted); text-align: center; }

.dash-side { display: flex; flex-direction: column; gap: 1.1rem; }
.side-card { margin: 0; }
.side-card p { color: #b7c2d2; margin: .5rem 0 0; }
.side-head { display: flex; align-items: center; gap: .9rem; }
.side-head.between { justify-content: space-between; align-items: flex-start; }
.side-head h3 { font-size: 1.12rem; margin: 0; }
.round-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(59, 140, 255, .4); color: var(--accent-2); background: rgba(31, 122, 237, .08); flex: none; }
.round-ic.sm { width: 40px; height: 40px; border-color: var(--border-2); color: var(--muted); background: var(--panel-2); }
.big { font-size: 1.6rem; color: var(--text); }
.activity { padding-bottom: .4rem; }
.feed { list-style: none; padding: 0; margin: 1rem -1.4rem 0; max-height: 560px; overflow-y: auto; }
.feed li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .85rem 1.4rem; border-top: 1px solid var(--border); }
.feed .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.amt.pos { color: var(--ok); } .amt.neg { color: var(--bad); }

/* --- Pages publiques (connexion, inscription) --- */
body.public { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at top, #0e1a2e, var(--bg) 60%); }
body.public .content { width: 100%; max-width: 480px; padding: 24px 16px; }
.auth { padding: 2rem; }
.auth h1 { margin-bottom: .2rem; }
.auth label { display: block; margin: .9rem 0; color: #cdd6e3; }
.auth label input { margin-top: .3rem; }
.auth .btn { width: 100%; margin-top: .4rem; }
.auth .alt { margin-top: 1.2rem; text-align: center; color: var(--muted); }

/* --- Ventes --- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.1rem; }
.filters label { display: flex; gap: .35rem; align-items: center; color: var(--muted); }
.filters input, .filters select { width: auto; }
.segmented { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; overflow: hidden; flex-wrap: wrap; }
.segmented a { padding: .55rem .8rem; color: #cdd6e3; background: var(--panel); border-right: 1px solid var(--border-2); }
.segmented a:last-child { border-right: 0; }
.segmented a.active { background: var(--accent); color: #fff; }
.segmented a:hover { text-decoration: none; }
.chart { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .5rem; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; height: 200px; font-size: .75rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chart-plot { position: relative; min-width: 0; }
.chart-grid { position: absolute; inset: 0 0 auto 0; height: 200px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.chart-grid i { border-top: 1px solid var(--border); }
.chart-bars { position: relative; height: 200px; display: flex; align-items: flex-end; gap: 2px; }
.bar-slot { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 2px; outline: none; }
.bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-slot.hover .bar, .bar-slot:focus .bar { background: var(--accent-2); }
.chart-x { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: .3rem; }
.tooltip { position: absolute; top: -.4rem; left: 50%; transform: translate(-50%, -100%); background: #fff; color: #0b1220; font-size: .8rem; padding: .3rem .6rem; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.table-wrap + h2 { margin-top: 1.6rem; }

/* --- Mobile --- */
/* la colonne de droite passe sous la liste quand la place manque pour une ligne de routeur complète */
@media (max-width: 1599px) {
  .dash { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .router-row { grid-template-columns: 32px minmax(0, 1fr) 58px 120px 92px 48px 88px; }
  .row-cpu, .row-ver, .score { display: none; }
}
@media (max-width: 900px) {
  body.app { display: block; }
  .mobilebar { display: flex; align-items: center; gap: .8rem; padding: 12px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 30; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; width: 280px; transform: translateX(-100%); transition: transform .2s; background: var(--panel); }
  .nav-toggle:checked ~ .sidebar { transform: none; }
  .nav-toggle:checked ~ .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
  .content { padding: 18px 16px 40px; }
  .hero { padding: 1.2rem; }
  .hero-right { align-items: flex-start; }
  .hero-actions, .counters { justify-content: flex-start; }
  .balance .amount { font-size: 2.3rem; }
  .router-row { grid-template-columns: 30px minmax(0, 1fr) auto; row-gap: .5rem; }
  .router-row .tag-vpn, .router-row .ping { display: none; }
  .router-row .row-status { grid-column: 2; grid-row: 2; }
  .router-row .switch { grid-column: 3; grid-row: 1; }
  .router-row details.menu { grid-column: 3; grid-row: 2; }
  .feed { margin: 1rem -1.2rem 0; }
}
.inline-form { display: inline-flex; gap: .4rem; align-items: center; margin-right: .4rem; }
.inline-form input { width: 7rem; padding: .35rem .5rem; }
.auth .brand { padding: 0; margin-bottom: .4rem; }
