:root {
  color-scheme: light dark;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #0f172a;
  color: #f8fafc;
  --leaf-card-bg: rgba(51, 65, 85, 0.46);
  --leaf-card-border: rgba(100, 116, 139, 0.38);
  --leaf-card-hover: rgba(30, 41, 59, 0.68);

  /* Checkride colour palette */
  --cr-yellow:      #d4b140;   /* brand accent — dominant data, highlights, links */
  --cr-neutral:     #64748b;   /* secondary data bars, neutral states */
  --cr-neutral-mid: #475569;   /* tertiary data bars */
  --cr-neutral-dim: #334155;   /* quaternary data bars, no-grade tile */
  --cr-green:       #22c55e;   /* semantic: good grade / success */
  --cr-green-dark:  #166534;   /* semantic: fair grade */
  --cr-red:         #b52929;   /* semantic: danger / kill / cut grade */
  --cr-slate:       #94a3b8;   /* semantic: muted text, no-grade label */
  --cr-meta:        rgba(148, 163, 184, 0.78); /* semantic: secondary/status text */
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: radial-gradient(circle at top, rgba(30, 41, 59, 0.55), transparent 55%), #0b1220;
  background-repeat: no-repeat;
  min-height: 100vh;
}

#root {
  position: relative;
  z-index: 1;
}

main.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main.page.page-wide {
  max-width: 1600px;
}

.page-shell {
  background: #0f172a;
  border: 1px solid var(--cr-neutral-dim);
  border-top: none;
  border-radius: 0 0 18px 18px;
  margin-top: -1px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
}

.page-content {
  margin-top: 0;
}

.page-header {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.pilot-table {
  border-radius: 16px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  overflow: hidden;
}

.pilot-table-row {
  display: grid;
  grid-template-columns: minmax(140px, 2fr) minmax(90px, 1fr) minmax(110px, 1fr) minmax(96px, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.pilot-table-row-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pilot-table-row-link:hover {
  background: var(--leaf-card-hover);
}

.pilot-table-head .pilot-table-row {
  background: rgba(51, 65, 85, 0.58);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.85);
  align-items: center;
}

.pilot-table-row:last-child {
  border-bottom: none;
}

.pilot-table-cell {
  color: rgba(248, 250, 252, 0.95);
}

.pilot-table-cell-name {
  color: #f8fafc;
  font-weight: 550;
}

.pilot-table-row-link.is-pinned .pilot-table-cell-name {
  color: var(--cr-yellow);
}

.pilot-table-cell.is-muted,
.pilot-table-cell-muted {
  color: rgba(148, 163, 184, 0.7);
}

.pilot-table-cell-chevron {
  display: flex;
  justify-content: flex-end;
  color: rgba(148, 163, 184, 0.85);
}

.pilot-table-chevron {
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.9);
}

.pilot-table-sort-btn {
  all: unset;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.pilot-table-sort-btn:hover {
  color: rgba(248, 250, 252, 0.95);
}

.pilot-table-sort-btn.is-sorted {
  color: rgba(248, 250, 252, 0.95);
}

.sort-indicator {
  font-size: 0.75rem;
  line-height: 1;
}

.sort-indicator-inactive {
  opacity: 0.35;
}

.pilot-table-header-stat {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pilot-table-header-stat > span {
  white-space: nowrap;
}

.pilot-table-header-proficiencies,
.pilot-table-header-achievements {
  justify-content: flex-end;
  text-align: right;
}




.pilot-table-cell-stat {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: rgba(248, 250, 252, 0.95);
  font-size: 0.875rem;
}

.pilot-table-cell-stat.is-zero {
  color: rgba(148, 163, 184, 0.35);
}

.pilot-table-cell-master {
  color: #f59e0b;
}

.pilot-table-cell-master.is-zero {
  color: rgba(148, 163, 184, 0.35);
}

.page-header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 0.04em;
}

.page-header-title {
  display: flex;
  align-items: center;
}

.page-header-logo {
  display: block;
  width: min(340px, 100%);
  height: auto;
}

.beta-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cr-yellow);
  border: 1px solid var(--cr-yellow);
  border-radius: 3px;
  padding: 2px 5px;
  line-height: 1;
  margin-left: 0.6rem;
  align-self: flex-end;
  margin-bottom: 3px;
  opacity: 0.85;
}

/* ── Page header actions (feedback + hamburger) ──────────────────────────── */
.page-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Feedback widget ─────────────────────────────────────────────────────── */
.feedback-widget {
  position: relative;
}

.feedback-trigger {
  background: transparent;
  border: 1px solid var(--cr-neutral-dim);
  color: var(--cr-slate);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  letter-spacing: 0.05em;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.feedback-trigger:hover {
  border-color: var(--cr-neutral-mid);
  color: #f8fafc;
}

.feedback-trigger.is-done {
  color: var(--cr-yellow);
  border-color: var(--cr-yellow);
  cursor: default;
}

.feedback-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, calc(100vw - 2rem));
  background: #0c1525;
  border: 1px solid var(--cr-neutral-dim);
  border-radius: 6px;
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.feedback-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feedback-input {
  width: 100%;
  background: #0f172a;
  border: 1px solid var(--cr-neutral-dim);
  border-radius: 4px;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  resize: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.feedback-input::placeholder {
  color: var(--cr-neutral);
}

.feedback-input:focus {
  outline: none;
  border-color: var(--cr-neutral-mid);
}

.feedback-submit {
  align-self: flex-end;
  background: var(--cr-yellow);
  border: none;
  border-radius: 4px;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.35rem 1rem;
  transition: opacity 0.15s;
}

.feedback-submit:hover {
  opacity: 0.85;
}

.feedback-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.feedback-thanks {
  margin: 0;
  color: var(--cr-yellow);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 0;
}

.page-header p {
  margin-top: 0.5rem;
  color: rgba(248, 250, 252, 0.7);
}

/* ── Header row (logo + hamburger) ───────────────────────────────────────── */
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

/* ── Hamburger button ────────────────────────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: rgba(148, 163, 184, 0.1);
}

.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cr-slate);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger-btn.is-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.is-open .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.is-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav dropdown (only rendered when menuOpen=true, extra CSS guard) */
@media (min-width: 601px) {
  .page-nav-dropdown {
    display: none;
  }
}

.page-nav-dropdown {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid var(--cr-neutral-dim);
  border-radius: 10px;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.page-nav-dropdown-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  transition: background 0.1s;
}

.page-nav-dropdown-link:last-child {
  border-bottom: none;
}

.page-nav-dropdown-feedback {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--cr-neutral-dim);
}

.feedback-inline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-nav-dropdown-link:hover {
  background: #162341;
}

.page-nav-dropdown-link.is-active {
  color: var(--cr-yellow);
  background: rgba(250, 204, 21, 0.08);
}

/* ── Custom dropdowns (pilot tabs + airframe, mobile only) ───────────────── */
.pilot-tabs-dropdown,
.skills-airframe-dropdown {
  display: none;
  position: relative;
}

.pilot-tabs-dropdown-btn,
.skills-airframe-dropdown-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #1b2a3d;
  border: 1px solid var(--cr-neutral-dim);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.pilot-tabs-dropdown-btn:focus,
.skills-airframe-dropdown-btn:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
}

.pilot-tabs-dropdown-chevron,
.skills-airframe-dropdown-chevron {
  display: inline-block;
  width: 12px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 stroke=%27%2394a3b8%27 stroke-width=%271.5%27 fill=%27none%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.pilot-tabs-dropdown-menu,
.skills-airframe-dropdown-menu {
  display: flex;
  flex-direction: column;
  background: #0f172a;
  border: 1px solid var(--cr-neutral-dim);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.pilot-tabs-dropdown-item,
.skills-airframe-dropdown-item {
  display: block;
  padding: 0.8rem 1rem;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.1s;
}

.pilot-tabs-dropdown-item:last-child,
.skills-airframe-dropdown-item:last-child {
  border-bottom: none;
}

.pilot-tabs-dropdown-item:hover,
.skills-airframe-dropdown-item:hover {
  background: #162341;
}

.pilot-tabs-dropdown-item.is-active,
.skills-airframe-dropdown-item.is-active {
  color: var(--cr-yellow);
  background: rgba(250, 204, 21, 0.08);
}

.page-nav {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  align-items: flex-end;
  width: 100%;
  border-bottom: 1px solid var(--cr-neutral-dim);
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--cr-neutral-dim);
  border-bottom: none;
  background: #1b2a3d;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: -1px;
}

.page-nav-link:hover {
  border-color: var(--cr-neutral-mid);
  background: #162341;
}

.page-nav-link.is-active {
  background: #0f172a;
  border-color: var(--cr-neutral-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
  margin-bottom: 1.5rem;
}

.panel-tight {
  padding: 1rem;
  position: relative;
  z-index: 50;
}

.panel-list {
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
  max-width: 420px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: rgba(248, 250, 252, 0.85);
}

.form-field input {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  color: #f8fafc;
  font-size: 1rem;
  width: 100%;
}

.form-field input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.form-actions button {
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.15);
  color: #f8fafc;
  font-weight: 600;
  cursor: pointer;
}

.form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-pilot-state-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}

.admin-pilot-state-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-pilot-state-table th,
.admin-pilot-state-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  text-align: left;
  white-space: nowrap;
}

.admin-pilot-state-table th {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-pilot-state-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.admin-pilot-state-sidebar {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.75rem;
}

.admin-pilot-state-sidebar h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.95rem;
}

