/* ═══════════════════════════════════════════════════
   Breeding Atlas — Palworld 1.0 Breeding Calculator
   Visual system: deep ink / slate layers with warm
   parchment/ivory text, jade actions, amber caveats.
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  color-scheme: dark;

  /* Canvas */
  --ink: #0a0e1a;
  --surface: #111827;
  --raised: #1a2332;
  --edge: #26304a;
  --edge-dim: #1e2840;

  /* Text */
  --text: #f0f4ff;
  --muted: #c8d0e0;
  --dim: #8892a8;

  /* Roles */
  --jade: #34d399;
  --jade-dark: #059669;
  --amber: #fbbf24;
  --amber-dark: #d97706;
  --coral: #fb7185;
  --coral-dark: #e11d48;
  --focus: #93c5fd;
  --focus-ring: #3b82f6;

  /* Spacing (4px base) */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Font */
  --font-display: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Elevation */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);

  /* Transition */
  --t-fast: 120ms ease;
  --t-med: 200ms ease;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 75% 50% at 20% 10%, rgba(52, 211, 153, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(147, 197, 253, 0.03) 0%, transparent 60%);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--jade);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: #6ee7b7;
}
a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

button {
  font: inherit;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════
   SHELL / APP CONTAINER
   ═══════════════════════════════════════════════════ */
.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gap-md) var(--gap-xl);
}

/* ═══════════════════════════════════════════════════
   COMPACT UTILITY HEADER
   ═══════════════════════════════════════════════════ */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
  border-bottom: 1px solid var(--edge);
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.brand svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  font-size: 0.75rem;
  color: var(--dim);
}

.badge {
  color: var(--jade);
  font-size: 0.75rem;
  font-weight: 600;
}

.top-links {
  display: flex;
  gap: var(--gap-md);
  font-size: 0.75rem;
}
.top-links a {
  color: var(--dim);
  transition: color var(--t-fast);
}
.top-links a:hover {
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   COMPACT HERO
   ═══════════════════════════════════════════════════ */
.hero {
  padding: var(--gap-xl) 0 var(--gap-lg);
  max-width: 640px;
}

.hero-compact {
  padding: var(--gap-md) 0 0;
}

.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 var(--gap-sm);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.hero p {
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin: 0 0 var(--gap-md);
  max-width: 520px;
  line-height: 1.5;
}

/* Trust strip */
.trust-strip {
  display: flex;
  gap: var(--gap-lg);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--dim);
}
.trust-strip span {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}
.trust-strip svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════
   TASK CHOICE CARDS
   ═══════════════════════════════════════════════════ */
.task-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.task-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: var(--gap-lg);
  cursor: pointer;
  transition: all var(--t-med);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  min-height: 140px;
}

.task-card:hover {
  border-color: var(--jade);
  background: rgba(52, 211, 153, 0.04);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.task-card:active {
  transform: translateY(0);
}

.task-card__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--jade);
  margin-bottom: var(--gap-xs);
}

.task-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.task-card p {
  font-size: 0.8rem;
  color: var(--dim);
  margin: 0;
  line-height: 1.45;
}

.task-card--active {
  border-color: var(--jade);
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 0 1px var(--jade);
}

/* ── Mode rail (compact, after card selected) ── */
.mode-rail {
  display: flex;
  gap: var(--gap-sm);
  margin-bottom: var(--gap-lg);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
}

.mode-rail-btn {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: var(--gap-sm) var(--gap-md);
  cursor: pointer;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--t-fast);
  min-height: 40px;
  flex-shrink: 0;
}

.mode-rail-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mode-rail-btn:hover {
  border-color: var(--edge-dim);
  color: var(--text);
  background: var(--raised);
}

.mode-rail-btn--active {
  border-color: var(--jade);
  color: var(--jade);
  background: rgba(52, 211, 153, 0.08);
}

/* ═══════════════════════════════════════════════════
   CALCULATOR WORKSPACE
   ═══════════════════════════════════════════════════ */
.workspace {
  display: grid;
  gap: var(--gap-lg);
}

/* ── Tool Card / Input Panel ── */
.tool-panel {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: var(--gap-lg);
}

.tool-panel h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 var(--gap-sm);
  font-family: var(--font-display);
}

.tool-panel .helper {
  font-size: 0.8rem;
  color: var(--dim);
  margin: 0 0 var(--gap-md);
}

/* ── Fields ── */
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-md);
}

