:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --panel: #ffffff;
  --panel-strong: #f9fbf7;
  --ink: #18211d;
  --muted: #61706a;
  --line: #dce3dd;
  --brand: #1e7c64;
  --brand-dark: #115745;
  --accent: #d86f32;
  --accent-soft: #fff0e7;
  --blue: #2e6fae;
  --blue-soft: #e8f1fb;
  --shadow: 0 18px 42px rgba(24, 33, 29, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.dashboard-page {
  height: 100vh;
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.dashboard-page .app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 92px;
  overflow: hidden;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(24, 33, 29, 0.08);
  padding-bottom: 18px;
}

.topbar > *:not(.creator-watermark) {
  position: relative;
  z-index: 1;
}

.brand-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.creator-watermark {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(30, 124, 100, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(30, 124, 100, 0.08);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--panel);
}

.mode-button {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.mode-button.active {
  background: var(--brand);
  color: white;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.top-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.05fr) minmax(360px, 1.25fr);
  gap: 18px;
  align-items: stretch;
  min-height: calc(100vh - 158px);
}

.dashboard-page .workspace {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-workspace {
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 0.88fr) minmax(380px, 1.08fr);
}

.admin-workspace[hidden],
.student-workspace[hidden] {
  display: none;
}

.profile-panel,
.job-panel,
.insight-panel {
  min-width: 0;
  max-height: calc(100vh - 158px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.dashboard-page .profile-panel,
.dashboard-page .job-panel,
.dashboard-page .insight-panel {
  min-height: 0;
  max-height: none;
}

.profile-panel,
.job-panel,
.insight-panel > .score-card,
.workflow-card,
.analysis-grid,
.advice-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-panel,
.job-panel {
  padding: 18px;
}

.insight-panel {
  display: grid;
  gap: 16px;
}

.avatar-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.avatar-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 92px;
  border-radius: 8px;
  border: 1px solid rgba(30, 124, 100, 0.16);
  background: #dff0fb;
  color: var(--brand-dark);
  overflow: hidden;
}

.avatar-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-card h2 {
  margin-bottom: 6px;
}

.avatar-card p,
.profile-block p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.student-meta,
.selected-job-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.compact-button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.resume-document {
  max-height: 390px;
  overflow: auto;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  padding: 18px;
  background: #fffefa;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.resume-header {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.resume-header h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.resume-header p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.resume-body {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}

.resume-section h4 {
  margin: 0 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  letter-spacing: 0;
}

.resume-section p {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.resume-section ul {
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.55;
}

.resume-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.resume-skill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef4ed;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 750;
}

.parse-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

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

.field-group label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: var(--panel-strong);
  line-height: 1.55;
}

input {
  min-height: 40px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(30, 124, 100, 0.18);
  border-color: var(--brand);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 18px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  background: var(--brand);
  color: white;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
}

.profile-block + .profile-block {
  margin-top: 18px;
}

.profile-block h3 {
  margin-bottom: 10px;
}

.profile-meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.profile-meta-grid .profile-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

.profile-meta-grid .profile-block + .profile-block {
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--blue-soft);
  color: #194f80;
  font-size: 12px;
  font-weight: 750;
}

.tag.gap {
  background: var(--accent-soft);
  color: #a84d1d;
}

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

.section-heading.compact {
  margin-bottom: 12px;
}

#job-count {
  color: var(--muted);
  font-size: 13px;
}

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

.admin-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 2px solid rgba(216, 111, 50, 0.5);
  border-radius: 8px;
  padding: 16px;
  background: #fffaf6;
}

.admin-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.admin-panel textarea {
  min-height: 128px;
}

.admin-result {
  margin-bottom: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--blue-soft);
  color: #194f80;
  font-size: 13px;
  line-height: 1.5;
}

.admin-job-list,
.candidate-list,
.admin-match-list {
  display: grid;
  gap: 12px;
}

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

.admin-job-item,
.candidate-card,
.admin-match-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-strong);
}

a.admin-job-item {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

a.admin-job-item:hover,
a.admin-job-item:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(30, 124, 100, 0.15);
  transform: translateY(-1px);
  outline: 0;
}

.admin-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-item-header h3,
.candidate-card h3 {
  margin-bottom: 4px;
}