.admin-pilot-state-server-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-pilot-state-server-filter span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.95);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.admin-pilot-state-server-filter select {
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  color: inherit;
  padding: 0.45rem 0.5rem;
}

.admin-pilot-state-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.admin-pilot-state-pilot-btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.62);
  color: inherit;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
}

.admin-pilot-state-pilot-btn.is-active {
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(56, 189, 248, 0.12);
}

.admin-pilot-state-main {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.9rem;
}

.admin-pilot-state-head h3 {
  margin: 0;
}

.admin-pilot-state-head p {
  margin: 0.35rem 0 0.75rem;
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 0.8rem;
}

.admin-pilot-state-data-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(15, 23, 42, 0.7);
}

.admin-pilot-state-data-panel h4 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-data-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  max-height: 360px;
  overflow: auto;
}

.admin-pilot-state-data-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(150px, 1fr);
  gap: 0.7rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 0.84rem;
}

.admin-pilot-state-data-row:last-child {
  border-bottom: none;
}

.admin-pilot-state-data-row span:first-child {
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-data-row span:last-child {
  color: rgba(248, 250, 252, 0.95);
  word-break: break-word;
}

.admin-pilot-state-graph-controls {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.admin-pilot-state-weapons-panel {
  margin-top: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.65rem;
  background: rgba(15, 23, 42, 0.7);
}

.admin-pilot-state-weapons-panel h4 {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-weapons-table-wrap {
  margin-top: 0.6rem;
  overflow-x: auto;
}

.admin-pilot-state-weapons-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-pilot-state-weapons-table th,
.admin-pilot-state-weapons-table td {
  padding: 0.38rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  white-space: nowrap;
}

.admin-pilot-state-weapons-table th {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-weapons-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-pilot-state-graph-controls h4 {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(148, 163, 184, 0.95);
}

.admin-pilot-state-graph-field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem 0.75rem;
}

.admin-pilot-state-graph-field-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
}

.admin-pilot-state-graph-wrap {
  margin-top: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.65rem;
}

.admin-pilot-state-graph {
  width: 100%;
  height: 120px;
}

.admin-pilot-state-graph-legend {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.35rem 0.8rem;
}

.admin-pilot-state-graph-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
}

.admin-pilot-state-graph-color {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: inline-block;
}

@media (max-width: 980px) {
  .admin-pilot-state-data-grid {
    grid-template-columns: 1fr;
  }
}

.button-secondary {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.95);
}

.alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.12);
  color: rgba(254, 226, 226, 0.95);
}

.status {
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: rgba(224, 242, 254, 0.95);
}

.admin-preview-actions {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-primary-button,
.admin-secondary-button {
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}

.admin-primary-button {
  border-color: rgba(56, 189, 248, 0.6);
  background: rgba(56, 189, 248, 0.2);
  color: #f8fafc;
}

.admin-secondary-button {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.95);
}

.admin-primary-button:disabled,
.admin-secondary-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-preview-error {
  color: rgba(248, 113, 113, 0.95);
  font-size: 0.9rem;
}

.admin-tools {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-tool-item {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-tool-item.is-disabled {
  opacity: 0.6;
}

.admin-tool-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-tool-title {
  font-weight: 600;
}

.admin-tool-meta {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.9rem;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-link {
  color: rgba(56, 189, 248, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-tabs {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.admin-tab {
  border: none;
  background: transparent;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.admin-tab.is-active {
  background: rgba(56, 189, 248, 0.2);
  color: rgba(248, 250, 252, 0.98);
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  white-space: nowrap;
}

.admin-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.admin-sort-button {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.admin-sort-button:hover {
  color: rgba(224, 242, 254, 0.95);
}

.admin-sort-indicator {
  font-size: 0.65rem;
  color: rgba(56, 189, 248, 0.9);
}

.admin-table tbody tr:hover {
  background: var(--leaf-card-hover);
}


.admin-input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  font-size: 0.85rem;
}

.admin-row-actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.admin-icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}

.admin-icon-button:hover {
  border-color: rgba(56, 189, 248, 0.6);
}

.admin-count {
  font-variant-numeric: tabular-nums;
}

.admin-count-alert {
  color: #f87171;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
}

.admin-row-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(248, 113, 113, 0.9);
}

.admin-translation-missing {
  color: rgba(248, 113, 113, 0.95);
  font-weight: 600;
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
}

.admin-modal-card {
  width: min(520px, 100%);
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
  padding: 1.5rem;
}

.admin-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-modal-body {
  display: grid;
  gap: 0.65rem;
}

.admin-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.admin-preview-section {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.admin-preview-section h4 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.85);
}

.admin-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.admin-preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(226, 232, 240, 0.9);
}

.admin-preview-divider {
  margin: 0 0.35rem;
  color: rgba(148, 163, 184, 0.85);
}

.pilot-panel {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.dashboard-card {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-high-scores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-card-wide {
  grid-column: span 2;
}

/* ── This Week banner ──────────────────────────────────── */
.this-week-banner {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 2px solid var(--cr-yellow);
}

.this-week-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.this-week-section-narrow {
  flex: 0 0 auto;
}

.this-week-section-label {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cr-yellow);
  opacity: 0.75;
}

.this-week-stats-row {
  display: flex;
  gap: 2.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
  flex: 1;
}

.this-week-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.this-week-value {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--cr-yellow);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.this-week-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cr-meta);
  white-space: nowrap;
}

.this-week-divider {
  width: 1px;
  background: rgba(148, 163, 184, 0.18);
  align-self: stretch;
  margin: 0 2rem;
  flex-shrink: 0;
}

.this-week-servers {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.this-week-server-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.this-week-server-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.this-week-server-dot.is-online {
  background: var(--cr-green);
  box-shadow: 0 0 6px var(--cr-green);
}

.this-week-server-dot.is-offline {
  background: var(--cr-red);
  opacity: 0.65;
}

.this-week-server-name {
  font-size: 0.87rem;
  color: #e2e8f0;
  white-space: nowrap;
}

.this-week-server-count {
  font-size: 0.78rem;
  color: var(--cr-meta);
  white-space: nowrap;
}

.this-week-server-more {
  font-size: 0.72rem;
  color: var(--cr-meta);
  padding-left: 1.1rem;
}

.this-week-spotlight {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  justify-content: flex-end;
}

.this-week-spotlight-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.1;
  text-decoration: none;
}

.this-week-spotlight-name:hover {
  color: var(--cr-yellow);
}

.this-week-spotlight-sub {
  font-size: 0.76rem;
  color: var(--cr-meta);
}

@media (max-width: 640px) {
  .this-week-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .this-week-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
  }

  .this-week-value {
    font-size: 1.9rem;
  }

  .this-week-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .this-week-section-narrow {
    flex: 1;
  }

  .this-week-servers {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
  }

  .this-week-spotlight-name {
    font-size: 1.1rem;
  }
}
/* ─────────────────────────────────────────────────────── */

.dashboard-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.dashboard-breakdown-card {
  border: 1px solid var(--leaf-card-border);
  border-radius: 12px;
  background: var(--leaf-card-bg);
  padding: 0.65rem;
}

.dashboard-widget-header-sub {
  margin-bottom: 0.55rem;
}

.dashboard-widget-header-sub h3 {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.95);
}

