:root {
  --bg: #fdfcf8;
  --paper: #fffefa;
  --paper-strong: #ffffff;
  --ink: #2c2c24;
  --muted: #78786c;
  --line: #ded8cf;
  --primary: #5d7052;
  --primary-dark: #43533b;
  --primary-soft: #e6ede2;
  --secondary: #c18c5d;
  --sand: #e6dccd;
  --stone: #f0ebe5;
  --danger: #a85448;
  --shadow-soft: 0 18px 50px -24px rgba(93, 112, 82, 0.38);
  --shadow-float: 0 26px 70px -34px rgba(193, 140, 93, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(193, 140, 93, 0.22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(93, 112, 82, 0.18), transparent 28%),
    linear-gradient(135deg, #fdfcf8 0%, #f8f3eb 48%, #fbfaf5 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  z-index: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(44, 44, 36, 0.6) 1px, transparent 0);
  background-size: 18px 18px;
}

body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -120px;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  opacity: 0.22;
  background: var(--primary);
  border-radius: 42% 58% 35% 65% / 55% 34% 66% 45%;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.hidden {
  display: none !important;
}

.auth-panel {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 420px);
  gap: 44px;
  align-items: center;
}

.brand-block {
  position: relative;
  max-width: 980px;
  padding: 26px 0;
}

.brand-block::before,
.brand-block::after {
  content: "";
  position: absolute;
  z-index: -1;
  filter: blur(2px);
}

.brand-block::before {
  width: 180px;
  height: 150px;
  left: -34px;
  top: -6px;
  background: rgba(230, 220, 205, 0.8);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.brand-block::after {
  width: 104px;
  height: 104px;
  right: 8%;
  bottom: 2px;
  background: rgba(193, 140, 93, 0.25);
  border-radius: 38% 62% 58% 42% / 45% 36% 64% 55%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Georgia", "Songti SC", "STSong", "PingFang SC", serif;
}

h1 {
  margin-bottom: 22px;
  max-width: 1040px;
  font-size: clamp(54px, 4.7vw, 86px);
  line-height: 1.04;
  font-weight: 800;
  white-space: nowrap;
}

.muted {
  margin: 0;
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  flex-wrap: nowrap;
  max-width: 620px;
}

.hero-action {
  width: 100%;
  flex: 1 1 0;
  min-width: 170px;
  min-height: 56px;
  padding: 0 32px;
  font-size: 17px;
}

.hero-flow {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
}

.hero-flow span {
  position: relative;
  padding: 13px 22px 13px 38px;
  color: #5f675f;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-radius: 999px;
  box-shadow: 0 14px 34px -28px rgba(93, 112, 82, 0.45);
  font-size: 15px;
  font-weight: 900;
}

.hero-flow span::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #6fbfba;
}

.hero-flow span + span::after {
  content: "›";
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-52%);
  color: rgba(120, 120, 108, 0.35);
  font-size: 34px;
  font-weight: 300;
}

.ai-provider-note {
  margin: 18px 0 0;
  max-width: 820px;
  color: #6d746c;
  font-size: 15px;
  line-height: 1.8;
}

