:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #64748b;
  --line: #d8e2ee;
  --paper: #f3f6fa;
  --panel: #ffffff;
  --navy: #172033;
  --teal: #087f83;
  --teal-deep: #05666d;
  --blue: #3157c9;
  --amber: #b7791f;
  --green: #20805d;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 246, 250, 0.96) 42%),
    linear-gradient(120deg, rgba(8, 127, 131, 0.07), transparent 36%),
    linear-gradient(240deg, rgba(49, 87, 201, 0.06), transparent 38%),
    var(--paper);
  color: var(--ink);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
textarea {
  font: inherit;
}

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

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #111827 0%, #18243a 58%, #213552 100%);
  color: #f8fafc;
  box-shadow: 18px 0 48px rgba(15, 23, 42, 0.14);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #dff7f4 100%);
  color: var(--teal-deep);
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(3, 105, 112, 0.24);
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.brand p {
  margin: 5px 0 0;
  color: #b9c7d8;
  line-height: 1.5;
  font-size: 13px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 8px;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #dbe6f1;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  color: #8ab9bc;
  font-size: 12px;
  font-weight: 900;
}

.step:hover,
.step.is-active {
  background: #ffffff;
  color: #132238;
  border-color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.step:hover {
  transform: translateY(-1px);
}

.step:hover::before,
.step.is-active::before {
  color: #106f70;
}

.score-block {
  margin-top: auto;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.score-label {
  display: block;
  color: #b9c8d8;
  font-size: 13px;
}

.score-block strong {
  display: block;
  margin-top: 8px;
  font-size: 42px;
  line-height: 1;
}

.meter {
  height: 8px;
  overflow: hidden;
  margin: 16px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #51d4c7 0%, #8eb5ff 100%);
  transition: width 240ms ease;
}

.score-block p {
  min-height: 42px;
  margin: 0;
  color: #c9d6e2;
  line-height: 1.55;
  font-size: 13px;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 2px;
}

.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-actions select {
  min-height: 42px;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  outline: none;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.top-actions select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 138, 138, 0.13);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.topbar h2 {
  margin: 0;
  color: #101828;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: 0;
}

.goal-panel,
.input-area {
  display: grid;
  gap: 16px;
}

.goal-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--navy);
  font-weight: 700;
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

label > span {
  color: #1f2a44;
  font-size: 14px;
}

.goal-panel select {
  min-height: 42px;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--navy);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.goal-panel select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 131, 0.12);
}

textarea {
  min-height: 168px;
  width: 100%;
  resize: vertical;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  padding: 14px;
  line-height: 1.7;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.035);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

textarea:focus {
  border-color: var(--teal);
  background: #ffffff;
  box-shadow:
    inset 0 1px 2px rgba(17, 24, 39, 0.025),
    0 0 0 4px rgba(8, 127, 131, 0.12);
}

.upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.upload-row input {
  display: none;
}

.upload-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.upload-button {
  min-height: 36px;
  border: 1px solid #b7d9d8;
  border-radius: 8px;
  background: #eef9f8;
  color: var(--teal-deep);
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.upload-button:hover {
  border-color: var(--teal);
  background: #e1f4f2;
  transform: translateY(-1px);
}

.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 127, 131, 0.26);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(49, 87, 201, 0.24);
}

.secondary-button,
.ghost-button {
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
}

.secondary-button:hover,
.ghost-button:hover {
  border-color: #a9b9ce;
  transform: translateY(-1px);
}

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

.status-strip div {
  min-height: 74px;
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  box-shadow: var(--soft-shadow);
}

.status-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--teal-deep);
  font-size: 24px;
  line-height: 1;
}

.result-layout {
  display: block;
  min-height: 430px;
  padding-top: 2px;
}

.panel {
  display: none;
  min-height: 430px;
  border: 1px solid rgba(216, 226, 238, 0.98);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel.is-visible {
  display: block;
  animation: panelIn 180ms ease;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.panel-header h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
  letter-spacing: 0;
}

.panel-header span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.rich-output {
  padding: 22px;
  line-height: 1.75;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(247, 250, 252, 0.9), rgba(255, 255, 255, 0.96));
}

