:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: #0c111d;
  --surface-2: #111827;
  --surface-3: #151b2c;
  --line: #243044;
  --text: #eef6ff;
  --muted: #8fa2ba;
  --accent: #ff2fb3;
  --accent-strong: #ffb31a;
  --pink: #ff2fb3;
  --gold: #ffb31a;
  --violet: #9b43ff;
  --good: #37ff9c;
  --bad: #ff4f7b;
  --warn: #ffbf3f;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --glow: 0 0 18px rgba(255, 47, 179, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 47, 179, 0.18), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(36, 107, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #03040a 0%, #070b14 48%, #05070d 100%);
  color: var(--text);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 16%, rgba(36, 107, 255, 0.18) 16% 17.8%, transparent 17.8% 100%),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 47, 179, 0.16) 46% 47.2%, transparent 47.2% 100%),
    linear-gradient(135deg, transparent 0 72%, rgba(255, 179, 26, 0.14) 72% 73.3%, transparent 73.3% 100%);
  opacity: 0.55;
}

.login-brand {
  margin-bottom: 22px;
}

.login-error {
  min-height: 20px;
  color: var(--bad);
  font-size: 13px;
}

.auth-switch {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  box-shadow: none;
  font-weight: 800;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 4, 9, 0.72);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none;
}

.auth-modal {
  width: min(100%, 430px);
  position: relative;
  background: rgba(12, 17, 29, 0.98);
  border: 1px solid rgba(255, 47, 179, 0.24);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48), var(--glow);
  padding: 22px;
}

.auth-modal h2 {
  margin-bottom: 8px;
}

.auth-modal form {
  display: grid;
  gap: 14px;
}

.auth-modal form[hidden] {
  display: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  background: rgba(5, 8, 15, 0.92);
  color: #f6f8fa;
  padding: 22px 18px;
  border-right: 1px solid rgba(255, 47, 179, 0.22);
  box-shadow: 20px 0 40px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 179, 26, 0.95), rgba(255, 47, 179, 0.92));
  overflow: hidden;
  box-shadow:
    0 0 18px rgba(255, 47, 179, 0.38),
    inset 0 0 0 2px rgba(5, 7, 13, 0.75);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(5, 7, 13, 0.82);
  transform: rotate(45deg);
  background: rgba(5, 7, 13, 0.12);
}

.brand-initials {
  position: relative;
  z-index: 1;
  color: #020409;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
}

.brand span,
.muted {
  color: var(--muted);
}

.brand span {
  display: block;
  color: #a9b7c4;
  font-size: 13px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-link {
  border: 0;
  background: transparent;
  color: #d5dee8;
  text-align: left;
  padding: 11px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-link.active,
.nav-link:hover {
  background: linear-gradient(90deg, rgba(255, 47, 179, 0.18), rgba(255, 179, 26, 0.1));
  color: white;
  box-shadow: inset 3px 0 0 var(--accent);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.topbar p {
  margin-top: 6px;
  color: var(--muted);
}

.topbar-actions,
.inline-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sync-state {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

button,
.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020409;
  font-weight: 800;
  box-shadow: var(--glow);
}

.primary:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--pink));
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-intro {
  max-width: 820px;
  margin-bottom: 18px;
}

.dashboard-intro h2 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 47, 179, 0.35);
}

.dashboard-intro p {
  color: var(--muted);
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.section-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px;
  background: rgba(12, 17, 29, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section-tab {
  box-shadow: none;
}

.section-tab.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #05070d;
  font-weight: 800;
}

.tool-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 16px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 23, 0.96)),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-card:hover:not(:disabled) {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(255, 47, 179, 0.2), var(--shadow);
}

.tool-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card strong {
  font-size: 18px;
}

.tool-card p {
  color: var(--muted);
  line-height: 1.45;
}

.tool-card.future {
  opacity: 0.72;
  cursor: default;
}

.metric,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.neon-panel {
  position: relative;
  overflow: hidden;
}

.neon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 58%, rgba(36, 107, 255, 0.16) 58% 60%, transparent 60%),
    linear-gradient(135deg, transparent 0 68%, rgba(255, 47, 179, 0.16) 68% 70%, transparent 70%);
  pointer-events: none;
}