.auth-card,
.input-panel,
.output-panel,
.project-library {
  background: rgba(255, 254, 250, 0.88);
  border: 1px solid rgba(222, 216, 207, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.auth-card {
  padding: 26px;
  border-radius: 34px 28px 42px 30px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin-bottom: 20px;
  background: rgba(230, 220, 205, 0.55);
  border: 1px solid rgba(222, 216, 207, 0.66);
  border-radius: 999px;
}

.tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.tab.is-active {
  color: var(--ink);
  background: var(--paper-strong);
  box-shadow: 0 10px 28px -18px rgba(93, 112, 82, 0.45);
}

label {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
  color: #3f493d;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(222, 216, 207, 0.95);
  border-radius: 22px;
  padding: 13px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

textarea {
  resize: vertical;
  line-height: 1.68;
  border-radius: 24px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(93, 112, 82, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(93, 112, 82, 0.13);
}

.primary-action,
.secondary-action {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  border: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-action {
  width: 100%;
  color: #f3f4f1;
  background: var(--primary);
  box-shadow: 0 16px 32px -20px rgba(93, 112, 82, 0.9);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px) scale(1.01);
}

.primary-action:active,
.secondary-action:active {
  transform: scale(0.98);
}

.secondary-action {
  color: var(--primary-dark);
  background: rgba(230, 237, 226, 0.94);
  border: 1px solid rgba(93, 112, 82, 0.14);
}

.secondary-action.is-success {
  color: #f3f4f1;
  background: var(--primary);
  box-shadow: 0 16px 32px -22px rgba(93, 112, 82, 0.9);
}

.compact-action {
  width: auto;
  min-width: 150px;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 1.6;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 14px 16px 14px 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(222, 216, 207, 0.76);
  border-radius: 999px;
  box-shadow: 0 16px 36px -28px rgba(93, 112, 82, 0.55);
  backdrop-filter: blur(12px);
}

.topbar h2 {
  font-size: 28px;
  line-height: 1.15;
}

.topbar-generate {
  flex: 0 0 auto;
  white-space: nowrap;
  width: auto;
  min-width: 190px;
  box-shadow: 0 18px 36px -20px rgba(93, 112, 82, 0.9);
}

.topbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px 7px 16px;
  background: rgba(255, 254, 250, 0.86);
  border: 1px solid rgba(222, 216, 207, 0.8);
  border-radius: 999px;
}

.account-chip button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 900;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 22px;
  align-items: start;
}

.input-panel,
.output-panel {
  min-width: 0;
}

.project-library {
  position: relative;
  padding: 26px;
  border-radius: 34px 48px 32px 38px;
  overflow: hidden;
}

.profile-library,
.campus-library {
  margin-top: 28px;
}

.profile-form,
.campus-form {
  display: grid;
  gap: 22px;
}

.project-library::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 150px;
  right: -56px;
  top: -54px;
  background: rgba(193, 140, 93, 0.18);
  border-radius: 54% 46% 36% 64% / 48% 37% 63% 52%;
}

.library-header,
.editor-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.library-header {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(222, 216, 207, 0.72);
}

.library-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.project-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(222, 216, 207, 0.78);
  border-radius: 26px 22px 32px 20px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-card:nth-child(2n) {
  border-radius: 22px 34px 24px 30px;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(93, 112, 82, 0.3);
  box-shadow: var(--shadow-float);
}

.project-card h4 {
  margin-bottom: 7px;
  font-size: 18px;
}

.project-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.project-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

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

.danger-action {
  color: var(--danger);
  background: #fff0ed;
  border-color: rgba(168, 84, 72, 0.18);
}

.input-panel,
.output-panel {
  padding: 24px;
  border-radius: 34px 28px 42px 30px;
}

.output-panel {
  position: sticky;
  top: 112px;
  border-radius: 28px 42px 30px 34px;
}

.editor-toolbar {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(222, 216, 207, 0.72);
}

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

.section-title {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin: 8px 0 18px;
}

.section-title span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 45% 55% 42% 58% / 52% 40% 60% 48%;
  font-weight: 950;
}

.section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.subsection-block {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(222, 216, 207, 0.65);
  border-radius: 24px 30px 22px 28px;
}

.subsection-block h4,
.inline-heading h4 {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
}

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

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

.education-item {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: rgba(253, 252, 248, 0.72);
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-radius: 22px;
}

.education-item .wide-field {
  grid-column: 1 / -1;
}

.remove-education {
  justify-self: end;
  min-height: 40px;
  padding: 0 18px;
}

.file-input input {
  padding: 10px 13px;
}