.field {
  display: grid;
  gap: var(--gap-xs);
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ── Select / Input styling ── */
select,
input[type="text"],
input[type="search"],
.searchable-picker input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 0 var(--gap-md);
  background: var(--ink);
  color: var(--text);
  font: 0.9rem var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
.searchable-picker input:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select:hover,
input[type="text"]:hover,
input[type="search"]:hover,
.searchable-picker input:hover {
  border-color: var(--edge-dim);
}

/* ── Searchable picker enhancements ── */
.searchable-picker {
  position: relative;
}

.searchable-picker input {
  padding-right: 36px;
  border-radius: var(--r-md);
}

.searchable-picker input::placeholder {
  color: var(--dim);
}

/* Picker dropdown */
.searchable-picker ul {
  position: absolute;
  z-index: 100;
  width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: var(--raised);
  border: 1px solid var(--edge);
  border-radius: 0 0 var(--r-md) var(--r-md);
  list-style: none;
  margin: 0;
  padding: var(--gap-xs) 0;
  box-shadow: var(--shadow);
}

.searchable-picker ul[role="listbox"] {
  /* Using attribute selector for specificity */
}

.searchable-picker ul li[role="option"] {
  padding: var(--gap-sm) var(--gap-md);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background var(--t-fast);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
}

.searchable-picker ul li[role="option"]:hover,
.searchable-picker ul li[role="option"][aria-selected="true"] {
  background: rgba(147, 197, 253, 0.12);
}

/* ── Primary Button ── */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  min-height: 44px;
  padding: 0 var(--gap-lg);
  border: none;
  border-radius: var(--r-md);
  background: var(--jade);
  color: #05291e;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-fast);
  margin-top: var(--gap-md);
}

.primary:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(52, 211, 153, 0.25);
}

.primary:active {
  transform: translateY(0);
}

/* ── Secondary / Ghost buttons ── */
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-sm);
  min-height: 36px;
  padding: 0 var(--gap-md);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
}

.secondary:hover {
  border-color: var(--edge-dim);
  color: var(--text);
  background: var(--raised);
}

/* ═══════════════════════════════════════════════════
   LINEAGE EQUATION — A + B → C
   ═══════════════════════════════════════════════════ */
.lineage-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  padding: var(--gap-md) var(--gap-lg);
  flex-wrap: wrap;
}

.lineage-eq__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xs);
  min-width: 80px;
}

.lineage-eq__node .node-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--raised);
  border: 2px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.lineage-eq__node--parent-a .node-badge {
  border-color: var(--jade);
  color: var(--jade);
}

.lineage-eq__node--parent-b .node-badge {
  border-color: var(--focus-ring);
  color: var(--focus);
}

.lineage-eq__node--child .node-badge {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(251, 191, 36, 0.08);
}

.lineage-eq__node .node-label {
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-eq__node--parent-a .node-label {
  color: var(--jade);
}

.lineage-eq__node--parent-b .node-label {
  color: var(--focus);
}

.lineage-eq__node--child .node-label {
  color: var(--amber);
  font-weight: 700;
}

.lineage-eq__op {
  color: var(--dim);
  font-size: 1.2rem;
  font-weight: 300;
}

.lineage-eq__arrow {
  color: var(--jade);
  font-size: 1.4rem;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════
   RESULT CARD
   ═══════════════════════════════════════════════════ */
.result-section {
  margin-top: var(--gap-md);
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-md);
}

.result-card--success {
  border-color: rgba(52, 211, 153, 0.3);
}

.result-card--warning {
  border-color: rgba(251, 191, 36, 0.3);
}

.result-card--error {
  border-color: rgba(251, 113, 133, 0.3);
}

.result-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 var(--gap-sm);
  font-family: var(--font-display);
}

.result-card .result-detail {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 var(--gap-md);
  line-height: 1.5;
}

/* ── Pair list / Step list ── */
.pair-list {
  list-style: none;
  padding: 0;
  margin: var(--gap-md) 0;
  display: grid;
  gap: var(--gap-sm);
}

.pair-list li {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: var(--gap-sm) var(--gap-md);
  background: rgba(26, 35, 50, 0.5);
  border-radius: var(--r-md);
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--edge-dim);
  transition: border-color var(--t-fast);
}

.pair-list li:hover {
  border-color: var(--edge);
}

/* Step number */
.pair-list li .step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--edge);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--dim);
  flex-shrink: 0;
}

/* Connector graphic between steps */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  color: var(--edge-dim);
}

.step-connector svg {
  width: 16px;
  height: 16px;
}

/* ── Show more control ── */
.show-more {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-sm) 0;
  color: var(--jade);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--t-fast);
}

.show-more:hover {
  color: #6ee7b7;
}

.show-more svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast);
}

.show-more--expanded svg {
  transform: rotate(180deg);
}

/* ── Copy button ── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--gap-sm) var(--gap-md);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--raised);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--t-fast);
}

.copy-btn:hover {
  border-color: var(--jade);
  color: var(--jade);
  background: rgba(52, 211, 153, 0.08);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

/* ═══════════════════════════════════════════════════
   DATA CONFIDENCE STRIP (compact, subordinate)
   ═══════════════════════════════════════════════════ */
.data-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md);
  padding: var(--gap-sm) var(--gap-md);
  background: rgba(26, 35, 50, 0.4);
  border-radius: var(--r-md);
  font-size: 0.7rem;
  color: var(--dim);
  margin-top: var(--gap-md);
  align-items: center;
}

.data-strip__item {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
}

