.ls-focused-review-panel {
  position: relative;
  margin-top: 1rem;
}

.ls-review-workspace:not([data-ls-review-view="focused"]) > .ls-focused-review-panel,
.ls-review-workspace[data-ls-review-view="focused"] > .ls-review-native-content {
  display: none !important;
}

.ls-fr-loading,
.ls-fr-error,
.ls-fr-generation-status {
  margin: 0;
  border: 1px solid oklch(88% 0.016 246);
  border-radius: 8px;
  background: oklch(99% 0.004 235);
  padding: 1rem;
  color: oklch(49% 0.025 258);
}

.ls-fr-error {
  color: oklch(46% 0.12 28);
}

.ls-fr-generation-status {
  display: grid;
  gap: 0.35rem;
  width: min(100%, 880px);
  margin-inline: auto;
  box-shadow: 0 16px 34px rgba(38, 55, 100, 0.1);
}

.ls-fr-generation-status strong,
.ls-fr-generation-status p {
  margin: 0;
}

.ls-fr-generation-status p {
  color: oklch(49% 0.025 258);
}

.ls-fr-card {
  --fr-ink: oklch(24% 0.025 260);
  --fr-muted: oklch(49% 0.025 258);
  --fr-line: oklch(88% 0.016 246);
  --fr-line-strong: oklch(78% 0.035 248);
  --fr-paper: oklch(99% 0.004 235);
  --fr-field: oklch(96.8% 0.012 240);
  --fr-signal: oklch(48% 0.09 229);
  --fr-signal-soft: oklch(94% 0.027 225);
  --fr-correct: oklch(46% 0.095 165);
  --fr-correct-soft: oklch(95% 0.03 164);
  --fr-wrong: oklch(52% 0.14 28);
  --fr-wrong-soft: oklch(96% 0.026 25);
  display: grid;
  gap: 0;
  width: min(100%, 880px);
  margin-inline: auto;
  border: 1px solid var(--fr-line);
  border-radius: 8px;
  background: var(--fr-paper);
  box-shadow: 0 24px 64px rgba(30, 43, 68, 0.1);
  color: var(--fr-ink);
  overflow: hidden;
}

.ls-fr-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem) 1.3rem;
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-field);
}

.ls-fr-heading {
  min-width: 0;
}

.ls-fr-kicker,
.ls-fr-topic,
.ls-fr-insight-label,
.ls-fr-formula-label,
.ls-fr-formula-translation > span,
.ls-fr-formula-use > span,
.ls-fr-rule-line > span,
.ls-fr-quick-label,
.ls-fr-source-label,
.ls-fr-concept-label,
.ls-fr-support-kind,
.ls-fr-strategy-label {
  color: var(--fr-muted);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.35;
}

.ls-fr-kicker {
  color: var(--fr-signal);
}

.ls-fr-title {
  margin: 0.3rem 0 0;
  color: var(--fr-ink);
  font-family: "Aptos Display", "Segoe UI Variable Display", "Aptos", "Segoe UI", system-ui, sans-serif;
  font-size: 1.62rem;
  font-weight: 640;
  line-height: 1.18;
  letter-spacing: 0;
}

.ls-fr-topic {
  flex: 0 0 auto;
  border: 1px solid var(--fr-line);
  border-radius: 999px;
  background: var(--fr-paper);
  padding: 0.38rem 0.66rem;
  color: var(--fr-ink);
}

.ls-fr-source {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem clamp(1.25rem, 3vw, 2.25rem) 0;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-field);
  padding: 0.85rem 1rem;
}

.ls-fr-source-question {
  max-width: 72ch;
  margin: 0;
  color: var(--fr-ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ls-fr-diagnosis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1.25rem clamp(1.25rem, 3vw, 2.25rem) 0;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-line);
  overflow: hidden;
}

.ls-fr-insight {
  min-width: 0;
  background: var(--fr-paper);
  padding: 0.9rem 1rem;
}

.ls-fr-insight p {
  max-width: 48ch;
  margin: 0.32rem 0 0;
  color: var(--fr-ink);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ls-fr-section,
.ls-fr-visual-section,
.ls-fr-concept-name,
.ls-fr-strategy,
.ls-fr-formula-section,
.ls-fr-repaired-rule,
.ls-fr-quick-check {
  padding: 1.5rem clamp(1.25rem, 3vw, 2.25rem);
}

.ls-fr-section + .ls-fr-section,
.ls-fr-concept-name + .ls-fr-section,
.ls-fr-visual-section + .ls-fr-concept-name,
.ls-fr-strategy + .ls-fr-visual-section,
.ls-fr-strategy + .ls-fr-section,
.ls-fr-section + .ls-fr-formula-section,
.ls-fr-formula-section + .ls-fr-section,
.ls-fr-formula-section + .ls-fr-formula-section,
.ls-fr-section + .ls-fr-repaired-rule,
.ls-fr-repaired-rule + .ls-fr-quick-check {
  border-top: 1px solid var(--fr-line);
}

.ls-fr-familiar {
  padding-top: 1.7rem;
  padding-bottom: 1.1rem;
}

.ls-fr-section-title {
  margin: 0 0 0.75rem;
  color: var(--fr-ink);
  font-size: 1rem;
  font-weight: 670;
  line-height: 1.35;
}

.ls-fr-copy {
  display: grid;
  gap: 0.38rem;
  max-width: 70ch;
}

.ls-fr-copy p {
  margin: 0;
  color: var(--fr-ink);
  font-size: 0.96rem;
  line-height: 1.62;
}

.ls-fr-visual-section {
  display: grid;
  gap: 0.85rem;
  background: var(--fr-field);
}

.ls-fr-support-kind {
  color: var(--fr-signal);
}

.ls-fr-strategy {
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--fr-line);
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-paper);
}

