/* Assignment Center Study Studio — a quiet academic workspace, not a dump. */
.ac-study {
  --study-ink: #1b2430;
  --study-muted: #5d6a7a;
  --study-line: #e6ddd0;
  --study-paper: #f7f3ea;
  --study-card: #fffcf6;
  --study-forest: #1f6b4a;
  --study-forest-2: #2f8a62;
  --study-gold: #b8862b;
  --study-danger: #9b3a32;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--study-ink);
  background:
    radial-gradient(1200px 420px at 8% -10%, rgba(47, 138, 98, .08), transparent 55%),
    var(--study-paper);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

.ac-study *, .ac-study *::before, .ac-study *::after { box-sizing: border-box; }
.ac-study button, .ac-study select, .ac-study textarea, .ac-study input {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.ac-study button { cursor: pointer; }
.ac-study button:focus-visible, .ac-study select:focus-visible, .ac-study textarea:focus-visible, .ac-study a:focus-visible {
  outline: 3px solid rgba(31, 107, 74, .28);
  outline-offset: 2px;
}

.ac-shell.study-standalone {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  grid-template-areas: "canvas" !important;
}
.ac-shell.study-standalone > .ac-topbar,
.ac-shell.study-standalone > .ac-rail,
.ac-shell.study-standalone > .ac-ai-panel,
.ac-shell.study-standalone > .ac-bottom-rail,
.ac-shell.study-standalone > .ac-demo-banner,
.ac-shell.study-standalone > #acMobileTabBar { display: none !important; }
html body .ac-shell.study-standalone.focus-mode > .ac-topbar,
html body .ac-shell.study-standalone.focus-mode > .ac-rail,
html body .ac-shell.study-standalone.focus-mode > .ac-ai-panel,
html body .ac-shell.study-standalone.focus-mode > .ac-bottom-rail { display: none !important; }
.ac-shell.study-standalone > .ac-canvas {
  grid-area: canvas !important;
  min-width: 0;
  min-height: 0;
  padding: 0 !important;
}

.ac-study-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 22px 14px 20px;
  border-bottom: 1px solid var(--study-line);
  background: rgba(255, 252, 246, .92);
}
.ac-study-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ac-study-back {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  color: #4d5a68;
  background: #fff;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .02em;
}
.ac-study-back:hover { transform: translateX(-2px); border-color: #b7cfc2; background: #f3faf6; }
.ac-study-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--study-forest);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ac-study-top h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.15;
}
.ac-study-counts {
  margin: 6px 0 0;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
}
.ac-study-top-actions { display: flex; align-items: center; gap: 10px; }
.ac-study-depth {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 750;
}
.ac-study-depth select {
  height: 38px;
  padding: 0 28px 0 10px;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  color: var(--study-ink);
  background: #fff;
}
.ac-study-primary {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  color: #f7fff9;
  background: linear-gradient(180deg, var(--study-forest-2), var(--study-forest));
  font-size: 12px;
  font-weight: 750;
}
.ac-study-primary:hover:not(:disabled) { filter: brightness(1.06); }
.ac-study-primary:disabled { opacity: .6; cursor: wait; }

.ac-study-error {
  margin: 0;
  padding: 10px 22px;
  border-bottom: 1px solid #ead2ce;
  color: var(--study-danger);
  background: #fff4f1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
}

.ac-study-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
}

