/* =========================================================
   Global reset & base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-body: #020617;
  --bg-body-soft: #020617;
  --bg-card: rgba(15, 23, 42, 0.96);
  --bg-card-soft: rgba(15, 23, 42, 0.8);
  --border-soft: rgba(148, 163, 184, 0.35);
  --accent: #38bdf8;
  --accent-2: #a855f7;
  --accent-3: #22c55e;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --radius-card: 1rem;
  --radius-pill: 9999px;
  --trans-fast: 120ms ease;
  --glass: rgba(15, 23, 42, 0.75);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, #1f2937 0, #020617 42%, #020617 100%),
    radial-gradient(circle at bottom, #0b1120 0, #020617 55%);
  min-height: 100vh;
}

/* Light mode (if you want it back) */
body:not(.dark) {
  background:
    radial-gradient(circle at top, #e0f2fe 0, #eef2ff 35%, #f9fafb 100%);
  color: #cfcfcf;
}
/* ===========================
   Toast Notifications
   =========================== */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 99999; /* Above modal blur */
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 0.7rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  font-size: 0.9rem;
  animation: toast-in 200ms ease-out;
}

.toast.error {
  border-color: #ef4444;
  color: #fca5a5;
}
.toast.success {
  border-color: #22c55e;
  color: #bbf7d0;
}

@keyframes toast-in {
  from { transform: translateY(-10px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.sim-contract {
  overflow: visible !important;
  max-height: none !important;
}

/* Make the inside lists scroll instead */
#sim-selected-list,
#sim-output-list {
  max-height: 40vh;
  overflow-y: auto;
}
/* =========================================================
   App shell / header / navigation
   ========================================================= */
.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.app-header h1 {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.5);
}

/* Navigation */
.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem;
  border-radius: 9999px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(14px);
}

.nav-btn {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background var(--trans-fast), border-color var(--trans-fast),
    color var(--trans-fast), transform 80ms ease;
}

.nav-btn:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
  border-color: rgba(148, 163, 184, 0.1);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.6);
}

/* Light theme tweaks */
body:not(.dark) .nav {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(148, 163, 184, 0.4);
}

body:not(.dark) .nav-btn {
  color: #4b5563;
}

body:not(.dark) .nav-btn.active {
  color: white;
}

/* =========================================================
   Sections & headings
   ========================================================= */
.section {
  display: none;
}

.section.active {
  display: block;
}

h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

/* =========================================================
   Cards & surfaces
   ========================================================= */

.card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border-radius: var(--radius-card);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-fast), box-shadow var(--trans-fast), border-color var(--trans-fast);
}

.card::before {
  content: "";
  position: absolute;
  inset: -120%;
  background:
    radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.15), transparent 50%),
    radial-gradient(circle at 100% 0, rgba(168, 85, 247, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

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

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}

/* Light mode card */
body:not(.dark) .card {
  background: white;
  border-color: #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
}

body:not(.dark) .card::before {
  display: none;
}

/* =========================================================
   Typography helpers
   ========================================================= */

.muted {
  color: var(--text-muted);
}

body:not(.dark) .muted {
  color: #6b7280;
}

.small {
  font-size: 0.8rem;
}

/* =========================================================
   Inputs & buttons
   ========================================================= */

.input {
  width: 100%;
  border-radius: 0.7rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7);
}
.input.modern {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(148,163,184,0.25);
  backdrop-filter: blur(6px);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  border-radius: 0.9rem;
  transition: 160ms ease;
}

.input.modern:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
  background: rgba(255,255,255,0.08);
}
body:not(.dark) .input {
  background: white;
  border-color: #d1d5db;
  color: #111827;
}
.contact-email {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}
.btn {
  border-radius: 0.9rem;
  border: 1px solid transparent;
  background: rgba(31, 41, 55, 0.9);
  color: var(--text-main);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: background var(--trans-fast), transform 80ms ease, box-shadow var(--trans-fast);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.7);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.btn-danger {
  background: linear-gradient(120deg, #f97373, #ef4444);
  color: white;
}

.btn-small {
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
}

.full-width {
  width: 100%;
  margin-top: 0.6rem;
}

/* =========================================================
   Fields / settings
   ========================================================= */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.field.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* =========================================================
   Simulator layout
   ========================================================= */

.sim-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.sim-search,
.sim-contract {
  flex: 1 1 340px;
}

.sim-search-bar {
  margin-bottom: 0.5rem;
}

/* Grade filter pills */
.sim-grade-filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 0.18rem 0.8rem;
  cursor: pointer;
  transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast),
    transform 80ms ease;
}

