:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #4b5a6d;
  --line: #d9e0e8;
  --blue: #2563eb;
  --green: #0f766e;
  --amber: #b45309;
  --red: #b91c1c;
  --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

#demoQuickAccessPanel[hidden] { display: none; }
#demoQuickAccessPanel button span { color: #fff; opacity: 1 !important; }
#btnDemoLoginStudent { background: #1d4ed8 !important; }

.panel, .panel-stack, .two-column > * { min-width: 0; }
.result-box, .structured-result { overflow-wrap: anywhere; }
#screen-output .button-row button.secondary { color: #334155 !important; background: #fff; }
#btnTriggerBundleGen, #tabBundleResume.active,
#fullBundleViewerPanel .badge { background: #047857 !important; color: #fff !important; }
@media (max-width: 680px) {
  .button-row { flex-wrap: wrap; }
  .button-row button { max-width: 100%; height: auto; white-space: normal; }
  .result-box pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: white;
  background: var(--blue);
  cursor: pointer;
}

button.secondary {
  color: var(--text);
  background: #e8edf4;
}

button.secondary.active {
  color: white;
  background: var(--blue);
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

button[aria-busy="true"]::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  vertical-align: -2px;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-right: 1px solid var(--line);
  background: #101820;
  color: white;
  padding: 22px;
}

.brand {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--green);
  font-weight: 800;
}

.brand span,
.sidebar-footer label {
  display: block;
  margin-top: 3px;
  color: #b7c2d0;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  justify-content: flex-start;
  width: 100%;
  color: #e8edf4;
  background: transparent;
  text-align: left;
}

.nav-item.active,
.nav-item:hover {
  background: #233142;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.sidebar-footer summary {
  cursor: pointer;
  color: #dce5ef;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-footer input {
  width: 100%;
  border: 1px solid #3a4a5e;
  border-radius: 6px;
  padding: 9px;
  color: white;
  background: #172331;
}

.main {
  min-width: 0;
  padding: 28px;
}

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

.flow-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.flow-stepper li {
  position: relative;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--muted);
  background: white;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.flow-stepper li.active {
  border-color: #9ccac1;
  color: var(--green);
  background: #e7f4f1;
}

.flow-stepper li.done {
  border-color: #c7d8e5;
  color: #2f4d63;
  background: #edf5f8;
}

.operation-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #b7d5ce;
  border-radius: 10px;
  margin: 0 0 18px;
  padding: 14px 16px;
  color: #20413d;
  background: #e7f4f1;
  transition: all 0.2s ease;
}

.operation-status[hidden] {
  display: none;
}

.operation-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.operation-status strong {
  font-size: 14.5px;
  font-weight: 750;
}

.operation-status span {
  color: #2f4d63;
  font-size: 13.5px;
  line-height: 1.45;
}

.operation-progress-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.operation-progress-bar {
  width: 100%;
  height: 6px;
  background: #c2ded7;
  border-radius: 999px;
  overflow: hidden;
}

.operation-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #2563eb);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.operation-steps-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.operation-step-badge {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #d3ebe5;
  color: #17422f;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.operation-step-badge.current {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.operation-step-badge.completed {
  background: #107c68;
  color: #ffffff;
}

.operation-status.error {
  border-color: #f3b2b2;
  color: var(--red);
  background: #fff1f1;
}

.operation-status.error span {
  color: #7f1d1d;
}

.operation-status.success {
  border-color: #b7d5ce;
  color: var(--green);
  background: #eefbf8;
}

/* ── 스마트 오토 포커스 펄스 애니메이션 ── */
.highlight-pulse {
  animation: pulseGlow 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    outline: 2px solid rgba(37, 99, 235, 0.8);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15);
    outline: 2px solid rgba(37, 99, 235, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    outline: 2px solid transparent;
  }
}

/* ── 퀵 샘플 온보딩 칩 ── */
.sample-experience-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 14px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.picker-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
}

.sample-chip {
  min-height: 28px;
  font-size: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.sample-chip:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-1px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
}

.analytics-summary {
  display: grid;
  gap: 14px;
}

.analytics-summary.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: #f8fafc;
}

