:root {
  color-scheme: light;
  --bg: #e8f3f8;
  --panel: #ffffff;
  --panel-soft: #edf6fa;
  --ink: #102735;
  --muted: #5b6e78;
  --line: #cadde6;
  --teal: #0a74a3;
  --teal-strong: #07577d;
  --navy: #0e3a56;
  --sky: #dbeef7;
  --amber: #c6902b;
  --red: #b42318;
  --green: #15803d;
  --blue: #1d4ed8;
  --shadow: 0 14px 34px rgba(7, 34, 52, 0.1);
  --native-top-guard: 0px;
  --native-bottom-guard: 0px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(8, 85, 125, 0.16), rgba(214, 235, 246, 0.58) 230px, transparent 420px),
    var(--bg);
  color: var(--ink);
  line-height: 1.45;
  overscroll-behavior-y: contain;
}

body.native-app {
  --native-top-guard: 14px;
  --native-bottom-guard: 29px;
}

body.native-app::before,
body.native-app::after {
  background: var(--bg);
  content: "";
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 10000;
}

body.native-app::before {
  height: calc(var(--native-top-guard) + env(safe-area-inset-top));
  top: 0;
}

body.native-app::after {
  bottom: 0;
  height: calc(var(--native-bottom-guard) + env(safe-area-inset-bottom));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button[hidden] {
  display: none;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    calc(22px + env(safe-area-inset-top))
    calc(22px + env(safe-area-inset-right))
    calc(22px + env(safe-area-inset-bottom))
    calc(22px + env(safe-area-inset-left));
}

body.native-app .app-shell {
  padding-top: calc(16px + var(--native-top-guard) + env(safe-area-inset-top));
  padding-bottom: calc(24px + var(--native-bottom-guard) + env(safe-area-inset-bottom));
}

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto 16px;
  max-width: 1360px;
}

.brand-lockup {
  align-items: center;
  display: flex;
  gap: 13px;
  min-width: 0;
}

.app-logo {
  flex: 0 0 auto;
  height: 58px;
  width: 58px;
}

.top-controls {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto 16px;
  max-width: 1360px;
}

.mode-strip {
  max-width: 520px;
}

.filter-open-button {
  min-width: 172px;
}

.eyebrow {
  color: var(--teal-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.dataset-status {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 8px 13px;
  white-space: nowrap;
}

.status-stack {
  display: grid;
  gap: 7px;
  justify-items: end;
}

.profile-chip {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-strong);
  display: grid;
  gap: 1px;
  justify-items: end;
  min-height: 45px;
  padding: 7px 13px;
  text-align: right;
}

.profile-chip span {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.profile-chip small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.license-status {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 12px;
  white-space: nowrap;
}

.license-status.trial,
.license-status.active {
  border-color: rgba(10, 116, 163, 0.35);
  color: var(--teal-strong);
}

.license-status.offline {
  border-color: rgba(198, 144, 43, 0.45);
  color: #8a5d12;
}

.license-status.expired,
.license-status.blocked {
  border-color: rgba(180, 35, 24, 0.4);
  color: var(--red);
}

.layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 320px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1360px;
}

.app-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.03em;
  margin: 18px auto 0;
  max-width: 1360px;
  min-height: 36px;
  opacity: 0.86;
  text-transform: uppercase;
}

.app-footer img {
  display: block;
  height: 44px;
  max-width: 220px;
  width: auto;
}

.progress-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 18px auto 0;
  max-width: 1360px;
  padding: 16px;
}

.progress-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.progress-header h2 {
  font-size: 1.18rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.prep-score {
  align-items: center;
  background: var(--teal-strong);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  min-width: 72px;
  padding: 8px 14px;
}

.progress-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.progress-summary > div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  min-height: 70px;
  padding: 12px;
}

.progress-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-summary strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.1;
}

.prep-meter {
  background: #d7e8f1;
  border-radius: 999px;
  height: 10px;
  margin-bottom: 14px;
  overflow: hidden;
}

.prep-meter span {
  background: linear-gradient(90deg, var(--amber), var(--teal));
  display: block;
  height: 100%;
  width: 0%;
}

