/* ==========================================================================
   FlightdeckQ — practice app (MVP)
   Relies on tokens + shared components from style.css
   ========================================================================== */

:root {
  --red: #ff6b6b;
  --red-soft: rgba(255, 107, 107, 0.1);
  --red-soft-border: rgba(255, 107, 107, 0.35);
}
:root[data-theme="light"] {
  --red: #c43d3d;
  --red-soft: rgba(196, 61, 61, 0.08);
  --red-soft-border: rgba(196, 61, 61, 0.35);
}

body { min-height: 100vh; }

.app-mode-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--text-dim-3);
  margin-left: 1.2rem;
}

.app-nav { display: flex; align-items: center; gap: 1.4rem; margin-right: auto; margin-left: 2rem; }
.nav-study-btn { padding: 7px 16px; font-size: 0.84rem; }
.app-nav-mobile-only { display: none; }
#app-menu-toggle { display: none; }

@media (max-width: 860px) {
  .app-mode-tag { display: none; }
  .header-actions .link-quiet { display: none; }
  #app-menu-toggle { display: flex; }
  #app-menu-toggle.is-hidden { display: none; }
  .app-nav { display: none; }
  .app-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    gap: 0;
    padding: 0.4rem 18px 1.2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px var(--shadow-color);
  }
  .app-nav.is-open.is-hidden { display: none; }
  .app-nav.is-open a,
  .app-nav.is-open button {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
    text-align: left;
    background: none;
    cursor: pointer;
  }
  .app-nav.is-open .app-nav-mobile-only { display: block; color: var(--text-dim-1); }
  .app-nav.is-open .app-nav-mobile-only:last-child { border-bottom: none; }
  .app-nav.is-open .nav-study-btn {
    margin: 0.9rem 0 0.5rem;
    justify-content: center;
    text-align: center;
    border-bottom: none;
    padding: 11px 16px;
    background: var(--green);
  }
}
.app-nav a { font-size: 0.88rem; transition: color 0.2s ease; }
.app-nav a.is-active { color: var(--text); font-weight: 600; }

.app-main {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
  padding: 130px 24px 90px;
}

.app-view.is-hidden { display: none; }
.is-hidden { display: none; }

.app-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.app-sub { color: var(--text-dim-2); font-size: 1rem; margin-bottom: 2.6rem; max-width: 480px; }

/* ----------------------------- type picker ----------------------------- */
.picker-section { margin-bottom: 2.6rem; }
.picker-section:last-child { margin-bottom: 0; }
.picker-section-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-dim-2);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.type-card {
  text-align: left;
  padding: 1.5rem 1.6rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--card-bg-1), var(--card-bg-2));
  cursor: pointer;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.type-card:hover:not(:disabled) {
  border-color: var(--green-soft-border);
  transform: translateY(-3px);
  background: linear-gradient(155deg, var(--green-soft), var(--card-bg-2));
}
.type-card:disabled { opacity: 0.45; cursor: default; }
.type-card b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}
.type-card span { font-size: 0.78rem; color: var(--text-dim-2); }
.type-card .type-count {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-top: 0.6rem;
}
.type-card .type-count::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
  vertical-align: middle;
}
.type-card .type-count.is-soon { color: var(--amber); }

.app-demo-note {
  margin-top: 2.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim-3);
}

.boot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 60vh;
  text-align: center;
}
.boot-loading.is-hidden { display: none; }
.boot-spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  animation: boot-spin 0.9s linear infinite;
}
@keyframes boot-spin {
  to { transform: rotate(360deg); }
}
.boot-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.boot-status {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim-2);
  min-height: 1em;
  transition: opacity 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .boot-spinner { animation: none; border-top-color: var(--line); }
}

.type-card.is-locked { opacity: 0.7; }
.type-card.is-locked:hover { border-color: var(--amber); }
.lock-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 20px;
  padding: 1px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(4, 10, 8, 0.6);
}
.checkout-modal.is-hidden { display: none; }
.checkout-modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 40px var(--shadow-color);
}
.checkout-modal-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.3rem; }
.checkout-modal-sub { color: var(--text-dim-2); font-size: 0.86rem; margin-bottom: 1.4rem; }
.checkout-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: none;
  color: var(--text-dim-1);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.checkout-modal-options { display: flex; flex-direction: column; gap: 0.7rem; }
.checkout-modal-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.checkout-modal-option:hover:not(:disabled) { border-color: var(--green-soft-border); background: var(--green-soft); }
.checkout-modal-option:disabled { opacity: 0.6; cursor: default; }
.checkout-modal-option b { font-size: 0.94rem; color: var(--text); }
.checkout-modal-option span { font-size: 0.76rem; color: var(--text-dim-2); flex: 1; margin-left: 0.6rem; }
.checkout-modal-option .checkout-modal-price { color: var(--green); font-family: var(--font-mono); }

