* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #08090b;
  --surface: #0e1013;
  --card: #111317;
  --card-hover: #181b21;
  --panel-hover: #171a20;
  --border: #1e2128;
  --border-strong: #2a2e38;
  --divider: rgba(255, 255, 255, 0.055);
  --text: #e2e5ec;
  --text-strong: #f7f8fa;
  --muted: #747b87;
  --green: #22c58b;
  --green-line: #089981;
  --red: #f23645;
  --blue: #2962ff;
  --blue-link: #5b9bff;
  --amber: #f59e0b;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  overflow: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: "Cascadia Code", Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.right { text-align: right; }
.hidden { display: none !important; }
.up { color: var(--green); }
.down { color: var(--red); }
.flat { color: var(--muted); }

/* Subtle obsidian scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #22262e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #313744; }

.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
}

/* =====================================================================
   Top Toolbar
   ===================================================================== */
.topbar {
  height: 48px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-left, .topbar-right, .chart-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interactive Stacked Brand: FOREVER / TRADING VIEW */
.brand-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 10px 4px 6px;
  margin-right: 4px;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: background 0.14s ease, border-color 0.14s ease;
}
.brand-btn::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: var(--border);
}
.brand-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.brand-top {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.05;
  color: var(--text-strong);
}
.brand-sub {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.05px;
  line-height: 1.1;
  color: var(--blue-link);
  margin-top: 2px;
}

/* Topbar Nav Links (Chart | Markets) */
.top-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.nav-link {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.nav-link:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-strong);
}

.search-wrap { position: relative; width: 255px; }
#search-input {
  width: 100%;
  background: #14171c;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text);
  padding: 5px 12px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#search-input::placeholder { color: var(--muted); }
#search-input:focus {
  border-color: var(--border-strong);
  background: #181c23;
}

.search-dropdown {
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  background: #12151a;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.75);
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 11px;
  cursor: pointer;
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--card-hover); }
.search-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.search-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
  object-fit: cover;
}

.pill-group {
  display: flex;
  background: #0b0c0f;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.pill {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.pill:hover { color: var(--text-strong); }
.pill.active { background: var(--blue); color: #fff; }

.inline-check {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.num-input {
  width: 42px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 2px 4px;
  font-size: 11px;
  text-align: center;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-secondary { background: #1c2028; color: var(--text); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: #252a34; }
.btn-start { background: var(--green); color: #04150f; }
.btn-stop { background: var(--red); color: #fff; }

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  letter-spacing: 0.4px;
}
.badge-on { background: rgba(34, 197, 139, 0.12); color: var(--green); border: 1px solid rgba(34, 197, 139, 0.32); }
.badge-off { background: rgba(242, 54, 69, 0.12); color: var(--red); border: 1px solid rgba(242, 54, 69, 0.32); }
.badge-scan { background: rgba(245, 158, 11, 0.14); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.35); }

/* =====================================================================
   Main Workspace
   ===================================================================== */
.workspace {
  flex: 1;
  display: flex;
  min-height: 0;
  background: var(--bg);
}

/* =====================================================================
   Chart Terminal Pane (Default View)
   ===================================================================== */
.chart-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.ticker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #0c0e11;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.ticker-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ticker-main h1 { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-icon {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.price { font-size: 17px; font-weight: 700; color: var(--text-strong); }
.chg { font-size: 12px; font-weight: 600; }
.ticker-meta { display: flex; gap: 14px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.ticker-meta strong { color: var(--text); }

.star-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.star-btn.pinned { color: var(--amber); }

.chart-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--bg);
}
.chart-container { width: 100%; height: 100%; }
.chart-legend {
  position: absolute;
  top: 10px;
  left: 14px;
  z-index: 10;
  font-size: 11px;
  color: var(--muted);
  pointer-events: none;
  background: rgba(8, 9, 11, 0.78);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 5px;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(8, 9, 11, 0.9);
  z-index: 20;
}

/* =====================================================================
   Optional View: TradingView-Style Obsidian Markets Overview
   ===================================================================== */
.overview-pane {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: var(--bg);
  padding: 20px 24px 36px;
}

.overview-inner {
  max-width: 1420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Shared TradingView Obsidian Card */
.tv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Top Bento Row: Hero Market Chart (~64%) + Top 24h Movers (~36%) */
.bento-top {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* Hero Chart Card (mirrors TradingView S&P 500 hero card) */
.hero-card {
  padding: 16px 18px 12px;
  gap: 12px;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
  padding: 2px 4px 2px 0;
  border-radius: 8px;
  transition: opacity 0.14s ease;
}
.hero-identity:hover { opacity: 0.88; }

.hero-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: #08090b;
  flex-shrink: 0;
}
.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-title-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
}
.tv-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  text-transform: uppercase;
}
.hero-price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.hero-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.3px;
}
.hero-chg {
  font-size: 13px;
  font-weight: 600;
}
.hero-chg-sub {
  font-size: 11px;
  color: var(--muted);
}

.hero-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.hero-tab {
  background: #161920;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.13s ease, background 0.13s ease, border-color 0.13s ease;
}
.hero-tab:hover {
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.hero-tab.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: #3a404e;
  color: var(--text-strong);
}

.hero-chart-wrap {
  width: 100%;
  height: 270px;
  position: relative;
}
.hero-chart-container {
  width: 100%;
  height: 100%;
}

/* Top 24h Movers Card (mirrors TradingView "Major indices" card) */
.movers-card {
  padding: 16px 16px 12px;
}
.tv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.tv-card-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.1px;
}
.tv-head-meta {
  font-size: 10.5px;
  color: var(--muted);
}

.movers-list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mover-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 8px;
  margin: 0 -8px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.13s ease;
}
.mover-row:last-child { border-bottom: none; }
.mover-row:hover { background: var(--card-hover); }