.daily-chart {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-column {
  display: grid;
  gap: 7px;
  min-width: 0;
  text-align: center;
}

.day-bars {
  align-items: end;
  background: #eef7fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: 92px;
  overflow: hidden;
  padding: 7px;
}

.time-bar,
.result-bar {
  align-items: end;
  display: flex;
  height: 100%;
}

.time-bar span,
.result-bar span {
  border-radius: 5px 5px 2px 2px;
  display: block;
  min-height: 3px;
  width: 100%;
}

.time-bar span {
  background: var(--teal);
}

.result-bar span {
  background: var(--green);
}

.day-column.wrong-heavy .result-bar span {
  background: var(--amber);
}

.day-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.day-value {
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  min-height: 1em;
}

.sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.panel,
.question-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 15px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.label,
.panel-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.segmented {
  background: #e4f1f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 4px;
}

.mode-button,
.quiet-button,
.primary-button,
.option-button,
.modal-close {
  border-radius: 7px;
  min-height: 40px;
}

.mode-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 7px;
}

.mode-button.active {
  background: var(--panel);
  box-shadow: 0 5px 14px rgba(7, 34, 52, 0.1);
  color: var(--teal-strong);
}

select,
input,
textarea {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  min-height: 41px;
  outline: none;
  padding: 9px 11px;
  width: 100%;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10, 116, 163, 0.18);
}

.stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 12px;
}