/* ------------------------------- builder ------------------------------- */
.builder-section { margin-bottom: 2rem; }
.builder-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.builder-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim-3);
  margin-bottom: 0.9rem;
}
.builder-label b {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
  margin-left: 6px;
}
.builder-label-actions { display: flex; gap: 0.5rem; }
.pill-action {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill-action:hover { border-color: var(--green-soft-border); color: var(--text); }

.pill-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.pill {
  font-size: 0.84rem;
  color: var(--text-dim-2);
  border: 1px solid var(--line);
  background: var(--surface-tint);
  border-radius: 20px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.pill .pill-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-3);
}
.pill.is-active {
  border-color: var(--green-soft-border);
  background: var(--green-soft);
  color: var(--text);
}
.pill.is-active .pill-count { color: var(--green); }

.seg-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
}
.seg-tabs button {
  font-size: 0.82rem;
  color: var(--text-dim-2);
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.seg-tabs button.is-active { background: var(--green); color: var(--btn-primary-text); font-weight: 600; }

.fdq-slider {
  width: 100%;
  accent-color: var(--green);
  height: 4px;
  margin-top: 0.4rem;
}
.fdq-slider:disabled { opacity: 0.4; }

.builder-start-btn { margin-top: 1rem; }
.builder-start-btn:disabled { opacity: 0.5; cursor: default; }

@media (max-width: 760px) {
  .seg-tabs { flex-wrap: wrap; }
  .seg-tabs button { flex: 1 1 auto; }
}

/* ------------------------------ dashboard ------------------------------ */
.dash-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid var(--green-soft-border);
  background: var(--green-soft);
  border-radius: 20px;
  padding: 4px 11px;
  margin-bottom: 1rem;
}

.dash-type-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  margin-bottom: 1.6rem;
}
.dash-type-switch.is-hidden { display: none; }
.dash-type-switch button {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim-2);
  padding: 7px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.dash-type-switch button.is-active { background: var(--green); color: var(--btn-primary-text); font-weight: 600; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin: 2rem 0;
}
.stat-card {
  border: 1px solid var(--line);
  background: var(--surface-tint);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card.is-alert { border-color: var(--red-soft-border); background: var(--red-soft); }
.stat-card.is-clickable { cursor: pointer; transition: border-color 0.2s ease, transform 0.2s ease; }
.stat-card.is-clickable:hover { transform: translateY(-2px); border-color: var(--red); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim-3);
}
.stat-value { font-family: var(--font-mono); font-size: 1.8rem; font-weight: 500; color: var(--text); }
.stat-value.is-green { color: var(--green); }
.stat-value.is-red { color: var(--red); }
.stat-value.is-amber { color: var(--amber); }
.stat-sub { font-size: 0.76rem; color: var(--text-dim-2); }

.recommend-card {
  border: 1px solid var(--green-soft-border);
  background: linear-gradient(160deg, var(--green-soft), var(--surface-tint) 70%);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2.4rem;
}
.recommend-card p { color: var(--text-dim-1); font-size: 0.92rem; line-height: 1.6; margin: 0.6rem 0 1.1rem; }

.dash-block { margin-bottom: 2.6rem; }

.radar-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.radar-svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-axis { stroke: var(--line); stroke-width: 1; }
.radar-data { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.5; }
.radar-point { fill: var(--green); }
.radar-label { font-family: var(--font-mono); font-size: 8px; fill: var(--text-dim-2); }

.heatmap-chapter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim-2);
  margin: 1.6rem 0 0.8rem;
}
.heatmap-chapter:first-child { margin-top: 1rem; }
.heatmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.heat-card {
  border: 1px solid var(--line);
  background: var(--surface-tint);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.heat-card:hover { border-color: var(--green-soft-border); transform: translateY(-2px); }
.heat-card b { font-size: 0.84rem; color: var(--text-dim-1); font-weight: 600; }
.heat-card span { font-size: 0.74rem; color: var(--text-dim-3); }
.heat-card.is-good { border-color: var(--green-soft-border); }
.heat-card.is-good span { color: var(--green); }
.heat-card.is-weak2 { border-color: rgba(255, 180, 84, 0.35); }
.heat-card.is-weak2 span { color: var(--amber); }

.chapter-acc-row {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}
.chapter-acc-row:hover { background: var(--surface-tint); }
.chapter-acc-row:last-child { border-bottom: none; }
.chapter-acc-name { font-size: 0.86rem; color: var(--text-dim-1); }
.chapter-acc-bar { height: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.chapter-acc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--amber); }
.chapter-acc-bar i.is-good { background: var(--green); }
.chapter-acc-value { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim-2); white-space: nowrap; }

