/* ═══════════════════════════════════════════════════════════════
   MONARCH INTEL DATABASE — CSS
   Theme: Dark tactical/military intelligence terminal
   Aesthetic: Deep navy + neon cyan + amber accents
═══════════════════════════════════════════════════════════════ */

/* ───────────── Custom Properties ───────────── */
:root {
  --bg:         #080d14;
  --bg2:        #0d1520;
  --bg3:        #111e2e;
  --panel:      #0f1a28;
  --border:     #1a2e44;
  --border2:    #243d56;
  --cyan:       #00e5ff;
  --cyan-dim:   #006c7a;
  --amber:      #ffd700;
  --amber-dim:  #7a6200;
  --red:        #ff3366;
  --green:      #00e676;
  --purple:     #b388ff;
  --text:       #c8d8e8;
  --text-dim:   #6a8099;
  --text-muted: #3d5568;
  --font-main:  'Segoe UI', 'SF Pro Display', system-ui, sans-serif;
  --font-mono:  'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 4px 24px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 20px rgba(0,229,255,0.1);
  --sidebar-w:  260px;
  --header-h:   52px;
  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───────────── Reset ───────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--amber); text-decoration: underline; }

button { cursor: pointer; }
input, select { outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

/* ───────────── Layout Shell ───────────── */
#app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ───────────── Topbar ───────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 100;
  backdrop-filter: blur(8px);
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  padding: 4px 8px;
}

#topbar-brand {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

#global-search {
  flex: 1;
  max-width: 500px;
  height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 16px;
  color: var(--text);
  padding: 0 14px;
  font-size: 13px;
  transition: border-color var(--transition);
}
#global-search::placeholder { color: var(--text-muted); }
#global-search:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 2px rgba(0,229,255,0.08);
}

#breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  max-width: 300px;
}
.bc-item { color: var(--text-dim); }
.bc-item:hover { color: var(--cyan); }
.bc-current { color: var(--text); }
.bc-sep { color: var(--text-muted); }

/* ───────────── Sidebar ───────────── */
#sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--header-h));
  background: var(--panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 90;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
}
.brand-icon { font-size: 20px; }
.brand-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.sidebar-stats {
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  font-size: 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.nav-group {
  margin-top: 4px;
}

.nav-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.nav-item:hover {
  background: rgba(0,229,255,0.05);
  color: var(--text);
  text-decoration: none;
}
.nav-item.active {
  background: rgba(0,229,255,0.08);
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.nav-icon { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.nav-count {
  font-size: 10px;
  color: var(--text-muted);
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ───────────── Main Content ───────────── */
#main-content {
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  min-height: calc(100vh - var(--header-h));
}

/* ───────────── Loading Overlay ───────────── */
#loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 13, 20, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  z-index: 9999;
}

.loading-logo {
  font-size: 48px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.loading-msg {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.loading-bar {
  width: 280px;
  height: 3px;
  background: var(--bg3);
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  border-radius: 2px;
  animation: loading 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes loading {
  0% { width: 0; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0; margin-left: 100%; }
}

/* ───────────── Page Header ───────────── */
.page-header {
  margin-bottom: 20px;
}

.page-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-count {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.result-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ───────────── Search bar ───────────── */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 0 12px;
  max-width: 480px;
}
.search-icon { color: var(--text-muted); font-size: 14px; }
.search-input {
  flex: 1;
  height: 36px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); }
.search-wrap:focus-within {
  border-color: var(--cyan-dim);
}

/* ───────────── Filter bar ───────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.filter-select {
  height: 28px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 12px;
  padding: 0 8px;
  cursor: pointer;
}
.filter-select:focus { border-color: var(--cyan-dim); }

.filter-reset {
  height: 28px;
  background: rgba(255,51,102,0.1);
  border: 1px solid rgba(255,51,102,0.3);
  border-radius: var(--radius);
  color: var(--red);
  font-size: 11px;
  padding: 0 10px;
  margin-left: auto;
  transition: background var(--transition);
}
.filter-reset:hover { background: rgba(255,51,102,0.2); }

/* ───────────── Card Grid ───────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card-clickable {
  cursor: pointer;
}

.card-clickable:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.card-clickable:hover::before {
  opacity: 1;
}

.card-clickable:focus {
  outline: 2px solid var(--cyan-dim);
  outline-offset: 2px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* ───────────── Badges ───────────── */
.badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  white-space: nowrap;
}

/* ───────────── Detail View ───────────── */
.detail-container {
  max-width: 900px;
}

.back-btn {
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 12px;
  padding: 5px 12px;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.back-btn:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-fields {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 8px;
  align-items: start;
  min-height: 22px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}
.field-row:last-child { border-bottom: none; }
.field-row.nested {
  grid-template-columns: 160px 1fr;
  font-size: 12px;
  margin-left: 12px;
}

.field-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
  white-space: nowrap;
}

.field-value {
  color: var(--text);
  font-size: 13px;
  word-break: break-word;
}

/* ───────────── Sections (collapsible) ───────────── */
.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  border-bottom: 1px solid transparent;
}
.section-header:hover { background: rgba(255,255,255,0.03); }
[aria-expanded="true"].section-header { border-bottom-color: var(--border); }

.chevron { font-size: 10px; color: var(--text-muted); }

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.section-body {
  padding: 14px;
}

/* ───────────── Levels blocks ───────────── */
.levels-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.level-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.level-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.level-sub {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-top: 8px;
}

.level-section {
  margin-top: 8px;
}

.tier-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 6px;
}

.tier-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  margin-bottom: 6px;
}

