:root {
  --bg: #f4efe6;
  --paper: #fffaf2;
  --ink: #1f1b16;
  --muted: #6f665c;
  --line: rgba(31, 27, 22, 0.12);
  --shadow: 0 24px 80px rgba(61, 44, 22, 0.12);
  --comment: #f6c85f;
  --comment-deep: #9a6500;
  --issue: #ff7b72;
  --issue-deep: #8a1e18;
  --accent: #0a7a6d;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 56px;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(246, 200, 95, 0.35), transparent 24%),
    radial-gradient(circle at bottom right, rgba(10, 122, 109, 0.2), transparent 30%),
    linear-gradient(180deg, #f6f1e8 0%, #efe5d7 100%);
}

button,
input,
textarea {
  font: inherit;
}

.is-hidden {
  display: none !important;
}

.intro-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.intro-card {
  width: min(900px, 100%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px;
  border-radius: 32px;
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow);
}

.intro-card-wide {
  width: min(1120px, 100%);
}

.completion-card {
  align-items: flex-start;
  gap: 16px;
}

.completion-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
}

.completion-message {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.completion-code {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 122, 109, 0.26);
  border-radius: 14px;
  background: rgba(10, 122, 109, 0.08);
}

.completion-code span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.completion-code strong {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.intro-card h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.intro-block {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.intro-block h2,
.intro-block p {
  margin: 0;
}

.intro-block h3,
.intro-card > h3 {
  margin: 0;
}

.intro-block p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.intro-button {
  align-self: flex-start;
  min-width: 150px;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.walkthrough-hero {
  display: grid;
  gap: 14px;
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(31, 27, 22, 0.08);
  background:
    radial-gradient(circle at top left, rgba(246, 200, 95, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 242, 0.94));
  box-shadow: 0 16px 40px rgba(61, 44, 22, 0.08);
}

.walkthrough-hero-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 2vw, 2.7rem);
  line-height: 1;
}

.walkthrough-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.walkthrough-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 27, 22, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
}

.walkthrough-stack {
  display: grid;
  gap: 18px;
}

.walkthrough-title-block {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.walkthrough-title-block h2,
.walkthrough-title-block p {
  margin: 0;
}

.walkthrough-title-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 4.6rem);
  font-weight: 400;
  line-height: 0.95;
}

.walkthrough-title-block p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.walkthrough-video-section {
  display: grid;
  gap: 14px;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(31, 27, 22, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(61, 44, 22, 0.08);
}

.walkthrough-video-copy {
  display: grid;
  gap: 8px;
}

.walkthrough-video-copy h3,
.walkthrough-video-copy p {
  margin: 0;
}

.walkthrough-video-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.5vw + 1.1rem, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.walkthrough-video-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.walkthrough-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: clamp(320px, 50vw, 506px);
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(31, 27, 22, 0.08);
  background: #111;
}

.walkthrough-video-link {
  margin: 0;
  font-size: 0.95rem;
}

.walkthrough-video-link a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.walkthrough-step-card {
  display: grid;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(31, 27, 22, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 242, 0.92)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(61, 44, 22, 0.08);
}

.walkthrough-step-copy {
  display: grid;
  gap: 10px;
}

.walkthrough-step-copy h4,
.walkthrough-step-copy p,
.walkthrough-media-card figcaption {
  margin: 0;
}

.walkthrough-step-copy h4 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 1.5vw + 1.1rem, 2.5rem);
  font-weight: 400;
  line-height: 1;
}

.walkthrough-step-number {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent);
}

.walkthrough-step-copy p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.walkthrough-media-card,
.walkthrough-media-grid {
  min-width: 0;
}

.walkthrough-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.walkthrough-media-grid-final {
  align-items: start;
}

.walkthrough-media-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(246, 200, 95, 0.18), transparent 28%),
    rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

.walkthrough-media-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(31, 27, 22, 0.06);
}

.walkthrough-media-card figcaption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  padding: 24px;
}