.ac-study-sources {
  min-height: 0;
  overflow: auto;
  padding: 16px 16px 28px;
  border-right: 1px solid var(--study-line);
  background: rgba(255, 252, 246, .55);
}
.ac-study-class-rail { margin-bottom: 16px; }
.ac-study-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.ac-study-steps li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
}
.ac-study-steps li b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #6a5420;
  background: #f4e6c4;
  font-size: 10px;
  font-weight: 800;
}
.ac-study-steps li.is-active { color: var(--study-ink); }
.ac-study-steps li.is-active b { color: #f7fff9; background: var(--study-forest); }
.ac-study-steps li.is-done { color: var(--study-forest); }
.ac-study-steps li.is-done b { color: var(--study-forest); background: #e7f4ec; }
.ac-study-saved-block { margin: 0 0 18px; }
.ac-study-saved-block h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  color: #3e4a58;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ac-study-saved-block h3 b { color: var(--study-gold); font-variant-numeric: tabular-nums; }
.ac-study-saved-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-study-saved-block li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 6px;
}
.ac-study-saved {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  color: var(--study-ink);
  background: var(--study-card);
  text-align: left;
}
.ac-study-saved.is-active,
.ac-study-saved-block li.is-active .ac-study-saved {
  border-color: #b7cfc2;
  background: #eef7f2;
}
.ac-study-saved-x {
  width: 32px;
  height: 32px;
  align-self: center;
  border: 1px solid #ead2ce;
  border-radius: 8px;
  color: var(--study-danger);
  background: #fff;
  font-size: 16px;
  line-height: 1;
}
.ac-study-saved-confirm {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: center;
}
.ac-study-saved-confirm button {
  height: 26px;
  padding: 0 8px;
  border: 1px solid #d9d0c3;
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
  font-weight: 750;
}
.ac-study-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 22px 0;
  padding: 10px 14px;
  border: 1px solid #cfe0d6;
  border-radius: 12px;
  background: #f3faf6;
}
.ac-study-save-bar p {
  margin: 0;
  color: var(--study-forest);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
}
.ac-study-save-bar button {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #b7cfc2;
  border-radius: 8px;
  color: var(--study-forest);
  background: #fff;
  font-size: 11px;
  font-weight: 750;
}
.ac-study-chips { display: grid; gap: 8px; margin: 0 0 10px; }
.ac-study-chip, .ac-study-all-upcoming, .ac-study-pick-item {
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  color: var(--study-ink);
  background: var(--study-card);
  text-align: left;
}
.ac-study-chip strong, .ac-study-pick-item strong {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
}
.ac-study-chip small, .ac-study-pick-item small {
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}
.ac-study-chip.active, .ac-study-pick-item.is-active {
  border-color: #b7cfc2;
  background: #eef7f2;
}
.ac-study-all-upcoming {
  margin-top: 4px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
}
.ac-study-all-upcoming.active {
  border-color: #d9c48a;
  color: #6a5420;
  background: #f8efd8;
}
.ac-study-past-toggle {
  margin-top: 6px;
  width: 100%;
  padding: 8px 12px;
  border: 1px dashed #d9d0c3;
  border-radius: 10px;
  color: var(--study-muted);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
}
.ac-study-past-toggle.active {
  border-style: solid;
  border-color: #d9c48a;
  color: #6a5420;
  background: #f8efd8;
}
.ac-study-all-sets {
  margin: 0 0 8px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  color: var(--study-muted);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
}
.ac-study-all-sets.active {
  border-color: #d9c48a;
  color: #6a5420;
  background: #f8efd8;
}
.ac-study-pill.is-past {
  color: #7a4a16;
  background: #f3ddb8;
}
.ac-study-scope-tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--study-forest);
  background: #e7f4ec;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ac-study-class-section {
  padding: 16px 18px;
  border: 1px solid var(--study-line);
  border-radius: 16px;
  background: var(--study-card);
  display: grid;
  gap: 16px;
}
.ac-study-ideas li .ac-study-scope-tag,
.ac-study-vocab .ac-study-scope-tag { margin-bottom: 4px; }

.ac-study-focus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}
.ac-study-focus button {
  height: 32px;
  border: 1px solid #d9d0c3;
  border-radius: 8px;
  color: #4d5a68;
  background: #fff;
  font-size: 11px;
  font-weight: 740;
}
.ac-study-focus button.active {
  border-color: #b7cfc2;
  color: var(--study-forest);
  background: #eef7f2;
}
.ac-study-focus-hint {
  margin: 0 0 14px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}