.data-strip__item svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.data-strip a {
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.data-strip a:hover {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   OWNED PALS CHIPS
   ═══════════════════════════════════════════════════ */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 2px var(--gap-sm) 2px var(--gap-sm);
  background: var(--raised);
  border: 1px solid var(--edge-dim);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: all var(--t-fast);
  cursor: default;
}

.chip:hover {
  border-color: var(--edge);
}

.chip__remove {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.7rem;
  padding: 0;
  line-height: 1;
  transition: all var(--t-fast);
}

.chip__remove:hover {
  background: var(--coral);
  color: #fff;
}

/* ═══════════════════════════════════════════════════
   ROUTE GRAPH — steps with connector lines
   ═══════════════════════════════════════════════════ */
.route-graph {
  display: grid;
  gap: 0;
  margin: var(--gap-md) 0;
}

.route-step {
  display: flex;
  align-items: stretch;
  gap: var(--gap-md);
}

.route-step__line {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
}

.route-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--raised);
  border: 2px solid var(--jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--jade);
  z-index: 1;
  flex-shrink: 0;
}

.route-step__connector {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--jade-dark), var(--edge-dim));
  min-height: 24px;
}

.route-step:last-child .route-step__connector {
  display: none;
}

.route-step__content {
  flex: 1;
  padding: var(--gap-xs) 0 var(--gap-md);
}

.route-step__equation {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.route-step__equation .pal-name {
  font-weight: 600;
}

.route-step__equation .op {
  color: var(--dim);
}

.route-step__equation .arrow {
  color: var(--jade);
}

/* ═══════════════════════════════════════════════════
   METHOD / CAVEATS (collapsed / subordinate)
   ═══════════════════════════════════════════════════ */
.method-section {
  margin-top: var(--gap-xl);
  border-top: 1px solid var(--edge);
  padding-top: var(--gap-lg);
}

.method-summary {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  cursor: pointer;
  color: var(--dim);
  font-size: 0.8rem;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--t-fast);
}

.method-summary:hover {
  color: var(--muted);
}

.method-summary svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-med);
}

.method-summary[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.method-detail {
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.6;
  margin-top: var(--gap-sm);
  max-width: 620px;
}

.method-detail a {
  color: var(--dim);
  text-decoration: underline;
}

.method-detail a:hover {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  margin-top: var(--gap-xl);
  padding: var(--gap-lg) 0;
  border-top: 1px solid var(--edge);
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
}

.footer p {
  margin: 0 0 var(--gap-sm);
}

.footer nav {
  display: flex;
  justify-content: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

.footer a {
  color: var(--dim);
  transition: color var(--t-fast);
}
.footer a:hover {
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — 375px → 768px → 1280px+
   ═══════════════════════════════════════════════════ */

/* Mobile first: ≤ 640px */
@media (max-width: 640px) {
  .shell {
    padding: 0 var(--gap-md) var(--gap-lg);
  }

  .top {
    padding: var(--gap-sm) 0;
  }

  .brand {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .top-meta {
    font-size: 0.65rem;
    gap: var(--gap-sm);
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding: var(--gap-md) 0 var(--gap-md);
  }

  .hero h1 {
    font-size: 1.4rem;
  }

  .task-cards {
    grid-template-columns: 1fr;
    gap: var(--gap-sm);
  }

  .task-card {
    min-height: auto;
    padding: var(--gap-md);
    flex-direction: row;
    align-items: center;
  }

  .task-card__text {
    flex: 1;
  }

  .task-card__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
  }

  .task-card h3 {
    font-size: 0.85rem;
  }

  .task-card p {
    font-size: 0.75rem;
  }

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

  .mode-rail {
    gap: var(--gap-xs);
    margin-left: calc(-1 * var(--gap-md));
    margin-right: calc(-1 * var(--gap-md));
    padding: var(--gap-xs) var(--gap-md);
  }

  .lineage-eq {
    padding: var(--gap-sm);
    gap: var(--gap-sm);
  }

  .lineage-eq__node .node-badge {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }

  .lineage-eq__node .node-label {
    font-size: 0.65rem;
    max-width: 72px;
  }

  .lineage-eq__op {
    font-size: 1rem;
  }

  .lineage-eq__arrow {
    font-size: 1.1rem;
  }

  .result-card {
    padding: var(--gap-md);
  }

  .route-step__equation {
    font-size: 0.8rem;
  }

  .data-strip {
    font-size: 0.65rem;
    padding: var(--gap-sm);
  }

  .footer nav {
    gap: var(--gap-md);
    flex-direction: column;
    align-items: center;
  }

  .trust-strip {
    gap: var(--gap-md);
  }
}

/* Tablet: 641–1024px */
@media (min-width: 641px) and (max-width: 1024px) {
  .task-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-sm);
  }

  .task-card {
    padding: var(--gap-md);
    min-height: 120px;
  }
}

/* ═══════════════════════════════════════════════════
   UTILITY / MISC
   ═══════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.no-match {
  color: var(--dim);
  font-size: 0.85rem;
  padding: var(--gap-md) !important;
  cursor: default !important;
}

.hidden {
  display: none !important;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--edge);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--edge-dim);
}

/* ── Selection ── */
::selection {
  background: rgba(52, 211, 153, 0.2);
  color: var(--text);
}