.mover-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mover-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  background: #08090b;
  flex-shrink: 0;
}
.mover-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mover-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mover-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mover-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.mover-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.mover-price {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-strong);
}
.mover-chg {
  font-size: 11.5px;
  font-weight: 600;
}

.movers-foot {
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--divider);
}

.tv-link-btn {
  background: transparent;
  border: none;
  color: var(--blue-link);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
  transition: color 0.13s ease;
}
.tv-link-btn:hover { color: #8ab8ff; }

/* Section Header */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: -6px;
}
.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.2px;
}
.section-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.overview-loading {
  grid-column: 1 / -1;
  padding: 36px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* =====================================================================
   Profession Reagent Cards (Obsidian TradingView 2-Column Expandable)
   ===================================================================== */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start; /* Expanding a card drops only that card down cleanly */
}

.prof-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.16s ease;
}
.prof-card:hover {
  border-color: var(--border-strong);
}

.prof-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--divider);
  gap: 10px;
}
.prof-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.prof-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  flex-shrink: 0;
}
.prof-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.15;
}
.prof-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}
.prof-count {
  font-size: 10.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 8px;
  white-space: nowrap;
}

.prof-card-body {
  padding: 6px 12px 8px;
}

.mat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 0;
}

/* Smooth vertical expansion inside the exact same 2-column card */
.mat-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.mat-drawer-inner { overflow: hidden; }
.prof-card.expanded .mat-drawer { grid-template-rows: 1fr; }

/* Flat, crisp TradingView-style reagent row (no heavy nested boxes) */
.mat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 7px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--divider);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  min-width: 0;
  color: inherit;
  transition: background 0.13s ease;
}
.mat-item:hover {
  background: var(--card-hover);
}

.mat-icon-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #2e333e;
  background: #08090b;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.mat-item:hover .mat-icon-wrap {
  transform: scale(1.07);
}
.mat-icon-wrap.qb0 { border-color: #525866; }
.mat-icon-wrap.qb1 { border-color: #343a47; }
.mat-icon-wrap.qb2 { border-color: rgba(34, 197, 139, 0.55); }
.mat-icon-wrap.qb3 { border-color: rgba(77, 166, 255, 0.72); }
.mat-icon-wrap.qb4 { border-color: rgba(199, 125, 255, 0.75); }

.mat-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mat-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mat-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.mat-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mat-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  flex-shrink: 0;
}

.mat-changes {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  line-height: 1.1;
}

.chg-metric {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}
.chg-lbl {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 600;
}
.chg-val { font-weight: 600; }

/* Intuitive Expand / Collapse Footer Bar with Chevron */
.prof-expand-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  background: transparent;
  border: none;
  border-top: 1px solid var(--divider);
  color: var(--blue-link);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}
.prof-expand-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #8ab8ff;
}
.prof-chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.prof-card.expanded .prof-chevron {
  transform: rotate(180deg);
}

/* =====================================================================
   Right Sidebar (Watchlist / Top Farms — Chart View)
   ===================================================================== */
.sidebar {
  width: 325px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex-shrink: 0;
}
.sidebar-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding: 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.tab-btn.active { color: var(--text-strong); border-bottom-color: var(--blue); }

.tab-panel { display: none; flex: 1; flex-direction: column; min-height: 0; }
.tab-panel.active { display: flex; }

.list-header {
  display: grid;
  grid-template-columns: 1fr 66px 56px 50px;
  padding: 6px 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.farm-cols { grid-template-columns: 1fr 44px 62px; }

.list-body {
  flex: 1;
  overflow-y: auto;
}
.wl-row {
  display: grid;
  grid-template-columns: 1fr 66px 56px 50px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--divider);
  cursor: pointer;
  font-size: 12px;
}
.wl-row:hover { background: var(--panel-hover); }
.wl-row.active { background: rgba(41, 98, 255, 0.14); border-left: 2px solid var(--blue); }
.wl-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 6px; }

.farm-row {
  display: grid;
  grid-template-columns: 1fr 44px 62px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--divider);
  font-size: 12px;
}
.farm-sub { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Quality colors (tuned for high contrast on pure obsidian) */
.q0 { color: #9d9d9d; }
.q1 { color: #f0f2f5; }
.q2 { color: #36e84e; }
.q3 { color: #4da6ff; }
.q4 { color: #c77dff; }

/* =====================================================================
   Bottom Statusbar
   ===================================================================== */
.statusbar {
  height: 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.status-left, .status-right { display: flex; align-items: center; gap: 8px; }
.sep { color: var(--border-strong); }
.statusbar strong { color: var(--text); }
.mini-btn {
  background: #1a1d24;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  cursor: pointer;
}
.mini-btn:hover { background: #242832; }

/* =====================================================================
   Responsive Breakpoints
   ===================================================================== */
@media (max-width: 1180px) {
  .bento-top { grid-template-columns: 1fr; }
  .prof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .sidebar { width: 260px; }
  .search-wrap { width: 190px; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .mat-grid { grid-template-columns: 1fr; }
  .overview-pane { padding: 14px; }
}