.dashboard-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.dashboard-widget-header h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.dashboard-widget-header a {
  color: var(--cr-yellow);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.dashboard-widget-header a:hover {
  text-decoration: underline;
}

.dashboard-mini-feed,
.dashboard-achievement-list,
.dashboard-high-scores,
.dashboard-greenie-list,
.dashboard-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.dashboard-mini-feed-row,
.dashboard-achievement-row,
.dashboard-high-score-row,
.dashboard-greenie-row,
.dashboard-legend-row {
  border: 1px solid var(--leaf-card-border);
  border-radius: 12px;
  background: var(--leaf-card-bg);
  padding: 0.6rem 0.7rem;
}

.dashboard-mini-feed-title,
.dashboard-achievement-title,
.dashboard-high-score-title {
  font-weight: 600;
  color: rgba(248, 250, 252, 0.96);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-achievement-icon {
  font-size: 1em;
  line-height: 1;
  flex-shrink: 0;
}

.dashboard-proficiency-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.dashboard-proficiency-tier {
  color: rgba(248, 250, 252, 0.96);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

.dashboard-mini-feed-meta,
.dashboard-achievement-meta,
.dashboard-greenie-time {
  margin-top: 0.3rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.92);
}

.dashboard-achievement-meta a,
.dashboard-high-score-value,
.dashboard-greenie-name {
  color: var(--cr-yellow);
  text-decoration: none;
  font-weight: 600;
}

.dashboard-achievement-meta a:hover,
.dashboard-high-score-value:hover,
.dashboard-greenie-name:hover {
  text-decoration: underline;
}

.dashboard-high-score-empty,
.dashboard-empty-row {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.9rem;
}

.dashboard-breakdown-empty {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.32);
}

.dashboard-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.dashboard-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.dashboard-bar-swatch {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dashboard-bar-label {
  flex: 1;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.dashboard-bar-pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.85);
  width: 2.2rem;
  text-align: right;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.dashboard-bar-track {
  height: 4px;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.dashboard-bar-fill {
  height: 100%;
  border-radius: 2px;
  transform-origin: left center;
  animation: barGrow 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  opacity: 0.9;
}

@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.dashboard-bar-placeholder {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-bar-skeleton-row {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.dashboard-bar-skeleton-label {
  height: 0.75rem;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 3px;
}

.dashboard-bar-skeleton-track {
  height: 4px;
  background: rgba(148, 163, 184, 0.07);
  border-radius: 2px;
  overflow: hidden;
}

.dashboard-bar-skeleton-fill {
  height: 100%;
  background: rgba(148, 163, 184, 0.13);
  border-radius: 2px;
}

.dashboard-greenie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.dashboard-greenie-footnote {
  margin-top: 0.55rem;
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-wide {
    grid-column: span 1;
  }

  .dashboard-high-scores-grid {
    grid-template-columns: 1fr;
  }
}

.facet-input {
  position: relative;
}

.facet-input-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  color: rgba(248, 250, 252, 0.92);
}

.facet-input-inner:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.facet-input-icon {
  display: inline-flex;
  color: rgba(148, 163, 184, 0.85);
}

.facet-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
  padding-right: 6.25rem;
}

.facet-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.10);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.facet-pill:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.facet-pill-key {
  color: rgba(148, 163, 184, 0.95);
}

.facet-pill-x {
  color: rgba(248, 250, 252, 0.8);
}

.facet-input-field {
  flex: 1;
  min-width: 220px;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: #f8fafc;
  outline: none;
  font-size: 0.9rem;
}

.facet-input-field::placeholder {
  color: rgba(148, 163, 184, 0.8);
}


.facet-input-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.facet-loading {
  color: rgba(148, 163, 184, 0.85);
  padding: 0 0.25rem;
}

.facet-clear {
  padding: 0.32rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.10);
  color: rgba(248, 250, 252, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.facet-clear:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.facet-error {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: rgba(248, 113, 113, 0.95);
}

.facet-suggestions {
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.facet-suggestion {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.facet-suggestion:hover,
.facet-suggestion.is-active {
  background: rgba(56, 189, 248, 0.14);
}

.pilot-suggestions {
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.55);
  overflow: hidden;
}

.pilot-suggestions-item {
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.pilot-suggestions-item.is-disabled {
  cursor: default;
  color: rgba(148, 163, 184, 0.85);
}

.pilot-suggestions-item:hover,
.pilot-suggestions-item.is-active {
  background: rgba(56, 189, 248, 0.14);
}

.pilot-suggestions-name {
  font-weight: 650;
}

.filter-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.filter-search {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
}

.filter-search-icon {
  display: inline-flex;
  color: rgba(148, 163, 184, 0.85);
}

.filter-search input {
  flex: 1;
  min-width: 140px;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(2, 6, 23, 0.25);
  color: #f8fafc;
}

.filter-search select {
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(2, 6, 23, 0.25);
  color: rgba(248, 250, 252, 0.95);
}

.filter-search input:focus,
.filter-search select:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.filter-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-chips-label {
  color: rgba(148, 163, 184, 0.85);
  font-size: 0.85rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(148, 163, 184, 0.10);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.chip:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
}

.chip-x {
  color: rgba(248, 250, 252, 0.8);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.filter-group input,
.filter-group select {
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #f8fafc;
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--cr-yellow);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.20);
}

.filter-actions {
  display: flex;
  gap: 0.75rem;
}

.filter-actions button {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.filter-actions button[type="submit"] {
  background: var(--cr-yellow);
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.22);
}

.filter-actions button.secondary {
  background: rgba(148, 163, 184, 0.15);
  color: rgba(248, 250, 252, 0.9);
}

.filter-actions button:hover {
  transform: translateY(-2px);
}

.filter-actions button.secondary:hover {
  transform: none;
}

.stats-filter {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.stats-filter .filter-group {
  flex: 1;
  min-width: 240px;
}

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

.stats-header-left {
  min-width: min(520px, 100%);
}

.stats-header-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.stats-header-title {
  margin-top: 0.25rem;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.stats-header-status {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 650;
}

.stats-header-subtitle {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.85);
  font-variant-numeric: tabular-nums;
}

.stats-header-error {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: rgba(248, 113, 113, 0.95);
}

.stats-header-right {
  flex: 1;
  min-width: min(420px, 100%);
}

.stats-pilot-search {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: 0.75rem;
  align-items: end;
}

.stats-pilot-search .filter-group {
  position: relative;
}

.stats-pilot-search .filter-actions button {
  flex: unset;
}

.stats-pilot-search .filter-actions {
  margin-bottom: 0.05rem;
}

.pilot-suggestions {
  position: absolute;
  z-index: 1000;
  margin-top: 0.45rem;
  width: min(560px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.pilot-suggestions-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  text-align: left;
  cursor: pointer;
}

.pilot-suggestions-item:hover {
  background: rgba(56, 189, 248, 0.14);
}

.pilot-suggestions-item.is-disabled {
  cursor: default;
  color: rgba(148, 163, 184, 0.9);
}

.pilot-suggestions-item.is-disabled:hover {
  background: transparent;
}

.pilot-suggestions-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pilots-header,
.pilot-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

.pilots-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pilot-header-left {
  min-width: min(520px, 100%);
}

.pilots-header-right,
.pilot-header-right {
  flex: 1;
  min-width: min(320px, 100%);
  display: flex;
  justify-content: flex-end;
}

.pilot-back-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.95);
  text-decoration: none;
  font-weight: 600;
}

.pilot-back-link:hover {
  border-color: var(--cr-neutral-mid);
  background: rgba(100, 116, 139, 0.2);
}

.pilots-search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  width: min(360px, 100%);
}

.pilots-search-box:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.pilots-search-field {
  flex: 1;
  min-width: 0;
  padding: 0.25rem 0.35rem;
  border: none;
  background: transparent;
  color: #f8fafc;
  outline: none;
  font-size: 0.9rem;
}

.pilots-search-field::placeholder {
  color: rgba(148, 163, 184, 0.8);
}

.pilots-search-clear {
  all: unset;
  cursor: pointer;
  color: rgba(148, 163, 184, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.2rem;
  flex-shrink: 0;
}

.pilots-search-clear:hover {
  color: rgba(248, 250, 252, 0.95);
}

.pilot-tabs {
  margin-top: 1rem;
  margin-bottom: -1px;
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--cr-neutral-dim);
}

.pilot-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--cr-neutral-dim);
  border-bottom: none;
  background: #1b2a3d;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: -1px;
}

.pilot-tab:hover {
  border-color: var(--cr-neutral-mid);
  background: #162341;
}

.pilot-tab.is-active {
  background: #0f172a;
  border-color: var(--cr-neutral-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pilot-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pilot-list-item {
  border-radius: 14px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  overflow: hidden;
}

.pilot-list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.95rem;
  text-decoration: none;
  color: rgba(248, 250, 252, 0.95);
}

.pilot-list-link:hover {
  background: rgba(56, 189, 248, 0.12);
}

.pilot-list-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pilot-list-meta {
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  font-variant-numeric: tabular-nums;
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills-header-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.skills-header-subtitle {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.85);
}

.skills-airframes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-airframes-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.skills-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.skills-airframe {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
  font-weight: 600;
}

.skills-airframe:hover {
  border-color: var(--cr-neutral-mid);
  background: rgba(100, 116, 139, 0.2);
}

.skills-airframe.is-active {
  border-color: color-mix(in srgb, var(--cr-yellow) 55%, transparent);
  background: color-mix(in srgb, var(--cr-yellow) 14%, transparent);
  color: var(--cr-yellow);
}

.skills-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
}

.skills-toggle-label {
  line-height: 1;
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.75);
}

.skills-toggle-switch {
  position: relative;
  width: 2.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.55);
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}

.skills-toggle-knob {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.95);
  transform: translate(0, -50%);
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.4);
}

.skills-toggle.is-active .skills-toggle-switch {
  background: transparent;
  border-color: color-mix(in srgb, var(--cr-yellow) 80%, transparent);
}

.skills-toggle.is-active .skills-toggle-knob {
  transform: translate(0.95rem, -50%);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.skills-item {
  padding: 0.85rem 1rem;
  border-radius: 0;
  border: 1px solid var(--leaf-card-border);
  border-top: none;
  background: var(--leaf-card-bg);
}

.skills-item:first-child {
  border-top: 1px solid var(--leaf-card-border);
  border-radius: 16px 16px 0 0;
}

.skills-item:last-child {
  border-radius: 0 0 16px 16px;
}

.skills-item-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}

.skills-item-description {
  margin-bottom: 0.6rem;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.88rem;
  line-height: 1.35;
}

.skills-levels {
  position: relative;
  display: grid;
  gap: 0;
}

.skills-level {
  position: relative;
  padding: 0.3rem 0.6rem 0.3rem 2rem;
  border-radius: 0;
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-top: none;
  overflow: hidden;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.5rem;
  min-height: 1.8rem;
}

.skills-level:first-child {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px 12px 0 0;
}

.skills-level:last-child {
  border-radius: 0 0 12px 12px;
}

.skills-level::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cr-yellow) 22%, transparent), color-mix(in srgb, var(--cr-yellow) 8%, transparent));
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.skills-level > * {
  position: relative;
  z-index: 1;
}

.skills-level:first-child {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px 12px 0 0;
}

.skills-level:last-child {
  border-radius: 0 0 12px 12px;
}

.skills-level-check {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.7);
  background: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

.skills-level-complete .skills-level-check {
  border-color: #10b981;
  background: #10b981;
}

