:root {
  --bg-deep: #040714;
  --bg-card: rgba(13, 21, 46, 0.86);
  --bg-card-hover: rgba(20, 32, 68, 0.94);
  --border-glow: rgba(0, 240, 255, 0.25);
  --border-gold: rgba(255, 193, 7, 0.35);
  --cyan: #00f0ff;
  --gold: #ffc107;
  --violet: #9d4edd;
  --emerald: #10b981;
  --rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --glass-blur: blur(8px);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(circle at 50% 18%, rgba(0, 240, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 193, 7, 0.08), transparent 45%);
  color: var(--text-main);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Devanagari', sans-serif;
  overflow-x: hidden;
  line-height: 1.5;
}

#universe-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

html, body {
  background-image:
    radial-gradient(circle at 50% 24%, rgba(0, 240, 255, 0.22), transparent 48%),
    radial-gradient(circle at 50% 24%, rgba(255, 193, 7, 0.16), transparent 62%),
    radial-gradient(circle at 18% 82%, rgba(157, 78, 221, 0.14), transparent 50%);
}

body.mode-3d {
  background-image:
    radial-gradient(circle at 50% 18%, rgba(0, 240, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 193, 7, 0.08), transparent 45%);
}

#app-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(4, 7, 20, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glow);
  gap: 10px;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.brand-orb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--cyan), #0b1942 70%);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--gold);
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-size: 15px;
}

.brand-title {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  background: linear-gradient(90deg, #ffffff, var(--cyan), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-select, .icon-btn {
  background: rgba(15, 25, 55, 0.92);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-select:focus, .icon-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.global-search-bar {
  padding: 10px 16px;
  background: rgba(8, 13, 34, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-input-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 11px 44px 11px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-glow);
  background: rgba(4, 7, 20, 0.92);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 193, 7, 0.25);
}

.search-clear {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--cyan);
  font-size: 16px;
  cursor: pointer;
}

.main-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 96px;
  flex: 1;
}

.hero-welcome {
  text-align: center;
  padding: 24px 10px 28px;
  animation: fadeUp 0.5s ease;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 15%, var(--cyan) 55%, var(--gold) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.core-controls-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.core-status-pill {
  font-size: 11px;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.role-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  opacity: 0.6;
}

.role-card:hover, .role-card:active {
  transform: translateY(-3px);
  background: var(--bg-card-hover);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 240, 255, 0.16);
}

.role-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
}

.role-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.role-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.role-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
}

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

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.field-input, .field-select, .field-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 9, 25, 0.92);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--cyan);
}

.btn-primary {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary:hover {
  box-shadow: 0 0 18px rgba(0, 198, 255, 0.45);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #040714;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cyan);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-outline.active {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--cyan);
  color: #fff;
}

.teacher-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.teacher-card {
  min-width: 175px;
  background: rgba(9, 15, 36, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.teacher-card.selected {
  border-color: var(--gold);
  background: rgba(255, 193, 7, 0.12);
  box-shadow: 0 0 16px rgba(255, 193, 7, 0.2);
}

.avatar-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 8px;
  border: 2px solid var(--cyan);
  background: radial-gradient(circle, rgba(0,240,255,0.2), transparent);
}

.classroom-box {
  background: rgba(3, 6, 18, 0.9);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px;
}

.chat-stream {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding-right: 4px;
}

.msg-bubble {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 90%;
}

.msg-ai {
  background: rgba(16, 28, 64, 0.94);
  border-left: 3px solid var(--cyan);
  align-self: flex-start;
}

.msg-user {
  background: rgba(255, 193, 7, 0.15);
  border-right: 3px solid var(--gold);
  align-self: flex-end;
}

.voice-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
}

.voice-wave span {
  width: 3px;
  height: 12px;
  background: var(--cyan);
  border-radius: 2px;
  animation: wave 0.8s infinite ease-in-out;
  animation-play-state: paused;
}

.voice-wave span:nth-child(2) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; }

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

.stat-card {
  background: rgba(8, 14, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
}

.stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan);
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.quiz-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 20, 45, 0.88);
  color: #fff;
  cursor: pointer;
  font-size: 13.5px;
}

.quiz-opt.correct {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.22);
}

.quiz-opt.wrong {
  border-color: var(--rose);
  background: rgba(244, 63, 94, 0.22);
}

.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(4, 7, 20, 0.95);
  border-top: 1px solid var(--border-glow);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px;
}

.dock-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 10px;
}

.dock-item.active {
  color: var(--cyan);
}

.dock-item span.ico {
  font-size: 18px;
}

.badge-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan);
  margin-right: 6px;
  margin-bottom: 4px;
}

