/* Aterum: Grundlayout und Bausteine.
   Farben aus dem goldenen Logo (siehe Obsidian-Notiz „Design und Branding"):
   dunkel und warm, Gold nur für das Wichtigste, Statusfarben gedämpft. */
:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --surface-3: #252528;
  --border: rgba(255, 255, 255, .065);
  --border-strong: rgba(255, 255, 255, .125);
  --ink: #f5f5f2;
  --ink-2: #bdbdb7;
  --muted: #88888b;
  --gold: #f4d17e;
  --gold-dim: #c9a24a;
  --gold-soft: rgba(244, 209, 126, .11);
  --good: #86b98f;
  --warn: #e3b35f;
  --bad: #e2806f;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px rgba(0, 0, 0, .22);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Manrope', 'DM Sans', system-ui, sans-serif;
  --side: 248px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(1100px 520px at 72% -160px, rgba(244, 209, 126, .055), transparent 70%) no-repeat, var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--gold); color: #000; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: 2px; }
svg { flex: 0 0 auto; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }

/* ---------- Rahmen ---------- */
#shell { min-height: 100vh; }
/* Startbildschirm: sichtbar, bis Daten oder Anmeldung da sind – nie ein schwarzer Bildschirm. */
.boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); z-index: 90; }
.boot img { width: 54px; height: 54px; opacity: .9; }
.boot p { font-size: 13.5px; color: var(--muted); }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: rgba(19, 19, 21, .82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-right: 1px solid var(--border); padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 2px; overflow: hidden auto; scrollbar-width: thin; z-index: 30; transition: width .18s ease; }
.main-col { margin-left: var(--side); min-width: 0; transition: margin-left .18s ease; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; min-width: 0; }
.brand img { width: 32px; height: auto; display: block; flex: 0 0 auto; }
.brand-name { font: 700 17px var(--font-head); letter-spacing: .16em; }
.brand-sub { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .08em; }
.nav-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 10px 6px; }
.nav-main { display: grid; gap: 2px; margin-bottom: 10px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 8px 11px; border-radius: var(--radius-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .12s, color .12s; }
.nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-item:hover { background: rgba(255, 255, 255, .045); color: var(--ink); }
.nav-item.on { background: rgba(255, 255, 255, .07); color: var(--ink); }
.nav-item.on::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-item.on svg { color: var(--gold); opacity: 1; }
.nav-item svg { width: 19px; height: 19px; opacity: .8; }
.nav-item .mark { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); font: 600 11px var(--font-head); color: var(--ink-2); flex: 0 0 auto; }
/* Seite, die zu einem Unternehmen gehört: beginnt dort, wo der Name darüber beginnt (11 + 20 + 11). */
.nav-item.sub { padding-left: 42px; font-size: 13px; }
.cnt { margin-left: auto; font-size: 11px; color: var(--muted); background: var(--surface-3); padding: 1px 7px; border-radius: 20px; }
.nav-item.on .cnt { color: var(--gold); }
.side-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: grid; gap: 2px; }

.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: rgba(10, 10, 11, .72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar-brand { display: none; align-items: center; gap: 10px; font: 700 14px var(--font-head); letter-spacing: .16em; }
.topbar-brand img { width: 28px; height: auto; display: block; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nur-klein { display: none; }
.search-pill { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; min-width: 210px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted); font-size: 13.5px; transition: border-color .12s, color .12s; }
.search-pill:hover { border-color: var(--border-strong); color: var(--ink-2); }
.claude-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .06); transition: background .12s; }
.claude-btn:hover { background: rgba(255, 255, 255, .1); }
.claude-btn svg { width: 17px; height: 17px; color: var(--gold); }
.search-pill svg { width: 17px; height: 17px; }
.search-pill kbd { margin-left: auto; font: 500 11px var(--font); color: var(--muted); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 6px; }
.icon-btn { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--ink-2); transition: background .12s, color .12s; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 10px; background: var(--gold); color: #1c1808; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.save-state { font-size: 12px; color: var(--muted); }
.save-state.error { color: var(--bad); }

