:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee9;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --soft-strong: #eaf0f7;
  --surface: #e7ecf3;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

* {
  box-sizing: border-box;
}

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

body.auth-locked {
  background: #eef2f5;
}

body.auth-locked .app-shell,
body.auth-ready .login-view {
  display: none;
}

.login-form:not(.is-register) .register-only {
  display: none;
}

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

button {
  cursor: pointer;
}

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

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  padding: 64px;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    #eef2f5;
  background-size: 30px 30px;
}

.login-brand {
  max-width: 680px;
}

.login-brand h1 {
  margin: 0;
  max-width: 560px;
  font-size: 56px;
  line-height: 1.06;
}

.login-metrics,
.ops-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-metrics {
  margin-top: 38px;
}

.login-metrics div,
.ops-strip div {
  min-width: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-metrics strong,
.ops-strip strong,
.login-metrics span,
.ops-strip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-metrics strong,
.ops-strip strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.login-metrics span,
.ops-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.login-form-heading h2 {
  margin: 0;
  font-size: 26px;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.login-message {
  min-height: 20px;
  margin: -4px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.login-message.is-success {
  color: #047857;
}

.login-submit {
  justify-content: center;
  width: 100%;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-shell:not(.is-admin) .admin-console,
.app-shell.is-admin .workspace,
.app-shell.is-admin #saveWorkspace,
.app-shell:not(.is-user) .workspace {
  display: none;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.admin-console {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
  background: #f6f8fb;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.admin-sidebar h2 {
  margin: 0;
  font-size: 24px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.admin-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-height: calc(100vh - 74px);
  overflow: auto;
  padding: 28px;
}

.admin-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-panel.is-active {
  display: flex;
}

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

.admin-stat-grid div {
  min-width: 0;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-stat-grid span,
.admin-stat-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stat-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-stat-grid strong {
  margin-top: 8px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.1;
}

.app-brand,
.admin-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.app-brand h1 {
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-brand .eyebrow {
  margin-bottom: 3px;
}

.session-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  color: #047857;
  background: #ecfdf3;
  border-color: #abefc6;
}

.status-pill.is-saving {
  color: #8a5a1f;
  background: #fff8e5;
  border-color: #f2d58a;
}

.status-pill.is-error {
  color: #b42318;
  background: #fff1f0;
  border-color: #f0c8c4;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.editor-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 74px);
  overflow: auto;
  padding: 28px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

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

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

.primary-action,
.ghost-action,
.add-action,
.remove-action,
.segment {
  border: 1px solid transparent;
  border-radius: 8px;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.export-button span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.primary-action span {
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.primary-action:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.ops-strip div {
  padding: 13px 14px;
  background: var(--soft);
}

.ops-strip strong {
  font-size: 18px;
}

.workspace-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.workspace-status strong {
  color: var(--accent);
}

.admin-section {
  background: #fbfcff;
}

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

.admin-action-grid .ghost-action {
  justify-content: center;
  width: 100%;
}

.toggle-control {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.toggle-control input {
  width: 16px;
  height: 16px;
  padding: 0;
}

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

.settings-grid label:last-child {
  grid-column: 1 / -1;
}

.settings-wide {
  grid-column: 1 / -1;
}

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

.settings-message {
  min-height: 22px;
  margin: 0;
  color: #047857;
  font-size: 13px;
  font-weight: 800;
}

.settings-message.is-error {
  color: #b42318;
}

.settings-message.is-saving {
  color: #8a5a1f;
}

.export-log-panel,
.user-list-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.export-log-list,
.user-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.export-log-item,
.user-list-item {
  display: grid;
  grid-template-columns: 54px minmax(220px, 1fr) minmax(280px, 0.9fr);
  gap: 10px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.user-detail {
  min-width: 0;
}

.user-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.user-controls select,
.user-controls button {
  grid-column: 1 / -1;
}

.user-controls label {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.user-controls input[type="checkbox"] {
  width: 15px;
  height: 15px;
  padding: 0;
}

.export-log-item strong,
.export-log-item span,
.user-list-item strong,
.user-list-item span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-log-item strong,
.user-list-item strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.export-log-item span,
.user-list-item span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.export-log-item small,
.user-list-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.career-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.segment.is-active {
  color: white;
  background: var(--accent);
}

.template-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.job-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(132px, 0.8fr);
  gap: 10px;
}

.job-template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 66px;
  padding: 10px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.job-card:hover,
.job-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.job-card strong,
.job-card span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card strong {
  font-size: 13px;
  font-weight: 900;
}

.job-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.template-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding-right: 3px;
}

.template-card {
  display: grid;
  grid-template-columns: 32px 44px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 70px;
  padding: 9px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
}

.template-card:hover,
.template-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.template-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.template-preview {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  grid-template-rows: 16px 22px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  background: var(--swatch-paper);
  border: 1px solid var(--swatch-line);
  border-radius: 6px;
}

.template-preview span:first-child {
  grid-column: 1 / -1;
  background: var(--swatch);
}

.template-preview span:nth-child(2) {
  margin: 7px 3px 5px 5px;
  background: color-mix(in srgb, var(--swatch) 16%, white);
}

.template-preview span:nth-child(3) {
  margin: 7px 5px 5px 2px;
  border: 1px solid color-mix(in srgb, var(--swatch) 45%, white);
}

.template-card strong,
.template-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-card strong {
  font-size: 13px;
  font-weight: 900;
}

.template-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.color-control input {
  width: 38px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.ghost-action,
.add-action {
  min-height: 38px;
  padding: 0 13px;
  color: var(--accent);
  background: white;
  border-color: var(--line);
  font-weight: 800;
}

.ghost-action:hover,
.add-action:hover {
  border-color: var(--accent);
}

.resume-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 18px;
}

.section-heading span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fbfcff;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.upload-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.upload-control input {
  padding: 8px;
}

.repeat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.repeat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.repeat-item-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.remove-action {
  width: 34px;
  height: 34px;
  color: #b42318;
  background: #fff;
  border-color: #f0c8c4;
  font-size: 18px;
  line-height: 1;
}

.remove-action:hover {
  background: #fff1f0;
}

.preview-panel {
  min-width: 0;
  max-height: calc(100vh - 74px);
  overflow: auto;
  padding: 36px;
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 32, 51, 0.05) 1px, transparent 1px),
    var(--surface);
  background-size: 26px 26px;
}

.preview-frame {
  width: min(100%, 900px);
  margin: 0 auto;
}

.resume-sheet {
  min-height: 1188px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family:
    Inter,
    "PingFang SC",
    "Microsoft YaHei",
    Arial,
    sans-serif;
  box-shadow: var(--shadow);
}

.resume-sheet.font-serif {
  font-family:
    Georgia,
    "Times New Roman",
    "Songti SC",
    SimSun,
    serif;
}

.resume-sheet.font-mono {
  font-family:
    "Cascadia Mono",
    Consolas,
    "SFMono-Regular",
    monospace;
}

.resume-hero {
  display: grid;
  grid-template-columns: 1fr 170px;
  gap: 34px;
  padding: 42px 46px 32px;
  color: white;
  background:
    linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08)),
    var(--accent);
}

.hero-split .resume-hero {
  background:
    linear-gradient(135deg, var(--accent) 0 64%, color-mix(in srgb, var(--accent) 70%, #111827) 64% 100%);
}

.hero-band .resume-hero,
.hero-minimal .resume-hero {
  color: var(--ink);
  background: var(--paper);
}

.hero-band .resume-hero {
  border-top: 15px solid var(--accent);
  border-bottom: 1px solid var(--line);
}

.hero-minimal .resume-hero {
  padding-top: 34px;
  border-bottom: 3px solid var(--accent);
}

.hero-band .resume-role,
.hero-minimal .resume-role {
  color: var(--accent);
  opacity: 1;
}

.hero-band .avatar-wrap,
.hero-minimal .avatar-wrap {
  border-color: color-mix(in srgb, var(--accent) 24%, white);
  background: color-mix(in srgb, var(--accent) 8%, white);
}

.resume-hero h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.resume-role {
  margin: 10px 0 18px;
  font-size: 18px;
  font-weight: 800;
  opacity: 0.92;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}

.avatar-wrap {
  align-self: start;
  width: 152px;
  aspect-ratio: 1;
  border: 4px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.avatar-circle .avatar-wrap {
  border-radius: 50%;
}

.avatar-rounded .avatar-wrap {
  border-radius: 22px;
}

.avatar-hidden .resume-hero {
  grid-template-columns: 1fr;
}

.avatar-hidden .avatar-wrap {
  display: none;
}

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

.resume-body {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(230px, 0.9fr);
  gap: 34px;
  padding: 36px 46px 44px;
}

.layout-sidebar .resume-body {
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 1.75fr);
}

.layout-sidebar .resume-main {
  order: 2;
}

.layout-sidebar .resume-side {
  order: 1;
  padding: 18px;
  background: color-mix(in srgb, var(--accent) 8%, white);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}

.layout-sidebar .skill-tags {
  gap: 7px;
}

.layout-modern .resume-body {
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.95fr);
}

.layout-modern .resume-section h3 {
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  font-size: 15px;
  text-transform: uppercase;
}

.layout-modern .resume-section h3::after {
  width: 54px;
  height: 3px;
  flex: none;
  background: var(--accent);
}

.layout-compact .resume-hero {
  grid-template-columns: 1fr 124px;
  gap: 20px;
  padding: 30px 36px 25px;
}

.layout-compact .avatar-wrap {
  width: 118px;
}

.layout-compact .resume-body {
  gap: 24px;
  padding: 28px 36px 34px;
}

.layout-compact .resume-main,
.layout-compact .resume-side {
  gap: 20px;
}

.layout-compact .resume-hero h2 {
  font-size: 34px;
}

.resume-main,
.resume-side {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.resume-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 16px;
}

.font-serif .resume-section h3 {
  font-size: 17px;
  letter-spacing: 0;
}

.font-mono .resume-section h3 {
  font-size: 14px;
  text-transform: uppercase;
}

.resume-section h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.summary-text {
  margin: 0;
  color: #344054;
  line-height: 1.85;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
}

.timeline-line .timeline-content {
  position: relative;
  padding-left: 15px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 25%, white);
}

.timeline-line .timeline-content::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-compact .timeline {
  gap: 13px;
}

.timeline-compact .timeline-item {
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.timeline-compact .details {
  line-height: 1.56;
}

.timeline-cards .timeline-item {
  display: block;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 7%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
  border-radius: 8px;
}

.timeline-cards .time {
  margin-bottom: 6px;
  color: var(--accent);
}

.timeline-dot .timeline-content {
  position: relative;
  padding-left: 18px;
}

.timeline-dot .timeline-content::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, white);
}

.time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.timeline-content h4 {
  margin: 0;
  font-size: 16px;
}

.meta {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.details {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.72;
}

.details li + li {
  margin-top: 5px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-tags span {
  padding: 7px 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.tags-solid .skill-tags span {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.tags-outline .skill-tags span {
  color: var(--accent);
  background: transparent;
  border-color: color-mix(in srgb, var(--accent) 55%, white);
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-list h4 {
  margin: 0 0 4px;
  font-size: 15px;
}

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

@media (max-width: 1040px) {
  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .workspace {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .editor-panel {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preview-panel {
    max-height: none;
  }
}

@media (max-width: 820px) {
  .login-view {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 18px;
  }

  .login-brand h1 {
    font-size: 40px;
  }
}

@media (max-width: 720px) {
  .app-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px;
  }

  .admin-controls {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .admin-controls .ghost-action {
    flex: 0 0 auto;
  }

  .editor-panel,
  .preview-panel,
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }

  .panel-header,
  .toolbar,
  .resume-hero,
  .resume-body,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .panel-header,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .export-actions,
  .career-switch,
  .job-filter-bar,
  .job-template-gallery,
  .template-gallery,
  .admin-nav,
  .admin-stat-grid,
  .admin-action-grid,
  .settings-grid,
  .settings-toggle-grid,
  .login-metrics,
  .ops-strip {
    grid-template-columns: 1fr;
  }

  .settings-grid label:last-child {
    grid-column: auto;
  }

  .export-actions {
    justify-content: stretch;
  }

  .export-actions button {
    justify-content: center;
  }

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

  .user-list-item {
    grid-template-columns: 1fr;
  }

  .resume-hero,
  .resume-body {
    padding: 28px;
  }

  .resume-hero h2 {
    font-size: 34px;
  }
}

@media print {
  body {
    background: white;
  }

  .login-view,
  .app-topbar {
    display: none;
  }

  .editor-panel {
    display: none;
  }

  .workspace {
    display: block;
  }

  .preview-panel {
    padding: 0;
    overflow: visible;
    background: white;
  }

  .preview-frame {
    width: 100%;
  }

  .resume-sheet {
    min-height: auto;
    box-shadow: none;
  }
}