.skills-level-complete .skills-level-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #0f172a;
  border-bottom: 2px solid #0f172a;
  transform: rotate(40deg);
}

.skills-level-partial .skills-level-check {
  border-color: var(--cr-yellow);
  background: var(--cr-yellow);
}

.skills-level-partial .skills-level-check::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 2px;
  background: #0f172a;
  border-radius: 999px;
}

.skills-level-label {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.skills-level-label.is-muted {
  color: rgba(148, 163, 184, 0.65);
}

.skills-level-meta {
  display: inline-flex;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.9);
  font-variant-numeric: tabular-nums;
  justify-self: end;
}

.skills-level-meta.is-muted {
  color: rgba(148, 163, 184, 0.55);
}


.stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stats-card-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
}

.stats-card-value {
  margin-top: 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--cr-yellow);
}

.stats-card-value-large {
  font-size: clamp(2.35rem, 3.2vw + 1.2rem, 3.05rem);
  line-height: 1.02;
  margin-top: 0.3rem;
}
.stats-card-split {
  margin-top: 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
}

.stats-card-split-cell {
  padding: 0.6rem 0.7rem;
}

.stats-card-split-left {
  border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.stats-card-split-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(148, 163, 184, 0.9);
}

.stats-card-split-value {
  margin-top: 0.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stats-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.stats-section {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--leaf-card-border);
  background: var(--leaf-card-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.stats-section-group {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.stats-subsections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.18);
  overflow: hidden;
}

.stats-subsection {
  padding: 0.85rem;
}

.stats-subsection-left {
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.stats-subsection-span {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.stats-subsection-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 0.65rem;
}

.stats-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.stats-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stats-list-compact {
  gap: 0;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.22);
}

.stats-row {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.22);
}

.stats-row-compact {
  border: none;
  border-radius: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
}

.stats-row-compact:first-child {
  border-top: none;
}

.stats-row-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cr-yellow) 22%, transparent),
    color-mix(in srgb, var(--cr-yellow) 6%, transparent)
  );
  pointer-events: none;
}

.stats-row-key,
.stats-row-value {
  position: relative;
  z-index: 1;
}

