:root {
  --ez-primary: #1D4ED8;
  --ez-primary-hover: #1E40AF;
  --ez-primary-soft: #EEF4FF;
  --ez-canvas: #F4F6F8;
  --ez-card: #FFFFFF;
  --ez-read: #F6F7F8;
  --ez-body: #0F172A;
  --ez-muted: #64748B;
  --ez-border: #E2E8F0;
  --ez-success: #059669;
  --ez-success-bg: #ECFDF5;
  --ez-warning: #D97706;
  --ez-warning-bg: #FFFBEB;
  --ez-danger: #DC2626;
  --ez-danger-bg: #FEF2F2;
  --ez-live: #2DD4BF;
  --ez-llm-on-page: #067647;
  --ez-radius: 12px;
  --ez-radius-sm: 10px;
  --ez-control-h: 36px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  min-width: 1400px;
  background: var(--ez-canvas);
  color: var(--ez-body);
  font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
}

html:has(body.ez-unlock-body),
body.ez-unlock-body {
  height: auto;
  max-height: none;
  min-height: 100vh;
  overflow: auto;
}

h1, h2, h3 { margin: 0 0 6px; font-weight: 600; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 13px; color: var(--ez-primary); font-weight: 700; }
p { margin: 0 0 6px; }

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

.ez-shell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 1400px;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

.ez-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.ez-workspace-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ez-workspace-badge.is-host {
  background: #134E4A;
  color: #99F6E4;
}
.ez-workspace-badge.is-guest {
  background: #1E3A5F;
  color: #BFDBFE;
}
.ez-signout {
  color: var(--ez-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ez-signout:hover { color: var(--ez-body); }
.ez-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ez-live);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
  flex: 0 0 auto;
}
.ez-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 16px 30px 12px;
}
.ez-test-banner {
  flex: 0 0 auto;
  margin: -16px -30px 12px;
  padding: 8px 30px;
  background: #FEF3C7;
  color: #92400E;
  border-bottom: 1px solid #F59E0B;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
}

.ez-topbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  min-height: 36px;
}
.ez-topbar h1 { margin: 0; font-size: 20px; font-weight: 600; }
.ez-topbar-stats {
  display: flex;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.ez-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--ez-card);
  border: 1px solid var(--ez-border);
  border-radius: 20px;
  font-size: 10px;
  color: var(--ez-muted);
}
.ez-stat strong { font-size: 14px; color: var(--ez-body); font-weight: 600; }

