:root {
  --cv-primary: #9f1239;
  --cv-primary-hover: #881337;
  --cv-bg-card: #ffffff;
  --cv-border: #e2e8f0;
  --cv-text-main: #0f172a;
  --cv-text-muted: #64748b;
  --cv-pill-bg: #f1f5f9;
  --cv-pill-hover: #e2e8f0;
  --cv-result-bg: #f8fafc;
}

.cv-tool-container {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-family: inherit;
  color: var(--cv-text-main);
}

.cv-editor-card {
  background: var(--cv-bg-card);
  border: 1px solid var(--cv-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cv-presets-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--cv-border);
}

.cv-presets-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cv-text-muted);
}

.cv-pill-btn {
  background: var(--cv-pill-bg);
  border: 1px solid var(--cv-border);
  color: var(--cv-text-main);
  border-radius: 9999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cv-pill-btn:hover {
  background: var(--cv-pill-hover);
  border-color: var(--cv-primary);
}

.cv-form-heading {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 1.25rem 0 0.75rem 0;
  color: var(--cv-primary);
  border-bottom: 1px solid var(--cv-border);
  padding-bottom: 0.35rem;
}

.cv-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .cv-grid-2 {
    grid-template-columns: 1fr;
  }
}

.cv-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .cv-grid-3 {
    grid-template-columns: 1fr;
  }
}

.cv-field {
  margin-bottom: 1rem;
}

.cv-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--cv-text-main);
}

.cv-req {
  color: #dc2626;
}

.cv-field input,
.cv-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: var(--cv-bg-card);
  color: var(--cv-text-main);
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.cv-field input:focus,
.cv-field textarea:focus {
  outline: none;
  border-color: var(--cv-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cv-exp-block {
  background: var(--cv-pill-bg);
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.cv-exp-del {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  color: #dc2626;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.cv-action-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.cv-primary-btn {
  flex: 2;
  background: var(--cv-primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cv-primary-btn:hover {
  background: var(--cv-primary-hover);
}

.cv-secondary-btn {
  background: var(--cv-pill-bg);
  color: var(--cv-text-main);
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cv-results-card {
  background: var(--cv-result-bg);
  border: 1px solid var(--cv-border);
  border-radius: 12px;
  padding: 1.75rem;
}

.cv-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cv-preview-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cv-text-main);
}

.cv-print-pill {
  background: var(--cv-primary);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

/* Resume Paper Sheet Layout */
.cv-sheet {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}

.cv-sheet-header {
  border-bottom: 2px solid #0f172a;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.cv-sheet-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.cv-sheet-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}

.cv-sheet-contact {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.cv-sheet-sec {
  margin-bottom: 1.25rem;
}

.cv-sheet-sectitle {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.25rem;
  margin: 0 0 0.6rem 0;
  color: #0f172a;
}

.cv-sheet-body {
  font-size: 0.88rem;
  color: #1e293b;
  white-space: pre-wrap;
  margin: 0;
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cv-job-title {
  font-weight: 700;
  color: #0f172a;
}

.cv-job-meta {
  color: #64748b;
  font-size: 0.82rem;
}

.cv-job-bullets {
  margin: 0 0 0.85rem 1.25rem;
  padding: 0;
  font-size: 0.85rem;
  color: #334155;
}

.cv-job-bullets li {
  margin-bottom: 0.25rem;
}

.cv-tip-box {
  background: var(--cv-bg-card);
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  padding: 1.25rem;
}

.cv-tip-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--cv-primary);
}

.cv-tip-box p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--cv-text-muted);
  line-height: 1.5;
}

/* Native Print Stylesheet */
@media print {
  body * {
    visibility: hidden;
  }
  .cv-sheet,
  .cv-sheet * {
    visibility: visible;
  }
  .cv-sheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0.5in;
    border: none;
    box-shadow: none;
  }
}

.cv-exp-role,
.cv-exp-comp,
.cv-exp-dates,
.cv-exp-bullets {
  font-family: inherit;
}

.cv-ad {
  overflow: hidden;
  min-height: 280px;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --cv-primary: #d6738f;
  --cv-primary-hover: #d26285;
  --cv-bg-card: var(--tf-surface);
  --cv-border: var(--tf-surface);
  --cv-text-main: var(--tf-ink);
  --cv-text-muted: var(--tf-ink-faint);
  --cv-pill-bg: var(--tf-surface);
  --cv-pill-hover: var(--tf-surface);
  --cv-result-bg: var(--tf-surface);
}
