/* Rust++ — style inspiré de l'interface du jeu Rust */
:root {
  --bg: #12110f;
  --bg-2: #191815;
  --panel: #23211d;
  --panel-2: #2c2a25;
  --panel-3: #36332d;
  --line: #3e3a33;
  --text: #e4dad1;
  --text-2: #c2b7ab;
  --muted: #8f867c;
  --green: #5d7c25;
  --green-hi: #6f9230;
  --green-text: #cfe3a0;
  --red: #a8361f;
  --red-hi: #c0412a;
  --red-text: #ffc7b8;
  --blue: #2a5d84;
  --blue-hi: #33709e;
  --blue-text: #bfe0f7;
  --orange: #b9772a;
  --orange-text: #ffd9a6;
  --font: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(120, 90, 50, .10), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 6px),
    var(--bg);
  color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-text); }
svg.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
svg.i.lg { width: 26px; height: 26px; }
svg.i.sm { width: 14px; height: 14px; vertical-align: -2px; }
h1, h2, h3, h4 { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
h2 { font-size: 22px; }
h3 { font-size: 15px; color: var(--text-2); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-template-rows: 56px 1fr; min-height: 100vh; }
.topbar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: linear-gradient(#24221e, #1b1a17); border-bottom: 2px solid #000; box-shadow: 0 1px 0 var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; }
.brand .mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--red); color: #fff; }
.brand .mark svg { width: 22px; height: 22px; }
.topbar .server { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em; }
.topbar .server b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.side { background: var(--bg-2); border-right: 1px solid #000; padding: 12px 0; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text-2); text-decoration: none;
  text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: 14px; border-left: 3px solid transparent;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.on { background: var(--panel-2); color: var(--text); border-left-color: var(--red-hi); }
.nav .sep { height: 1px; background: var(--line); margin: 8px 16px; }
.nav .badge { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; padding: 0 6px; }
main { padding: 22px; overflow-x: hidden; min-width: 0; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h2 { flex: 1; display: flex; align-items: center; gap: 10px; }

/* ---------- Panneaux ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.panel { background: var(--panel); border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); min-width: 0; }
.panel > .ph {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel-2);
  border-bottom: 1px solid #000; text-transform: uppercase; font-weight: 700; letter-spacing: .05em; color: var(--text-2);
}
.panel > .ph .grow { flex: 1; }
.panel > .pb { padding: 14px; }
.panel.tight > .pb { padding: 0; }
.stat { padding: 14px 16px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 44px; height: 44px; display: grid; place-items: center; background: var(--panel-3); }
.stat .ico svg { width: 26px; height: 26px; }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1; }
.stat .l { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; margin-top: 4px; }
.hero { position: relative; min-height: 120px; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero > div { position: relative; z-index: 1; padding: 16px; }
.hero h2 { font-size: 26px; }

/* ---------- Listes ---------- */
.rows > .row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.rows > .row:last-child { border-bottom: 0; }
.row .name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--muted); font-size: 13px; }
.empty { padding: 22px; text-align: center; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-3); color: var(--text-2); white-space: nowrap; }
.tag.green { background: #2f3f17; color: var(--green-text); }
.tag.red { background: #4a1d14; color: var(--red-text); }
.tag.blue { background: #19364d; color: var(--blue-text); }
.tag.orange { background: #4b3214; color: var(--orange-text); }
.dot { width: 10px; height: 10px; display: inline-block; flex: none; background: var(--muted); }
.dot.green { background: #8db648; } .dot.red { background: #e05b3a; } .dot.orange { background: #e8a33d; } .dot.blue { background: #5fa3d6; }

/* ---------- Formulaires ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 0; cursor: pointer;
  font: 700 14px var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--text); background: var(--panel-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 #000; white-space: nowrap; text-decoration: none;
}
.btn:hover { filter: brightness(1.15); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.green { background: var(--green); color: var(--green-text); }
.btn.red { background: var(--red); color: var(--red-text); }
.btn.blue { background: var(--blue); color: var(--blue-text); }
.btn.ghost { background: transparent; box-shadow: none; color: var(--text-2); }
.btn.sm { padding: 5px 9px; font-size: 12px; }
.btn.icon { padding: 7px; }
.toggle { position: relative; width: 64px; height: 30px; border: 0; cursor: pointer; background: #3a1a12; font: 700 12px var(--font); color: var(--red-text); text-transform: uppercase; flex: none; }
.toggle::before { content: 'OFF'; position: absolute; right: 8px; top: 7px; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background: #9a9087; transition: left .12s; }
.toggle.on { background: var(--green); color: var(--green-text); }
.toggle.on::before { content: 'ON'; left: 9px; right: auto; }
.toggle.on::after { left: 37px; background: #e4dad1; }
.toggle:disabled { opacity: .5; cursor: not-allowed; }
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .04em; color: var(--text-2); margin-bottom: 5px; }
label.f > small, .help { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
input[type=text], input[type=password], input[type=number], input[type=time], select, textarea {
  width: 100%; background: #0f0e0c; color: var(--text); border: 1px solid var(--line); padding: 8px 10px; font: 15px var(--font);
  outline: none; border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: #7c6f60; }
textarea { min-height: 80px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { display: none; }
.check .box { width: 20px; height: 20px; flex: none; border: 2px solid #6b6359; display: grid; place-items: center; margin-top: 1px; }
.check input:checked + .box { background: var(--green); border-color: var(--green-hi); }
.check input:checked + .box::after { content: ''; width: 10px; height: 6px; border-left: 3px solid #e9f4cf; border-bottom: 3px solid #e9f4cf; transform: rotate(-45deg) translate(1px, -1px); }
.check .t { flex: 1; } .check .t small { display: block; color: var(--muted); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline > input, .inline > select { flex: 1; min-width: 120px; width: auto; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.steps { counter-reset: s; }
.step { display: flex; gap: 14px; padding: 14px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: var(--panel-3); font-weight: 700; }
.step.ok .n { background: var(--green); color: var(--green-text); }
.step .c { flex: 1; min-width: 0; }
.step h4 { margin-bottom: 6px; }
.callout { padding: 10px 12px; background: #2b2116; border-left: 3px solid var(--orange); color: var(--orange-text); margin: 10px 0; }
.callout.red { background: #2d1712; border-left-color: var(--red-hi); color: var(--red-text); }
.callout.green { background: #1e2812; border-left-color: var(--green-hi); color: var(--green-text); }
ol.howto { padding-left: 20px; margin: 8px 0; } ol.howto li { margin-bottom: 6px; }
code { font-family: var(--mono); font-size: 13px; background: #0f0e0c; padding: 1px 5px; border: 1px solid var(--line); }

/* ---------- Tableaux ---------- */
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 12px; background: var(--panel-2); border-bottom: 1px solid #000; }
table.t td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.t input { padding: 5px 7px; }
.scroll-x { overflow-x: auto; }

/* ---------- Coffres ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
.item { position: relative; aspect-ratio: 1; background: #1a1916; border: 1px solid #000; display: grid; place-items: center; }
.item img { width: 78%; height: 78%; object-fit: contain; }
.item .q { position: absolute; right: 3px; bottom: 1px; font-weight: 700; font-size: 13px; text-shadow: 0 1px 2px #000; }
.item.bp { background: #18273a; }
.upkeep { font-size: 22px; font-weight: 700; }

/* ---------- Carte ---------- */
.mapwrap { position: relative; overflow: hidden; background: #0b0e10; height: calc(100vh - 170px); min-height: 420px; cursor: grab; touch-action: none; }
.mapwrap.drag { cursor: grabbing; }
.mapinner { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.mapinner img { display: block; user-select: none; -webkit-user-drag: none; }
.mk { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.mk .sq { width: 14px; height: 14px; border: 2px solid #000; margin: 0 auto; }
.mk .lb { font-weight: 700; font-size: 13px; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 3px #000; margin-top: 2px; text-align: center; }
.mk.mon .lb { font-size: 11px; color: #f2ebe2; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
.mk.note .sq { background: #e8c33d; border-radius: 50%; width: 10px; height: 10px; }
.mapctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 13px; }

/* ---------- Chat / journal ---------- */
.chat { height: calc(100vh - 260px); min-height: 300px; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.msg b { color: var(--orange-text); } .msg .tm { color: var(--muted); font-size: 12px; margin-right: 6px; font-family: var(--mono); }
.log .row { font-size: 14px; } .log .tm { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- PIN ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.pinbox { width: 340px; max-width: 100%; background: var(--panel); border: 1px solid #000; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.pinbox .ph { padding: 16px; background: var(--panel-2); border-bottom: 1px solid #000; display: flex; align-items: center; gap: 12px; }
.pinbox .pb { padding: 20px; }
.pindots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 20px; }
.pindots span { width: 18px; height: 18px; border: 2px solid #6b6359; }
.pindots span.f { background: var(--text); border-color: var(--text); }
.pindots.err span { border-color: var(--red-hi); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { height: 58px; font: 700 24px var(--font); background: var(--panel-3); color: var(--text); border: 0; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 0 #000; }
.keypad button:hover { background: #423e37; }
.keypad button.go { background: var(--green); color: var(--green-text); }
.keypad button.del { background: #3a1a12; color: var(--red-text); }
.pinerr { color: var(--red-text); text-align: center; min-height: 20px; margin-top: 12px; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100vw - 32px); }
.toast { background: var(--panel-2); border-left: 4px solid var(--blue-hi); padding: 10px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.5); min-width: 220px; max-width: 420px; animation: tin .15s; }
.toast.err { border-left-color: var(--red-hi); } .toast.ok { border-left-color: var(--green-hi); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

/* ---------- Modale ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: 560px; max-width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 56px auto 1fr; }
  .topbar { gap: 10px; padding: 0 12px; min-width: 0; }
  .topbar .server > svg { display: none; }
  .topbar .server .tag { font-size: 11px; }
  .topbar .btn .txt { display: none; }
  .rows > .row { flex-wrap: wrap; }
  .side { padding: 0; border-right: 0; border-bottom: 1px solid #000; overflow-x: auto; }
  .nav { display: flex; }
  .nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-size: 12px; white-space: nowrap; }
  .nav a.on { border-bottom-color: var(--red-hi); }
  .nav .sep { display: none; }
  .nav a .lbl { display: none; } .nav a.on .lbl { display: inline; }
  main { padding: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .brand .txt { display: none; }
  .mapwrap { height: 70vh; }
}

/* =====================================================================
   Thème « menu Rust » : reprend le navigateur de serveurs du jeu —
   fond sombre avec halo rouge, blocs plats translucides sans bordure,
   onglet actif vert plein, en-têtes noirs, étiquettes grises, compteurs.
   ===================================================================== */
:root {
  --bg: #161514;
  --panel: rgba(38, 37, 35, .78);
  --panel-2: rgba(0, 0, 0, .55);
  --panel-3: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .06);
  --text: #ebe6df;
  --text-2: #cfc9c1;
  --muted: #8d8780;
  --green: #6e8a35;
  --green-hi: #7d9b3d;
  --green-text: #f1f6e4;
  --red: #a63a28;
  --red-hi: #c04530;
  --red-text: #fbe3dc;
  --tile: rgba(255, 255, 255, .075);
  --tile-hi: rgba(255, 255, 255, .12);
  --chip: rgba(255, 255, 255, .1);
}
body {
  background:
    radial-gradient(ellipse 70% 80% at 0% 100%, rgba(135, 38, 24, .55), transparent 70%),
    radial-gradient(ellipse 60% 60% at 100% 0%, rgba(70, 64, 56, .35), transparent 70%),
    linear-gradient(180deg, #232120 0%, #171615 55%, #1d1513 100%);
  background-attachment: fixed;
  font-size: 16px;
}
h1, h2, h3, h4 { letter-spacing: .02em; }
h2 { font-size: 26px; }
h3 { font-size: 17px; color: var(--text-2); letter-spacing: .03em; }

/* Barre du haut : bandeau sombre avec onglet vert comme « OFFICIAL » */
.topbar { background: rgba(0, 0, 0, .45); border-bottom: 0; box-shadow: none; padding-left: 0; }
.brand { height: 56px; padding: 0 20px; background: var(--green); color: #fff; font-size: 20px; }
.brand .mark { background: transparent; width: 26px; }
.topbar .server b { font-size: 17px; }

/* Menu de gauche : grosses tuiles plates, l'active en vert plein */
.side { background: transparent; border-right: 0; padding: 18px 0 18px 18px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav a {
  background: var(--tile); color: var(--text-2); border-left: 0; padding: 0 14px; height: 50px;
  font-size: 16px; letter-spacing: .03em;
}
.nav a svg.i { width: 22px; height: 22px; opacity: .85; }
.nav a:hover { background: var(--tile-hi); color: #fff; }
.nav a.on { background: var(--green); color: #fff; }
.nav a.on svg.i { opacity: 1; }
.nav .sep { background: transparent; height: 10px; margin: 0; }
.nav .badge, .nav .count {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px;
  background: rgba(0, 0, 0, .28); color: #e4dfd8; font-size: 13px; letter-spacing: 0;
}
.nav .count svg.i { width: 12px !important; height: 12px !important; }
.nav .badge { background: var(--red); color: #fff; }
main { padding: 18px 24px 24px 18px; }

/* Panneaux : plats, translucides, en-tête noir type « NAME » */
.panel { background: var(--panel); border: 0; box-shadow: none; backdrop-filter: blur(2px); }
.panel > .ph { background: var(--panel-2); border-bottom: 0; color: #f0ebe4; padding: 13px 16px; font-size: 15px; letter-spacing: .04em; }
.panel > .ph svg.i { opacity: .9; }
.stat { background: var(--panel); }
.stat .ico { background: var(--tile); }
.stat .v { font-size: 28px; color: #fff; }
.hero::after { background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25)); }

/* Lignes de liste : alternées, titre en gras, sans traits */
.rows > .row { border-bottom: 0; padding: 12px 16px; }
.rows > .row:nth-child(even) { background: rgba(255, 255, 255, .025); }
.rows > .row:hover { background: rgba(255, 255, 255, .05); }
.row .name { font-size: 17px; color: #fff; }
.row .sub { color: var(--muted); }

/* Étiquettes grises comme WEEKLY / VANILLA / EUROPE */
.tag { background: var(--chip); color: #c9c3bb; padding: 3px 8px; font-size: 12px; letter-spacing: .04em; }
.tag.green { background: rgba(110, 138, 53, .85); color: #fff; }
.tag.red { background: rgba(166, 58, 40, .9); color: #fff; }
.tag.orange { background: rgba(185, 119, 42, .85); color: #fff; }
.tag.blue { background: rgba(42, 93, 132, .9); color: #fff; }

/* Boutons plats */
.btn { background: var(--tile-hi); box-shadow: none; color: var(--text); font-size: 15px; padding: 9px 16px; }
.btn:hover { background: rgba(255, 255, 255, .18); filter: none; }
.btn.green { background: var(--green); color: #fff; }
.btn.green:hover { background: var(--green-hi); }
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: var(--red-hi); }
.btn.blue { color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--tile); }
.toggle { background: rgba(0, 0, 0, .45); color: var(--muted); }
.toggle::after { background: #6d6862; }
.toggle.on { background: var(--green); color: #fff; }
.toggle.on::after { background: #fff; }

/* Formulaires et cases */
input[type=text], input[type=password], input[type=number], input[type=time], select, textarea {
  background: rgba(0, 0, 0, .4); border: 0; border-bottom: 2px solid transparent; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-bottom-color: var(--green-hi); }
select option { background: #232120; }
.check { border-bottom: 1px solid var(--line); }
.check .box { border-color: #7a746d; background: rgba(0,0,0,.3); }
label.f > span { color: var(--text-2); font-size: 14px; }
.callout { background: rgba(185, 119, 42, .16); }
.callout.red { background: rgba(166, 58, 40, .2); }
.callout.green { background: rgba(110, 138, 53, .2); }
code { background: rgba(0, 0, 0, .4); border: 0; }
table.t th { background: var(--panel-2); border-bottom: 0; color: #e6e1da; }
table.t td { border-bottom: 0; }
table.t tr:nth-child(odd) td { background: rgba(255, 255, 255, .025); }
.step { border-bottom: 1px solid var(--line); }
.step .n { background: var(--tile-hi); }

/* Écran du code */
.pinbox { background: rgba(30, 29, 27, .85); border: 0; }
.pinbox .ph { padding: 0; background: rgba(0, 0, 0, .5); border: 0; }
.pinbox .brand { height: 54px; }
.keypad button { background: var(--tile-hi); box-shadow: none; }
.keypad button:hover { background: rgba(255, 255, 255, .18); }
.keypad button.go { background: var(--green); color: #fff; }
.keypad button.del { background: var(--red); color: #fff; }
.pindots span { border-color: #8d8780; }

.item { background: rgba(0, 0, 0, .35); border: 0; }
.toast { background: rgba(20, 19, 18, .95); }

@media (max-width: 820px) {
  .side { padding: 8px; }
  .nav { flex-direction: row; gap: 4px; }
  .nav a { height: 44px; font-size: 13px; padding: 0 12px; border-bottom: 0; }
  .nav .count { display: none; }
  .brand { padding: 0 12px; }
  main { padding: 14px; }
}
html { background: #171615; }
body { min-height: 100%; }
.shell { grid-template-columns: 270px minmax(0, 1fr); }
.nav a .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 820px) { .shell { grid-template-columns: minmax(0, 1fr); } }