.honesty-note {
  font-size: 11.5px;
  color: #cbd5e1;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  :root {
    --glass-blur: none;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave {
  0%, 100% { height: 5px; }
  50% { height: 15px; }
}

/* ================= V2 additions ================= */
[hidden] { display: none !important; }
#universe-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
body { padding-bottom: env(safe-area-inset-bottom); }
.brand-sub { font-size: 10px; color: var(--cyan); letter-spacing: 0.6px; }
.muted { font-size: 13px; color: var(--text-muted); }
.section-h { font-size: 16px; color: var(--cyan); margin-bottom: 12px; letter-spacing: 0.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form { display: flex; gap: 8px; margin: 10px 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-box { background: rgba(0,240,255,0.08); border: 1px solid var(--border-glow); border-radius: 12px; padding: 12px; margin-bottom: 14px; font-size: 13px; white-space: pre-line; }
.row-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: rgba(255,255,255,0.04); border-radius: 10px; margin-bottom: 6px; font-size: 13px; gap: 8px; }
.row-item .due { color: var(--gold); font-size: 12px; white-space: nowrap; }
.skeleton { color: var(--text-muted); text-align: center; padding: 28px; }
.ctx-panel { padding: 14px; margin-bottom: 0; }
#ctx { max-width: 900px; margin: 0 auto; width: 100%; padding: 0 16px; }
.t-name { font-weight: 700; font-size: 13.5px; color: #fff; }
.t-sub { font-size: 11.5px; color: var(--cyan); margin: 2px 0; }
.t-style { font-size: 11px; color: var(--text-muted); }
.class-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.typing { opacity: .6; }
.lesson-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 12px; }
.lesson-tabs button { white-space: nowrap; }
.lesson-card { background: rgba(6,11,28,0.88); border: 1px solid var(--border-glow); border-radius: 14px; padding: 16px; }
.lesson-title { font-size: 18px; color: #fff; margin-bottom: 6px; }
.note-row { padding: 8px 10px; background: rgba(255,255,255,0.04); border-radius: 8px; margin-bottom: 6px; font-size: 13px; }
.quiz-wrap { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; }
.quiz-q { margin-bottom: 14px; }
.quiz-qt { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.quiz-exp { font-size: 12.5px; padding: 10px; border-radius: 8px; background: rgba(0,240,255,0.1); border-left: 3px solid var(--cyan); margin-top: 6px; }
.search-drawer { max-width: 900px; margin: 0 auto; }
.search-card { background: rgba(10,16,40,0.96); border: 1px solid var(--gold); border-radius: 14px; padding: 12px; margin-top: 8px; }
.search-meta { font-size: 12px; color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.search-hit { padding: 8px; border-bottom: 1px solid rgba(255,255,255,0.08); cursor: pointer; font-size: 13px; }
.msg-bubble { content-visibility: auto; contain-intrinsic-size: auto 60px; }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; max-width: 92vw; background: #0b1530; border: 1px solid var(--cyan); color: #fff; font-size: 13px; padding: 10px 14px; border-radius: 12px; display: flex; gap: 12px; align-items: center; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: var(--gold); color: #111; border: 0; border-radius: 8px; padding: 5px 10px; font-weight: 700; cursor: pointer; }
.main-container { padding-bottom: 96px; }
.voice-wave.speaking span { animation-play-state: running; }

/* Mobile / low-power: no glows, no entrance animations, no blur — lightweight by default */
@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
  .fade-up, .glass-panel, .role-card { animation: none !important; }
  .top-nav, .bottom-dock { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

.brand-title, .icon-btn, .pill-select { white-space: nowrap; }
.brand-box { min-width: 0; }
@media (max-width: 420px) {
  .top-nav { padding: 10px 10px; gap: 6px; }
  .brand-title { font-size: 13px; letter-spacing: 0.4px; }
  .brand-sub { font-size: 9px; }
  .brand-orb { width: 30px; height: 30px; }
  .nav-controls { gap: 5px; }
  .pill-select, .icon-btn { padding: 6px 9px; font-size: 11.5px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: rgba(0,240,255,0.1); border: 1px solid var(--border-glow); color: var(--cyan); border-radius: 999px; padding: 6px 11px; font-size: 12px; cursor: pointer; text-align: left; }
.chip:active { background: rgba(0,240,255,0.25); }
.msg-bubble pre.code { background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 8px 10px; margin: 6px 0; overflow-x: auto; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; }
.msg-bubble code { background: rgba(255,255,255,0.1); padding: 1px 5px; border-radius: 4px; font: 12px ui-monospace, Menlo, Consolas, monospace; }

.cat-card { background: rgba(6,11,28,0.88); border: 1px solid var(--border-glow); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.cat-card.open { border-color: var(--gold); }
.cat-head { display: flex; justify-content: space-between; gap: 10px; cursor: pointer; align-items: flex-start; font-size: 14px; }
.src { display: inline-block; font-size: 11.5px; border-radius: 8px; padding: 3px 8px; margin: 2px 0; text-decoration: none; }
.src.ok { background: rgba(0,255,150,0.12); color: #6dffb8; border: 1px solid rgba(0,255,150,0.35); }
.src.warn { background: rgba(255,193,7,0.12); color: var(--gold); border: 1px solid rgba(255,193,7,0.4); }
.src.none { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.15); }
.path { background: rgba(0,240,255,0.06); border: 1px solid var(--border-glow); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.path ol { margin: 6px 0 0 18px; padding: 0; } .path li { margin-bottom: 8px; }
.goal-box { background: rgba(255,193,7,0.1); border: 1px solid rgba(255,193,7,0.4); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; }
.bottom-dock .dock-item { flex: 1 1 0; min-width: 0; padding-left: 2px; padding-right: 2px; font-size: 10.5px; text-align: center; }
.bottom-dock .dock-item span:last-child { overflow-wrap: anywhere; line-height: 1.15; }

/* BRAHMASTRA AI V3.0 mastery & timed mock exam styles */
.mastery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}
.exam-timer-box{padding:8px 14px;border-radius:10px;background:rgba(255,215,90,.12);border:1px solid rgba(255,215,90,.35);font-variant-numeric:tabular-nums;font-weight:700}
.exam-result-card{padding:14px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);margin-top:10px}
.mistake-item{padding:10px;border-radius:10px;background:rgba(225,139,132,.08);border:1px solid rgba(225,139,132,.25);margin-top:8px}
.quiz-opt.active{outline:2px solid var(--gold,#ffd55a)}

/* Global open-learning library */
.resource-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px;margin-top:12px}
.resource-grid .cat-card{min-width:0;padding:12px}
.resource-grid .src{display:inline-flex;margin-top:8px;max-width:100%;overflow-wrap:anywhere}