.metric {
  padding: 14px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 22px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 12px;
  background: rgba(12, 17, 29, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
}

.columns-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  padding: 12px;
}

.columns-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.columns-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.column-option {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.column-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.column-option button {
  padding: 4px 8px;
  box-shadow: none;
}

th[draggable="true"] {
  cursor: grab;
}

th[draggable="true"]:active {
  cursor: grabbing;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.check {
  display: flex;
  align-items: center;
  color: var(--text);
  padding-bottom: 9px;
}

input,
select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #070b14;
  color: var(--text);
}

select:focus,
input:focus {
  outline: 2px solid rgba(255, 47, 179, 0.45);
  border-color: var(--accent);
}

.table-wrap {
  overflow: auto;
  max-height: calc(100vh - 260px);
  background: rgba(12, 17, 29, 0.92);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.locked-panel {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.locked-panel p {
  color: var(--muted);
  margin: 8px 0 14px;
}

.locked-panel .primary {
  display: inline-flex;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1260px;
  font-size: 13px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  background: #101827;
  z-index: 1;
  color: #b7c8dc;
}

.sort-btn {
  width: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  text-align: left;
  color: inherit;
  font-weight: 700;
}

.sort-btn.active::after {
  content: " v";
  color: var(--accent);
}

.sort-btn.active.asc::after {
  content: " ^";
  color: var(--accent);
}

td.reason {
  white-space: normal;
  min-width: 260px;
  color: var(--muted);
}

.player-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.player-card-art {
  width: 34px;
  height: 48px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-width: 66px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 700;
  font-size: 12px;
}

.buy {
  background: rgba(55, 255, 156, 0.13);
  color: var(--good);
}

.watch {
  background: rgba(255, 191, 63, 0.14);
  color: var(--warn);
}

.avoid {
  background: rgba(255, 79, 123, 0.13);
  color: var(--bad);
}

.gain-positive {
  color: var(--good);
  font-weight: 700;
}

.gain-negative {
  color: var(--bad);
  font-weight: 700;
}

.true-rating {
  color: var(--accent);
  font-weight: 800;
}

.panel {
  padding: 18px;
}

.list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-width: 520px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
}

.history-summary {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 12px 0;
}

.history-summary strong {
  font-size: 28px;
}

pre {
  margin: 0;
  overflow: auto;
  max-height: 520px;
  background: #070b14;
  color: #e7eef6;
  padding: 14px;
  border-radius: 6px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(260px, 1fr);
  gap: 28px;
}

.settings-grid label {
  margin-bottom: 12px;
}

code {
  display: block;
  margin-top: 12px;
  padding: 12px;
  background: #070b14;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #07111e;
  color: white;
  padding: 10px 12px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.download-button {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.inventory-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.detail-grid div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: rgba(255, 47, 179, 0.08);
  border: 1px solid rgba(255, 47, 179, 0.18);
  border-radius: 8px;
}

.detail-grid span {
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  color: var(--text);
}

.estimate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.estimate-card,
.conquest-card {
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 23, 0.98)),
    var(--surface);
  border: 1px solid rgba(255, 47, 179, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.estimate-card {
  padding: 16px;
}

.estimate-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.estimate-card h2,
.conquest-card h2 {
  margin: 12px 0 8px;
  color: var(--text);
}

.estimate-card p,
.conquest-card p,
.location-note span {
  color: var(--muted);
  line-height: 1.45;
}

.confidence-bar {
  height: 8px;
  overflow: hidden;
  background: rgba(143, 162, 186, 0.14);
  border-radius: 999px;
  margin: 10px 0;
}

.confidence-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--pink), var(--gold));
  box-shadow: var(--glow);
}

.estimate-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

a {
  color: var(--accent);
}

.timeline-table-wrap {
  overflow: auto;
  max-height: 520px;
}

.rounded-toolbar {
  border-radius: 8px;
  margin-bottom: 14px;
}

.conquest-grid {
  display: grid;
  gap: 14px;
}