.stats-row-key {
  color: rgba(248, 250, 252, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-row-value {
  color: rgba(148, 163, 184, 0.95);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


.feed-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.feed-group + .feed-group {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.feed-group-header {
  padding: 0.45rem 1rem;
  background: rgba(15, 23, 42, 0.78);
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.feed-group:first-child .feed-group-header {
  border-top: none;
}

.feed-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: var(--leaf-card-bg);
}

.feed-inline-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.feed-card-compact .feed-inline-row .feed-headline {
  flex: 1;
  min-width: 0;
}

.feed-card-compact .feed-inline-row .feed-time {
  margin-left: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.feed-group:first-child .feed-card:first-child {
  border-top: none;
  border-radius: 18px 18px 0 0;
}

.feed-group:last-child .feed-card:last-child {
  border-radius: 0 0 18px 18px;
}

.feed-group:first-child:last-child .feed-card:first-child:last-child {
  border-radius: 18px;
}

.feed-card:hover {
  background: var(--leaf-card-hover);
}

.feed-card-compact {
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  padding: 0.55rem 1rem;
}

.feed-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(2, 6, 23, 0.22);
  transform: translateZ(0);
}

.feed-icon.icon-danger {
  background: color-mix(in srgb, var(--cr-red) 55%, black);
}

.feed-icon.icon-success {
  background: color-mix(in srgb, var(--cr-green-dark) 80%, black);
}

.feed-icon.icon-warning {
  background: color-mix(in srgb, var(--cr-yellow) 45%, black);
}

.feed-icon.icon-info {
  background: color-mix(in srgb, var(--cr-neutral) 55%, black);
}

.feed-main {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.feed-headline {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(248, 250, 252, 0.92);
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-headline-link {
  font-weight: 550;
  color: var(--cr-yellow);
  text-decoration: none;
}

.feed-headline-link:hover {
  color: var(--cr-yellow);
  text-decoration: underline;
  text-decoration-color: rgba(250, 204, 21, 0.6);
  text-underline-offset: 2px;
}

.feed-headline-link:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.55);
  outline-offset: 2px;
  border-radius: 4px;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.85rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  border: 1px solid rgba(100, 116, 139, 0.22);
  color: var(--cr-meta);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

a.pill {
  text-decoration: none;
}

button.pill {
  appearance: none;
  font-family: inherit;
  font-weight: inherit;
}

.pill-clickable {
  cursor: pointer;
}

.pill-clickable:hover {
  border-color: var(--cr-neutral-mid);
  background: rgba(100, 116, 139, 0.22);
}

button.pill-active,
.pill-active {
  background: color-mix(in srgb, var(--cr-yellow) 14%, transparent) !important;
  border-color: color-mix(in srgb, var(--cr-yellow) 55%, transparent) !important;
  color: var(--cr-yellow) !important;
  box-shadow: none !important;
}

.facet-action-menu {
  position: fixed;
  z-index: 10050;
  width: 260px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.facet-action-menu-item {
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: none;
  background: transparent;
  color: rgba(248, 250, 252, 0.92);
  cursor: pointer;
}

.facet-action-menu-item:hover {
  background: rgba(100, 116, 139, 0.2);
}

.pill-unit,
.pill-pilot,
.pill-weapon,
.pill-server,
.pill-place {
  background: rgba(100, 116, 139, 0.14);
  border-color: rgba(100, 116, 139, 0.22);
}

.feed-time {
  margin-left: auto;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.92);
}


.empty-state {
  padding: 2rem;
  text-align: center;
  color: rgba(148, 163, 184, 0.9);
}

.alert {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.alert button {
  background: rgba(248, 250, 252, 0.1);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: #f8fafc;
  cursor: pointer;
}

.status-area {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.status {
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.9rem;
}

.sentinel {
  width: 100%;
  height: 1px;
}

@media (max-width: 768px) {
  .filter-bar {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .feed-table th,
  .feed-table td {
    padding: 0.75rem;
  }

  table.feed-table tr td[data-label]::before {
    content: attr(data-label) " ";
    display: none;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.75);
  }

  .stats-overview {
    grid-template-columns: 1fr;
  }

  .stats-card-split {
    grid-template-columns: 1fr;
  }

  .stats-card-split-left {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }

  .stats-sections {
    grid-template-columns: 1fr;
  }

  .stats-subsections {
    grid-template-columns: 1fr;
  }

  .stats-subsection-left {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
}

/* ============================================================================
   Greenie Board
   ============================================================================ */

.gf-dropdown {
  position: relative;
}

button.facet-input-inner {
  cursor: pointer;
}

button.facet-input-inner.is-open {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.gf-dropdown .facet-suggestions {
  left: auto;
  top: calc(100% + 6px);
}

.gf-chevron {
  color: rgba(148, 163, 184, 0.7);
  flex-shrink: 0;
  transition: transform 0.15s;
}

.is-open .gf-chevron {
  transform: rotate(180deg);
}

.greenie-board-error {
  color: #f87171;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* ---- Main board ---- */

.gboard-filters {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.gboard-filters-title {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gboard-subtext {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.6);
}

.gboard-filters-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gboard-scroll {
  overflow-x: auto;
}

.gboard-table {
  border-collapse: collapse;
  table-layout: fixed;
}

.gboard-row {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.gboard-row:last-child {
  border-bottom: none;
}

.gboard-name {
  width: 160px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--cr-yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  padding: 0.3rem 0.75rem 0.3rem 0;
  vertical-align: middle;
}

.gboard-name-link {
  color: inherit;
  text-decoration: none;
}

.gboard-name-link:hover {
  text-decoration: underline;
}

.gboard-cell {
  width: 36px;
  padding: 2px 1px;
  vertical-align: middle;
}

/* ---- Individual trap ---- */

.gtrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtrap-empty {
  width: 36px;
  height: 36px;
}

.gtrap-tile {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gtrap-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
  font-family: ui-monospace, "Cascadia Code", monospace;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.gtrap-label-underline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
}

.gtrap-wire {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.44rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* ---- Legend ---- */

.gboard-legend {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}

.gboard-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gboard-legend-tile {
  position: relative;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gboard-legend-grade {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.38rem;
  font-weight: 800;
  font-family: ui-monospace, "Cascadia Code", monospace;
  line-height: 1;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.gboard-legend-desc {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.65);
}

/* ─── Achievements page ───────────────────────────────────────────────────── */

.achievements-loading,
.achievements-error {
  font-size: 0.9rem;
  color: rgba(148, 163, 184, 0.7);
  padding: 1rem 0;
}

.achievements-error {
  color: rgba(248, 113, 113, 0.85);
}

.achievement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.achievement-list li {
  display: contents;
}

.achievement-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: var(--leaf-card-bg);
  border: 1px solid var(--leaf-card-border);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.achievement-card:hover {
  border-color: rgba(100, 116, 139, 0.6);
  background: var(--leaf-card-hover);
}

.achievement-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.achievement-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.achievement-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.achievement-description {
  font-size: 0.8125rem;
  color: var(--cr-slate);
  margin: 0;
  line-height: 1.5;
}

.achievement-rarity {
  display: inline;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--cr-meta);
}

.achievement-rarity-rare {
  color: var(--cr-meta);
}

.achievement-rarity-uncommon {
  color: var(--cr-meta);
}

.achievement-rarity-common {
  color: var(--cr-meta);
}

.achievement-rarity-none {
  color: rgba(148, 163, 184, 0.55);
}

/* ── Pilot Achievements tab ──────────────────────────────────────────── */
.pilot-achievements-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pilot-achievements-summary {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cr-slate);
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

.pilot-achievements-summary-sep {
  color: rgba(148, 163, 184, 0.4);
  font-weight: 400;
  margin: 0 0.15rem;
}

.pilot-achievements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
}

.pilot-achievement-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.35);
  opacity: 0.6;
  transition: opacity 0.15s;
}

.pilot-achievement-card.is-earned {
  opacity: 1;
  border-color: rgba(100, 116, 139, 0.6);
}

.pilot-achievement-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: grayscale(1);
  transition: filter 0.15s;
}

.pilot-achievement-card.is-earned .pilot-achievement-icon {
  filter: none;
}

.pilot-achievement-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.pilot-achievement-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}

.pilot-achievement-description {
  font-size: 0.8125rem;
  color: var(--cr-slate);
  line-height: 1.5;
}

.pilot-achievement-status {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.pilot-achievement-earned {
  color: var(--cr-meta);
}

.pilot-achievement-locked {
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ── Mobile layout fixes (≤600px) ───────────────────────────────────────── */
@media (max-width: 600px) {
  /* Hamburger: show on mobile, hide desktop nav */
  .hamburger-btn {
    display: flex;
  }

  .page-nav {
    display: none;
  }

  /* Logo: compact height so it fits next to the hamburger button */
  .page-header-logo {
    height: 30px;
    width: auto;
  }

  /* Feedback: hide header button on mobile — it lives in the dropdown instead */
  .feedback-widget {
    display: none;
  }

  /* Pilot tabs: hide link tabs, show custom dropdown */
  .pilot-tabs {
    display: none;
  }

  .pilot-tabs-dropdown {
    display: block;
  }

  /* Airframe selector: hide button grid, show custom dropdown; stack toggle below */
  .skills-airframes {
    display: none;
  }

  .skills-airframe-dropdown {
    display: block;
  }

  .skills-airframes-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .skills-toggle-row {
    margin-left: 0;
  }

  /* Achievements grid: single column so cards aren't cramped */
  .achievement-list {
    grid-template-columns: 1fr;
  }

  .pilot-achievements {
    grid-template-columns: 1fr;
  }

  /* Pilot table: show Pilot + Proficiencies, hide Last Seen + Achievements */
  .pilot-table-row {
    grid-template-columns: 1fr minmax(60px, auto);
  }

  /* Hide last-seen body cells and header (no unique class, use nth-child) */
  .pilot-table-cell-muted,
  .pilot-table-header-achievements {
    display: none;
  }

  .pilot-table-head .pilot-table-row > *:nth-child(2) {
    display: none;
  }

  .pilot-table-row > .pilot-table-cell-stat:last-child {
    display: none;
  }

  /* Dashboard breakdown: keep 2-col donut grid even on small screens */
  .dashboard-breakdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-donut {
    box-shadow: none;
    filter: none;
  }

  /* Reduce outer page padding so panels get more horizontal room */
  main.page {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
  }

  /* Strip the page-shell container frame and individual panel borders */
  .page-shell {
    border: none;
    border-radius: 0;
    padding: 0.5rem 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-top: 0.5rem;
  }

  .panel {
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 0.4rem;
  }

  /* Feed: smaller icon + text, no per-card radius (container clips instead) */
  .feed-card,
  .feed-card-compact {
    grid-template-columns: 26px 1fr;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0;
    backdrop-filter: none;
    align-items: center;
  }

  /* Collapse headline + time onto one row so icon centers with text */
  .feed-main {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  .feed-main .feed-headline {
    flex: 1;
    min-width: 0;
  }

  .feed-main .feed-meta,
  .feed-main .feed-time {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .feed-card:first-child,
  .feed-card:last-child,
  .feed-card:first-child:last-child {
    border-radius: 0;
  }

  .feed-icon {
    width: 28px;
    height: 28px;
  }

  .feed-icon svg {
    width: 15px;
    height: 15px;
  }

  .feed-headline {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .feed-time {
    font-size: 0.7rem;
  }

  /* Hide filter pills — too noisy on small screens */
  .feed-meta .pill {
    display: none;
  }

  /* Match dashboard/pilot card title and meta to feed headline size */
  .dashboard-mini-feed-title,
  .dashboard-achievement-title,
  .dashboard-high-score-title,
  .dashboard-proficiency-tier,
  .dashboard-greenie-name,
  .pilot-list-link,
  .pilot-table-cell,
  .achievement-card-name,
  .skills-item-title {
    font-size: 0.75rem;
  }

  .dashboard-mini-feed-meta,
  .dashboard-achievement-meta,
  .dashboard-greenie-time,
  .achievement-card-description,
  .skills-item-description {
    font-size: 0.7rem;
  }
}


/* Discoverability release: compact cards that reuse the dashboard widget idiom. */
.discovery-invitation, .discovery-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.discovery-invitation { margin-bottom:1rem; padding:.9rem 1.25rem; }
.discovery-invitation h2, .discovery-heading h2 { margin:0; font-size:1.05rem; letter-spacing:.02em; }
.discovery-invitation p { margin:.2rem 0 0; color:rgba(148,163,184,.92); font-size:.85rem; line-height:1.4; max-width:45rem; }
.discovery-actions { display:flex; flex-wrap:wrap; gap:.75rem; }
.discovery-leaf { background:var(--leaf-card-bg); border:1px solid var(--leaf-card-border); border-radius:12px; padding:1rem; margin-top:.75rem; }
.discovery-leaf h3, .discovery-leaf h4 { margin:0 0 .5rem; }
.discovery-leaf p { color:#cbd5e1; line-height:1.5; }
.discovery-leaf a { color:var(--cr-yellow); }
.discovery-muted { color:#cbd5e1; font-size:.9rem; line-height:1.5; }
.discovery-notice { border:1px solid var(--cr-yellow); border-radius:8px; padding:.75rem 1rem; margin-bottom:1rem; }
.pilot-chooser label { display:block; margin:1rem 0 .5rem; font-weight:600; }
.pilot-chooser input { width:100%; max-width:32rem; padding:.75rem; background:#0f172a; color:#f8fafc; border:1px solid #64748b; border-radius:8px; font:inherit; }

.pinned-pilot { margin-bottom:1rem; padding:1rem 1.25rem 1.15rem; }
.pinned-pilot > .dashboard-widget-header { margin-bottom:.7rem; }
.pinned-kicker { display:block; font-size:.63rem; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:var(--cr-yellow); opacity:.75; margin-bottom:.15rem; }
.pinned-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:.5rem .9rem; }
.pinned-actions a { color:var(--cr-yellow); font-size:.85rem; font-weight:600; text-decoration:none; }
.pinned-actions a:hover { text-decoration:underline; }
.pinned-pilot button { font:inherit; font-size:.82rem; color:#f8fafc; background:transparent; border:1px solid rgba(148,163,184,.4); border-radius:8px; padding:.3rem .7rem; min-height:32px; cursor:pointer; }
.pinned-pilot button:hover { border-color:var(--cr-yellow); }
.pinned-columns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.pinned-columns > div { min-width:0; }
.pinned-columns .dashboard-widget-header-sub { align-items:center; min-height:1.9rem; }
.pinned-columns .dashboard-widget-header a { font-size:.8rem; }
.pinned-columns select { max-width:60%; padding:.25rem .5rem; font:inherit; font-size:.8rem; background:#0f172a; color:#f8fafc; border:1px solid rgba(148,163,184,.4); border-radius:8px; }
.pinned-airframe-label { font-size:.8rem; color:rgba(148,163,184,.92); }
.pinned-columns .dashboard-empty-row { margin:0; }
.pinned-columns time { color:rgba(148,163,184,.92); font-size:.8rem; white-space:nowrap; }
.pinned-tier-name { color:var(--cr-yellow); text-decoration:none; min-width:0; }
.pinned-tier-name:hover { text-decoration:underline; }
.pinned-tier-meta { font-size:.8rem; color:rgba(226,232,240,.9); text-align:right; }
.pinned-columns .dashboard-proficiency-head { flex-wrap:wrap; }
.pinned-columns progress { display:block; width:100%; height:.4rem; margin-top:.45rem; accent-color:var(--cr-yellow); }
.prof-table { width:100%; border-collapse:collapse; }
.prof-table th, .prof-table td { text-align:left; padding:.4rem .6rem; border-top:1px solid rgba(148,163,184,.14); vertical-align:top; }
.prof-table thead th { border-top:0; padding-top:0; font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.09em; color:rgba(148,163,184,.7); }
.prof-table tbody th { font-weight:inherit; width:40%; }
.prof-name { display:block; font-weight:600; color:rgba(248,250,252,.96); }
.prof-desc { display:block; margin-top:.15rem; font-size:.8rem; color:rgba(148,163,184,.85); }
.prof-table td { color:var(--cr-yellow); font-variant-numeric:tabular-nums; white-space:nowrap; }

:focus-visible { outline:2px solid var(--cr-yellow); outline-offset:4px; }
.pilot-chooser { box-sizing:border-box; width:calc(100% - 2rem); max-width:640px; max-height:85vh; overflow:auto; color:#f8fafc; background:#0f172a; padding:1.5rem; border:1px solid #64748b; border-radius:18px; }
.pilot-chooser::backdrop { background:rgba(3,7,18,.8); }
.pilot-chooser button { min-height:44px; }
.pilot-search-results { list-style:none; padding:0; }
.pilot-search-results button { width:100%; text-align:left; display:flex; flex-direction:column; gap:.5rem; padding:1rem; margin-bottom:.75rem; background:#1e293b; border:1px solid #64748b; border-radius:8px; color:#f8fafc; }
.pilot-uid { overflow-wrap:anywhere; font-size:.8rem; color:#cbd5e1; }
@media (max-width:900px) {
  .pinned-columns { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .discovery-invitation, .discovery-heading { flex-direction:column; align-items:flex-start; }
  .pinned-pilot { padding:.9rem 1rem 1rem; }
  .pinned-pilot .dashboard-widget-header { align-items:flex-start; flex-direction:column; }
  .pinned-actions { justify-content:flex-start; }
  .pinned-pilot button { min-height:44px; }
  .pilot-chooser { padding:1rem; }
  .prof-table thead { display:none; }
  .prof-table, .prof-table tbody { display:block; }
  .prof-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 .75rem; padding:.55rem 0; border-top:1px solid rgba(148,163,184,.14); }
  .prof-table tr:first-child { border-top:0; padding-top:0; }
  .prof-table th, .prof-table td { border-top:0; padding:.15rem 0; }
  .prof-table tbody th { grid-column:1 / -1; width:auto; padding-bottom:.35rem; }
  .prof-table td::before { content:attr(data-label); display:block; font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; color:rgba(148,163,184,.7); }
}

.photo-credit { padding:1rem 0; font-size:.75rem; text-align:right; }
.photo-credit a { color:#cbd5e1; }
.discovery-actions button, .discovery-invitation button, .pilot-chooser button {
  font:inherit; color:#f8fafc; background:#334155; border:1px solid #64748b; border-radius:8px; padding:.65rem 1rem; cursor:pointer;
}
.discovery-invitation > button, .pilot-chooser .discovery-actions button:first-child { background:var(--cr-yellow); color:#0f172a; font-weight:600; }
.discovery-invitation > button { min-height:36px; padding:.4rem .9rem; }
@media (max-width:600px) {
  .page-header-title { min-width:0; gap:.4rem; }
  .page-header-logo { max-width:calc(100vw - 125px); height:auto; }
  .page-header-actions { flex-shrink:0; }
  .hamburger-btn { min-width:44px; min-height:44px; align-items:center; }
}

/* Photo-led layout: flat navy canvas, hero cards carry the imagery. */
.page-shell { background: transparent; border: none; border-radius: 0; padding: 1.25rem 0 0; box-shadow: none; backdrop-filter: none; margin-top: 0; }
.page-nav { margin-top: 0.5rem; gap: 0.25rem; border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
.page-nav-link { background: transparent; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: #cbd5e1; padding: 0.6rem 0.9rem; margin-bottom: -1px; }
.page-nav-link:hover { background: transparent; color: #f8fafc; border-bottom-color: var(--cr-neutral-mid); }
.page-nav-link.is-active { background: transparent; color: var(--cr-yellow); border-bottom-color: var(--cr-yellow); box-shadow: none; }

.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 1rem; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background-color: #0b1220; background-size: cover; background-repeat: no-repeat; box-shadow: 0 18px 40px rgba(2, 6, 23, 0.45); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 13, 26, 0.9) 0%, rgba(8, 13, 26, 0.62) 42%, rgba(8, 13, 26, 0.05) 82%), linear-gradient(0deg, rgba(8, 13, 26, 0.55) 0%, transparent 55%); }
.hero-body { padding: 1.25rem 1.5rem; max-width: 34rem; }
.hero-kicker { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--cr-yellow); }
.hero-title { margin: 0.25rem 0 0; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5); }
.hero-accent { color: var(--cr-yellow); }
.hero-text { margin: 0.5rem 0 0; color: #dbe4f0; font-size: 0.95rem; line-height: 1.5; }
.hero-cta { display: inline-block; margin-top: 0.9rem; padding: 0.55rem 1rem; border-radius: 8px; background: var(--cr-yellow); color: #0f172a; font-weight: 700; text-decoration: none; }
.hero-cta:hover { filter: brightness(1.08); }
.hero-lg { min-height: 17rem; align-items: center; }
.hero-lg .hero-title { font-size: 2.5rem; }
.hero-md { min-height: 11rem; align-items: center; }
.hero-md .hero-title { font-size: 1.9rem; }
.hero-sm { min-height: 0; align-items: center; }
.hero-sm .hero-body { padding: 0.9rem 1.25rem; }
.hero-sm .hero-title { font-size: 1.1rem; }
.hero-sm .hero-cta { margin-top: 0.35rem; padding: 0; background: transparent; color: var(--cr-yellow); font-size: 0.85rem; }
.hero-sm .hero-cta:hover { text-decoration: underline; filter: none; }

.home-heroes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; margin-bottom: 1rem; }
.home-heroes .hero { margin-bottom: 0; }
.home-hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }

.airframe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-bottom: 1.25rem; scroll-margin-top: 1rem; }
.airframe-tile { display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.2); background: #101a2e; color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.airframe-tile:hover { border-color: var(--cr-yellow); transform: translateY(-2px); }
.airframe-tile-photo { position: relative; aspect-ratio: 16 / 9; background: #16233b center / cover no-repeat; }
.airframe-tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16, 26, 46, 0.85), transparent 55%); }
.airframe-tile-body { padding: 0.7rem 0.9rem 0.85rem; }
.airframe-tile-body h3 { margin: 0; font-size: 1rem; }
.airframe-tile-body p { margin: 0.35rem 0 0; font-size: 0.8rem; line-height: 1.35; color: rgba(148, 163, 184, 0.92); }
.airframe-tile-count { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cr-yellow); }

.prof-section { scroll-margin-top: 5rem; margin-bottom: 1rem; overflow: hidden; border-radius: 16px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(15, 23, 42, 0.85); }
.airframe-banner { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; background: #101a2e; border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.airframe-banner-photo { flex: 0 0 auto; width: 8.5rem; aspect-ratio: 16 / 9; border-radius: 10px; background: #16233b center / cover no-repeat; border: 1px solid rgba(148, 163, 184, 0.2); }
.airframe-banner-title { flex: 1; min-width: 0; }
.airframe-banner h2 { margin: 0; font-size: 1.4rem; }
.airframe-banner a { padding: 0.25rem 0.65rem; border-radius: 999px; background: rgba(148, 163, 184, 0.12); color: var(--cr-yellow); font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.airframe-banner a:hover { text-decoration: underline; }
.prof-body { padding: 0.75rem 1.25rem 1rem; }

.prof-jump-wrap { position: sticky; top: 0.5rem; z-index: 60; height: 0; }
.prof-jump { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.45rem 0.6rem; background: rgba(11, 18, 32, 0.95); border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 14px; backdrop-filter: blur(12px); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease; }
.prof-jump.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.prof-jump a { padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(148, 163, 184, 0.12); color: rgba(248, 250, 252, 0.92); font-size: 0.8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.prof-jump a:hover { border-color: var(--cr-neutral-mid); background: rgba(100, 116, 139, 0.2); }
.prof-jump a.is-active { border-color: color-mix(in srgb, var(--cr-yellow) 55%, transparent); background: color-mix(in srgb, var(--cr-yellow) 14%, transparent); color: var(--cr-yellow); }

.photo-credit details { font-size: 0.75rem; color: #94a3b8; }
.photo-credit summary { cursor: pointer; }
.photo-credit ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.25rem; }

@media (max-width: 900px) {
  .home-heroes { grid-template-columns: 1fr; }
  .home-hero-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .home-hero-side { grid-template-columns: 1fr; }
  .hero { border-radius: 14px; }
  .hero-body { padding: 1rem; }
  .hero-lg { min-height: 14rem; }
  .hero-lg .hero-title { font-size: 1.8rem; }
  .hero-md { min-height: 8rem; }
  .hero-md .hero-title { font-size: 1.5rem; }
  .discovery-invitation { padding: 0.8rem 1rem; }
  .airframe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .airframe-tile-body p { display: none; }
  .airframe-banner { padding: 0.65rem 1rem; gap: 0.75rem; }
  .airframe-banner h2 { font-size: 1.15rem; }
  .airframe-banner-photo { width: 5.5rem; }
  .prof-body { padding: 0.6rem 1rem 0.9rem; }
  .prof-section { border-radius: 14px; border: 1px solid rgba(148, 163, 184, 0.2); }
  .prof-jump { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .prof-jump::-webkit-scrollbar { display: none; }
}
.airframe-tile.is-pending { opacity: 1; }
.airframe-tile.is-pending:hover { border-color: rgba(148, 163, 184, 0.2); transform: none; }
.airframe-tile.is-pending .airframe-tile-photo { filter: saturate(0.55) brightness(0.75); }
@media (max-width: 640px) {
  .hero-lg::before { background: linear-gradient(0deg, rgba(8, 13, 26, 0.92) 0%, rgba(8, 13, 26, 0.65) 55%, rgba(8, 13, 26, 0.3) 100%); }
}
.hero-lg .hero-body { max-width: 28rem; }
.hero-end { justify-content: flex-end; }
.hero-end::before { background: linear-gradient(270deg, rgba(8, 13, 26, 0.9) 0%, rgba(8, 13, 26, 0.7) 40%, rgba(8, 13, 26, 0.05) 85%), linear-gradient(0deg, rgba(8, 13, 26, 0.45) 0%, transparent 55%); }
.hero-end .hero-body { text-align: right; }

/* Hero edge treatment: photos dissolve into the page at the bottom; a quiet inner ring replaces the hard border. */
.hero { border: none; box-shadow: 0 12px 32px rgba(2, 6, 23, 0.4); }
.hero::before {
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.88) 0%, rgba(8, 13, 26, 0.6) 40%, rgba(8, 13, 26, 0.04) 80%),
    linear-gradient(0deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.6) 20%, rgba(11, 18, 32, 0) 52%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.4) 0%, rgba(11, 18, 32, 0) 32%);
}
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.hero-sm::before {
  background:
    linear-gradient(90deg, rgba(8, 13, 26, 0.85) 0%, rgba(8, 13, 26, 0.5) 45%, rgba(8, 13, 26, 0.04) 85%),
    linear-gradient(0deg, rgba(11, 18, 32, 0.9) 0%, rgba(11, 18, 32, 0.45) 18%, rgba(11, 18, 32, 0) 45%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.3) 0%, rgba(11, 18, 32, 0) 35%);
}
.hero-end::before {
  background:
    linear-gradient(270deg, rgba(8, 13, 26, 0.9) 0%, rgba(8, 13, 26, 0.7) 40%, rgba(8, 13, 26, 0.04) 85%),
    linear-gradient(0deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.6) 20%, rgba(11, 18, 32, 0) 52%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.4) 0%, rgba(11, 18, 32, 0) 32%);
}
.airframe-tile { border: none; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16); }
.airframe-tile-photo::after { background: linear-gradient(0deg, #101a2e 0%, rgba(16, 26, 46, 0.6) 25%, rgba(16, 26, 46, 0) 60%); }
.airframe-tile:hover { box-shadow: inset 0 0 0 1px var(--cr-yellow); }
.airframe-banner-photo { border: none; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2); }
@media (max-width: 640px) {
  .hero-lg::before {
    background:
      linear-gradient(0deg, rgba(11, 18, 32, 0.96) 0%, rgba(11, 18, 32, 0.7) 50%, rgba(11, 18, 32, 0.3) 100%);
  }
}

/* Pilot profile: flat tabs, hero identity strip, proficiency and achievement refinements. */
.pilot-tabs { margin-top: 0; margin-bottom: 0; gap: 0.25rem; border-bottom: 1px solid rgba(148, 163, 184, 0.22); }
.pilot-tab { padding: 0.6rem 0.9rem; border: none; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #cbd5e1; margin-bottom: -1px; }
.pilot-tab:hover { background: transparent; color: #f8fafc; border-bottom-color: var(--cr-neutral-mid); }
.pilot-tab.is-active { background: transparent; color: var(--cr-yellow); border-bottom-color: var(--cr-yellow); box-shadow: none; }
.pilot-panel { background: transparent; border: none; box-shadow: none; backdrop-filter: none; border-radius: 0; padding: 1rem 0 0; }
.hero-aside { margin: 0 1.25rem 0 auto; align-self: center; padding: 0.85rem 1.25rem; border-radius: 14px; background: rgba(8, 13, 26, 0.72); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18); backdrop-filter: blur(8px); }
.hero-stats { display: flex; gap: 1.75rem; margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 0.15rem; }
.hero-stats dt { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(203, 213, 225, 0.85); }
.hero-stats dd { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--cr-yellow); font-variant-numeric: tabular-nums; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.skills-selected { display: flex; align-items: center; gap: 0.85rem; margin: 0.25rem 0 0.9rem; }
.skills-selected-photo { flex: 0 0 auto; width: 6.5rem; aspect-ratio: 16 / 9; border-radius: 10px; background: #16233b center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2); }
.skills-selected-name { font-size: 1.2rem; font-weight: 700; }
.skills-selected-meta { margin-top: 0.15rem; font-size: 0.8rem; color: var(--cr-meta); }
.skills-notstarted { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 14px; border: 1px solid var(--leaf-card-border); background: rgba(15, 23, 42, 0.5); }
.skills-notstarted-title { margin-bottom: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(148, 163, 184, 0.75); }
.skills-notstarted ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem 1.25rem; }
.skills-notstarted li { display: flex; flex-direction: column; gap: 0.1rem; }
.skills-notstarted-name { font-weight: 600; color: rgba(226, 232, 240, 0.9); }
.skills-notstarted-desc { font-size: 0.78rem; color: rgba(148, 163, 184, 0.8); line-height: 1.35; }
.pilot-achievements-progress { height: 0.4rem; margin: 0.5rem 0 0.25rem; border-radius: 999px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.pilot-achievements-progress > div { height: 100%; border-radius: inherit; background: var(--cr-yellow); }
@media (max-width: 900px) {
  .hero-aside { margin: 0 1.25rem 1rem; align-self: flex-start; }
  .hero:has(.hero-aside) { flex-direction: column; align-items: flex-start; justify-content: center; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 1.25rem; }
  .hero-stats dd { font-size: 1.4rem; }
  .hero-aside { margin: 0 1rem 0.9rem; padding: 0.7rem 1rem; }
  .skills-notstarted ul { grid-template-columns: 1fr; }
  .skills-selected-photo { width: 5rem; }
}

/* Round of refinements: mobile pilot tabs, legibility, pending tiles. */
.pilot-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.pilot-tabs::-webkit-scrollbar { display: none; }
.pilot-tab { white-space: nowrap; }
.pilot-tabs-dropdown { display: none; }
.achievement-rarity { font-size: 0.78rem; }
.achievement-rarity-none { color: rgba(148, 163, 184, 0.8); }
.pilot-achievement-locked { color: rgba(148, 163, 184, 0.72); }
.airframe-tile.is-pending .airframe-tile-count { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; background: rgba(148, 163, 184, 0.16); color: rgba(226, 232, 240, 0.85); }
.airframe-tile.is-pending h3 { color: rgba(226, 232, 240, 0.8); }

/* Review 1: flatten the stat band, de-duplicate airframe name on small screens. */
.this-week-banner { border-top: 1px solid rgba(148, 163, 184, 0.2); }
@media (max-width: 640px) {
  .skills-selected-name { display: none; }
}

/* Review 2: align panel content with the hero's edge on phones. */
@media (max-width: 640px) {
  .panel-list, .panel-tight { padding-left: 0; padding-right: 0; }
  .dashboard-card.panel { padding-left: 0.75rem; padding-right: 0.75rem; }
}

.pinned-title { min-width: 0; }
.pinned-name-row { display: flex; align-items: center; gap: 0.2rem; }
.pinned-title h2 { margin: 0; }
.pinned-pilot button.pinned-unpin { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; min-height: 0; padding: 0; margin: 0; border: none; border-radius: 6px; background: transparent; color: var(--cr-slate); cursor: pointer; transition: color 0.15s ease; }
.pinned-pilot button.pinned-unpin:hover, .pinned-pilot button.pinned-unpin:focus-visible { color: var(--cr-yellow); border: none; background: transparent; }
@media (max-width: 640px) { .pinned-pilot button.pinned-unpin { width: 36px; height: 36px; margin-left: -0.15rem; } }

.page-hero.hero-md { min-height: 12.5rem; }

/* -- Pilot chip (who I am) and lens tabs (what I'm looking at) -- */
.pilot-chip { position: relative; display: flex; align-items: center; min-width: 0; }
.pilot-chip-button { display: inline-flex; align-items: center; gap: 0.4rem; max-width: 14rem; padding: 0.3rem 0.75rem; border: 1px solid var(--cr-neutral-dim); border-radius: 4px; background: transparent; color: var(--cr-slate); font: inherit; font-size: 0.75rem; letter-spacing: 0.05em; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, color 0.15s; }
.pilot-chip-button:hover, .pilot-chip-button[aria-expanded="true"] { border-color: var(--cr-neutral-mid); color: #f8fafc; }
.pilot-chip-button svg { flex-shrink: 0; color: var(--cr-yellow); }
.pilot-chip-name { overflow: hidden; text-overflow: ellipsis; }
.pilot-chip-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 200; display: flex; flex-direction: column; min-width: 10rem; padding: 0.25rem; border: 1px solid var(--cr-neutral-dim); border-radius: 6px; background: #0c1525; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); }
.pilot-chip-menu a, .pilot-chip-menu button { display: block; padding: 0.5rem 0.7rem; border: none; border-radius: 4px; background: transparent; color: #f8fafc; font: inherit; font-size: 0.85rem; text-align: left; text-decoration: none; cursor: pointer; }
.pilot-chip-menu a:hover, .pilot-chip-menu button:hover { background: #162341; }

.lens-tabs { display: flex; align-items: center; gap: 0.25rem; min-width: 0; margin: 0 0 0.75rem; font-size: 0.8125rem; }
.lens-tabs-label { margin-right: 0.5rem; color: var(--cr-slate); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lens-tab, .lens-tab-link { min-width: 0; max-width: 16rem; padding: 0.35rem 0.6rem; border: none; border-bottom: 2px solid transparent; background: transparent; color: #cbd5e1; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.lens-tab { cursor: pointer; }
button.lens-tab:hover { color: #f8fafc; border-bottom-color: var(--cr-neutral-mid); }
.lens-tab[aria-pressed="true"], .lens-tab.is-current { color: var(--cr-yellow); border-bottom-color: var(--cr-yellow); }
.lens-tab-link { color: var(--cr-slate); font-weight: 500; }
.lens-tab-link:hover { color: #f8fafc; text-decoration: underline; }

@media (max-width: 600px) {
  .pilot-chip-button { width: 2.5rem; height: 2.5rem; justify-content: center; padding: 0; }
  .pilot-chip-name { display: none; }
  .page-header-logo { max-width: calc(100vw - 180px); }
  .lens-tab, .lens-tab-link { max-width: 9rem; }
}

.achievement-card.is-earned { border-color: rgba(250, 204, 21, 0.35); }
.achievement-card.is-locked { opacity: 0.7; }
.achievement-status { margin-top: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--cr-slate); }
.achievement-card.is-earned .achievement-status { color: var(--cr-yellow); }
.achievement-progress { margin-bottom: 1rem; }
.achievement-progress-text { font-size: 0.9rem; color: var(--cr-slate); }
.achievement-progress-text strong { color: #f8fafc; }
.achievement-progress-empty { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--cr-slate); }

.prof-legend { margin: 0 0 0.75rem; font-size: 0.85rem; color: var(--cr-slate); }

.airframe-tile-complete { display: block; margin-top: 0.3rem; font-size: 0.75rem; font-weight: 700; color: var(--cr-yellow); }

/* Tier chips: one line per proficiency. The value is on the left of the pill, the pilot count on the right.
   The outline is a pseudo-element so it never changes the row's layout. */
.tier-chip { position: relative; isolation: isolate; display: flex; box-sizing: border-box; align-items: baseline; justify-content: space-between; gap: 0.5rem; width: 100%; padding: 0 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; color: #e2e8f0; }
.tier-chip::before { content: ""; position: absolute; z-index: -1; inset: -6px 0; border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 8px; }
.tier-chip.is-ahead { color: var(--cr-slate); }
.tier-chip.is-reached { padding-right: 1.9rem; color: var(--cr-yellow); font-weight: 700; }
.tier-chip.is-reached::before { border-color: rgba(227, 185, 60, 0.7); background: rgba(227, 185, 60, 0.1); }
.tier-chip.is-reached::after { content: ""; position: absolute; right: 0.7rem; top: 50%; width: 0.3rem; height: 0.6rem; margin-top: -0.4rem; border: solid var(--cr-yellow); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.tier-chip.is-next { color: #f8fafc; font-weight: 600; }
.tier-chip.is-next::before { border-color: rgba(227, 185, 60, 0.7); background: linear-gradient(90deg, var(--cr-yellow) var(--p), transparent var(--p)) left bottom / 100% 3px no-repeat, rgba(227, 185, 60, 0.1); }
.tier-chip-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tier-chip .prof-reached { flex-shrink: 0; font-size: 0.72rem; font-weight: 400; color: rgba(148, 163, 184, 0.85); }

/* Descriptions stay in the page for assistive tech and as a tooltip on the name, but take no space */
.prof-table .prof-desc { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Same column grid in every airframe section, regardless of content */
@media (min-width: 641px) {
  .prof-table { table-layout: fixed; }
  .prof-table thead th:first-child { width: 34%; }
  .prof-table thead th:not(:first-child) { width: 16.5%; padding-left: calc(0.6rem + 0.75rem); }
}
@media (max-width: 640px) {
  .prof-table td::before { padding-left: 0.75rem; margin-bottom: 0.5rem; }
}

/* One-line rows: a little vertical room around the pill, and the name centred on it */
@media (min-width: 641px) {
  .prof-table tbody th, .prof-table tbody td { padding-top: 0.75rem; padding-bottom: 0.75rem; vertical-align: middle; }
}

/* No row rules: spacing separates proficiencies. One rule under the header anchors the table. */
.prof-table tbody th, .prof-table tbody td { border-top: 0; }
.prof-table thead th { border-bottom: 1px solid rgba(148, 163, 184, 0.14); padding-bottom: 0.5rem; }
@media (max-width: 640px) {
  .prof-table tr { border-top: 0; padding: 0.7rem 0; row-gap: 0.75rem; }
}

.stats-card-typical { margin-top: 0.35rem; font-size: 0.75rem; color: var(--cr-slate); }

/* High Scores */
.hs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.hs-card { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.25rem; border-radius: 10px; background: var(--leaf-card-bg); border: 1px solid var(--leaf-card-border); }
.hs-label { margin: 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cr-slate); }
.hs-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--cr-yellow); font-variant-numeric: tabular-nums; }
.hs-meta { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; color: var(--cr-slate); }
.hs-meta a { color: #f8fafc; font-weight: 600; text-decoration: none; }
.hs-meta a:hover { color: var(--cr-yellow); text-decoration: underline; }
.hs-rank { color: #f8fafc; font-weight: 600; }
.hs-leader { margin-top: 0.25rem; padding-top: 0.5rem; border-top: 1px solid rgba(148, 163, 184, 0.14); font-size: 0.8rem; color: var(--cr-slate); }
.hs-leader a { color: #f8fafc; text-decoration: none; }
.hs-leader a:hover { color: var(--cr-yellow); text-decoration: underline; }
@media (max-width: 640px) { .hs-grid { grid-template-columns: 1fr; } }
/* Greenie Board: the pilot's last traps at a glance */
.gboard-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-bottom: 1rem; padding: 0.75rem 1rem; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 10px; background: rgba(15, 23, 42, 0.5); }
.gboard-summary-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cr-slate); }
.gboard-summary-grades { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.gboard-summary-grades li { display: inline-flex; align-items: center; gap: 0.35rem; }
.gboard-summary-chip { min-width: 2rem; padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; text-align: center; }
.gboard-summary-count { font-size: 0.9rem; font-weight: 700; color: #f8fafc; font-variant-numeric: tabular-nums; }
/* Next unlocks: the tiers nearest completion */
.next-unlocks { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; background: rgba(15, 23, 42, 0.5); }
.next-unlocks-title { margin: 0 0 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cr-slate); }
.next-unlocks-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.next-unlock { display: grid; gap: 0.2rem; min-width: 0; padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--leaf-card-bg); border: 1px solid var(--leaf-card-border); }
.next-unlock-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #f8fafc; text-decoration: none; }
.next-unlock-title:hover { color: var(--cr-yellow); text-decoration: underline; }
.next-unlock-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.75rem; color: var(--cr-slate); }
.next-unlock-pilot { color: #e2e8f0; font-weight: 600; }
.next-unlock-progress { font-size: 0.85rem; font-weight: 600; color: var(--cr-yellow); font-variant-numeric: tabular-nums; }
.next-unlock progress { width: 100%; height: 0.4rem; }


.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.profile-section.is-wide { grid-column: 1 / -1; }
.profile-section { min-width: 0; }
.profile-section .next-unlocks, .dashboard-card .next-unlocks, .pinned-columns .next-unlocks { margin: 0; padding: 0; border: 0; background: none; }
.profile-section .next-unlocks-list, .dashboard-card .next-unlocks-list, .pinned-columns .next-unlocks-list { grid-template-columns: 1fr; }
.profile-score { font-weight: 700; color: var(--cr-yellow); font-variant-numeric: tabular-nums; }
.profile-stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin: 0; }
.profile-stat-cards div { display: flex; flex-direction: column-reverse; gap: 0.15rem; padding: 0.7rem 0.85rem; border-radius: 10px; background: var(--leaf-card-bg); border: 1px solid var(--leaf-card-border); }
.profile-stat-cards dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cr-slate); }
.profile-stat-cards dd { margin: 0; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.stats-section-more { display: block; width: 100%; margin-top: 0.5rem; padding: 0.55rem; border: 0; border-radius: 8px; background: transparent; color: var(--cr-yellow); font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.stats-section-more:hover { background: rgba(148, 163, 184, 0.1); }

.dashboard-week { margin-bottom: 1rem; }
.dashboard-week > .this-week-banner { margin: 0; }
.this-week-quiet { flex: 1; margin: 0; align-self: center; color: var(--cr-slate); font-size: 0.9rem; }
.hs-card { min-height: 7.5rem; }
@media (max-width: 640px) {
  .this-week-stats-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem; }
}
@media (max-width: 600px) {
  .lens-tab, .lens-tab-link { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}
@media (max-width: 600px) {
  .home-hero-side { display: none; }
  .pinned-columns .next-unlock:nth-child(n + 3),
  .pinned-columns .pinned-awards li:nth-child(n + 3) { display: none; }
  .photo-credit { padding-inline: 1rem; }
}
.pilot-table-pin { display: inline-flex; margin-left: 0.4rem; color: var(--cr-yellow); vertical-align: -2px; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; margin: -0.25rem 0 1rem; }
.profile-actions-notice { color: var(--cr-slate); font-size: 0.8rem; }
.pin-button { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.8rem; border: 1px solid rgba(148, 163, 184, 0.3); border-radius: 8px; background: rgba(15, 23, 42, 0.6); color: #e2e8f0; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.pin-button:hover { border-color: var(--cr-yellow); color: #f8fafc; }
.pin-button.is-pinned { color: var(--cr-yellow); border-color: color-mix(in srgb, var(--cr-yellow) 55%, transparent); }
.next-unlock.is-community .next-unlock-title { color: var(--cr-yellow); }

/*# sourceMappingURL=main.e11b8b092f3535cfc430.css.map*/