.upload-limit-note {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.parse-status {
  margin: -6px 0 14px;
  padding: 12px 14px;
  color: var(--primary-dark);
  background: rgba(230, 237, 226, 0.82);
  border: 1px solid rgba(93, 112, 82, 0.15);
  border-radius: 22px;
  font-size: 13px;
  line-height: 1.6;
}

.parse-status.is-error {
  color: var(--danger);
  background: #fff7ed;
  border-color: #f2c7a7;
}

.parse-status.is-warning {
  color: #8a5b12;
  background: #fff8e8;
  border-color: #ead7ad;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.58;
}

.level-meter {
  width: fit-content;
  padding: 4px 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

input[type="range"] {
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  accent-color: var(--primary);
}

.two-col,
.three-col,
.controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-meta-row {
  margin-bottom: 18px;
  align-items: end;
}

.compact-meta-row label {
  min-width: 0;
}

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

.campus-controls {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.campus-generate-action {
  min-height: 52px;
}

.match-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(222, 216, 207, 0.8);
  border-radius: 28px;
  background: rgba(253, 252, 248, 0.78);
  box-shadow: 0 12px 28px -18px rgba(93, 112, 82, 0.35);
}

.match-score {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  margin: 12px 0 18px;
  border-radius: 24px;
  background: rgba(93, 112, 82, 0.1);
  color: var(--primary);
}

.match-score strong {
  font-size: 34px;
  color: var(--foreground);
}

.analysis-list {
  margin-top: 16px;
}

.analysis-list h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.analysis-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted-foreground);
}

.analysis-list li + li {
  margin-top: 6px;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 6px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(222, 216, 207, 0.72);
}

.resume-output {
  min-height: 310px;
  padding: 20px 0;
}

.resume-output ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.result-title {
  display: grid;
  gap: 9px;
  margin-bottom: 16px;
}

.result-title span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
}

.resume-output li {
  position: relative;
  padding: 24px 26px 24px 52px;
  border: 1px solid rgba(222, 216, 207, 0.78);
  border-radius: 24px 34px 30px 24px;
  background: rgba(255, 255, 255, 0.64);
  line-height: 1.72;
  overflow: visible;
}

.resume-output li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 6px;
  border-radius: 999px;
  background: var(--primary);
}

.bullet-editor {
  display: block;
  min-height: 112px;
  border: 0;
  padding: 0 2px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  line-height: 1.78;
}

.bullet-editor:focus {
  box-shadow: none;
}

.empty-state {
  margin: 0;
  padding: 52px 18px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed rgba(93, 112, 82, 0.32);
  border-radius: 28px 22px 34px 24px;
  background: rgba(255, 255, 255, 0.35);
}

.followup-panel {
  display: grid;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid rgba(222, 216, 207, 0.72);
}

.followup-log {
  display: grid;
  gap: 9px;
  max-height: 168px;
  overflow: auto;
}

.full-resume-workspace {
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
}

.experience-pick-group {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.experience-pick-group h4 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 16px;
}

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

.pick-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(222, 216, 207, 0.78);
  border-radius: 22px 30px 24px 20px;
  background: rgba(255, 255, 255, 0.56);
}

.pick-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.pick-item strong,
.pick-item small {
  display: block;
}

.pick-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.output-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-top: 18px;
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-radius: 999px;
  background: rgba(240, 235, 229, 0.68);
}

.output-tab {
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 950;
}

.output-tab.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px -20px rgba(93, 112, 82, 0.5);
}

.full-resume-tab-panel {
  padding: 18px 0 0;
}

.full-resume-text-output {
  min-height: 260px;
  padding: 16px 0;
}

.full-resume-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
}

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

.layout-controls label {
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.overflow-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 13px 15px;
  color: #8a5b12;
  border: 1px solid #ead7ad;
  border-radius: 22px;
  background: #fff8e8;
  font-size: 13px;
  line-height: 1.55;
}

.a4-preview-container {
  display: flex;
  justify-content: center;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(222, 216, 207, 0.72);
  border-radius: 28px;
  background: rgba(240, 235, 229, 0.42);
}