.conquest-card {
  display: block;
  overflow: hidden;
}

.conquest-art {
  display: none;
}

.conquest-art {
  position: relative;
  min-height: 260px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 47, 179, 0.32), transparent 32%),
    radial-gradient(circle at 70% 70%, rgba(36, 107, 255, 0.28), transparent 36%),
    linear-gradient(135deg, #0f172a, #05070d);
}

.conquest-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  object-position: center;
  background: #05070d;
}

.conquest-content {
  padding: 16px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.mode-card,
.mini-season-card {
  text-align: left;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.96), rgba(8, 13, 23, 0.98)),
    var(--surface);
  border: 1px solid rgba(255, 47, 179, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mode-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 16px;
}

.mode-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mode-card strong {
  font-size: 22px;
}

.mode-card p {
  color: var(--muted);
  line-height: 1.45;
}

.mode-card.future {
  opacity: 0.62;
  cursor: default;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.crumbs.compact {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.crumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b9c7ff;
  box-shadow: none;
  text-decoration: underline;
}

.crumbs span {
  color: var(--muted);
}

.mini-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 47, 179, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.12), rgba(36, 107, 255, 0.08));
}

.mini-hero span,
.top-reward-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-hero h2 {
  font-size: 28px;
  margin: 8px 0;
}

.mini-hero p {
  color: var(--muted);
}

.mini-totals {
  display: grid;
  gap: 4px;
  text-align: right;
}

.mini-totals strong {
  color: var(--accent-strong);
  font-size: 28px;
}

.mini-season-grid {
  display: grid;
  gap: 14px;
}

.mini-season-card {
  padding: 16px;
}

.season-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.season-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
}

.top-reward-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 47, 179, 0.18);
  border-radius: 8px;
  background: rgba(255, 47, 179, 0.08);
}

.reward-art {
  width: 58px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), var(--violet));
  color: #05070d;
  font-weight: 900;
}

.mode-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mode-columns h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

.reward-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.reward-chip {
  padding: 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 47, 179, 0.2);
  background: rgba(255, 47, 179, 0.1);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.reward-chip.cosmetics {
  border-color: rgba(255, 47, 179, 0.28);
  background: rgba(255, 47, 179, 0.12);
}

.reward-chip.none {
  border-color: rgba(143, 162, 186, 0.24);
  background: rgba(143, 162, 186, 0.1);
}

.mini-player-grid {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.mini-player-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(143, 162, 186, 0.18);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.45);
}

.mini-player-card img,
.mini-card-fallback {
  width: 48px;
  height: 66px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 47, 179, 0.12);
}

.mini-card-fallback {
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid rgba(255, 47, 179, 0.24);
  text-align: center;
}

.mini-card-fallback strong {
  font-size: 18px;
  line-height: 1;
}

.mini-card-fallback span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.mini-player-card strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.mini-player-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.location-note {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(143, 162, 186, 0.16);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feature-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255, 47, 179, 0.08);
  border: 1px solid rgba(255, 47, 179, 0.2);
  border-radius: 8px;
}

.feature-list span {
  color: var(--muted);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.signal-strip span {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 47, 179, 0.14);
  border: 1px solid rgba(255, 47, 179, 0.24);
  color: #ffd8f0;
  font-weight: 700;
}

.map-preview {
  display: grid;
  grid-template-columns: repeat(5, 34px);
  gap: 8px;
  margin-top: 18px;
}

.map-preview span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 47, 179, 0.24), rgba(36, 107, 255, 0.2));
  border: 1px solid rgba(255, 47, 179, 0.28);
  box-shadow: 0 0 16px rgba(255, 47, 179, 0.12);
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 12px;
  }

  .brand {
    margin-bottom: 12px;
  }

  .nav {
    display: flex;
    overflow-x: auto;
  }

  .nav-link {
    white-space: nowrap;
  }

  .main {
    padding: 14px;
  }

  .topbar,
  .toolbar,
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .tool-grid,
  .inventory-dashboard,
  .feature-layout,
  .mode-columns,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .mini-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-totals {
    text-align: left;
  }
}