.kpi-strip,
.kpi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kpi-strip span,
.kpi-meta span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 13px;
}

.kpi-strip strong {
  margin-right: 4px;
  color: var(--text);
}

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.funnel-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.funnel-card span,
.funnel-card small {
  color: var(--muted);
  font-size: 12px;
}

.funnel-card strong {
  font-size: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.status-strip,
.button-row,
.section-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #b7d5ce;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--green);
  background: #e7f4f1;
  font-size: 13px;
  font-weight: 700;
}

.pill.muted {
  border-color: var(--line);
  color: #526174;
  background: #eef2f6;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

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

.two-column.wide-left {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.two-column.compact {
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

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

.panel {
  padding: 18px;
}

.intro-panel {
  margin-bottom: 18px;
}

.intro-panel h2 {
  max-width: 840px;
  margin-bottom: 10px;
  line-height: 1.35;
}

.intro-panel p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.6;
}

.notice-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 14px 0 0;
  color: var(--text);
  line-height: 1.5;
}

.notice-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.notice-check a {
  color: var(--primary);
  font-weight: 900;
}

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

.entry-route-note {
  max-width: 760px;
}

.scope-card {
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: var(--shadow);
}

.scope-card.active {
  border-color: #7fc0b4;
  background: #f0faf7;
}

.scope-card.is-primary {
  border-width: 2px;
}

.scope-card.is-secondary {
  background: #fbfcfd;
  box-shadow: none;
}

.scope-card h2 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.scope-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.scope-card button {
  width: 100%;
}

.scope-card button.secondary-route {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

body[data-entry-mode="student"] .scope-grid,
body[data-entry-mode="operator"] .scope-grid {
  grid-template-columns: 1fr;
}

body[data-entry-mode="student"] .scope-card.is-primary,
body[data-entry-mode="operator"] .scope-card.is-primary {
  min-height: 212px;
}

body[data-entry-mode="student"] .scope-card.is-secondary,
body[data-entry-mode="operator"] .scope-card.is-secondary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 14px 16px;
}

body[data-entry-mode="student"] .scope-card.is-secondary button,
body[data-entry-mode="operator"] .scope-card.is-secondary button {
  width: auto;
  white-space: nowrap;
}

.scope-guide {
  display: grid;
  gap: 4px;
  border: 1px solid #c7d8e5;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8fbfd;
}

.scope-guide strong {
  color: var(--text);
  font-size: 14px;
}

.scope-guide span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.starter-card {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: 76px;
  border: 1px solid var(--line);
  padding: 11px;
  color: var(--text);
  background: #fbfcfe;
  text-align: left;
}

.starter-card.active,
.starter-card:hover {
  border-color: #9ccac1;
  background: #e7f4f1;
}

.starter-card strong {
  font-size: 13px;
}

.starter-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dev-token {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.dev-token summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.legacy-extract summary {
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.legacy-extract form {
  margin-top: 14px;
}

.panel-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  color: var(--text);
  background: white;
}

textarea {
  resize: vertical;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric {
  min-height: 100px;
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
}

.large-text {
  font-size: 18px;
  line-height: 1.5;
}

.list,
.evidence-list {
  display: grid;
  gap: 12px;
}

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

.item,
.evidence-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.evidence-card-v2 {
  display: grid;
  gap: 14px;
  background: white;
}

.evidence-card-v2.strong {
  border-color: #9ccac1;
}

.evidence-card-v2.low {
  border-color: #f3b2b2;
}

.evidence-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.evidence-card-top h3 {
  max-width: 920px;
  margin: 0;
  line-height: 1.45;
}

.evidence-score {
  display: grid;
  place-items: center;
  min-width: 86px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: #eef2f6;
}

.evidence-score strong {
  font-size: 24px;
  line-height: 1;
}

.evidence-score span {
  color: #334155;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
}

.evidence-score.strong {
  color: var(--green);
  background: #dff1ed;
}

.evidence-score.good {
  color: var(--blue);
  background: #dbeafe;
}

.evidence-score.review {
  color: var(--amber);
  background: #fff3d6;
}

.evidence-score.low {
  color: var(--red);
  background: #fee2e2;
}

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

.trust-item {
  display: grid;
  gap: 5px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.trust-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.trust-item strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.trust-item.good {
  border-color: #b7d5ce;
  background: #f0faf7;
}

.trust-item.warn {
  border-color: #f2d38d;
  background: #fffaf0;
}

.trust-item.safe {
  border-color: #c7d8e5;
  background: #f8fbfd;
}

.evidence-usage-hint {
  border: 1px solid #c7d8e5;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.evidence-usage-hint strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.evidence-usage-hint ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.evidence-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.visibility-confirm-panel {
  display: grid;
  gap: 9px;
  border: 1px solid #f2d38d;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf0;
}

.visibility-confirm-panel[hidden] {
  display: none;
}

.visibility-confirm-panel strong {
  color: var(--amber);
  font-size: 13px;
}

.visibility-confirm-panel p {
  margin: 0;
  color: #6f4b08;
  font-size: 13px;
  line-height: 1.5;
}

.confirm-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

.confirm-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.confirm-check span {
  line-height: 1.45;
}

.item h3,
.evidence-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.evidence-card-v2 .evidence-card-top h3 {
  margin: 0;
  font-size: 16px;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.tag {
  border-radius: 999px;
  padding: 3px 8px;
  color: #20413d;
  background: #dff1ed;
}

.tag.warn {
  color: var(--amber);
  background: #fff3d6;
}

.helper-text {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.file-info {
  border: 1px solid #c7d8e5;
  border-radius: 6px;
  margin: -4px 0 12px;
  padding: 9px 11px;
  color: #2f4d63;
  background: #f8fbfd;
  font-size: 13px;
  line-height: 1.45;
}

.file-info[hidden] {
  display: none;
}

.evidence-guide {
  border: 1px solid #c7d8e5;
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fbfd;
}

.evidence-guide summary {
  cursor: pointer;
  color: #2f4d63;
  font-size: 14px;
  font-weight: 800;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.term-group {
  display: grid;
  gap: 8px;
}

.term-group h4 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.term-item {
  display: grid;
  gap: 2px;
}

.term-item strong {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.term-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.result-box {
  min-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  white-space: pre-wrap;
  color: #1f2937;
  background: #fbfcfe;
}

.compact-result {
  min-height: 140px;
}

.structured-result {
  display: grid;
  gap: 12px;
  white-space: normal;
}

.result-summary {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.result-summary strong {
  font-size: 16px;
}

.result-summary span {
  color: var(--muted);
  line-height: 1.5;
}

.result-section {
  display: grid;
  gap: 8px;
}

.result-section h3 {
  margin: 0;
  font-size: 14px;
}

.result-section p,
.result-section li,
.kv-list dd {
  margin: 0;
  line-height: 1.55;
}

.result-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.strategy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: stretch;
  border: 1px solid #b7d5ce;
  border-radius: 8px;
  padding: 14px;
  background: #f0faf7;
}

.strategy-hero > div:first-child {
  display: grid;
  gap: 6px;
}

.strategy-hero strong {
  font-size: 17px;
  line-height: 1.4;
}

.strategy-hero span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.strategy-stat {
  display: grid;
  place-items: center;
  min-width: 88px;
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.strategy-stat strong {
  color: var(--green);
  font-size: 24px;
  line-height: 1;
}

.strategy-stat span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.requirement-grid,
.selected-evidence-rail {
  display: grid;
  gap: 10px;
}

.requirement-card,
.strategy-evidence-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.requirement-card p,
.strategy-evidence-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.strategy-empty {
  display: grid;
  gap: 5px;
  border: 1px dashed #c7d8e5;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.strategy-empty strong {
  font-size: 14px;
}

.strategy-empty span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.theme-chip {
  border: 1px solid #c7d8e5;
  border-radius: 999px;
  padding: 5px 10px;
  color: #2f4d63;
  background: #f8fbfd;
  font-size: 13px;
  font-weight: 750;
}

.strategy-next-actions {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.strategy-next-actions > div:first-child {
  display: grid;
  gap: 4px;
}

.strategy-next-actions strong {
  font-size: 14px;
}

.strategy-next-actions span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.output-editor {
  display: grid;
  gap: 14px;
}

.output-editor-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid #b7d5ce;
  border-radius: 8px;
  padding: 14px;
  background: #f0faf7;
}

.output-editor-hero > div {
  display: grid;
  gap: 5px;
}

.output-editor-hero strong {
  font-size: 17px;
  line-height: 1.4;
}

.output-editor-hero span:not(.tag) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.output-evidence-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.output-evidence-list,
.output-block-list {
  display: grid;
  gap: 10px;
}

[data-output-content] {
  min-height: 220px;
  line-height: 1.6;
}

.output-evidence-chip,
.output-block {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
}

.output-evidence-chip p,
.output-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.sentence-evidence-select {
  margin: 2px 0 0;
}

.output-block-issues {
  display: grid;
  gap: 8px;
}

.inline-issue {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.inline-issue.high,
.inline-issue.critical {
  border-color: #f3b2b2;
  background: #fff1f1;
}

.inline-issue.medium {
  border-color: #f2d38d;
  background: #fffaf0;
}

.inline-issue.low {
  border-color: #b7d5ce;
  background: #f0faf7;
}

.inline-issue p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.output-block-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.output-block-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.output-block-head strong {
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--amber);
  background: #fff3d6;
  font-size: 12px;
}

.output-status-actions {
  border: 1px solid #c7d8e5;
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.interview-pack,
.interview-question-list {
  display: grid;
  gap: 12px;
}

.interview-question-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.interview-question-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.interview-answer-result,
.interview-answer-check {
  display: grid;
  gap: 10px;
}

.interview-answer-result {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.readiness-panel {
  display: grid;
  gap: 10px;
}

.readiness-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.readiness-summary > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfd;
}

.readiness-summary span {
  color: var(--muted);
  font-size: 12px;
}

.readiness-summary strong {
  font-size: 18px;
}

.practice-completion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.practice-completion-row div {
  display: grid;
  gap: 4px;
}

.practice-completion-row span {
  color: var(--muted);
  font-size: 13px;
}

.cohort-readiness {
  display: grid;
  gap: 4px;
}

.cohort-readiness small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cohort-student {
  display: grid;
  gap: 4px;
}

.cohort-student .consent-badge {
  margin-top: 2px;
}

.consent-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 750;
}

.consent-badge.opted-in {
  color: #047857;
  background: #d1fae5;
}

.consent-badge.pending {
  color: #92400e;
  background: #fef3c7;
}

.consent-badge.blocked {
  color: #991b1b;
  background: #fee2e2;
}

.consent-badge.unknown {
  color: #475569;
  background: #e2e8f0;
}

.cohort-action {
  display: grid;
  gap: 6px;
  min-width: 140px;
}

.cohort-action span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.cohort-action small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cohort-action-note {
  display: block;
}

.cohort-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cohort-action button {
  justify-self: start;
  min-height: 32px;
  padding: 0 10px;
}

.cohort-intervention-list {
  display: grid;
  gap: 8px;
}

.cohort-intervention-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: white;
}

.cohort-intervention-card div {
  display: grid;
  gap: 4px;
}

.cohort-intervention-card span {
  color: var(--muted);
  font-size: 13px;
}

.cohort-intervention-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cohort-intervention-meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 700;
}

.channel-badge.manual {
  color: #334155;
  background: #e2e8f0;
}

.channel-badge.email {
  color: #075985;
  background: #e0f2fe;
}

.channel-badge.other {
  color: #365314;
  background: #ecfccb;
}

.cohort-intervention-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 460px;
}

.cohort-intervention-actions .secondary {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.cohort-intervention-actions input {
  flex: 1 1 160px;
  min-width: 150px;
  max-width: 220px;
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.readiness-badge.ready {
  background: #dcfce7;
  color: #166534;
}

.readiness-badge.needs_fix {
  background: #fef3c7;
  color: #92400e;
}

.readiness-badge.high_risk {
  background: #fee2e2;
  color: #991b1b;
}

.readiness-badge.unchecked {
  background: #f1f5f9;
  color: #475569;
}

.revision-guidance {
  display: grid;
  gap: 8px;
}

.revision-guidance h3 {
  margin: 0;
  font-size: 14px;
}

.revision-guidance-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffaf0;
}

.issue-list {
  display: grid;
  gap: 10px;
}

.draft-list,
.criteria-list {
  display: grid;
  gap: 10px;
}

.issue-card,
.draft-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.issue-card.resolved {
  border-color: #b7d5ce;
  background: #f0faf7;
}

.issue-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.issue-card-head strong {
  line-height: 1.45;
}

.issue-card p,
.draft-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.severity {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.severity.high {
  color: var(--red);
  background: #fee2e2;
}

.severity.critical {
  color: white;
  background: var(--red);
}

.severity.medium {
  color: var(--amber);
  background: #fff3d6;
}

.severity.low {
  color: var(--green);
  background: #dff1ed;
}

.score-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
}

.score-badge.strong {
  color: var(--green);
  background: #dff1ed;
}

.score-badge.good {
  color: var(--blue);
  background: #dbeafe;
}

.score-badge.review {
  color: var(--amber);
  background: #fff3d6;
}

.score-badge.low {
  color: var(--red);
  background: #fee2e2;
}

.match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.match-chip {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 750;
}

.match-chip.matched {
  color: var(--green);
  background: #dff1ed;
}

.match-chip.missing {
  color: var(--muted);
  background: #eef2f6;
}

.kv-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.kv-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
}

.kv-list dt {
  color: var(--muted);
  font-weight: 750;
}

.stage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.stage-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: #fbfcfe;
  font-size: 13px;
}

.stage-chip strong {
  color: var(--text);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.progress-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  font-size: 13px;
}

.progress-table th,
.progress-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: left;
  vertical-align: top;
}

.progress-table th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
  text-transform: uppercase;
}

.progress-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status-badge {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 750;
}

.status-badge.at_risk {
  color: var(--red);
  background: #fee2e2;
}

.status-badge.needs_review {
  color: var(--amber);
  background: #fff3d6;
}

.status-badge.on_track {
  color: #1d4ed8;
  background: #dbeafe;
}

.status-badge.complete {
  color: var(--green);
  background: #dff1ed;
}

#toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  border-radius: 8px;
  padding: 12px 14px;
  color: white;
  background: #17202a;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.18s ease;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav-toggle {
  display: none;
}

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

  .sidebar {
    position: static;
    min-height: auto;
    gap: 12px;
    padding: 16px;
  }

  .brand {
    align-items: center;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #566577;
    border-radius: 6px;
    color: #f8fafc;
    background: #1d2a36;
    font-weight: 800;
  }

  .nav-list {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-list.mobile-open {
    display: grid;
  }

  .nav-item {
    min-height: 44px;
  }

  .scope-grid,
  .starter-grid,
  .two-column,
  .two-column.wide-left,
  .two-column.compact,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  body[data-entry-mode="student"] .scope-card.is-secondary,
  body[data-entry-mode="operator"] .scope-card.is-secondary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body[data-entry-mode="student"] .scope-card.is-secondary button,
  body[data-entry-mode="operator"] .scope-card.is-secondary button {
    width: 100%;
  }

  .topbar {
    flex-direction: column;
  }

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

  .kv-list div {
    grid-template-columns: 1fr;
  }

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

  .evidence-card-top,
  .evidence-trust-grid,
  .strategy-hero,
  .output-editor-hero,
  .readiness-summary {
    grid-template-columns: 1fr;
  }

  .practice-completion-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ── 파일 드롭존 · 다중 선택 · 외부 불러오기 (2026-08-23) ── */
.dropzone {
  border: 1.5px dashed #c8d2e4; border-radius: 10px; padding: 22px 18px;
  text-align: center; cursor: pointer; background: #fbfcfe; transition: border-color .12s, background .12s;
  display: flex; flex-direction: column; gap: 5px; align-items: center;
}
.dropzone:hover, .dropzone:focus-visible { border-color: #2f6fed; background: #f5f8ff; outline: none; }
.dropzone.is-over { border-color: #2f6fed; background: #eef3fd; border-style: solid; }
.dropzone b { font-size: 15px; }
.dropzone > span { font-size: 13px; color: #6b7280; }
.file-info .file-row {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border: 1px solid #e3e8f0; border-radius: 7px; background: #fff; margin-bottom: 6px; font-size: 13px;
}
.file-info .file-row span { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info .file-row em { font-style: normal; color: #8d99ad; flex: 0 0 auto; }
.file-info .file-row button {
  flex: 0 0 auto; border: 0; background: transparent; color: #8d99ad;
  font-size: 17px; line-height: 1; cursor: pointer; padding: 0 3px;
}
.file-info .file-row button:hover { color: #b3261e; }
.import-row { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.import-row > label { font-size: 13px; font-weight: 700; }
.import-controls { display: flex; gap: 8px; }
.import-controls input { flex: 1 1 auto; }
.import-controls button { flex: 0 0 auto; }

/* ── 입력 화면 재구성: 3가지 경로 + 인계 지점 (2026-08-23) ── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.step-head { display:flex; gap:12px; align-items:flex-start; margin:22px 0 12px; }
.step-head .step-no {
  flex:0 0 auto; width:24px; height:24px; border-radius:50%; background:#101a2e; color:#fff;
  font-size:13px; font-weight:800; display:grid; place-items:center; margin-top:1px;
}
.step-head b { display:block; font-size:16px; }
.step-head em { font-style:normal; font-size:13px; color:#6b7280; }
.intake-ways { display:grid; grid-template-columns:repeat(auto-fit, minmax(178px, 1fr)); gap:14px; align-items:start; }
.way { border:1px solid #e3e8f0; border-radius:10px; padding:14px; background:#fff; display:flex; flex-direction:column; gap:8px; }
.way-top { display:flex; align-items:center; gap:8px; }
.way-top b { font-size:14px; }
.way-ico {
  width:22px; height:22px; border-radius:6px; background:#eef3fd; color:#2f6fed;
  display:grid; place-items:center; font-size:12px; font-weight:700;
}
.way .dropzone { padding:16px 12px; }
.way .dropzone b { font-size:14px; }
.way .dropzone > span { font-size:12px; line-height:1.5; }
.way-desc { font-size:13px; color:#5b6577; line-height:1.62; margin:0; }
.way .import-controls { flex-direction:column; gap:7px; }
.way .import-controls button { width:100%; }
.inline-field { display:block; margin-top:12px; }
.handoff-note {
  margin-top:16px; border-left:3px solid #1f7a68; background:#f2f9f7;
  border-radius:0 9px 9px 0; padding:14px 16px;
}
.handoff-note b { display:block; font-size:14px; margin-bottom:4px; color:#17422f; }
.handoff-note span { font-size:13px; color:#40566a; line-height:1.65; }
.handoff-note em { font-style:normal; font-weight:700; color:#17422f; }
.way-drive button { width:100%; }
@media (max-width: 900px) { .intake-ways { grid-template-columns:1fr; } }

/* 내 기록 내보내기 */
.export-panel { display:flex; align-items:center; gap:18px; justify-content:space-between; flex-wrap:wrap; }
.export-panel b { display:block; font-size:16px; margin-bottom:3px; }
.export-panel span { font-size:13.5px; color:#5b6577; }
.export-panel button { flex:0 0 auto; }

/* ── 모바일 코호트 진행도 반응형 카드 레이아웃 (≤768px) ── */
@media (max-width: 768px) {
  .progress-table {
    min-width: 0;
  }

  .progress-table,
  .progress-table thead,
  .progress-table tbody,
  .progress-table th,
  .progress-table td,
  .progress-table tr {
    display: block;
  }

  .progress-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .progress-table tr {
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.04);
  }

  .progress-table td {
    border: none;
    padding: 6px 0;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .progress-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #486581;
    font-size: 12px;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .progress-table td:first-child {
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 10px;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 800;
    color: #102a43;
  }

  .progress-table td:first-child::before {
    display: none;
  }

  .progress-table td:last-child {
    border-top: 1px dashed #eef2f6;
    padding-top: 10px;
    margin-top: 8px;
    width: 100%;
  }

  .progress-table td:last-child button {
    width: 100%;
  }

  .progress-table .cohort-action {
    min-width: 0;
    width: 100%;
  }
}

/* ── 코치 검토 박스 & 스탬프 ── */
.coach-review-box {
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: #fdfbf7;
  border: 1px solid #f2e7c9;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-evidence-editor {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
  min-width: 0;
}

.review-request-controls,
.review-queue-section {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  min-width: 0;
}

.review-request-controls label { display: grid; gap: 6px; margin: 10px 0; }
.review-queue { display: grid; gap: 16px; }
.review-queue-item { padding: 16px; border: 1px solid var(--line); border-radius: 6px; min-width: 0; }
.review-claim, .review-context dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-context { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px 16px; }
.review-context dt { font-weight: 600; }
.review-context dd { margin: 0; }
.review-queue-item label { display: grid; gap: 6px; }
.review-queue-item textarea { width: 100%; min-width: 0; }
.review-pagination { min-height: 44px; justify-content: center; }
@media (max-width: 600px) { .review-context { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.process-evidence-editor summary {
  cursor: pointer;
  font-weight: 600;
  padding: 8px 0;
  min-height: 44px;
}

.process-evidence-editor label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}

.process-evidence-editor textarea,
.process-evidence-editor input,
.process-evidence-editor select {
  width: 100%;
  min-width: 0;
}
.coach-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 750;
  color: #78350f;
}
.coach-stamp-badge {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 700;
}
.coach-stamp-badge:not(.pending) {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
.coach-note-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #78350f;
  font-weight: 600;
}
.coach-note-label input {
  padding: 8px 10px;
  border: 1px solid #e5d5ac;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

/* ── 1분 실전 모의면접 타이머 ── */
.practice-timer-container {
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.practice-timer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.practice-timer-info {
  display: flex;
  align-items: center;
  gap: 6px;
}
.timer-icon {
  font-size: 16px;
}
.timer-title {
  font-size: 13px;
  color: #334155;
}
.timer-display {
  font-family: monospace;
  font-size: 14px;
  font-weight: 800;
  color: #2563eb;
  padding: 2px 6px;
  background: #eff6ff;
  border-radius: 4px;
}
.timer-controls {
  display: flex;
  gap: 6px;
}
.timer-btn {
  min-height: 30px;
  font-size: 12px;
  padding: 0 10px;
}
.timer-btn.active {
  background: #ef4444;
  color: #fff;
}
.timer-btn-reset {
  min-height: 30px;
  font-size: 12px;
  padding: 0 8px;
}
.timer-progress-track {
  width: 100%;
  height: 4px;
  background: #cbd5e1;
  border-radius: 999px;
  overflow: hidden;
}
.timer-progress-fill {
  height: 100%;
  background: #2563eb;
  transition: width 1s linear;
}
.answer-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-counter {
  font-size: 11.5px;
  color: #64748b;
}



/* Socratic Cognitive Retrieval Modal & A4 Sheet Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-backdrop[hidden],
.modal-backdrop[aria-hidden="true"] {
  display: none !important;
}

.socratic-modal-card {
  width: 90%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E5E7EB;
}

.socratic-modal-card .modal-header {
  padding: 16px 20px;
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socratic-progress-wrap {
  padding: 12px 20px;
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
}

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: #2563EB;
  transition: width 0.3s ease;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #4B5563;
  font-weight: 500;
}

.socratic-modal-card .modal-body {
  padding: 20px;
}

.step-guide-text {
  font-size: 14px;
  color: #1F2937;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
}

.socratic-seed-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  background: #F9FAFB;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #E5E7EB;
}

.seed-chip {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 12px;
  padding: 3px 8px;
  font-size: 11px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.seed-chip:hover {
  background: #EFF6FF;
  border-color: #2563EB;
  color: #1E40AF;
}

.socratic-textarea {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}

.socratic-textarea:focus {
  outline: none;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
}

.char-count {
  color: #6B7280;
}

.feedback-warning {
  color: #D97706;
  font-weight: 500;
}

.feedback-success {
  color: #059669;
  font-weight: 500;
}

.feedback-info {
  color: #2563EB;
  font-weight: 500;
}

.socratic-modal-card .modal-footer {
  padding: 12px 20px;
  background: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
}