.sidebar,
.article-panel,
.annotations-panel {
  background: rgba(255, 250, 242, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.sidebar-id-panel {
  order: 1;
}

.sidebar-annotation-panel {
  order: 2;
}

.sidebar-guidelines-panel {
  order: 3;
}

.sidebar-submit-panel {
  order: 4;
}

.workspace {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
}

.article-panel,
.annotations-panel {
  padding: 28px;
}

.article-meta {
  margin-bottom: 36px;
}

.brand-block h1,
.article-meta h2 {
  margin: 8px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 2vw + 1.4rem, 3.6rem);
  line-height: 0.95;
  font-weight: 400;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.lede,
.panel-header p,
.article-byline,
.field span,
.selection-label,
.severity-scale span,
.annotation-range,
.empty-state {
  color: var(--muted);
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-top: 1px solid rgba(31, 27, 22, 0.1);
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.intro-block p {
  margin-top: 10px;
  color: #000;
  line-height: 1.7;
}

.task-steps-block {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.task-step-callout {
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid rgba(31, 27, 22, 0.08);
}

.task-step-callout-factual {
  background: rgba(246, 200, 95, 0.16);
}

.task-step-callout-concern {
  background: rgba(255, 123, 114, 0.12);
}

.task-step-callout h3 {
  margin: 0;
}

.task-step-callout p:first-of-type {
  margin-top: 10px;
}

.intro-block ol,
.intro-block ul {
  margin: 0;
  padding-left: 1.25rem;
}

.intro-block li + li {
  margin-top: 0.9rem;
}

.important-instructions ol {
  padding-left: 0;
  list-style: none;
  counter-reset: intro-steps;
}

.important-instructions ol > li {
  position: relative;
  padding-left: 3rem;
  min-height: 2rem;
}

.important-instructions ol > li + li {
  margin-top: 1.4rem;
}

.important-instructions ol > li::before {
  counter-increment: intro-steps;
  content: counter(intro-steps);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 122, 109, 0.12);
  border: 1px solid rgba(10, 122, 109, 0.22);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.quote-examples {
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 122, 109, 0.08);
  border: 1px solid rgba(10, 122, 109, 0.16);
}

.quote-examples p + p {
  margin-top: 0.65rem;
}

.example-sections {
  display: grid;
  gap: 26px;
}

.example-group {
  display: grid;
  gap: 14px;
}

.example-group-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.example-group-header h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
}

.example-group-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.example-showcase {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.9)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(61, 44, 22, 0.08);
}

.example-showcase-comment {
  box-shadow:
    inset 5px 0 0 rgba(246, 200, 95, 0.95),
    0 14px 36px rgba(61, 44, 22, 0.08);
}

.example-showcase-issue {
  box-shadow:
    inset 5px 0 0 rgba(255, 123, 114, 0.95),
    0 14px 36px rgba(61, 44, 22, 0.08);
}

.example-showcase-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.example-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.example-showcase-body {
  display: grid;
  gap: 10px;
}

.example-meta {
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(10, 122, 109, 0.08);
  border: 1px solid rgba(10, 122, 109, 0.14);
}

.example-field {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(31, 27, 22, 0.035);
  border: 1px solid rgba(31, 27, 22, 0.06);
}

.example-field-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-showcase-body p {
  margin: 0;
}

.example-showcase a {
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.example-showcase blockquote {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(31, 27, 22, 0.045);
  border: 1px solid rgba(31, 27, 22, 0.08);
  color: #2c251d;
  line-height: 1.7;
}

.final-tips {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 20px;
  border: 1px solid rgba(10, 122, 109, 0.18);
  border-radius: 18px;
  background: rgba(10, 122, 109, 0.07);
}

.final-tips h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
}

.final-tip-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
}

.final-tip-list li {
  padding-left: 2px;
}

.final-tip-list p {
  margin: 0;
}

.final-tip-examples {
  display: grid;
  gap: 4px;
  margin-top: 7px;
  padding-left: 18px;
}

.example-severity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(31, 27, 22, 0.06);
  border: 1px solid rgba(31, 27, 22, 0.08);
}

.example-severity span {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.example-severity strong {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf2;
  font-size: 0.95rem;
}

.example-severity em {
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}


#article-byline {
  display: none;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.46);
}

.panel-inline-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-open {
  overflow: hidden;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 27, 22, 0.42);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 80px rgba(61, 44, 22, 0.24);
}

.freeform-modal-card {
  width: min(560px, 100%);
}

.edit-annotation-modal-card {
  width: min(640px, 100%);
}

.freeform-modal-content {
  display: grid;
  gap: 16px;
}

.edit-annotation-modal-content {
  display: grid;
  gap: 16px;
}

.freeform-modal-content .modal-lede {
  margin-bottom: 0;
}

.modal-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.modal-legal-links a {
  color: var(--accent);
  text-decoration: none;
}

.modal-legal-links a:hover,
.modal-legal-links a:focus-visible {
  text-decoration: underline;
}

.freeform-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.edit-annotation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.modal-close {
  flex-shrink: 0;
}