.ac-study-source-block { margin: 0 0 18px; }
.ac-study-source-block h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  color: #3e4a58;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ac-study-source-block h3 b {
  color: var(--study-gold);
  font-variant-numeric: tabular-nums;
}
.ac-study-source-block h4 {
  margin: 12px 0 6px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
}
.ac-study-source-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ac-study-source-block li,
.ac-study-material {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid #eee6d9;
  border-radius: 10px;
  background: var(--study-card);
}
.ac-study-source-block strong, .ac-study-material a, .ac-study-material span {
  color: var(--study-ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.ac-study-material a:hover { color: var(--study-forest); text-decoration: underline; }
.ac-study-source-block small, .ac-study-empty-line {
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}
.ac-study-pill {
  width: fit-content;
  margin-bottom: 2px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #6a5420;
  background: #f4e6c4;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ac-study-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: transparent;
}
.ac-study-built {
  margin: 14px 22px 0;
  padding: 14px 16px;
  border: 1px solid var(--study-line);
  border-radius: 14px;
  background: var(--study-card);
}
.ac-study-intents, .ac-study-used {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.ac-study-intents li { display: contents; }
.ac-study-intents button,
.ac-study-intent {
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--study-forest);
  background: #e7f4ec;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
}
.ac-study-intents button.active,
.ac-study-intent.active {
  color: #fff;
  background: var(--study-forest);
}
.ac-study-used li,
.ac-study-used-full li {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.ac-study-used li a, .ac-study-used li span,
.ac-study-used-full li a, .ac-study-used-full li span {
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid #eee6d9;
  border-radius: 999px;
  color: var(--study-ink);
  background: #fffdf8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.ac-study-used li a:hover,
.ac-study-used-full li a:hover { color: var(--study-forest); border-color: #b7cfc2; }
.ac-study-sources-stage {
  min-width: 0;
  padding: 8px 0 12px;
}
.ac-study-sources-stage h3 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ac-study-used-full {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-study-used-full li {
  display: grid;
  gap: 4px;
}
.ac-study-used-full small {
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}
.ac-study-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 22px 0;
}
.ac-study-tabs button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #5b6776;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.ac-study-tabs button b {
  margin-left: 6px;
  color: var(--study-gold);
  font-variant-numeric: tabular-nums;
}
.ac-study-tabs button.active {
  border-color: #d9d0c3;
  color: var(--study-ink);
  background: var(--study-card);
}
.ac-study-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 22px 36px;
}

.ac-study-empty, .ac-study-building, .ac-study-quiz-done {
  max-width: 640px;
  margin: 48px auto;
  text-align: center;
}
.ac-study-empty span, .ac-study-building span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 14px;
  color: var(--study-forest);
  background: #e7f4ec;
  font-size: 20px;
}
.ac-study-building span {
  animation: ac-study-pulse 1s ease-in-out infinite;
}
@keyframes ac-study-pulse { 50% { transform: scale(.92); opacity: .7; } }
.ac-study-empty h3, .ac-study-building h3, .ac-study-guide h3, .ac-study-quiz h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.03em;
}
.ac-study-empty p, .ac-study-building p {
  margin: 0 0 18px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.ac-study-guide {
  max-width: 820px;
  width: 100%;
  margin: 12px auto 0;
  display: grid;
  gap: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}
.ac-study-guide,
.ac-study-guide *,
.ac-study-quiz,
.ac-study-quiz *,
.ac-study-cards,
.ac-study-cards * {
  position: static;
  float: none;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}
.ac-study-hero-card, .ac-study-guide section {
  padding: 18px 20px;
  border: 1px solid var(--study-line);
  border-radius: 16px;
  background: var(--study-card);
}
.ac-study-kicker {
  margin: 0 0 6px;
  color: var(--study-gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ac-study-hero-card p,
.ac-study-guide p {
  margin: 8px 0 0;
  color: #3f4b59;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
.ac-study-guide section header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-bottom: 12px;
}
.ac-study-guide section header span {
  flex: 0 0 auto;
  color: var(--study-gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.ac-study-guide h3,
.ac-study-quiz h3 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.ac-study-guide h4 {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.ac-study-ideas { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: idea; }
.ac-study-ideas li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
  counter-increment: idea;
}
.ac-study-ideas li::before {
  content: counter(idea);
  grid-column: 1;
  grid-row: 1;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--study-forest);
  background: #e7f4ec;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
}
.ac-study-idea-body {
  grid-column: 2;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 6px;
}
.ac-study-idea-body strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ac-study-idea-body p,
.ac-study-ideas p,
.ac-study-likely,
.ac-study-traps p,
.ac-study-review-grid p,
.ac-study-why p {
  margin: 0;
  color: #445060;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.ac-study-vocab {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.ac-study-vocab th, .ac-study-vocab td {
  padding: 8px 10px;
  border-bottom: 1px solid #efe7da;
  text-align: left;
  vertical-align: top;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.ac-study-vocab thead th { color: var(--study-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ac-study-likely {
  margin: 0;
  padding-left: 1.25em;
  line-height: 1.65;
}
.ac-study-likely li {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.ac-study-review-grid, .ac-study-traps { display: grid; gap: 10px; }
@media (min-width: 840px) {
  .ac-study-review-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.ac-study-review-grid article, .ac-study-traps article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #eee6d9;
  border-radius: 12px;
  background: #fffdf8;
}
.ac-study-review-grid article strong,
.ac-study-traps article strong {
  display: block;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ac-study-review-grid a {
  display: inline-block;
  margin-top: 8px;
  color: var(--study-forest);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 750;
}

.ac-study-quiz, .ac-study-cards { max-width: 680px; margin: 18px auto 0; }
.ac-study-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--study-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
}
.ac-study-meter { width: 140px; height: 8px; accent-color: var(--study-forest); }
.ac-study-choices { display: grid; gap: 8px; margin: 16px 0; }
.ac-study-choice {
  padding: 12px 14px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  color: var(--study-ink);
  background: #fff;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.ac-study-choice.is-selected { border-color: var(--study-forest); box-shadow: 0 0 0 3px rgba(31, 107, 74, .12); }
.ac-study-choice.is-right { border-color: var(--study-forest); background: #eef7f2; }
.ac-study-choice.is-wrong { border-color: #d7b0aa; background: #fff4f1; }
.ac-study-short { display: grid; gap: 6px; margin: 16px 0; color: var(--study-muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 12px; }
.ac-study-short textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9d0c3;
  border-radius: 12px;
  color: var(--study-ink);
  background: #fff;
  font-size: 14px;
}
.ac-study-why {
  margin: 12px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--study-gold);
  background: #fff8ea;
}
.ac-study-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ac-study-actions button {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d9d0c3;
  border-radius: 10px;
  color: #3e4a58;
  background: #fff;
  font-size: 12px;
  font-weight: 740;
}
.ac-study-flash {
  width: 100%;
  min-height: 220px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--study-line);
  border-radius: 18px;
  color: inherit;
  background: var(--study-card);
  text-align: center;
}
.ac-study-flash span {
  color: var(--study-gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ac-study-flash strong {
  font-size: clamp(18px, 4vw, 28px);
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}
.ac-study-flash em { color: var(--study-muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 14px; font-style: normal; }
.ac-study-flash small {
  color: var(--study-gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 750;
}
.ac-study-flash.is-revealed { background: #f3faf6; border-color: #cfe0d6; }
.ac-study-keys { margin: 12px 0 0; color: #8a94a1; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 11px; text-align: center; }
.ac-study-score { display: grid; gap: 4px; margin-bottom: 18px; }
.ac-study-score b { font-size: 56px; letter-spacing: -.04em; color: var(--study-forest); }
.ac-study-quiz-done ol { text-align: left; }

@media (max-width: 860px) {
  .ac-study-layout { grid-template-columns: 1fr; }
  .ac-study-sources { border-right: 0; border-bottom: 1px solid var(--study-line); max-height: 42vh; }
  .ac-study-top { flex-wrap: wrap; }
  .ac-study-top h1 { font-size: 18px; line-height: 1.3; }
  .ac-study-stage { padding: 8px 14px 36px; }
  .ac-study-guide {
    margin: 8px 0 0;
    gap: 16px;
  }
  .ac-study-hero-card, .ac-study-guide section { padding: 14px; }
  .ac-study-guide h3, .ac-study-quiz h3 { font-size: 22px; line-height: 1.3; }
  .ac-study-guide h4 { font-size: 17px; }
  .ac-study-ideas li { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; }
  .ac-study-vocab th, .ac-study-vocab td { padding: 8px 6px; font-size: 12px; }
  .ac-study-review-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-study-flash { padding: 20px 16px; min-height: 180px; }
}