/* ───────────── Cost/Requirement chips ───────────── */
.cost-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cost-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.cost-currency {
  background: rgba(255,215,0,0.1);
  color: var(--amber);
  border: 1px solid rgba(255,215,0,0.25);
}

.cost-item {
  background: rgba(0,229,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.2);
}

.req-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.req-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(179,136,255,0.1);
  color: var(--purple);
  border: 1px solid rgba(179,136,255,0.25);
  white-space: nowrap;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* ───────────── Stat Table ───────────── */
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.stat-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.stat-table tr:last-child { border-bottom: none; }

.stat-table td {
  padding: 4px 8px;
}

.stat-name {
  color: var(--text-dim);
  width: 70%;
}

.stat-val {
  color: var(--green);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ───────────── Data Table ───────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  text-align: left;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border2);
}

.data-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text);
}

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ───────────── Reward block ───────────── */
.reward-block {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.reward-chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border2);
}

.reward-currency {
  background: rgba(255,215,0,0.08);
  color: var(--amber);
  border-color: rgba(255,215,0,0.2);
}

.reward-item {
  background: rgba(0,230,118,0.08);
  color: var(--green);
  border-color: rgba(0,230,118,0.2);
}

.reward-cache {
  background: rgba(179,136,255,0.08);
  color: var(--purple);
  border-color: rgba(179,136,255,0.2);
}

/* ───────────── Pagination ───────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.page-btn {
  height: 30px;
  min-width: 30px;
  padding: 0 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 12px;
  transition: all var(--transition);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.page-btn.active {
  background: rgba(0,229,255,0.12);
  border-color: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 700;
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.page-info {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 8px;
}

/* ───────────── Empty / Error States ───────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}

.empty-icon { font-size: 32px; opacity: 0.4; }

.empty-msg {
  font-size: 14px;
  color: var(--text-dim);
}

.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px;
  text-align: center;
}

.error-icon { font-size: 48px; }

.error-msg {
  font-size: 16px;
  color: var(--red);
  font-weight: 600;
}

.error-hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* ───────────── Nested values ───────────── */
.nested-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
}

.nested-item {
  font-size: 12px;
  color: var(--text);
  padding: 2px 0;
}

.nested-obj {
  margin-top: 4px;
}

.more-items {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.ref-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
}
.ref-link:hover { color: var(--amber); text-decoration: underline; }

.muted { color: var(--text-muted); font-size: 12px; }

/* ───────────── Home page ───────────── */
.home-page {
  max-width: 1100px;
}

.home-hero {
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg3) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,229,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.home-logo { font-size: 40px; margin-bottom: 10px; }

.home-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.home-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.home-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.home-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.stat-key {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.home-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.home-tile:hover {
  border-color: var(--border2);
  background: var(--bg3);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

.tile-icon { font-size: 22px; flex-shrink: 0; }

.tile-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.tile-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 1px;
}

.tile-count {
  font-size: 10px;
  color: var(--cyan);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* ───────────── Search Page ───────────── */
.search-page { max-width: 1100px; }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  #menu-toggle { display: flex; }

  #sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
    width: 260px;
    z-index: 200;
  }

  #sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.5);
  }

  #main-content {
    margin-left: 0;
    padding: 16px;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
  }

  .home-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-row {
    grid-template-columns: 130px 1fr;
  }

  #breadcrumb { display: none; }

  .home-title { font-size: 22px; }
}

@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 18px; }
  #main-content { padding: 12px; }
}

/* ───────────── Print ───────────── */
@media print {
  #sidebar, #topbar, #loading-overlay { display: none; }
  #main-content { margin: 0; }
}