.a4-page {
  --a4-font-size: 11pt;
  --a4-line-height: 1.3;
  --a4-para-spacing: 3px;
  --a4-preview-zoom: 0.75;
  position: relative;
  width: 794px;
  height: 1123px;
  padding: 54px 58px;
  overflow: hidden;
  color: #1f241f;
  background: #fffefa;
  border: 1px solid rgba(222, 216, 207, 0.8);
  box-shadow: 0 18px 54px -34px rgba(44, 44, 36, 0.55);
  font-size: var(--a4-font-size);
  line-height: var(--a4-line-height);
  zoom: var(--a4-preview-zoom);
}

.a4-content {
  font-family: "SimSun", "Songti SC", "Microsoft YaHei", serif;
}

.a4-header {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #222;
  text-align: left;
}

.a4-header h1 {
  margin: 0 0 6px;
  font-size: 22pt;
  line-height: 1.1;
}

.a4-meta {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  font-size: 9pt;
  line-height: 1.25;
}

.a4-content h2 {
  margin: 12px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #222;
  font-size: calc(var(--a4-font-size) + 2pt);
  line-height: 1.2;
}

.a4-content h3 {
  margin: 8px 0 4px;
  font-size: calc(var(--a4-font-size) + 0.5pt);
  line-height: 1.25;
}

.a4-content p,
.a4-content li {
  margin-top: 0;
  margin-bottom: var(--a4-para-spacing);
}

.a4-content ul {
  margin: 0 0 6px;
  padding-left: 18px;
}

.a4-overflow-line {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--danger);
}

.assistant-note,
.followup-user {
  margin: 0;
  padding: 12px 14px;
  border-radius: 22px;
  font-size: 13px;
  line-height: 1.65;
}

.assistant-note {
  color: #425047;
  background: rgba(240, 235, 229, 0.7);
  border: 1px solid rgba(222, 216, 207, 0.8);
}

.followup-user {
  color: #f9fffb;
  background: var(--primary);
  border-radius: 22px 22px 12px 22px;
}

.jd-tags-panel {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  margin-top: -6px;
  border: 1px solid rgba(222, 216, 207, 0.82);
  border-radius: 22px 18px 26px 20px;
  background: rgba(253, 252, 248, 0.78);
  box-shadow: 0 10px 28px -22px rgba(93, 112, 82, 0.28);
}

.target-form {
  max-width: 760px;
}

.target-selector-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.target-select {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(222, 216, 207, 0.96);
  border-radius: 999px;
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.64);
  font: inherit;
  font-weight: 800;
}

.target-preview {
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(93, 112, 82, 0.16);
  border-radius: 24px 18px 28px 20px;
  color: #3d4d3a;
  background: rgba(229, 240, 226, 0.62);
}

.target-preview span,
.target-preview small {
  color: var(--muted);
  line-height: 1.5;
}

.target-field-cache {
  margin: 0;
}

.jd-tags-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.jd-tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.jd-tag-label {
  min-width: 64px;
  color: #5d7052;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.jd-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.jd-tag--blue {
  color: #245c73;
  background: #e5f3f4;
}

.jd-tag--gray {
  color: #5f5e5a;
  background: #f1efe8;
}

.jd-tag--green {
  color: #44673a;
  background: #e5f0e2;
}

.jd-tag--clay {
  color: #8b5740;
  background: #f5e8dc;
}

@media (max-width: 1040px) {
  .auth-panel,
  .workspace,
  .two-col,
  .three-col,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    align-items: start;
    padding-top: 28px;
  }

  .output-panel {
    position: static;
  }

  .full-resume-workspace,
  .layout-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 22px, 1240px);
    padding: 20px 0 34px;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 28px;
  }

  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-generate {
    width: 100%;
  }

  .library-header,
  .editor-toolbar,
  .project-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .project-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .library-actions,
  .overflow-banner {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  h1 {
    font-size: 44px;
    line-height: 1.04;
    white-space: normal;
  }

  .hero-actions {
    flex-wrap: wrap;
    margin-top: 26px;
  }

  .hero-flow {
    gap: 10px;
    margin-top: 36px;
  }

  .hero-flow span {
    width: 100%;
  }

  .hero-flow span + span::after {
    display: none;
  }
}
