:root {
  color-scheme: dark;
  --bg: #10152f;
  --panel: #202950;
  --panel-deep: #171d3d;
  --ink: #f7f3d0;
  --muted: #aeb9d9;
  --line: #46558b;
  --primary: #20d6d2;
  --primary-strong: #0ba6b0;
  --accent: #ffcb4d;
  --accent-soft: #3a3158;
  --pink: #ff6b9d;
  --focus: #ffcb4d;
  --shadow: 8px 8px 0 rgba(5, 8, 24, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(56, 75, 135, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 75, 135, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #161c3d 0%, var(--bg) 36%, #0c1026 100%);
  background-size: 24px 24px, 24px 24px, auto;
  color: var(--ink);
  font-family: "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.app-header,
.app-shell,
.footer-container {
  position: relative;
  z-index: 1;
}

.app-header {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 2px 2px 0 #713f67;
}

h1,
h2 {
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff7c2;
  text-shadow: 4px 4px 0 #8e3e73;
}

h2 {
  font-size: 1.28rem;
}

.header-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.subject-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 3px solid var(--line);
  background: var(--panel-deep);
  box-shadow: var(--shadow);
}

.subject-label {
  flex: 0 0 auto;
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 700;
}

.subject-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.header-actions,
.output-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 18px;
  align-items: start;
}

.panel {
  background: rgba(32, 41, 80, 0.94);
  border: 3px solid var(--line);
  border-radius: 0;
  box-shadow: var(--shadow);
  padding: 20px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.field,
fieldset {
  margin: 0 0 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.custom-time-input {
  margin-top: 2px;
}

.advanced-settings {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.advanced-settings summary {
  padding: 12px 14px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

.advanced-settings[open] summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.advanced-settings fieldset {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.advanced-settings fieldset:last-child {
  border-bottom: 0;
}

.field span,
legend {
  color: var(--ink);
  font-weight: 700;
}

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

.attachment-settings {
  margin: 0 0 16px;
  background: var(--panel-deep);
}

.attachment-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.attachment-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

textarea,
select,
input[type="text"] {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  background: #111735;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.65;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
button:focus-visible {
  border-color: var(--focus);
  box-shadow: 4px 4px 0 rgba(255, 203, 77, 0.3);
}

fieldset {
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 14px;
}

legend {
  padding: 0 8px;
}

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

.check-grid label,
.segmented label {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 9px 10px;
  background: #252d59;
  line-height: 1.35;
}

.check-grid label:has(input:checked),
.segmented label:has(input:checked) {
  border-color: var(--primary);
  background: #193e5d;
  box-shadow: 3px 3px 0 rgba(32, 214, 210, 0.3);
}

input[type="checkbox"],
input[type="radio"] {
  inline-size: 18px;
  block-size: 18px;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.inline-input {
  margin-top: 12px;
}

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

.primary-button,
.ghost-button,
.text-button,
.tab,
.subject-tab {
  border-radius: 0;
  min-height: 42px;
  border: 2px solid transparent;
  padding: 9px 14px;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.tab:hover,
.subject-tab:hover {
  transform: translate(-2px, -2px);
}

.primary-button {
  background: var(--primary);
  color: #071326;
  border-color: #91fff1;
  box-shadow: 4px 4px 0 #08737f;
}

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

.primary-button.is-confirmed {
  background: #3c8b67;
  border-color: #3c8b67;
  box-shadow: 0 5px 12px rgba(60, 139, 103, 0.2);
}

.ghost-button {
  background: #252d59;
  border-color: var(--line);
  color: var(--accent);
  box-shadow: 4px 4px 0 #0b1027;
}

.ghost-button:hover,
.text-button:hover,
.tab:hover {
  background: var(--accent-soft);
}

.text-button {
  background: transparent;
  color: var(--accent);
}

.tabs {
  display: flex;
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 4px;
  background: #111735;
}

.tab {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: var(--accent);
  color: #211634;
  box-shadow: 3px 3px 0 #a65a68;
}

.subject-tab {
  min-height: 38px;
  background: #252d59;
  border-color: #596ba8;
  color: var(--muted);
  box-shadow: 3px 3px 0 #0b1027;
}

.subject-tab.active {
  background: var(--pink);
  border-color: #ffb4cc;
  color: #281533;
  box-shadow: 3px 3px 0 #9a3f73;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.assessment-panel {
  margin: 14px 0 16px;
  border: 2px solid var(--line);
  background: rgba(18, 45, 69, 0.74);
  padding: 14px;
}

.assessment-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.assessment-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

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

.assessment-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border-left: 3px solid var(--primary);
  padding-left: 9px;
}

.assessment-grid span {
  color: var(--muted);
  font-size: 0.76rem;
}

.assessment-grid strong {
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.35;
}

.prompt-output {
  min-height: 590px;
  white-space: pre-wrap;
  border-color: #6478b8;
  color: #eef2c8;
}

.footer-container {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 3px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.winnie-badge {
  color: var(--accent);
  font-weight: 800;
  transition: transform 120ms ease, color 120ms ease, text-shadow 120ms ease;
}

.footer-container.footer-active .winnie-badge,
.footer-container:hover .winnie-badge {
  color: var(--primary);
  transform: translateY(-3px);
  text-shadow: 3px 3px 0 #8e3e73;
}

.footer-text {
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  background: #ffcb4d;
  color: #211634;
  border: 3px solid #a65a68;
  border-radius: 0;
  box-shadow: 4px 4px 0 #0b1027;
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

/* Each subject keeps the same calm layout but has a distinct learning cue. */
body[data-subject="國語文"] {
  --primary: #a55c4d;
  --primary-strong: #824638;
  --accent: #d08a57;
  --accent-soft: #fff1e8;
  --focus: #c9774e;
  --subject-bg: #f8f0ec;
  --subject-wash: #fffaf7;
  --subject-panel: rgba(255, 253, 251, 0.95);
  --subject-line: #e2cbc1;
  --subject-tint: #f8e9e2;
  --subject-glow: rgba(165, 92, 77, 0.12);
}

body[data-subject="自然"] {
  --primary: #2f806b;
  --primary-strong: #246853;
  --accent: #6aa875;
  --accent-soft: #e8f5eb;
  --focus: #4f9861;
  --subject-bg: #edf6f0;
  --subject-wash: #f8fcf9;
  --subject-panel: rgba(253, 255, 254, 0.96);
  --subject-line: #c8ded0;
  --subject-tint: #e5f2e9;
  --subject-glow: rgba(47, 128, 107, 0.12);
}

body[data-subject="社會"] {
  --primary: #4f6f99;
  --primary-strong: #3c5678;
  --accent: #c28b4e;
  --accent-soft: #f8f0e4;
  --focus: #a9763e;
  --subject-bg: #f1f4f8;
  --subject-wash: #fbfcfe;
  --subject-panel: rgba(253, 254, 255, 0.96);
  --subject-line: #ccd7e4;
  --subject-tint: #e9eff6;
  --subject-glow: rgba(79, 111, 153, 0.12);
}

/* Subject themes change the whole visual field while keeping the workflow stable. */
body[data-subject] {
  background-color: var(--subject-bg);
  background-image:
    radial-gradient(circle at 12% 8%, var(--subject-glow), transparent 28%),
    linear-gradient(135deg, var(--subject-wash), transparent 56%),
    linear-gradient(315deg, var(--subject-tint), transparent 62%);
  transition: background-color 220ms ease, background-image 220ms ease;
}

body[data-subject] .subject-nav,
body[data-subject] .workflow-strip,
body[data-subject] .panel,
body[data-subject] .readiness-panel,
body[data-subject] .assessment-panel {
  border-color: var(--subject-line);
}

body[data-subject] .subject-nav,
body[data-subject] .workflow-strip {
  background: color-mix(in srgb, var(--subject-panel) 88%, var(--subject-tint));
}

body[data-subject] .panel {
  background: var(--subject-panel);
  box-shadow: 0 14px 30px var(--subject-glow);
}

body[data-subject] .advanced-settings,
body[data-subject] .tabs {
  border-color: var(--subject-line);
  background: color-mix(in srgb, var(--subject-panel) 78%, var(--subject-tint));
}

body[data-subject] textarea,
body[data-subject] select,
body[data-subject] input[type="text"] {
  border-color: var(--subject-line);
  background: color-mix(in srgb, #ffffff 88%, var(--subject-tint));
}

body[data-subject] .check-grid label,
body[data-subject] .segmented label,
body[data-subject] .subject-tab {
  border-color: var(--subject-line);
  background: color-mix(in srgb, #ffffff 82%, var(--subject-tint));
}

body[data-subject] .subject-tab.active,
body[data-subject] .check-grid label:has(input:checked),
body[data-subject] .segmented label:has(input:checked),
body[data-subject] .workflow-step.active span {
  border-color: color-mix(in srgb, var(--primary) 62%, var(--subject-line));
  background: var(--subject-tint);
}

body[data-subject] .assessment-panel {
  background: color-mix(in srgb, var(--subject-panel) 86%, var(--subject-tint));
}

body[data-subject] .assessment-grid div {
  border-left-color: var(--primary);
}

body[data-subject] .header-media::before {
  background: var(--subject-tint);
  box-shadow: inset 0 0 0 1px var(--subject-line), 0 14px 26px var(--subject-glow);
}

body[data-subject] .header-video {
  box-shadow: 0 10px 20px var(--subject-glow);
}

.output-mode-label {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .app-header {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .prompt-output {
    min-height: 480px;
  }
}

@media (max-width: 620px) {
  .app-header,
  .app-shell,
  .footer-container {
    width: min(100% - 20px, 1180px);
  }

  .panel {
    padding: 16px;
  }

  .subject-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .subject-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .assessment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .footer-container,
  .status-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-text {
    text-align: left;
  }

  .tabs,
  .header-actions,
  .output-actions {
    width: 100%;
  }

  .tab,
  .subject-tab,
  .primary-button,
  .ghost-button {
    flex: 1 1 auto;
  }
}

/* Calm nature theme: keep the dense tool workflow, remove arcade styling. */
:root {
  color-scheme: light;
  --bg: #edf4ef;
  --panel: #ffffff;
  --panel-deep: #f5faf7;
  --ink: #24382f;
  --muted: #62776d;
  --line: #c8d8cf;
  --primary: #2f806b;
  --primary-strong: #246853;
  --accent: #d17d50;
  --accent-soft: #fff1e6;
  --pink: #5d7d91;
  --focus: #d17d50;
  --shadow: 0 12px 28px rgba(43, 78, 62, 0.09);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent 52%),
    linear-gradient(315deg, rgba(214, 233, 222, 0.5), transparent 58%);
  color: var(--ink);
}

.app-header {
  padding: 38px 0 22px;
}

.header-main {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-copy-block {
  min-width: 0;
  flex: 1 1 auto;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  text-shadow: none;
  letter-spacing: 0.04em;
}

h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-shadow: none;
  letter-spacing: 0;
}

h2 {
  color: var(--ink);
  font-weight: 800;
}

.header-copy {
  color: var(--muted);
}

.header-media {
  position: relative;
  flex: 0 0 190px;
  width: 190px;
  aspect-ratio: 1;
  margin: 0 4px 0 0;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.header-media::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #e7f3ed;
  box-shadow: inset 0 0 0 1px rgba(47, 128, 107, 0.14), 0 14px 26px rgba(43, 78, 62, 0.12);
}

.header-video {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: block;
  object-fit: cover;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: #dcefe6;
  box-shadow: 0 10px 20px rgba(43, 78, 62, 0.16);
}

.guide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(47, 128, 107, 0.2);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.guide-button:hover,
.guide-button:focus-visible {
  background: var(--primary-strong);
  box-shadow: 0 9px 18px rgba(47, 128, 107, 0.26);
  transform: translateY(-1px);
}

.media-fallback {
  position: absolute;
  z-index: 4;
  width: 108px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-align: center;
}

.header-media.media-error .header-video {
  opacity: 0.2;
}

.header-media.media-error .media-fallback {
  display: block;
}

@media (max-width: 900px) {
  .header-media {
    margin: 2px 0 0;
    align-self: flex-start;
  }

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

@media (max-width: 620px) {
  .header-media {
    flex-basis: 156px;
    width: 156px;
  }

  .header-main {
    gap: 12px;
  }

  .header-video {
    width: 124px;
    height: 124px;
  }

}

.subject-nav {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.subject-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.advanced-settings {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-deep);
}

textarea,
select,
input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdfb;
  color: var(--ink);
}

textarea {
  line-height: 1.7;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.check-grid label,
.segmented label {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbf9;
  color: var(--ink);
}

.check-grid label:has(input:checked),
.segmented label:has(input:checked) {
  border-color: rgba(47, 128, 107, 0.62);
  background: #e7f3ed;
  box-shadow: none;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

.primary-button,
.ghost-button,
.text-button,
.tab,
.subject-tab {
  border-radius: 10px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

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

.primary-button {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 5px 12px rgba(47, 128, 107, 0.2);
}

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

.ghost-button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--primary-strong);
  box-shadow: none;
}

.ghost-button:hover,
.text-button:hover,
.tab:hover {
  background: var(--accent-soft);
}

.text-button {
  color: var(--primary-strong);
}

.tabs {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-deep);
}

.tab {
  color: var(--muted);
}

.tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
}

.subject-tab {
  background: #f4f8f5;
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

.subject-tab.active {
  background: #e3f1ea;
  border-color: rgba(47, 128, 107, 0.62);
  color: var(--primary-strong);
  box-shadow: inset 0 -2px 0 var(--primary);
}

.status-row {
  color: var(--muted);
}

.assessment-panel {
  border: 1px solid #c8ddd2;
  border-radius: 12px;
  background: #f2f8f4;
}

.assessment-heading {
  color: var(--ink);
}

.assessment-grid div {
  border-left-color: var(--primary);
}

.assessment-grid strong {
  color: var(--ink);
}

.prompt-output {
  border-color: var(--line);
  background: #fbfdfb;
  color: #30463b;
}

.footer-container {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.winnie-badge {
  color: var(--primary-strong);
}

.footer-container.footer-active .winnie-badge,
.footer-container:hover .winnie-badge {
  color: var(--accent);
  text-shadow: none;
}

.toast {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: min(92vw, 520px);
  text-align: center;
  line-height: 1.45;
}

.toast[data-type="error"] {
  border-color: #d28a78;
  background: #fff7f4;
  color: #8b4536;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
button:focus-visible {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(209, 125, 80, 0.16);
}

/* Calm product-level guidance and live readiness feedback. */
.workflow-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid rgba(200, 216, 207, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 8px 20px rgba(43, 78, 62, 0.05);
}

@media (min-width: 901px) {
  .output-panel {
    position: sticky;
    top: 18px;
  }
}

.workflow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: var(--muted);
}

.workflow-step span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-deep);
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 800;
}

.workflow-step strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.workflow-step small {
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.workflow-step.active span {
  border-color: var(--primary);
  background: #dcefe6;
}

.workflow-line {
  height: 1px;
  background: var(--line);
}

.subject-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.field-meta {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.readiness-panel {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 13px 15px;
  border: 1px solid #d8e5dd;
  border-radius: 12px;
  background: #f8fbf9;
}

.readiness-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.readiness-copy strong {
  color: var(--primary-strong);
  font-size: 0.86rem;
}

.readiness-copy span {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.readiness-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eee8;
}

.readiness-track span {
  display: block;
  width: 24%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #75ad91);
  transition: width 220ms ease;
}

@media (max-width: 700px) {
  .workflow-strip {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px;
  }

  .workflow-line {
    width: 1px;
    height: 14px;
    margin-left: 16px;
  }

  .readiness-copy {
    display: grid;
    gap: 3px;
  }

  .readiness-copy span {
    text-align: left;
  }
}
