:root {
  --bg: #f4f2f9;
  --ink: #13101e;
  --muted: #6b6478;
  --line: #dcd6ec;
  --purple: #522398;
  --purple-2: #2e1260;
  --purple-light: #7b3dc4;
  --gold: #d4a017;
  --gold-light: #f5e484;
  --surface: #fff;
  --soft: #ede8f8;
  --teal: #2b9aaa;
  --shadow-sm: 0 2px 8px rgba(31,18,60,.07);
  --shadow: 0 8px 24px rgba(31,18,60,.10);
  --radius: 10px;
  --radius-sm: 7px;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; }
body { color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
.shell { max-width: 1520px; margin: 0 auto; padding: 24px 28px; }
header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 20px; border-bottom: 2px solid var(--purple); margin-bottom: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { width: 72px; height: 58px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(31,18,60,.16)); }
h1 { font-size: clamp(30px,3.2vw,48px); line-height: 1; color: var(--purple-2); letter-spacing: 0; }
.subtitle, .panel-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tab, button {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--purple-2);
  min-height: 36px; padding: 0 12px; cursor: pointer; font-weight: 760; font-size: 13px;
}
.tab.active, button:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.danger-button {
  color: #8f1d1d;
  border-color: #e7b7b7;
}
.danger-button:hover {
  background: #b42323;
  border-color: #b42323;
  color: #fff;
}
.view { display: none; }
.view.active { display: block; }
.hub-hero {
  display: flex; align-items: end; justify-content: space-between; gap: 18px;
  padding: 28px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, #281154 0%, var(--purple) 62%, #7f4dc2 100%);
  box-shadow: var(--shadow);
}
.hub-hero h2 { color: #fff; font-size: clamp(27px, 4vw, 46px); line-height: 1.04; max-width: 720px; }
.hub-hero p:last-child { max-width: 620px; margin-top: 12px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.82); }
.hub-hero .eyebrow { color: var(--gold-light); }
.hub-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; font-weight: 800; color: #fff; }
.hub-status span { width: 9px; height: 9px; border-radius: 50%; background: #71e6a2; box-shadow: 0 0 0 4px rgba(113,230,162,.16); }
.hub-section { margin-top: 24px; }
.hub-section--future { margin-top: 16px; }
.hub-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.hub-section-head .eyebrow { margin-bottom: 5px; }
.hub-section-head h2 { color: var(--purple-2); font-size: 21px; }
.hub-section-head > p { max-width: 340px; color: var(--muted); font-size: 13px; line-height: 1.45; text-align: right; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hub-section .hub-grid { margin-top: 0; }
.hub-card {
  width: 100%; min-height: 146px; display: flex; align-items: center; gap: 16px; padding: 20px;
  text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow-sm); color: var(--ink);
}
button.hub-card:hover { transform: translateY(-2px); background: #fff; color: var(--ink); border-color: var(--purple-light); box-shadow: var(--shadow); }
.hub-card-live { cursor: pointer; }
.hub-card-soon { opacity: .72; cursor: default; }
.hub-icon { width: 54px; height: 54px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--purple); color: #fff; font-size: 16px; font-weight: 900; letter-spacing: -.03em; }
.hub-icon-gold { background: var(--gold); color: #2f1c01; }
.hub-icon-soft { background: var(--soft); color: var(--purple); }
.hub-card-copy { min-width: 0; display: grid; gap: 6px; }
.hub-card-copy strong { font-size: 17px; color: var(--purple-2); }
.hub-card-copy small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.hub-arrow { margin-left: auto; color: var(--purple); font-size: 25px; font-weight: 700; }
.hub-badge { margin-left: auto; align-self: flex-start; padding: 4px 7px; border-radius: 999px; background: var(--soft); color: var(--purple); text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.hub-footnote { margin: 16px 2px 0; color: var(--muted); font-size: 11.5px; }
.app-directory-shell { max-width: 1240px; padding-top: 10px; }
.directory-header { justify-content: center; padding: 0 0 14px; border: 0; margin: 0; }
.directory-header .brand { gap: 12px; }
.directory-header .brand-logo { width: 84px; height: 70px; }
.directory-header h1 { font-size: clamp(36px, 4vw, 56px); letter-spacing: -.04em; text-transform: uppercase; }
.directory-header .subtitle { margin-top: 2px; font-size: 11px; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.directory-view-tabs { justify-content: center; margin: 13px 0 20px; }
.directory-view-tabs .tab { min-height: 30px; font-size: 11px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; }
.app-card { position: relative; min-height: 276px; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 16px 20px 18px; border: 3px solid #118e88; border-radius: 17px; background: #fff; color: #087f7a; text-align: center; box-shadow: 0 3px 8px rgba(13,56,64,.13); overflow: hidden; }
button.app-card { cursor: pointer; }
button.app-card:hover { color: #087f7a; background: #f8fffe; transform: translateY(-2px); border-color: #087f7a; box-shadow: 0 7px 18px rgba(13,56,64,.2); }
.app-card img { display: block; width: min(100%, 286px); height: 180px; margin-bottom: 13px; object-fit: cover; object-position: center 25%; }
.app-card strong { color: #087f7a; font-size: 18px; line-height: 1.15; }
.app-card small { max-width: 310px; margin-top: 6px; color: #64646c; font-size: 12.5px; line-height: 1.45; }
.app-card--soon { opacity: .86; }
.app-card--soon > span { position: absolute; top: 11px; right: 12px; padding: 3px 7px; border-radius: 999px; background: #e5f3f1; color: #087f7a; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.app-card--accent { border-color: #191919; background: #f3ffff; }
.app-card--data { justify-content: center; background: repeating-linear-gradient(0deg, #fff 0 22px, #edf2f2 23px 24px); }
.app-card--data::before { content: "1.975841\A  2.83185\A  1.95331\A  3.05941\A  2.89862"; white-space: pre; width: 78%; margin-bottom: 22px; padding: 10px; border: 1px solid #ddd; color: #575e61; background: rgba(255,255,255,.83); font: 9px/1.65 ui-monospace, monospace; text-align: left; }
.welcome-band {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.welcome-copy h2 {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--purple-2);
  margin-bottom: 8px;
}
.welcome-copy p:last-child {
  color: #3f394c;
  font-size: 15px;
  line-height: 1.65;
  max-width: 780px;
}
.welcome-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
  align-content: stretch;
}
.welcome-metrics div {
  min-width: 0;
  border: 1px solid #e4dced;
  border-radius: var(--radius-sm);
  background: #fbfaf7;
  padding: 16px;
}
.welcome-metrics span {
  display: block;
  color: var(--purple);
  font-size: 11px;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}
.welcome-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.welcome-metrics p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
h2 { font-size: 16px; font-weight: 760; color: var(--purple-2); margin-bottom: 4px; letter-spacing: -.2px; }
.toolbar { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search, select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; height: 36px; padding: 0 12px;
  color: var(--ink); font-size: 13px;
}
.velo-filter {
  display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}
.velo-filter-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.velo-range { position: relative; width: 112px; height: 20px; }
.velo-range::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 3px;
  border-radius: 999px; background: #d8cfed;
}
.velo-range input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 20px; margin: 0;
  appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none;
  z-index: 1;
}
.velo-range input[type="range"]::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; pointer-events: auto;
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
  background: var(--purple); box-shadow: 0 0 0 1px rgba(80,45,128,.35);
}
.velo-range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid #fff; background: var(--purple); box-shadow: 0 0 0 1px rgba(80,45,128,.35);
}
.velo-box {
  width: 48px; height: 26px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--ink); font-size: 12px; font-weight: 700; text-align: center;
}
.velo-filter-dash { color: var(--muted); font-weight: 800; }
.tilt-range { width: 132px; }
.tilt-value {
  min-width: 38px; color: var(--ink); font-size: 12px; font-weight: 800; text-align: center;
}
.search { min-width: 220px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 1200px; }
th, td { padding: 10px 9px; text-align: left; border-bottom: 1px solid #f0eaf8; font-size: 12.5px; white-space: nowrap; }
th {
  position: sticky; top: 0; z-index: 1; background: #f8f5ff; color: #5a5270;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; user-select: none;
}
tbody tr:hover { background: #faf7ff; }
.player-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.roster-shot {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #ede8f8;
  border: 1px solid rgba(82,35,152,.18);
}
.roster-shot-fallback {
  display: grid;
  place-items: center;
  color: var(--purple);
  font-size: 10px;
  font-weight: 860;
}
.player-name { font-weight: 800; color: var(--purple); cursor: pointer; text-decoration: none; border-bottom: 1px dashed var(--purple-light); }
.player-status { color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.status-missing { color: #9a6a00; font-weight: 760; }
.metric-pill { border-radius: 5px; padding: 2px 7px; display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; text-align: center; font-weight: 700; line-height: 1.25; vertical-align: middle; }
.pill-pct { display: block; font-size: 9px; font-weight: 800; line-height: 1; opacity: .75; margin-top: 2px; padding-top: 2px; border-top: 1px solid rgba(0,0,0,.18); width: 100%; }
.pill-na { background: #ede8f8; color: #9a8ab8; font-weight: 600; }
.strength-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 760; color: var(--ink); white-space: nowrap; }
.strength-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.15); }
.strength-sep { color: var(--muted); margin: 0 5px; font-weight: 400; }
.strength-none { color: var(--muted); font-size: 12px; }
.col-strengths { white-space: nowrap; min-width: 140px; }
.cards-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.know-page-panel {
  margin-top: 0;
  border: 1px solid #e3dcf2;
  border-radius: var(--radius);
  padding: 16px;
}
.mini-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; box-shadow: var(--shadow-sm); }
.mini-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; min-width: 0; }
.mini-card-shot {
  width: 54px;
  height: 54px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(82,35,152,.18);
  background: #ede8f8;
}
.mini-card h3 { font-size: 15px; color: var(--purple); margin-bottom: 4px; }
.mini-card .meta { color: var(--muted); font-size: 11.5px; margin-bottom: 10px; }
.modal-overlay { position: fixed; inset: 0; background: rgba(20,12,40,.45); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(100vw,1840px); max-width: none; height: 100dvh;
  background: #fbfaf7; box-shadow: -8px 0 32px rgba(20,12,40,.18); transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1); z-index: 101; display: flex; flex-direction: column; min-width: 0;
}
.modal-panel.open { transform: translateX(0); }
.modal-header {
  padding: 14px 20px 12px; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg,var(--purple-2) 0%,var(--purple) 100%); color: #fff;
}
.modal-header h3 { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; }
.modal-meta { font-size: 12px; opacity: .75; margin-top: 4px; }
.modal-close {
  background: rgba(255,255,255,.18); border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
  font-size: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.modal-body {
  padding: 14px;
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.player-sheet-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(500px, 1.08fr) minmax(560px, 1.28fr);
  gap: 10px;
  align-items: start;
  max-width: 1510px;
  margin: 0 auto;
  min-width: 0;
}
.player-sheet-panel { background: #fff; border: 1.5px solid var(--teal); min-height: 0; overflow: visible; padding: 12px; min-width: 0; }
.bio-hero {
  min-height: 150px; margin: -12px -12px 0; background: linear-gradient(135deg,#3b246c,#d0a61c);
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.hero-logo { width: 108px; height: 84px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,.25)); }
.player-hero-shot {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.bio-name { margin-top: 18px; text-align: center; font-size: 24px; font-weight: 860; color: #111; line-height: 1.05; }
.bio-meta { margin-top: 8px; text-align: center; color: #333; font-size: 13px; line-height: 1.45; font-weight: 600; }
.trackman-strip { margin-top: 10px; background: #d7d7d7; color: #111; display: grid; grid-template-columns: repeat(3,minmax(0,auto)); justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12px; font-weight: 860; }
.basic-stats { margin-top: 18px; border-top: 2px solid #222; padding-top: 8px; display: grid; gap: 0; }
.basic-stat-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 6px 4px; border-bottom: 1px solid #ece8f4; font-size: 13px; }
.basic-stat-row span:first-child { color: #34303d; font-weight: 760; }
.basic-stat-row span:last-child { color: #111; font-weight: 860; }
.percentile-title, .chart-title { text-align: center; color: #262626; font-size: 20px; line-height: 1.05; font-weight: 860; margin: 0 0 7px; }
.dot-rule { text-align: center; color: var(--teal); letter-spacing: .16em; font-weight: 900; margin-bottom: 9px; }
.rank-card { position: relative; display: grid; grid-template-columns: 108px minmax(210px,1fr) 66px; gap: 8px; align-items: center; padding: 5px 0; min-height: 32px; border-bottom: 1px dashed rgba(43,154,170,.55); }
.rank-card .r-label { color: #6a6473; font-size: 12.5px; line-height: 1.05; font-weight: 860; text-align: right; }
.rank-main { min-width: 0; }
.rank-track { height: 22px; background: #dbeeee; position: relative; overflow: hidden; }
.rank-track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, rgba(25,110,124,.92) 0 4px, transparent 4px 7px); box-shadow: 0 0 0 1px rgba(255,255,255,.35); z-index: 1; }
.rank-fill { display: block; height: 100%; min-width: 3px; }
.r-percent { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; padding: 0; font-size: 12px; font-weight: 900; z-index: 2; }
.rank-card .r-val { font-size: 13px; line-height: 1; font-weight: 860; color: #555; text-align: right; }
.movement-panel {
  min-height: 0;
}
.know-panel { grid-column: 1 / -1; margin-top: 22px; }
.plot-image { width: 100%; max-width: 100%; display: block; background: #fff; border: 1px solid #ece8f4; }
.movement-panel .plot-image { max-height: 590px; object-fit: contain; }
.know-title { text-align: left; margin-bottom: 4px; }
.know-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.know-header-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.know-shot-frame {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: #ede8f8;
  border: 1px solid rgba(82,35,152,.18);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.know-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.know-shot-fallback {
  color: var(--purple);
  font-size: 11px;
  font-weight: 860;
}
.know-subtitle,
.know-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.know-note { margin-top: 8px; }
.know-split-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f3eefb;
  border: 1px solid #ddd2f1;
}
.know-split-button {
  min-height: 32px;
  border-radius: 999px;
  border: none;
  padding: 0 12px;
  background: transparent;
  color: var(--purple-2);
}
.know-split-button.active,
.know-split-button:hover {
  background: var(--purple);
  color: #fff;
}
.know-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.know-table { min-width: 980px; }
.know-table th,
.know-table td { padding: 8px 10px; font-size: 12px; }
.know-pitch-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #231f31;
}
.know-pitch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  flex-shrink: 0;
}
.know-heatmaps-image { margin-top: 12px; }
.know-total-row td { border-top: 2px solid var(--line); font-weight: 700; }
.know-table td[data-tooltip] { position: relative; cursor: default; }
.know-table td[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a2e;
  color: #fff;
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.35;
  max-width: 320px;
  min-width: 210px;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 200;
}
.know-table tr:first-child td[data-tooltip]::after {
  bottom: auto;
  top: calc(100% + 5px);
}
.know-table td[data-tooltip]:hover::after { opacity: 1; }
.pitch-table-wrap { margin-top: 6px; overflow: auto; border: 1px solid var(--line); max-height: 104px; }
.pitch-table { min-width: 360px; }
.pitch-table th,
.pitch-table td { padding: 6px 7px; font-size: 11px; }
.retag-chart {
  height: 680px;
  min-height: 680px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.retag-status { margin-bottom: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.retag-lock {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  padding: 18px;
}
.retag-lock.hidden,
.retag-content.locked {
  display: none;
}
.retag-lock-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.retag-lock-error {
  grid-column: 1 / -1;
  min-height: 16px;
  color: #b42323;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 1100px) {
  header { align-items: flex-start; flex-direction: column; }
  .welcome-band { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .player-sheet-grid { grid-template-columns: 1fr; }
  .know-panel { grid-column: auto; }
  .player-sheet-panel { max-height: none; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { padding: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .welcome-band { padding: 18px; }
  .welcome-metrics { grid-template-columns: 1fr; }
  .toolbar { display: block; }
  .retag-lock { grid-template-columns: 1fr; }
  .retag-lock-form { align-items: stretch; flex-direction: column; }
  .filters { margin-top: 10px; }
  .brand-logo { width: 58px; }
  .hub-hero { align-items: flex-start; flex-direction: column; padding: 22px; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-section-head { align-items: flex-start; flex-direction: column; }
  .hub-section-head > p { text-align: left; }
  .app-directory-shell { padding: 10px 16px 24px; }
  .directory-header .brand-logo { width: 62px; height: 52px; }
  .directory-header h1 { font-size: 34px; }
  .directory-view-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .app-grid { grid-template-columns: 1fr; gap: 16px; }
}