.rich-output h4 {
  margin: 20px 0 9px;
  color: var(--navy);
  font-size: 16px;
}

.rich-output h4:first-child {
  margin-top: 0;
}

.rich-output ul,
.rich-output ol {
  margin: 8px 0 14px;
  padding-left: 22px;
}

.rich-output li {
  margin: 7px 0;
  color: #334155;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.tag {
  border: 1px solid #b7d9d8;
  border-radius: 999px;
  color: var(--teal-deep);
  background: #eef9f8;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

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

.summary-item {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 15px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.045);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.summary-item strong {
  display: block;
  margin-top: 6px;
  color: #101828;
  font-size: 18px;
}

.dimension-list,
.qa-list,
.plan-list,
.evidence-table,
.match-evidence-list,
.missing-evidence-list,
.priority-list,
.rewrite-bullet-list,
.framework-list,
.portfolio-list,
.rationale-list,
.quote-list,
.script-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.dimension-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(120px, 0.42fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.dimension-row strong,
.competency-card strong,
.qa-card strong,
.plan-card strong {
  color: #101828;
}

.dimension-row p,
.competency-card p,
.qa-card p,
.plan-card p,
.insight-grid p {
  margin: 5px 0 0;
  color: #475569;
  line-height: 1.65;
}

.dimension-row > span {
  color: var(--teal-deep);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf5;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal) 0%, var(--blue) 100%);
}

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

.insight-grid > div,
.competency-card,
.qa-card,
.plan-card,
.followup-card,
.evidence-row,
.match-evidence-card,
.missing-evidence-card,
.priority-card,
.rewrite-bullet-card,
.framework-card,
.portfolio-card,
.rationale-card,
.quote-card,
.script-card {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.insight-grid span,
.qa-card span,
.plan-card span,
.followup-card span,
.rewrite-bullet-card span,
.portfolio-card span,
.quote-card span,
.script-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.diagnosis-strip > div {
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.diagnosis-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.diagnosis-strip strong {
  display: block;
  margin-top: 7px;
  color: #101828;
  line-height: 1.55;
}

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

.evidence-row {
  display: grid;
  gap: 8px;
}

.evidence-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.evidence-row strong,
.match-evidence-card strong,
.missing-evidence-card strong,
.priority-card strong,
.rewrite-bullet-card strong,
.framework-card strong,
.portfolio-card strong,
.rationale-card strong {
  color: #101828;
}

.evidence-row p,
.match-evidence-card p,
.missing-evidence-card p,
.priority-card p,
.rewrite-bullet-card p,
.framework-card p,
.portfolio-card p,
.rationale-card p,
.quote-card p,
.script-card p {
  margin: 0;
  color: #475569;
  line-height: 1.68;
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid #b7d9d8;
  border-radius: 999px;
  background: #eef9f8;
  color: var(--teal-deep);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.match-evidence-list,
.missing-evidence-list,
.rewrite-bullet-list,
.framework-list,
.rationale-list,
.quote-list,
.script-list {
  grid-template-columns: 1fr;
}

.priority-list,
.portfolio-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.priority-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.priority-card > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #172033;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.rewrite-bullet-card,
.framework-card,
.rationale-card,
.quote-card,
.script-card {
  background: #ffffff;
}

.rewrite-bullet-card span,
.portfolio-card span,
.quote-card span,
.script-card span {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #d5e1ec;
  border-radius: 999px;
  background: #f8fbff;
  padding: 5px 10px;
  margin-bottom: 8px;
}

.portfolio-card {
  min-height: 150px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.quote-card blockquote {
  margin: 8px 0 10px;
  border-left: 4px solid var(--teal);
  background: #f8fbff;
  color: #1f2937;
  padding: 10px 12px;
  line-height: 1.7;
}

.script-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

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

.formula-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.formula-strip span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  background: #eef9f8;
  color: var(--teal-deep);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.qa-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.interview-coach {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
  padding: 18px;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.075);
}

.coach-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #dce6ef;
}

.coach-header h4 {
  margin: 0 0 5px;
  font-size: 18px;
}

.coach-header p {
  max-width: 720px;
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

.coach-header > span {
  flex: 0 0 auto;
  max-width: 280px;
  border: 1px solid #b7d9d8;
  border-radius: 999px;
  background: #eef9f8;
  color: var(--teal-deep);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.coach-field {
  box-shadow: none;
  background: #ffffff;
}

.coach-field select {
  min-height: 42px;
  border: 1px solid #d5e1ec;
  border-radius: 8px;
  background: #fbfdff;
  color: var(--navy);
  padding: 0 12px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.coach-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 131, 0.12);
}

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

.feedback-empty {
  display: grid;
  place-items: center;
  min-height: 92px;
  border: 1px dashed #c8d5e4;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
}

.interview-feedback {
  display: grid;
  gap: 12px;
}

.feedback-score,
.feedback-section,
.feedback-grid > div {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.feedback-score {
  display: grid;
  grid-template-columns: auto 72px minmax(140px, 1fr);
  gap: 12px;
  align-items: center;
}

.feedback-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.feedback-score strong {
  color: var(--teal-deep);
  font-size: 28px;
  line-height: 1;
  text-align: right;
}

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

.feedback-section h4,
.feedback-grid h4 {
  margin: 0 0 8px;
}

.feedback-section p,
.feedback-grid p {
  margin: 0;
  color: #334155;
}

.improved-answer {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
  border-color: #b7d9d8;
}

.qa-card span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef9f8;
  color: var(--teal-deep);
}

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

.plan-card {
  min-height: 132px;
}

.plan-card strong {
  display: block;
  margin-top: 6px;
}

.followup-list {
  display: grid;
  gap: 12px;
  margin: 12px 0 18px;
}

.followup-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.followup-card strong {
  color: #101828;
}

.followup-card p {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.65;
}

.report-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 127, 131, 0.08), rgba(49, 87, 201, 0.08)),
    #fbfdff;
  padding: 18px;
}