.session-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.session-row:last-child { border-bottom: none; }
.session-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim-3); }
.session-mode { color: var(--text-dim-1); }
.session-score { font-family: var(--font-mono); font-weight: 600; color: var(--text-dim-3); }
.session-score.is-good { color: var(--green); }
.session-score.is-weak2 { color: var(--red); }

@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .heatmap-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-acc-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .session-row { grid-template-columns: 60px 1fr auto; }
}

/* --------------------------------- login --------------------------------- */
#view-login .btn { margin-bottom: 1.2rem; }

/* ------------------------------- dashboard ------------------------------- */
#view-dashboard .hero-dash { margin: 0 auto; }
#dash-heat-scope {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--text-dim-3);
}

/* ------------------------------ session ------------------------------ */
.study-top {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.study-qid {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--green);
}
.study-mode {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-dim-3);
}
.study-progress-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim-3);
  letter-spacing: 0.06em;
  margin-left: auto;
}
.study-progress-segments {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  margin-bottom: 2.2rem;
}
.study-progress-segments i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  transition: background 0.3s ease, transform 0.2s ease;
}
.study-progress-segments i.is-correct { background: var(--green); }
.study-progress-segments i.is-wrong { background: var(--red); }
.study-progress-segments i.is-current { transform: scaleY(1.8); }

.q-card {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(155deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: 0 30px 70px -30px var(--shadow-color);
  padding: 2rem;
}
.q-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.q-tag-chip {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--text-dim-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px 9px;
}
.q-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text);
  margin: 0.4rem 0 1.6rem;
}
.q-options { display: flex; flex-direction: column; gap: 10px; }
.q-opt {
  text-align: left;
  font-size: 0.95rem;
  color: var(--text-dim-1);
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-tint);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
  font-family: var(--font-body);
}
.q-opt:hover:not(:disabled) {
  border-color: var(--text-dim-2);
  color: var(--text);
}
.q-opt:disabled { cursor: default; }
.q-opt.is-right {
  border-color: var(--green-soft-border);
  background: var(--green-soft);
  color: var(--text);
}
.q-opt.is-wrong {
  border-color: var(--red-soft-border);
  background: var(--red-soft);
  color: var(--text);
}
.q-opt .q-opt-key {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim-3);
  margin-right: 10px;
}
.q-opt.is-right .q-opt-key { color: var(--green); }
.q-opt.is-wrong .q-opt-key { color: var(--red); }

.q-explain {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.q-explain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.q-verdict {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--green);
}
.q-verdict.is-wrong { color: var(--red); }
.q-explain p {
  font-size: 0.92rem;
  color: var(--text-dim-1);
  line-height: 1.65;
  margin-bottom: 0.8rem;
}
.q-explain b { color: var(--text); font-weight: 600; }
.q-explain .btn { margin-top: 0.8rem; }

.q-actions-row { display: flex; gap: 0.7rem; margin-top: 1rem; }
.q-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-dim-1);
  border: 1px solid var(--line-strong);
  background: var(--surface-tint);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.q-action-btn:hover:not(:disabled) { border-color: var(--text-dim-2); color: var(--text); }
.q-action-btn:disabled { opacity: 0.4; cursor: default; }
.q-action-btn.is-primary {
  background: var(--green);
  border-color: var(--green);
  color: var(--btn-primary-text);
  font-weight: 600;
}
.q-action-btn.is-primary:hover:not(:disabled) { border-color: var(--green); color: var(--btn-primary-text); }
.q-action-btn.is-primary:disabled { background: var(--surface-tint); border-color: var(--line-strong); color: var(--text-dim-1); }
.q-action-btn.is-active { border-color: var(--amber); color: var(--amber); background: rgba(255, 180, 84, 0.1); }

.q-end-btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-dim-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.q-end-btn:hover { border-color: var(--red-soft-border); color: var(--red); }

/* ------------------------------ summary ------------------------------ */
.summary-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  margin-top: 2.2rem;
  margin-bottom: 1.2rem;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-tint);
  padding: 1.6rem;
}
.summary-score { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.summary-score .mock-dial { margin: 0; }
.summary-score .dial-fill { animation: none; transition: stroke-dashoffset 0.9s var(--ease); }
.summary-card .mock-bar i::after { transform: scaleX(1); animation: none; }
.summary-score-label { font-size: 0.82rem; color: var(--text-dim-2); }
.summary-card.dash-next { grid-column: 1 / -1; }
.summary-card.dash-next .dash-next-btn { border: none; cursor: pointer; font-family: var(--font-body); }
.summary-actions { display: flex; gap: 0.8rem; }

@media (max-width: 760px) {
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-score { align-items: flex-start; }
  .app-main { padding-top: 110px; }
  .q-card { padding: 1.4rem; }
  .app-mode-tag { display: none; }
}
@media (max-width: 480px) {
  .type-grid { grid-template-columns: 1fr; }
}