main { max-width: 1160px; margin: 0 auto; padding: 22px 36px 80px; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; overflow-wrap: anywhere; }
.page-head h1 em { font-style: normal; color: var(--gold); }
.sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Schaltflächen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; transition: background .12s, border-color .12s, color .12s, transform .08s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--gold); color: #1c1808; }
.btn.primary:hover:not(:disabled) { background: #f8de9d; }
.btn.ghost { border-color: var(--border-strong); color: var(--ink-2); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold-dim); color: var(--ink); }
.btn.danger { border-color: rgba(226, 128, 111, .4); color: var(--bad); font-weight: 500; }
.btn.danger:hover:not(:disabled) { background: rgba(226, 128, 111, .08); }
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.link { color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.link:hover { color: var(--gold); }

/* ---------- Karten und Raster ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; min-width: 0; box-shadow: var(--shadow); }
.section { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h2 { font: 600 15px var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.grid { display: grid; gap: 16px; }
.grid-main { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; align-content: start; min-width: 0; }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: block; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; min-width: 0; text-align: left; box-shadow: var(--shadow); }
button.kpi:hover { border-color: var(--border-strong); }
.kpi-label { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.kpi-value { font: 600 29px/1.15 var(--font-head); letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-value small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi-value.gold { color: var(--gold); }
.kpi-value.bad { color: var(--bad); }
.kpi-sub { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.kpi-sub.bad { color: var(--bad); }
.kpi-sub.good { color: var(--good); }

/* ---------- Filter und Werkzeugleiste ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: rgba(255, 255, 255, .04); border-radius: 12px; max-width: 100%; }
.seg button { padding: 6px 13px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .12s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--surface-3); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.seg .cnt { margin-left: 0; }
.search { flex: 1 1 200px; min-width: 0; }
.toolbar select, .search { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }

/* ---------- Listen ---------- */
.list { display: grid; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.check { width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--border-strong); border-radius: 6px; display: grid; place-items: center; color: transparent; font-size: 12px; transition: .12s; flex: 0 0 auto; }
.check:hover:not(:disabled) { border-color: var(--gold); }
.check.done { background: var(--gold); border-color: var(--gold); color: #1c1808; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-size: 14.5px; text-align: left; overflow-wrap: anywhere; }
button.row-title:hover { color: var(--gold); }
.row.done .row-title { color: var(--muted); text-decoration: line-through; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.row-side { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.group-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 14px 2px 2px; }
.group-label.bad { color: var(--bad); }
.overdue { color: var(--bad); }

/* ---------- Kleine Elemente ---------- */
.tag { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 20px; border: 1px solid var(--border-strong); color: var(--ink-2); white-space: nowrap; }
.tag.gold { border-color: rgba(201, 162, 74, .45); color: var(--gold); }
.tag.good { border-color: rgba(134, 185, 143, .45); color: var(--good); }
.tag.bad { border-color: rgba(226, 128, 111, .45); color: var(--bad); }
.pri { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.pri i { width: 7px; height: 7px; border-radius: 2px; background: currentColor; }
.pri-urgent { color: var(--bad); }
.pri-high { color: var(--warn); }
.pri-normal { color: var(--muted); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 12px var(--font-head); background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--border-strong); flex: 0 0 auto; }
.avatar.gold { color: var(--gold); }
.progress { height: 5px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hint { border-left: 2px solid var(--gold-dim); background: var(--gold-soft); padding: 11px 14px; border-radius: 0 9px 9px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.warn-box { border-left: 2px solid var(--warn); background: rgba(227, 179, 95, .06); padding: 11px 14px; border-radius: 0 9px 9px 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.empty { text-align: center; padding: 28px 12px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 13.5px; margin: 0 auto 16px; max-width: 420px; }

.quick-add { display: flex; gap: 8px; margin-bottom: 6px; }
.quick-add input { flex: 1; min-width: 0; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 10px 13px; font-size: 14px; }
.quick-add input:focus { border-style: solid; border-color: var(--gold-dim); outline: none; }

/* ---------- Formulare ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-2); min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar select:focus, .search:focus { outline: none; border-color: var(--gold-dim); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; }
.check-field { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.check-field input { width: 18px; height: 18px; accent-color: var(--gold); flex: 0 0 auto; }
details.more { margin: 2px 0 16px; border-top: 1px solid var(--border); padding-top: 10px; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--ink-2); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: '+ '; color: var(--gold); }
details.more[open] summary::before { content: '− '; }
details.more[open] summary { margin-bottom: 12px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.form-error { color: var(--bad); font-size: 13px; margin-top: 10px; }
.form-error:empty { display: none; }

/* ---------- Dialog ---------- */
dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 22px; padding: 26px; box-shadow: 0 30px 100px rgba(0, 0, 0, .6); }
dialog.wide { width: min(760px, calc(100% - 24px)); }
dialog::backdrop { background: rgba(5, 5, 6, .66); backdrop-filter: blur(6px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { font-size: 21px; overflow-wrap: anywhere; }
.close { font-size: 26px; line-height: 1; color: var(--muted); padding: 0 4px; }
.close:hover { color: var(--ink); }
.detail-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.actions-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.inline-select { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.inline-select select { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 9px; padding: 7px 10px; color: var(--ink); }
.comments { border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px; }
.comments h3 { font-size: 14px; margin-bottom: 10px; }
.comment { border-left: 2px solid var(--border-strong); padding: 2px 0 2px 12px; margin: 12px 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }

#toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 160px); transition: transform .25s; background: var(--surface-3); color: var(--ink); border: 1px solid var(--border-strong); padding: 12px 20px; border-radius: 14px; font-size: 13.5px; font-weight: 500; z-index: 80; max-width: calc(100% - 32px); box-shadow: 0 16px 50px rgba(0, 0, 0, .55); }
#toast.visible { transform: translate(-50%, 0); }
/* Hinweis auf eine neue Fassung – sitzt über der Tableiste, damit er nichts verdeckt. */
.update-bar { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 79;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; font-size: 13.5px;
  background: var(--surface-3); border: 1px solid var(--gold-dim); border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); }
.update-bar .icon-btn { width: 30px; height: 30px; font-size: 17px; }

.tabbar, .scrim { display: none; }

/* ---------- Kleinere Bildschirme ---------- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .side { transform: translateX(-100%); transition: transform .2s; width: 272px; }
  #shell.menu-open .side { transform: none; box-shadow: 20px 0 80px rgba(0, 0, 0, .6); }
  #shell.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 25; }
  .main-col { margin-left: 0; }
  .topbar { padding: env(safe-area-inset-top) 10px 0; height: calc(54px + env(safe-area-inset-top)); }
  .nur-gross { display: none; }
  .nur-klein { display: block; }
  .topbar-brand { display: flex; }
  .search-pill { min-width: 0; width: 38px; padding: 0; justify-content: center; background: none; border: 0; color: var(--ink-2); }
  .search-pill span, .search-pill kbd, .claude-btn span { display: none; }
  .claude-btn { padding: 0; width: 38px; justify-content: center; background: none; }
  /* Der Posteingang sitzt am Handy oben, weil die Leiste unten Finanzen bekommt. */
  /* „Speichert …“ braucht am Handy keinen Platz – „Keine Verbindung“ schon: Sonst tippt man
     weiter, ohne zu merken, dass nichts ankommt. */
  .save-state { display: none; }
  .save-state.error { display: inline-block; font-size: 11px; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: rgba(224, 108, 108, .14); }
  /* Unter 16 Pixel zoomt Safari bei jedem Tipp in ein Feld hinein und nicht wieder heraus. */
  input, select, textarea { font-size: 16px !important; }
  main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .page-head { margin-bottom: 18px; }
  .page-head h1 { font-size: 25px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .kpis { gap: 10px; }
  .kpi { padding: 14px 15px; }
  .kpi-value { font-size: 24px; }
  .card { padding: 17px; }
  .update-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(20, 20, 18, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab { flex: 1; display: grid; justify-items: center; gap: 3px; padding: 5px 0; font-size: 10.5px; color: var(--muted); position: relative; }
  .tab svg { width: 22px; height: 22px; }
  .tab.on { color: var(--gold); }
  .tab .badge { top: 0; right: calc(50% - 22px); }
  #toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  dialog { padding: 20px 18px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Klappbare Gruppe in der Leiste */
.nav-group { color: var(--muted); }
.nav-group.drin { color: var(--ink-2); }
.nav-group .chev { margin-left: auto; color: var(--muted); transition: transform .15s; font-size: 15px; line-height: 1; }
.nav-group.offen .chev { transform: rotate(90deg); }
.nav-group .mark { font-variant-numeric: tabular-nums; }
.nav-sub { margin: 2px 0 8px 20px; padding-left: 8px; border-left: 1px solid var(--border); display: grid; gap: 1px; }
.nav-sub .nav-item { min-height: 36px; font-size: 13.5px; }
.nav-sub .nav-item svg { width: 17px; height: 17px; }
.nav-sub .nav-item.on::before { display: none; }

/* Eingeklappt bleibt eine schmale Leiste mit den Symbolen. */
@media (min-width: 761px) {
  #shell.rail { --side: 68px; }
  #shell.rail .nav-text, #shell.rail .chev, #shell.rail .brand-name, #shell.rail .brand-sub { display: none; }
  #shell.rail .brand { justify-content: center; padding-inline: 0; }
  #shell.rail .nav-item { justify-content: center; gap: 0; padding-inline: 0; }
  #shell.rail .nav-item .cnt { position: absolute; top: 3px; right: 3px; margin: 0; padding: 0 5px; font-size: 10px; line-height: 15px; background: var(--gold); color: #1c1808; }
}