.stat-grid > div {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  font-size: 1.38rem;
  font-weight: 850;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 5px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quiet-button,
.primary-button,
.modal-close {
  align-items: center;
  border: 1px solid var(--line);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 9px 12px;
}

.quiet-button {
  background: #fbfdfc;
  color: var(--ink);
}

.primary-button {
  background: linear-gradient(180deg, #0d7fac, var(--teal-strong));
  border-color: var(--teal);
  color: #ffffff;
}

.quiet-button:hover {
  border-color: var(--teal);
  color: var(--teal-strong);
}

.primary-button:hover {
  background: var(--teal-strong);
}

.install-panel {
  display: grid;
  gap: 11px;
}

.install-help {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.install-panel .primary-button:disabled {
  background: #d7e2de;
  border-color: #d7e2de;
  color: #6b7a75;
  cursor: not-allowed;
}

body.native-app .install-panel {
  display: none;
}

.workspace {
  min-width: 0;
}

.workspace-toolbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.counter {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.question-card {
  min-height: 520px;
  overflow: hidden;
}

.question-header {
  background:
    linear-gradient(90deg, rgba(8, 85, 125, 0.14), rgba(14, 58, 86, 0.08), rgba(198, 144, 43, 0.08)),
    #fbfdfc;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 9px;
  padding: 17px 19px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 8px;
}

.tag.domain {
  color: var(--teal-strong);
}

.question-title {
  font-size: clamp(1.13rem, 2vw, 1.52rem);
  letter-spacing: 0;
  line-height: 1.34;
  margin: 0;
}

.question-body {
  display: grid;
  gap: 16px;
  padding: 19px;
}

.prompt-text {
  font-size: 1.02rem;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.question-figures {
  background: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 16px 19px 0;
}

.figure-button {
  align-items: center;
  background: #f7fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  display: flex;
  justify-content: center;
  min-height: clamp(180px, 30vw, 360px);
  overflow: hidden;
  padding: 10px;
  position: relative;
  width: 100%;
}

.figure-button img {
  display: block;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  width: 100%;
}

.figure-button:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 24px rgba(7, 34, 52, 0.1);
}

.figure-zoom-mark {
  background: rgba(7, 87, 125, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(7, 34, 52, 0.2);
  height: 34px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
}

.figure-zoom-mark::before,
.figure-zoom-mark::after {
  background: #ffffff;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.figure-zoom-mark::before {
  height: 3px;
  width: 14px;
}

.figure-zoom-mark::after {
  height: 14px;
  width: 3px;
}

.options {
  display: grid;
  gap: 10px;
}

.option-button {
  align-items: start;
  background: #fbfdfc;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-height: 56px;
  padding: 11px;
  text-align: left;
  width: 100%;
}

.option-key {
  align-items: center;
  background: var(--sky);
  border-radius: 999px;
  color: var(--teal-strong);
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  text-transform: uppercase;
  width: 30px;
}

.option-button:hover {
  border-color: var(--teal);
}

.option-button.correct {
  background: rgba(21, 128, 61, 0.1);
  border-color: rgba(21, 128, 61, 0.55);
}

.option-button.wrong {
  background: rgba(180, 35, 24, 0.09);
  border-color: rgba(180, 35, 24, 0.5);
}

.option-button.dimmed {
  opacity: 0.68;
}

.feedback {
  border-left: 4px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
}

.feedback.correct {
  background: rgba(21, 128, 61, 0.09);
  border-left-color: var(--green);
}

.feedback.wrong {
  background: rgba(180, 35, 24, 0.08);
  border-left-color: var(--red);
}

.feedback.neutral {
  background: rgba(29, 78, 216, 0.08);
  border-left-color: var(--blue);
}

.explanation-panel {
  background: #f8fbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.explanation-panel strong {
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explanation-panel p {
  margin: 0;
}

.explanation-panel .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.open-answer {
  display: grid;
  gap: 12px;
}

.open-answer textarea {
  min-height: 112px;
  resize: vertical;
}

.solution-panel {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.solution-panel strong {
  color: var(--teal-strong);
}

.empty-state,
.error-state {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 520px;
  padding: 24px;
  text-align: center;
}

.error-state {
  color: var(--red);
}

.image-modal[hidden] {
  display: none;
}

.profile-modal[hidden] {
  display: none;
}

.license-gate[hidden] {
  display: none;
}

.license-gate {
  align-items: center;
  background: rgba(8, 28, 42, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    calc(18px + env(safe-area-inset-right))
    calc(18px + env(safe-area-inset-bottom))
    calc(18px + env(safe-area-inset-left));
  position: fixed;
  z-index: 40;
}

.license-gate-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(3, 20, 32, 0.32);
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 420px;
  padding: 24px;
  text-align: center;
  width: 100%;
}

.license-gate-panel h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
}

.license-gate-panel p {
  color: var(--muted);
  margin: 0;
}

.license-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.selection-page[hidden] {
  display: none;
}

.selection-page {
  inset: 0;
  position: fixed;
  z-index: 28;
}

.profile-modal {
  inset: 0;
  position: fixed;
  z-index: 29;
}

.selection-page-backdrop {
  background: rgba(15, 23, 42, 0.42);
  inset: 0;
  position: absolute;
}

.profile-modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
  inset: 0;
  position: absolute;
}

.selection-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(7, 34, 52, 0.26);
  display: grid;
  gap: 16px;
  left: 50%;
  max-width: min(92vw, 520px);
  padding: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.profile-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(7, 34, 52, 0.26);
  display: grid;
  gap: 16px;
  left: 50%;
  max-width: min(92vw, 460px);
  padding: 18px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.profile-panel form {
  display: grid;
  gap: 14px;
}

.selection-header {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.selection-header h2 {
  font-size: 1.35rem;
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

.image-modal {
  inset: 0;
  position: fixed;
  z-index: 30;
}

.image-modal-backdrop {
  background: rgba(15, 23, 42, 0.72);
  inset: 0;
  position: absolute;
}

.image-modal-panel {
  background: #ffffff;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  left: 50%;
  max-height: 92vh;
  max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-width: min(92vw, 1120px);
  overflow: auto;
  padding: 14px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 1120px);
}

.image-modal-panel img {
  display: block;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  width: 100%;
}

.image-modal-panel p {
  color: var(--muted);
  margin: 0;
}

.modal-close {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  justify-self: end;
}

@media (max-width: 980px) {
  .app-shell {
    padding:
      calc(14px + env(safe-area-inset-top))
      calc(14px + env(safe-area-inset-right))
      calc(20px + env(safe-area-inset-bottom))
      calc(14px + env(safe-area-inset-left));
  }

  body.native-app .app-shell {
    padding-top: calc(14px + var(--native-top-guard) + env(safe-area-inset-top));
    padding-bottom: calc(20px + var(--native-bottom-guard) + env(safe-area-inset-bottom));
  }

  .topbar,
  .workspace-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-stack {
    justify-items: start;
    width: 100%;
  }

  .profile-chip {
    justify-items: start;
    text-align: left;
  }

  .top-controls {
    grid-template-columns: 1fr;
  }

  .mode-strip {
    max-width: none;
    width: 100%;
  }

  .filter-open-button {
    width: 100%;
  }

  .dataset-status,
  .license-status {
    white-space: normal;
  }

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

  .progress-summary {
    grid-template-columns: 1fr;
  }

  .workspace {
    order: 1;
  }

  .sidebar {
    order: 2;
    position: static;
  }
}

@media (max-width: 620px) {
  .app-shell {
    padding:
      calc(16px + env(safe-area-inset-top))
      calc(12px + env(safe-area-inset-right))
      calc(26px + env(safe-area-inset-bottom))
      calc(12px + env(safe-area-inset-left));
  }

  body.native-app .app-shell {
    padding-top: calc(14px + var(--native-top-guard) + env(safe-area-inset-top));
    padding-bottom: calc(20px + var(--native-bottom-guard) + env(safe-area-inset-bottom));
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .top-controls {
    margin-bottom: 12px;
  }

  .brand-lockup {
    gap: 10px;
  }

  .app-logo {
    height: 50px;
    width: 50px;
  }

  .dataset-status {
    font-size: 0.82rem;
    padding: 7px 11px;
  }

  .layout,
  .sidebar {
    gap: 12px;
  }

  .app-footer {
    font-size: 0.68rem;
    margin-top: 14px;
  }

  .app-footer img {
    height: 40px;
    max-width: 198px;
  }

  .progress-panel {
    margin-top: 14px;
    padding: 13px;
  }

  .progress-header {
    align-items: flex-start;
  }

  .daily-chart {
    gap: 6px;
  }

  .day-bars {
    height: 74px;
    padding: 5px;
  }

  .day-value {
    display: none;
  }

  .panel {
    padding: 13px;
  }

  .field {
    gap: 7px;
    margin-bottom: 11px;
  }

  .segmented {
    gap: 3px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-button {
    font-size: 0.78rem;
    min-height: 38px;
    padding: 7px 5px;
  }

  .selection-page {
    background: #ffffff;
    overflow: auto;
    padding:
      calc(18px + env(safe-area-inset-top))
      calc(12px + env(safe-area-inset-right))
      calc(32px + env(safe-area-inset-bottom))
      calc(12px + env(safe-area-inset-left));
  }

  .selection-page-backdrop {
    display: none;
  }

  .profile-modal {
    background: #ffffff;
    overflow: auto;
    padding:
      calc(18px + env(safe-area-inset-top))
      calc(12px + env(safe-area-inset-right))
      calc(32px + env(safe-area-inset-bottom))
      calc(12px + env(safe-area-inset-left));
  }

  .profile-modal-backdrop {
    display: none;
  }

  .selection-panel {
    border: 0;
    box-shadow: none;
    left: auto;
    max-width: none;
    padding: 0;
    position: static;
    top: auto;
    transform: none;
  }

  .profile-panel {
    border: 0;
    box-shadow: none;
    left: auto;
    max-width: none;
    padding: 0;
    position: static;
    top: auto;
    transform: none;
  }

  select,
  input,
  textarea {
    font-size: 16px;
    min-height: 40px;
    padding: 8px 10px;
  }

  .stats-panel .button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiet-button,
  .primary-button,
  .modal-close {
    min-height: 39px;
    padding: 8px 10px;
  }

  .workspace-toolbar .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .question-card {
    min-height: 430px;
  }

  .question-figures {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 12px 14px 0;
  }

  .figure-button {
    min-height: 170px;
    padding: 8px;
  }

  .figure-button img {
    max-height: 300px;
  }

  .question-header,
  .question-body {
    padding: 14px;
  }

  .question-title {
    font-size: 1.08rem;
  }

  .prompt-text {
    font-size: 1rem;
  }

  .option-button {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .empty-state,
  .error-state {
    min-height: 430px;
  }
}