.modal-content .intro-copy {
  gap: 18px;
}

.modal-lede {
  margin: 0 0 18px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-content .intro-block {
  background: rgba(255, 255, 255, 0.76);
}

.guidelines-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}

.guidelines-block.is-collapsed {
  display: none;
}

.guidelines-toggle {
  align-self: flex-start;
}

.guideline-section h3 {
  margin: 0 0 8px;
}

.guideline-section p,
.guideline-section ul {
  margin: 0;
  line-height: 1.65;
}

.guideline-section ul {
  padding-left: 18px;
}

.example-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(31, 27, 22, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 242, 0.9)),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(61, 44, 22, 0.08);
}

.example-comment {
  box-shadow:
    inset 5px 0 0 rgba(246, 200, 95, 0.95),
    0 14px 32px rgba(61, 44, 22, 0.08);
}

.example-issue {
  box-shadow:
    inset 5px 0 0 rgba(255, 123, 114, 0.95),
    0 14px 32px rgba(61, 44, 22, 0.08);
}

.example-label {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.example-text,
.example-note {
  margin: 0;
  line-height: 1.65;
}

.example-text {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(31, 27, 22, 0.04);
  border: 1px solid rgba(31, 27, 22, 0.06);
}

.example-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 27, 22, 0.05);
}

.panel h2,
.panel h3,
.article-meta h2,
.annotations-panel h2 {
  margin: 0;
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-header.compact {
  gap: 2px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field input,
.field textarea,
#submission-output {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  color: var(--ink);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mode-button,
.primary-button,
.ghost-button {
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.mode-button {
  background: rgba(31, 27, 22, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.mode-button.is-active {
  background: var(--ink);
  color: #fffaf2;
}

.primary-button {
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.ghost-button {
  background: transparent;
  outline: 1px solid var(--line);
  color: var(--ink);
}

.mode-button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.selection-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(31, 27, 22, 0.05);
}

.selection-text {
  margin: 8px 0 0;
  font-weight: 600;
  max-height: 8rem;
  overflow: auto;
  overflow-wrap: anywhere;
}

.article-scope-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -4px 0 2px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.article-scope-option input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.article-scope-option.is-hidden {
  display: none;
}

.severity-panel.is-hidden {
  display: none;
}

#severity-input {
  display: block;
  width: 100%;
  margin: 0;
}

#edit-severity-input {
  display: block;
  width: 100%;
  margin: 0;
}

.field.is-hidden {
  display: none;
}

.submission-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10, 122, 109, 0.1);
  color: var(--ink);
  line-height: 1.5;
}

.submission-note.is-hidden {
  display: none;
}

.submission-note.is-warning {
  background: rgba(255, 123, 114, 0.16);
}

.save-status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.save-status.is-warning {
  color: var(--issue-deep);
}

.severity-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.severity-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.actions {
  display: flex;
  gap: 12px;
}

#submission-output {
  min-height: 220px;
  resize: vertical;
}

.article-copy {
  font-size: 1.05rem;
  line-height: 1.9;
  column-gap: 32px;
}

.article-copy p {
  margin: 0 0 1.3rem;
}

.article-meta h2::selection,
.article-copy ::selection {
  background: rgba(10, 122, 109, 0.22);
}

.annotation-mark {
  border-radius: 0.35em;
  padding: 0.05em 0.04em;
  box-decoration-break: clone;
}

.annotation-mark[data-type="comment"] {
  background: rgba(246, 200, 95, 0.68);
  box-shadow: inset 0 -0.08em 0 rgba(154, 101, 0, 0.35);
}

.annotation-mark[data-type="issue"] {
  background: rgba(255, 123, 114, 0.42);
  box-shadow: inset 0 -0.08em 0 rgba(138, 30, 24, 0.35);
}

.annotation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.annotation-item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.annotation-chip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.annotation-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
}

.annotation-quote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.1;
  margin: 0 0 10px;
}

.annotation-note {
  margin: 0;
  line-height: 1.6;
}

.annotation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.annotation-edit,
.annotation-delete {
  justify-self: start;
  padding: 8px 12px;
}

.annotation-delete {
  color: var(--issue-deep);
}

.empty-state {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  text-align: center;
}

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

  .workspace {
    grid-template-rows: auto auto;
  }

  .intro-card {
    padding: 24px;
  }

  .walkthrough-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sidebar,
  .article-panel,
  .annotations-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .actions,
  .mode-switch {
    grid-template-columns: 1fr;
    display: grid;
  }
}