.admin-item-header span,
.candidate-card p,
.admin-job-item p,
.admin-match-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.candidate-card {
  width: 100%;
  color: inherit;
  text-align: left;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.candidate-card:hover,
.candidate-card:focus-visible,
.candidate-card.active {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(30, 124, 100, 0.15);
  transform: translateY(-1px);
  outline: 0;
}

.candidate-submitted {
  margin-top: 8px;
}

.job-card {
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, var(--panel-strong));
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.job-description {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.job-card:hover,
.job-card:focus-visible,
.job-card.active {
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(30, 124, 100, 0.15);
  transform: translateY(-1px);
  outline: 0;
}

.job-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.job-title-row h3 {
  margin-bottom: 4px;
}

.job-meta {
  color: var(--muted);
  font-size: 13px;
}

.job-requirement-grid,
.admin-job-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.job-requirement-grid span,
.admin-job-detail-grid p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.job-requirement-grid strong,
.admin-job-detail-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 11px;
}

.mini-score {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  font-weight: 850;
}

.job-level {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(30, 124, 100, 0.1);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.job-detail-hint {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(30, 124, 100, 0.1);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

.admin-recommendation {
  margin-bottom: 10px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 12px;
  background: var(--panel-strong);
  line-height: 1.65;
}

.admin-recommendation:last-child {
  margin-bottom: 0;
}

.score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.workflow-card {
  padding: 16px;
}

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

.workflow-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  min-width: 0;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-strong);
}

.workflow-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(30, 124, 100, 0.12);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.workflow-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.workflow-value {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workflow-line {
  display: block;
}

.score-ring {
  --score: 0;
  position: relative;
  display: block;
  width: 118px;
  height: 118px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--panel) 0 57%, transparent 58%),
    conic-gradient(var(--brand) calc(var(--score) * 1%), #e8eee9 0);
}

.score-ring strong {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  line-height: 1;
}

.score-ring span {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.analysis-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.analysis-grid h3 {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.advice-card {
  padding: 16px;
}

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

.score-formula {
  margin-bottom: 14px;
  border: 1px solid rgba(46, 111, 174, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--blue-soft);
  color: #163d61;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.breakdown-row {
  display: grid;
  gap: 7px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.breakdown-header strong {
  font-size: 13px;
}

.breakdown-header span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

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

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

.breakdown-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.skill-detail-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.skill-detail-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

.skill-detail-section-heading {
  margin-top: 4px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.skill-detail-row.soft-match {
  border-color: rgba(30, 124, 100, 0.28);
  background: #f5fbf7;
}

.skill-detail-row.soft-gap {
  border-color: rgba(216, 111, 50, 0.28);
  background: #fffaf6;
}

.skill-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-detail-title strong {
  font-size: 14px;
}

.skill-detail-title span {
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 850;
}

.skill-detail-fields {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr;
  gap: 10px;
}

.skill-detail-fields p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.skill-detail-fields strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.skill-detail-fields .source-field {
  grid-column: 1 / -1;
}

.modal-dialog {
  width: min(760px, calc(100vw - 36px));
  max-height: min(820px, calc(100vh - 48px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.modal-dialog::backdrop {
  background: rgba(24, 33, 29, 0.32);
  backdrop-filter: blur(3px);
}

.modal-panel {
  max-height: min(820px, calc(100vh - 48px));
  overflow: auto;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-header h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.rewrite-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.rewrite-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.rewrite-item p {
  margin-bottom: 0;
  line-height: 1.6;
}

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

.after {
  padding: 12px;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--ink);
}

.snippet-box {
  margin-bottom: 0;
  border: 1px solid rgba(46, 111, 174, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: var(--blue-soft);
  color: #163d61;
  line-height: 1.7;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.snippet-box.pulse {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(46, 111, 174, 0.18);
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.report-item {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

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

.report-item strong {
  font-size: 13px;
  line-height: 1.45;
}

.nav-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.job-detail-page {
  max-width: 1320px;
}

.job-detail-topbar {
  margin-bottom: 18px;
}

.job-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #17231f;
  color: white;
  box-shadow: var(--shadow);
}

.job-detail-hero .eyebrow,
.job-detail-hero .selected-job-meta {
  color: rgba(255, 255, 255, 0.74);
}

.job-detail-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.job-detail-main,
.job-detail-side {
  display: grid;
  gap: 16px;
}

.detail-description {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  color: var(--ink);
  line-height: 1.8;
  box-shadow: var(--shadow);
}

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

.detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(24, 33, 29, 0.07);
}

.detail-card h3 {
  margin-bottom: 10px;
}

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

.detail-analysis-grid p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.detail-analysis-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.detail-breakdown-list {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1120px) {
  .workspace,
  .admin-workspace {
    grid-template-columns: 1fr 1fr;
  }

  .job-detail-layout,
  .detail-section-grid {
    grid-template-columns: 1fr;
  }

  .insight-panel {
    grid-column: 1 / -1;
    max-height: none;
  }

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

  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.dashboard-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .app-shell {
    padding: 14px;
  }

  .dashboard-page .app-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .topbar {
    gap: 12px;
    min-height: auto;
    margin-bottom: 12px;
    padding-bottom: 12px;
    overflow: visible;
  }

  .brand-title-row {
    gap: 8px;
  }

  h1 {
    margin-bottom: 0;
    font-size: 34px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 15px;
  }

  .topbar,
  .top-actions,
  .job-detail-hero,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions {
    width: 100%;
    gap: 8px;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }

  .status-pill {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12px;
    white-space: normal;
  }

  .workspace,
  .admin-workspace,
  .analysis-grid,
  .report-grid,
  .breakdown-list,
  .workflow-steps,
  .detail-analysis-grid,
  .job-requirement-grid,
  .admin-job-detail-grid,
  .skill-detail-fields {
    grid-template-columns: 1fr;
  }

  .dashboard-page .workspace {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: auto;
    overflow: visible;
  }

  .dashboard-page .profile-panel,
  .dashboard-page .job-panel,
  .dashboard-page .insight-panel {
    max-height: none;
    overflow: visible;
  }

  .student-workspace .job-panel {
    order: 1;
  }

  .student-workspace .profile-panel {
    order: 2;
  }

  .student-workspace .insight-panel {
    order: 3;
  }

  .avatar-card,
  .field-row {
    grid-template-columns: 1fr;
  }

  .profile-panel,
  .job-panel,
  .workflow-card,
  .analysis-grid,
  .advice-card,
  .insight-panel > .score-card,
  .detail-card,
  .detail-description,
  .job-detail-hero {
    box-shadow: 0 8px 22px rgba(24, 33, 29, 0.07);
  }

  .profile-panel,
  .job-panel,
  .advice-card,
  .workflow-card,
  .analysis-grid,
  .detail-card {
    padding: 14px;
  }

  .avatar-card {
    display: flex;
    gap: 12px;
  }

  .avatar-visual {
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
  }

  .avatar-visual svg {
    width: 104px;
    height: 58px;
  }

  .resume-document {
    max-height: 280px;
    padding: 14px;
  }

  .resume-header h2 {
    font-size: 24px;
  }

  .job-card {
    min-height: auto;
    padding: 12px;
  }

  .job-title-row {
    align-items: flex-start;
  }

  .job-description {
    -webkit-line-clamp: 2;
  }

  .mini-score {
    width: 46px;
    height: 46px;
    font-size: 14px;
  }

  .job-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .workflow-step {
    grid-template-columns: 30px 1fr;
    min-height: auto;
    padding: 9px;
  }

  .workflow-index {
    width: 30px;
    height: 30px;
  }

  .score-card {
    padding: 16px;
  }

  .student-insight-panel .score-card {
    align-items: center;
    flex-direction: row;
  }

  .score-ring {
    width: 84px;
    height: 84px;
  }

  .score-ring strong {
    font-size: 24px;
  }

  .score-ring span {
    bottom: 13%;
    font-size: 11px;
  }

  .breakdown-list {
    gap: 12px;
  }

  .skill-detail-row {
    padding: 10px;
  }

  .snippet-box,
  .after,
  .score-formula {
    padding: 12px;
  }

  .admin-panel {
    padding: 14px;
  }

  .admin-heading-actions {
    width: 100%;
    justify-content: space-between;
  }

  .modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
  }

  .job-detail-page {
    max-width: 100%;
  }

  .job-detail-topbar {
    margin-bottom: 12px;
  }

  .job-detail-hero {
    gap: 10px;
    margin-bottom: 14px;
    padding: 18px;
  }

  .job-detail-hero h2 {
    font-size: 30px;
  }

  .job-detail-layout,
  .job-detail-main,
  .job-detail-side {
    gap: 14px;
  }

  .detail-description {
    padding: 14px;
    line-height: 1.7;
  }

  .creator-watermark {
    min-height: 26px;
    font-size: 12px;
  }
}

.dashboard-page .workspace,
.dashboard-page .profile-panel,
.dashboard-page .job-panel,
.dashboard-page .insight-panel {
  min-height: 0;
}

.dashboard-page .profile-panel,
.dashboard-page .job-panel,
.dashboard-page .insight-panel {
  max-height: none;
}