.pill:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.pill.active {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: white;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

/* Search grid */
.sim-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem;
  max-height: 380px;
  overflow-y: auto;
}

.sim-skin-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(30, 64, 175, 0.9);
  padding: 0.55rem 0.6rem;
  background: radial-gradient(circle at top, #020617, #020617 60%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.35rem;
  transition: transform 90ms ease, box-shadow 90ms ease, border-color 90ms ease;
}

.sim-skin-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(56, 189, 248, 0.35);
  border-color: rgba(59, 130, 246, 0.9);
}

.sim-skin-card-main {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sim-skin-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sim-skin-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.sim-skin-sub {
  font-size: 0.76rem;
}

/* Grade pill used everywhere */
.grade-pill {
  border-radius: 9999px;
  border-width: 1px;
  border-style: solid;
  padding: 0.05rem 0.55rem;
  font-size: 0.7rem;
  white-space: nowrap;
}

.sim-skin-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

/* Selected inputs & outputs */
.sim-selected-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.sim-input-card,
.sim-output-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(30, 64, 175, 0.85);
  padding: 0.5rem 0.6rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94));
}

.sim-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-input-header-left {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.sim-input-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.sim-input-sub {
  font-size: 0.75rem;
}

.sim-input-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.sim-input-float {
  margin-top: 0.35rem;
}

.sim-input-float input[type="range"] {
  width: 100%;
}

/* Contract footer */
.sim-contract-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.9rem;
}

#sim-output-list {
  max-height: 260px;
  overflow-y: auto;
}
#sim-selected-list {
  max-height: 260px;
  overflow-y: auto;
}
/* Skin thumbnails */
.skin-thumb {
  width: 56px;
  height: 40px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: radial-gradient(circle at top, #020617, #0b1120);
}

.skin-thumb-placeholder {
  opacity: 0.25;
}

/* =========================================================
   Collections page
   ========================================================= */

.collections-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.collection-card {
  padding: 0.9rem 1rem;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.collection-title h3 {
  margin: 0;
  font-size: 1rem;
}

.collection-pill {
  font-size: 0.75rem;
  padding: 0.12rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-muted);
}

/* collections grid */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.45rem;
  max-height: 19rem;
  overflow-y: auto;
}

.collection-item {
  border-radius: 0.8rem;
  border: 1px solid rgba(31, 41, 55, 0.9);
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top left, #020617, #020617 70%);
}