.ls-fr-strategy-label {
  color: var(--fr-signal);
}

.ls-fr-strategy-title {
  margin: 0.24rem 0 0;
  color: var(--fr-ink);
  font-size: 1.04rem;
  font-weight: 680;
  line-height: 1.35;
}

.ls-fr-strategy-reason {
  max-width: 68ch;
  margin: 0.34rem 0 0;
  color: var(--fr-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.ls-fr-concept-name {
  padding: 1rem clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--fr-line);
  border-bottom: 1px solid var(--fr-line);
  background: var(--fr-paper);
}

.ls-fr-concept-label {
  color: var(--fr-signal);
}

.ls-fr-concept-title {
  margin: 0.24rem 0 0;
  color: var(--fr-ink);
  font-size: 1.08rem;
  font-weight: 680;
  line-height: 1.35;
}

.ls-fr-attention-cue {
  max-width: 68ch;
  margin: 0;
  color: var(--fr-ink);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.5;
}

.ls-fr-figure {
  margin: 0;
}

.ls-fr-rectangle-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 250px;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-paper);
}

.ls-fr-generated-svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-paper);
}

.ls-fr-generated-box {
  fill: oklch(98% 0.007 239);
  stroke: oklch(78% 0.035 248);
  stroke-width: 1.5;
}

.ls-fr-generated-panel,
.ls-fr-generated-whole {
  fill: oklch(98% 0.007 239);
  stroke: oklch(78% 0.035 248);
  stroke-width: 1.5;
}

.ls-fr-generated-whole {
  fill: var(--fr-signal-soft);
  stroke: oklch(62% 0.06 229);
}

.ls-fr-generated-number {
  fill: var(--fr-signal);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 720;
}