.ez-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  flex: 0 0 auto;
  gap: 4px;
  margin: 12px 0 0;
  border-bottom: 1px solid var(--ez-border);
}
.ez-tabs a {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 10px 18px 10px 4px;
  margin-bottom: -1px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--ez-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.ez-tabs a:hover { color: var(--ez-body); background: transparent; }
.ez-tabs a.active {
  background: transparent;
  height: auto;
  border-bottom-color: var(--ez-primary);
  color: var(--ez-body);
}

.ez-content {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
}
.ez-content > * {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.ez-status {
  flex: 0 0 auto;
  padding: 8px 0 0;
  color: var(--ez-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ez-status-text {
  min-width: 0;
  flex: 1 1 auto;
}
.ez-llm-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.ez-llm-status.is-on { color: var(--ez-llm-on-page); }
.ez-llm-status.is-off { color: #B42318; }
.ez-llm-status .ez-llm-model {
  color: var(--ez-muted);
  font-weight: 600;
}
.ez-groq-unlock {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ez-groq-password {
  width: 140px;
  height: 28px;
  padding: 0 8px;
  font-size: 12px;
}
.ez-groq-unlock .ez-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.ez-groq-denied { color: #B42318; font-size: 11px; }
.ez-groq-off {
  color: var(--ez-muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.ez-groq-off:hover { color: var(--ez-body); }

.ez-card {
  background: var(--ez-card);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 16px;
}
.ez-card-tight { border-radius: var(--ez-radius); padding: 18px; }
.ez-panel {
  background: var(--ez-read);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 12px;
}
.ez-panel-plain {
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
  padding: 16px;
}

.ez-input, .ez-textarea, select.ez-input {
  height: var(--ez-control-h);
  min-height: var(--ez-control-h);
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius-sm);
  padding: 0 12px;
  background: var(--ez-card);
  color: var(--ez-body);
}
.ez-input:focus, .ez-textarea:focus, select.ez-input:focus {
  outline: 2px solid var(--ez-primary-soft);
  border-color: var(--ez-primary);
}
.ez-textarea {
  height: auto;
  min-height: 160px;
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
  border-radius: var(--ez-radius-sm);
}
.ez-input-search { padding: 0 12px; height: var(--ez-control-h); }
.ez-input-narrow { width: 110px; }
.ez-input-category { width: 168px; }
.ez-input-radius { width: 90px; }
.ez-input-area { width: 180px; }
.ez-grow { flex: 1; min-width: 140px; }

.ez-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--ez-control-h);
  min-height: var(--ez-control-h);
  padding: 0 16px;
  border-radius: var(--ez-radius-sm);
  border: 1px solid var(--ez-border);
  background: var(--ez-card);
  color: var(--ez-body);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.ez-btn:hover { opacity: 0.92; }
.ez-btn:disabled { opacity: 0.45; cursor: default; }
.ez-btn-primary {
  background: var(--ez-primary);
  color: white;
  border: 0;
}
.ez-btn-primary:hover { background: var(--ez-primary-hover); color: white; opacity: 1; }
.ez-refresh-jobs {
  gap: 8px;
  min-width: 168px;
}
.ez-refresh-jobs:disabled { opacity: 0.88; }
.ez-refresh-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.ez-refresh-jobs.is-busy .ez-refresh-icon {
  animation: ez-spin 0.8s linear infinite;
}
@keyframes ez-spin {
  to { transform: rotate(360deg); }
}
.ez-btn-compact { padding: 3px 8px; height: auto; min-height: 0; font-size: 10px; }
.ez-btn-tiny { width: 40px; padding: 0; }

input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--ez-border);
  border-radius: 5px;
  background: var(--ez-card);
  vertical-align: middle;
  cursor: pointer;
  flex: 0 0 auto;
}
input[type="checkbox"]:hover { border-color: var(--ez-primary); }
input[type="checkbox"]:checked {
  background: var(--ez-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5 L6.5 11.5 L12.5 4.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  border-color: var(--ez-primary);
}

.ez-label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 6px; }
.ez-muted { color: var(--ez-muted); }
.ez-error { color: #B95454; font-size: 13px; font-weight: 600; }
.ez-kicker { font-size: 10px; color: var(--ez-muted); margin: 0; }

.ez-toolbar, .ez-chip-row, .ez-actions, .ez-tags, .ez-job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.ez-chip-row { margin-bottom: 10px; }
.ez-chip-gap { width: 8px; }
.ez-chip {
  border: 1px solid var(--ez-border);
  background: var(--ez-card);
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
}
.ez-chip.is-on {
  background: var(--ez-primary);
  border-color: var(--ez-primary);
  color: white;
}

.ez-split {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) 14px minmax(320px, 3fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  justify-items: stretch;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.ez-split-match { grid-template-columns: minmax(300px, 1.35fr) 14px minmax(240px, 0.7fr); }
.ez-split-tailor { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr); }
.ez-split-sources { grid-template-columns: minmax(280px, 1.1fr) 18px minmax(240px, 0.9fr); }
.ez-split-inner { grid-template-columns: minmax(0, 1.4fr) 12px minmax(0, 0.6fr); }
.ez-gutter { width: 14px; }
.ez-split > * { min-height: 0; min-width: 0; }
.ez-pane {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
.ez-scroll-fill {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}
.ez-split > .ez-scroll-fill,
.ez-split > .ez-pane {
  height: 100%;
  max-height: 100%;
  align-self: stretch;
}
.ez-split > .ez-scroll-fill { overflow: auto; }
.ez-pane > :not(.ez-scroll-fill):not(.ez-split):not(.ez-analysis) {
  flex-shrink: 0;
}
textarea.ez-textarea.ez-scroll-fill {
  resize: none;
  min-height: 0;
  height: 0;
  background: var(--ez-read);
}

.ez-job {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--ez-border);
  background: var(--ez-read);
  border-radius: var(--ez-radius);
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
}
.ez-job:hover { border-color: #7EA9D8; }
.ez-job.is-selected {
  background: #EEF5FF;
  border: 2px solid var(--ez-primary);
}
.ez-job-body h2 { font-size: 16px; margin-bottom: 4px; font-weight: 600; }
.ez-job-side { text-align: right; font-size: 11px; }
.ez-job-marks {
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  margin-bottom: 6px;
}
.ez-mark {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #94A3B8;
}
.ez-mark:hover { background: #F1F5F9; color: #64748B; }
.ez-mark.is-favourite { color: #EAB308; }
.ez-mark.is-sent { color: #2563EB; }
.ez-mark svg { width: 16px; height: 16px; display: block; }
.ez-new {
  display: inline-block;
  background: var(--ez-success-bg);
  color: var(--ez-success);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.ez-score {
  width: 40px; height: 40px; border-radius: 20px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; border: 2px solid;
}
.ez-score-high { background: #ECFDF5; color: #047857; border-color: #059669; }
.ez-score-good { background: #EEF4FF; color: #1E40AF; border-color: #1D4ED8; }
.ez-score-mid { background: #FFFBEB; color: #B45309; border-color: #D97706; }
.ez-score-low { background: #FEF2F2; color: #B91C1C; border-color: #DC2626; }
.ez-score-unscored {
  background: #F8FAFC;
  color: #64748B;
  border-color: #94A3B8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.ez-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 20px;
  background: var(--ez-primary-soft);
  color: var(--ez-primary);
  font-size: 11px;
  border: 0;
  cursor: default;
}
.ez-tag-more { background: #F1F5F9; color: var(--ez-muted); font-weight: 600; }
button.ez-tag { cursor: pointer; border: 1px solid transparent; }

.ez-src-greenhouse, .ez-src-greenhouse.ez-tag { color: #147A45; background: #E8F6EE; }
.ez-src-lever, .ez-src-lever.ez-tag { color: #6941C6; background: #F1EAFE; }
.ez-src-linkedin, .ez-src-linkedin.ez-tag { color: #0A66C2; background: #E8F2FC; }
.ez-src-workday, .ez-src-workday.ez-tag { color: #185FAF; background: #E7F1FB; }
.ez-src-ashby, .ez-src-ashby.ez-tag { color: #C11574; background: #FDEAF4; }
.ez-src-comeet, .ez-src-comeet.ez-tag { color: #C2410C; background: #FFF1E8; }
.ez-src-career, .ez-src-career.ez-tag { color: #0F766E; background: #EAF7F2; }
.ez-src-telegram, .ez-src-telegram.ez-tag { color: #168AC2; background: #E7F5FD; }
.ez-src-email, .ez-src-email.ez-tag { color: #B15B00; background: #FFF3E5; }
.ez-src-manual, .ez-src-manual.ez-tag { color: #A86608; background: #FFF5DF; }
.ez-src-other, .ez-src-other.ez-tag { color: #475467; background: #EEF2F6; }

.ez-kw-green { background: var(--ez-success-bg); color: #047857; border-color: #059669; }
.ez-kw-yellow { background: var(--ez-warning-bg); color: #B45309; border-color: #D97706; }
.ez-kw-red { background: var(--ez-danger-bg); color: #B91C1C; border-color: #DC2626; }
.ez-kw-drop { background: #FBCFE8; color: #9D174D; border-color: #F472B6; }
.ez-kw-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid;
}

.ez-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.35;
  margin: 0;
  padding: 12px 14px;
  min-height: 100%;
  box-sizing: border-box;
  background: var(--ez-read);
  border-radius: 8px;
}
.ez-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 14px; }
.ez-detail-actions {
  display: grid;
  grid-template-columns: 1fr 8px 1fr;
  gap: 8px 0;
  margin-top: 16px;
}
.ez-detail-actions .ez-btn { width: 100%; }

.ez-skills, .ez-source-list, .ez-section-list { display: flex; flex-direction: column; gap: 3px; }
.ez-skill {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 8px;
  align-items: center;
  padding: 3px 0;
}
.ez-skill-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 8px;
}
.ez-skill small { display: block; margin-top: 3px; }
.ez-primary { font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.ez-quality { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; flex-wrap: wrap; }
.ez-grade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}
.ez-grade strong { font-size: 18px; }
.ez-grade span { font-size: 12px; font-weight: 400; }
.ez-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 28%;
  overflow: auto;
}
.ez-analysis h3 { margin-bottom: 4px; font-size: 13px; }
.ez-matched { color: var(--ez-success); }
.ez-missing { color: var(--ez-danger); }
.ez-unclear { color: var(--ez-warning); }
.ez-analysis li { list-style: none; margin: 0 0 2px; padding: 0; font-weight: 700; }
.ez-analysis ul { margin: 0; padding: 0; }

.ez-progress { width: 220px; height: 8px; accent-color: var(--ez-primary); }
.ez-health { font-size: 11px; }
.ez-dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; flex: 0 0 auto;
}
.ez-source-row {
  display: grid;
  grid-template-columns: auto 22px 160px 90px 1fr;
  gap: 0 4px;
  align-items: center;
  margin: 4px 0;
  font-size: 13px;
}
.ez-sync-box {
  margin: 16px 0 0;
  padding: 14px;
  background: #F8FAFC;
  border: 1px solid var(--ez-border);
  border-radius: var(--ez-radius);
}

.ez-tailor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  height: 100%;
}
.ez-dock {
  flex: 0 0 auto;
  max-height: none;
  overflow: hidden;
  padding: 6px 10px;
}
.ez-dock-top {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}
.ez-dock-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 560px;
  min-width: 420px;
}
.ez-dock-left h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1 1 auto;
  min-width: 180px;
}
.ez-dock-left .ez-grade {
  padding: 2px 8px;
  gap: 0;
  flex-shrink: 0;
}
.ez-dock-left .ez-grade strong { font-size: 15px; }
.ez-dock-left .ez-btn { height: 32px; min-height: 32px; padding: 0 12px; flex-shrink: 0; }
.ez-dock-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ez-dock-chips {
  flex: 0 1 420px;
  justify-content: flex-end;
  margin: 0;
  margin-bottom: 0;
  gap: 4px;
  max-height: 40px;
  overflow: auto;
  min-width: 0;
}
.ez-dock-meta h2 { margin: 0; font-size: 15px; }
.ez-dock-meta p { margin: 2px 0 0; }
.ez-grade-good { color: #047857; background: var(--ez-success-bg); border-color: #059669; }
.ez-grade-mid { color: #B45309; background: var(--ez-warning-bg); border-color: #D97706; }
.ez-grade-low { color: #B91C1C; background: var(--ez-danger-bg); border-color: #DC2626; }
.ez-dock-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ez-muted);
}
.ez-suggest-row {
  margin-top: 6px;
  gap: 6px;
}
.ez-chip {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}
.ez-chip.is-from { background: var(--ez-warning-bg); color: #B45309; }
.ez-chip.is-missing { background: var(--ez-danger-bg); color: #B91C1C; }
.ez-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.ez-editors { display: flex; flex-direction: column; gap: 10px; padding-right: 4px; min-height: 0; flex: 1; }
.ez-editor-block { display: flex; flex-direction: column; gap: 4px; }
.ez-editor-block > span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ez-primary);
}
.ez-section-editor {
  min-height: 120px;
  height: auto;
  resize: vertical;
  font-size: 12px;
  line-height: 1.45;
}
.ez-document-editor {
  flex: 1;
  min-height: 0;
  height: 100%;
  resize: none;
  font-size: 13px;
  line-height: 1.5;
}
.ez-rich {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border: 1px solid var(--ez-border);
  border-radius: 8px;
  background: var(--ez-read);
  overflow: hidden;
}
.ez-rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ez-border);
  background: #F8FAFC;
}
.ez-rich-toolbar button,
.ez-rich-toolbar label {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--ez-border);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 13px;
  line-height: 26px;
  cursor: pointer;
}
.ez-rich-toolbar .is-em { font-style: italic; }
.ez-rich-toolbar .is-u { text-decoration: underline; }
.ez-rich-toolbar input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--ez-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.ez-rich-surface {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--ez-read);
  padding: 14px 16px;
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #111827;
  outline: none;
}
.ez-rich-surface p { margin: 0 0 0.2em; }
.ez-rich-surface ul, .ez-rich-surface ol { margin: 0 0 0.45em 1.2em; }
.ez-unused {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  border: 1px dashed var(--ez-border);
  border-radius: 8px;
  background: #FAFBFC;
  text-align: left;
  height: auto;
  min-height: 0;
}
.ez-unused small { color: var(--ez-warning); font-weight: 700; }
.ez-ribbon {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 12px;
  min-height: 0;
}
.ez-ribbon .ez-thumbs {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
}
.ez-ribbon .ez-thumb-sheet {
  width: 42px;
  height: 60px;
}
.ez-ribbon-export {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.ez-tailor > .ez-split {
  flex: 1 1 0;
  min-height: 0;
}

.ez-thumbs {
  display: flex;
  flex-wrap: wrap;
  flex: 0 1 auto;
  gap: 10px;
  max-height: 220px;
  min-height: 0;
  overflow: auto;
  margin: 0 0 10px;
}
button.ez-thumb {
  display: block;
  margin: 0;
  padding: 3px;
  height: auto;
  min-height: 0;
  max-height: none;
  border: 2px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font: inherit;
}
button.ez-thumb.is-selected {
  border-color: var(--ez-primary);
  background: var(--ez-primary-soft);
}
button.ez-thumb:hover:not(.is-selected) { border-color: var(--ez-border); }
.ez-thumb-sheet {
  width: 76px;
  height: 108px;
  overflow: hidden;
  border: 1px solid #D9E1E8;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16);
  background: white;
}
.ez-thumb-pad { padding: 5px 5px 4px; }
.ez-thumb-main { padding: 6px 4px 4px; }
.ez-thumb-split {
  display: grid;
  grid-template-columns: 34% 66%;
  height: 100%;
}
.ez-thumb-rail { padding: 6px 3px; }
.ez-thumb-band { padding: 6px 4px; }
.ez-thumb-name { font-size: 8px; font-weight: 600; line-height: 9px; }
.ez-thumb-sub { font-size: 5px; line-height: 6px; margin-top: 1px; }
.ez-thumb-h { font-size: 5.5px; font-weight: 600; line-height: 6.5px; margin-top: 6px; }
.ez-thumb-h.is-tight { margin-top: 0; }
.ez-thumb-line { font-size: 5px; line-height: 6px; margin-top: 2px; white-space: pre-line; }
.ez-thumb-role {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  font-size: 5.5px;
  font-weight: 600;
  line-height: 6.5px;
  margin-top: 2px;
}
.ez-thumb-role.is-gutter { flex-direction: row-reverse; }
.ez-thumb-rule { height: 0.8px; margin: 3px 0 1px; }
.ez-thumb-rule.is-tight { margin: 1px 0 0; }
.ez-thumb-bar { width: 10px; height: 1.6px; margin: 6px 0 2px; }
.ez-thumb-name.is-center, .ez-thumb-sub.is-center { text-align: center; }

.ez-preview-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 6px;
}
.ez-nudge { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.ez-nudge .ez-btn { min-width: 88px; }
.ez-a4-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: 12px;
  overflow: auto;
}
.ez-a4-wrap {
  position: relative;
  width: 210mm;
  flex: 0 0 auto;
}
.ez-page-sep {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1.25px dashed #94A3B8;
  pointer-events: none;
  z-index: 3;
}
.ez-page-sep.is-handle {
  pointer-events: auto;
  cursor: ns-resize;
}
.ez-page-sep.is-handle::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 16px;
}
.ez-page-sep span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #94A3B8;
  border-radius: 8px;
  padding: 1px 8px 2px;
  color: #64748B;
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  white-space: nowrap;
}
.ez-a4 {
  width: 210mm;
  min-height: 297mm;
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  border: 1px solid #D9E1E8;
}
.ez-a4-empty { display: grid; place-items: center; color: var(--ez-muted); padding: 24px; }
.ez-cv-name { font-weight: 700; }
.ez-cv-headline { margin-top: 4px; }
.ez-cv-contact-stack { margin-top: 6px; }
.ez-cv-contact { margin-top: 1px; line-height: 1.35; }
.ez-cv-contact a { text-decoration: none; }
.ez-cv-rule { height: 1px; margin: 6px 0 8px; }
.ez-cv-rule.thin { height: 0.6px; margin: 2px 0 4px; }
.ez-cv-bar { width: 28px; height: 2.2px; margin: 2px 0 4px; }
.ez-cv-split { display: grid; grid-template-columns: 32% 1fr; min-height: 297mm; margin: -50pt; }
.ez-cv-main { padding: 50pt 42pt 50pt 28pt; }
.ez-cv-bullet { display: grid; grid-template-columns: 12px 1fr; gap: 4px; margin-bottom: 2px; }
.ez-cv-role { margin-bottom: 8pt; }
.ez-cv-role-head { display: flex; justify-content: space-between; gap: 12px; }
.ez-cv-skill-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; margin-bottom: 2px; }
.ez-cv-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ez-cv-p { margin: 0; }

.ez-empty {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ez-muted);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  gap: 16px;
}

.ez-cv-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ez-skill-head { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: start; }
.ez-job-fields { display: grid; grid-template-columns: 1fr 8px 1fr; gap: 8px 0; margin: 12px 0 8px; }
.ez-export-row { display: grid; grid-template-columns: 1fr 8px 1fr; margin-top: 12px; }
.ez-export-row .ez-btn { width: 100%; }

details.ez-advanced { margin-top: 0; }
details.ez-advanced > summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}

.ez-unlock-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--ez-canvas);
}
.ez-unlock-card { width: min(420px, calc(100% - 32px)); padding: 24px; border-radius: var(--ez-radius); }
.ez-unlock-card .ez-input { width: 100%; margin: 8px 0 16px; }
.ez-unlock-card h1 { font-size: 20px; }