.report-score {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.report-score span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.report-score strong {
  color: var(--teal-deep);
  font-size: 42px;
  line-height: 1;
}

.report-hero h4 {
  margin: 0 0 8px;
  color: #101828;
  font-size: 20px;
}

.report-hero p {
  margin: 0;
  color: #334155;
  line-height: 1.75;
}

.loading-dots::after {
  content: "";
  display: inline-block;
  width: 1.3em;
  text-align: left;
  animation: dots 1s steps(4, end) infinite;
}

.risk {
  color: var(--amber);
  font-weight: 800;
}

.good {
  color: var(--green);
  font-weight: 800;
}

button:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 87, 201, 0.22);
  outline-offset: 2px;
}

::selection {
  background: rgba(8, 127, 131, 0.18);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dots {
  0% {
    content: "";
  }

  25% {
    content: ".";
  }

  50% {
    content: "..";
  }

  75%,
  100% {
    content: "...";
  }
}

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

  .sidebar {
    min-height: auto;
  }

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

  .workspace {
    padding: 22px 16px;
  }

  .topbar,
  .top-actions,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions select {
    max-width: none;
    width: 100%;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .goal-panel,
  .input-area {
    grid-template-columns: 1fr;
  }

  .status-strip,
  .summary-grid,
  .report-hero,
  .diagnosis-strip,
  .dimension-row,
  .insight-grid,
  .competency-grid,
  .formula-strip,
  .plan-list,
  .evidence-table,
  .priority-list,
  .portfolio-list,
  .priority-card,
  .feedback-score,
  .feedback-grid,
  .followup-card {
    grid-template-columns: 1fr;
  }

  .coach-header,
  .coach-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .coach-header > span {
    max-width: none;
  }

  .feedback-score strong {
    text-align: left;
  }

  .dimension-row > span {
    text-align: left;
  }
}