.ls-fr-generated-label,
.ls-fr-generated-role {
  fill: var(--fr-ink);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.ls-fr-generated-label {
  font-size: 14px;
  font-weight: 680;
}

.ls-fr-generated-role {
  fill: var(--fr-muted);
  font-size: 12px;
}

.ls-fr-generated-connector {
  stroke: oklch(62% 0.06 229);
  stroke-width: 1.5;
}

.ls-fr-number-line,
.ls-fr-number-tick {
  stroke: oklch(48% 0.06 240);
  stroke-width: 2;
}

.ls-fr-svg-base {
  fill: oklch(95% 0.012 242);
  stroke: oklch(45% 0.04 253);
  stroke-width: 2;
}

.ls-fr-svg-side-strip {
  fill: oklch(84% 0.07 211);
  stroke: oklch(48% 0.09 229);
  stroke-width: 2;
}

.ls-fr-svg-top-strip {
  fill: oklch(91% 0.045 229);
  stroke: oklch(48% 0.09 229);
  stroke-width: 2;
}

.ls-fr-svg-measure {
  stroke: oklch(55% 0.03 254);
  stroke-width: 1.5;
}

.ls-fr-svg-heading {
  fill: var(--fr-ink);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 680;
}

.ls-fr-svg-label,
.ls-fr-svg-strip-label {
  fill: oklch(38% 0.035 252);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 620;
}

.ls-fr-svg-strip-label {
  fill: oklch(32% 0.065 225);
  font-size: 13px;
}

.ls-fr-figure-caption {
  display: grid;
  gap: 0.16rem;
  margin-top: 0.55rem;
  color: var(--fr-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.ls-fr-figure-caption strong {
  color: var(--fr-ink);
  font-weight: 650;
}

.ls-fr-symbol-section {
  background: oklch(98% 0.007 239);
}

.ls-fr-symbol-grid {
  display: grid;
  gap: 1px;
  margin: 1rem 0 0;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-line);
  overflow: hidden;
}

.ls-fr-symbol-row {
  display: grid;
  grid-template-columns: minmax(74px, 0.22fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  background: var(--fr-paper);
  padding: 0.72rem 0.85rem;
}

.ls-fr-symbol {
  color: var(--fr-signal);
  font-size: 1rem;
  font-weight: 700;
}

.ls-fr-symbol-row dd {
  margin: 0;
  color: var(--fr-ink);
  font-size: 0.87rem;
  line-height: 1.5;
}

.ls-fr-formula-section {
  background: var(--fr-signal-soft);
}

.ls-fr-formula-lead {
  margin: 0.5rem 0 0;
  color: var(--fr-ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ls-fr-formula {
  margin-top: 0.8rem;
  color: var(--fr-ink);
  font-family: "Aptos", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 1.12rem;
  font-weight: 680;
  line-height: 1.45;
}

.ls-fr-formula-section.is-formula .ls-fr-formula {
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.ls-fr-formula-translation,
.ls-fr-formula-use {
  display: grid;
  gap: 0.3rem;
  max-width: 66ch;
  margin-top: 0.9rem;
  border-top: 1px solid var(--fr-line-strong);
  padding-top: 0.8rem;
}

.ls-fr-formula-use {
  margin-top: 0.7rem;
}

.ls-fr-formula-translation p,
.ls-fr-formula-use p {
  margin: 0;
  color: var(--fr-ink);
  font-size: 0.96rem;
  font-weight: 590;
  line-height: 1.55;
}

.ls-fr-rule-contrast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-line);
  overflow: hidden;
}

.ls-fr-rule-line {
  background: var(--fr-paper);
  padding: 0.9rem 1rem;
}

.ls-fr-rule-line p {
  margin: 0.34rem 0 0;
  color: var(--fr-ink);
  font-size: 0.94rem;
  line-height: 1.55;
}

.ls-fr-rule-new {
  background: var(--fr-signal-soft);
}

.ls-fr-rule-new > span {
  color: var(--fr-signal);
}

.ls-fr-quick-check {
  border-top: 1px solid var(--fr-line);
  background: var(--fr-field);
}

.ls-fr-quick-label {
  color: var(--fr-signal);
}

.ls-fr-quick-question {
  max-width: 64ch;
  margin: 0.45rem 0 0;
  color: var(--fr-ink);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.45;
}

.ls-fr-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 520px;
  margin-top: 1rem;
}

.ls-fr-choice,
.ls-fr-check-button,
.ls-fr-review-later {
  min-height: 44px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.ls-fr-choice {
  border: 1px solid var(--fr-line-strong);
  background: var(--fr-paper);
  color: var(--fr-ink);
}

.ls-fr-choice:hover:not(:disabled) {
  border-color: var(--fr-signal);
  background: var(--fr-signal-soft);
}

.ls-fr-choice.is-selected {
  border-color: var(--fr-signal);
  box-shadow: 0 0 0 2px oklch(48% 0.09 229 / 0.14);
}

.ls-fr-choice.is-correct {
  border-color: var(--fr-correct);
  background: var(--fr-correct-soft);
}

.ls-fr-choice.is-incorrect {
  border-color: var(--fr-wrong);
  background: var(--fr-wrong-soft);
}

.ls-fr-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.ls-fr-check-button {
  border: 1px solid var(--fr-ink);
  background: var(--fr-ink);
  padding: 0.68rem 1rem;
  color: var(--fr-paper);
}

.ls-fr-check-button:hover:not(:disabled) {
  background: oklch(18% 0.025 260);
}

.ls-fr-check-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.ls-fr-review-later {
  border: 1px solid var(--fr-line-strong);
  background: var(--fr-paper);
  padding: 0.68rem 1rem;
  color: var(--fr-ink);
}

.ls-fr-review-later:hover:not(:disabled) {
  border-color: var(--fr-signal);
  background: var(--fr-signal-soft);
}

.ls-fr-feedback {
  display: grid;
  gap: 0.35rem;
  max-width: 68ch;
  margin-top: 1rem;
  border: 1px solid var(--fr-line);
  border-radius: 6px;
  background: var(--fr-paper);
  padding: 0.9rem 1rem;
}

.ls-fr-feedback[hidden] {
  display: none;
}

.ls-fr-feedback.is-correct {
  border-color: oklch(46% 0.095 165 / 0.45);
  background: var(--fr-correct-soft);
}

.ls-fr-feedback.is-incorrect {
  border-color: oklch(52% 0.14 28 / 0.4);
  background: var(--fr-wrong-soft);
}

.ls-fr-feedback strong,
.ls-fr-feedback p {
  margin: 0;
}

.ls-fr-feedback p {
  color: var(--fr-ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.ls-fr-observations {
  display: grid;
  gap: 0.18rem;
  margin-top: 0.35rem;
}

.ls-fr-check-conclusion {
  margin-top: 0.35rem !important;
  font-weight: 670;
}

.ls-fr-choice:focus-visible,
.ls-fr-check-button:focus-visible,
.ls-fr-review-later:focus-visible {
  outline: 3px solid oklch(48% 0.09 229 / 0.24);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .ls-fr-header {
    align-items: flex-start;
  }

  .ls-fr-topic {
    display: none;
  }

  .ls-fr-diagnosis,
  .ls-fr-rule-contrast {
    grid-template-columns: minmax(0, 1fr);
  }

  .ls-fr-rectangle-svg {
    min-height: 0;
  }

  .ls-fr-symbol-row {
    grid-template-columns: minmax(62px, 0.2fr) minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .ls-fr-card {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .ls-fr-choice-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-fr-card *,
  .ls-fr-card *::before,
  .ls-fr-card *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