.collection-item-main {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.collection-thumb {
  width: 52px;
  height: 38px;
  border-radius: 0.5rem;
  object-fit: contain;
  background: radial-gradient(circle at top, #020617, #0b1120);
  flex-shrink: 0;
}

.collection-thumb-placeholder {
  opacity: 0.25;
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.item-name {
  font-size: 0.88rem;
  font-weight: 500;
}

.item-rarity-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.item-rarity {
  font-size: 0.75rem;
}

.item-float {
  font-size: 0.75rem;
}

.knife-badge {
  color: #facc15;
  font-weight: 600;
  font-size: 0.75rem;
}


.sim-footer-button {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
}
.sim-contract.contract-full {
  position: relative;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.7);
  border-color: transparent;
}

.sim-contract.contract-full::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, var(--accent-3), var(--accent-2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.9;
  pointer-events: none;
}

/* =========================================================
   Stats
   ========================================================= */

#stats-chart {
  margin-top: 0.75rem;
}
.ev-bar {
  margin-top: 0.4rem;
}

.ev-bar-label {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.ev-bar-track {
  position: relative;
  width: 100%;
  height: 0.6rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.ev-bar-fill {
  position: absolute;
  inset: 0;
  width: 50%; /* will be updated in JS */
  background: linear-gradient(90deg, #ef4444, #22c55e);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 160ms ease;
}

/* =========================================================
   Result card
   ========================================================= */

.result.hidden,
.hidden {
  display: none !important;
}

.result-header {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 95;
}
.sim-footer {
  position: sticky;
  bottom: 0;
  padding: 1rem 0;
  background: linear-gradient(to top, rgba(2,6,15,1), rgba(2,6,15,0));
  z-index: 20;
  display: flex;
  justify-content: center;
}
.sim-footer-button {
  width: 85%;
  max-width: 600px;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 95;
}

.modal,
.modal.hidden,
.modal-overlay.hidden {
  /* keep .hidden rule below */
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at top, #020617, #020617 65%);
  border-radius: 1.2rem;
  padding: 1.4rem 1.6rem 1.2rem;
  width: 96%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
}

.modal.hidden,
.modal-overlay.hidden {
  display: none !important;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #e5e7eb;
  cursor: pointer;
}

.modal-result-card.result-card {
  padding-top: 0.6rem;
}

/* Top bar */

.result-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.result-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.result-outcome-pill {
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  margin-right: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #22c55e, #4ade80);
  color: #022c22;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
}

.result-outcome-pill.loss {
  background: linear-gradient(120deg, #f97373, #ef4444);
  color: #450a0a;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.9);
}

.result-outcome-pill.neutral {
  background: linear-gradient(120deg, #6b7280, #9ca3af);
  color: #020617;
  box-shadow: none;
}

/* Layout: image + info */

.result-body {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  column-gap: 1.4rem;
  align-items: center;
}

@media (max-width: 640px) {
  .result-body {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }
}

.result-left {
  display: flex;
  justify-content: center;
}

.result-image-frame {
  width: 190px;
  height: 140px;
  border-radius: 1.1rem;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.3), #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.result-img {
  width: 170px;
  max-height: 120px;
  object-fit: contain;
  border-radius: 0.7rem;
}
.highlight-emerald {
  box-shadow: 0 0 30px 10px rgba(0,255,127,0.7);
  transition: box-shadow 1s ease-out;
}

.highlight-ruby {
  box-shadow: 0 0 30px 10px rgba(255,50,50,0.7);
  transition: box-shadow 1s ease-out;
}

.highlight-sapphire {
  box-shadow: 0 0 30px 10px rgba(50,100,255,0.7);
  transition: box-shadow 1s ease-out;
}

.highlight-bp {
  box-shadow: 0 0 30px 10px rgba(150,0,200,0.7);
  transition: box-shadow 1s ease-out;
}

.result-img.hidden {
  display: none;
}

.result-right {
  min-width: 0;
}

/* Text that shouldn't jump during animation */

.result-name {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  max-width: 100%;
  /* reserve space so different name lengths don't move layout */
  min-height: 2.5rem;
}

.result-main-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.result-wear {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.15rem 0.7rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Price / profit row */

.result-price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.result-price-block {
  flex: 1 1 120px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.95));
  border-radius: 0.9rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.result-price-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text-muted);
}

.result-price-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.result-profit-value {
  font-size: 1.05rem;
  font-weight: 600;
}

.result-profit-positive {
  color: #22c55e;
}

.result-profit-negative {
  color: #f97373;
}

.result-profit-neutral {
  color: var(--text-main);
}

/* Small meta row */

.result-submeta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

/* Bottom */

.result-reroll-btn {
  margin-top: 0.75rem;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
}

.result-history-summary {
  margin-top: 0.45rem;
  text-align: center;
}

.modal-result-card {
  padding-top: 1rem;
  border-radius: 3%;
}

.result-img {
  width: 200px;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

.result-header {
  display: flex;
  gap: 1rem;
}

.result-img {
  width: 160px;
  height: auto;
  border-radius: 0.9rem;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.6);
  object-fit: contain;
}

.result-img.hidden {
  display: none;
}
.output-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.3rem;
  font-size: 0.75rem;
}

.output-steam-link {
  color: var(--accent);
  text-decoration: none;
}

.output-steam-link:hover {
  text-decoration: underline;
}

/* =========================================================
   Misc
   ========================================================= */

.grade-select {
  font-size: 0.85rem;
}

.hidden-row {
  display: none;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .app {
    padding: 1rem;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-layout {
    flex-direction: column;
  }

  .collection-grid {
    max-height: none;
  }
}
