:root {
  --bg: #f2f5fb;
  --surface: #fff;
  --surface2: #edf3ff;
  --text: #152238;
  --muted: #65728a;
  --line: #dbe3f0;
  --accent: #174ea6;
  --accent2: #0c357d;
  --success: #137a4e;
  --warn: #a55c00;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(34, 61, 112, 0.13);
  --radius: 18px;
  --max: 1380px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(180deg, #f7f9ff 0, #f2f5fb 620px);
  color: var(--text);
  line-height: 1.55;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 999;
  background: #fff;
  padding: 10px 14px;
  border-radius: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(219, 227, 240, 0.9);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1.08rem;
  font-weight: 850;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent), #5185e6);
  color: #fff;
  box-shadow: 0 8px 20px rgba(23, 78, 166, 0.25);
}
.main-nav {
  display: flex;
  gap: 6px;
  flex: 1;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 10px;
}
.main-nav a:hover {
  background: var(--surface2);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-link,
.privacy-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 750;
  color: var(--text);
}
.privacy-pill {
  font-size: 0.83rem;
  color: var(--success);
  background: #f0fbf6;
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface2);
  padding: 10px;
  border-radius: 10px;
}
.hero {
  padding: 54px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: var(--accent2);
  font-weight: 800;
  font-size: 0.87rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 17px 0 16px;
  max-width: 900px;
}
.hero p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 720px;
}
.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.18s;
  background: #fff;
  color: var(--text);
}
.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2c6bd2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(23, 78, 166, 0.24);
}
.btn-secondary {
  border-color: var(--line);
  background: #fff;
}
.btn-soft {
  background: var(--surface2);
  color: var(--accent2);
}
.btn-danger {
  background: #fff1f0;
  color: var(--danger);
  border-color: #ffd0cb;
}
.btn-small {
  padding: 7px 10px;
  font-size: 0.83rem;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-card:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -60px;
  top: -70px;
  background: radial-gradient(circle, #cfe0ff, transparent 70%);
}
.hero-card .stat {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.hero-card .stat:last-child {
  border: 0;
}
.hero-card strong {
  font-size: 1.2rem;
}
.local-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #effaf5;
  border: 1px solid #c8ead9;
  color: #155d40;
  padding: 14px 16px;
  border-radius: 14px;
  margin: 0 0 20px;
}
.ad-slot {
  display: none;
}
.ad-slot:not(:empty) {
  display: block;
  min-height: 90px;
}
.tool-shell {
  margin: 12px auto 50px;
}
.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tool-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.tool-topbar .spacer {
  flex: 1;
}
.project-input {
  min-width: 180px;
}
.cv-workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
  min-height: 760px;
}
.editor-panel {
  border-right: 1px solid var(--line);
  background: #fbfcff;
  min-width: 0;
}
.editor-tabs {
  display: flex;
  overflow-x: auto;
  gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.editor-tab {
  border: 0;
  background: transparent;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  color: var(--muted);
}
.editor-tab.active {
  background: #e8f0ff;
  color: var(--accent2);
}
.editor-body {
  padding: 18px;
  max-height: 760px;
  overflow: auto;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid.one {
  grid-template-columns: 1fr;
}
.field {
  display: grid;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-weight: 750;
  font-size: 0.9rem;
}
.field small {
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e7;
  background: #fff;
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--text);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #6d96df;
  box-shadow: 0 0 0 3px rgba(47, 105, 201, 0.13);
}
textarea {
  resize: vertical;
  min-height: 92px;
}
.item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.item-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.item-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.icon-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
}
.empty-state {
  padding: 24px;
  text-align: center;
  border: 1px dashed #c7d1df;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
}
.photo-box {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.photo-thumb {
  width: 100px;
  height: 120px;
  border-radius: 12px;
  background: #edf1f7;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.template-option {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
}
.template-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 78, 166, 0.12);
}
.template-option strong {
  display: block;
}
.template-option small {
  color: var(--muted);
}
.preview-panel {
  background: #dfe5ef;
  padding: 22px;
  min-width: 0;
  position: relative;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.preview-toolbar h2 {
  margin: 0;
  font-size: 1rem;
}
.zoom-controls {
  display: flex;
  gap: 6px;
}
.cv-stage {
  overflow: auto;
  height: 690px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px;
}
.cv-sheet {
  --cv-accent: #174ea6;
  --cv-font: Arial, sans-serif;
  --cv-size: 10.5pt;
  position: relative;
  background: #fff;
  width: 210mm;
  min-height: 297mm;
  padding: 16mm;
  color: #202b3c;
  font-family: var(--cv-font);
  font-size: var(--cv-size);
  line-height: 1.35;
  box-shadow: 0 8px 34px rgba(40, 55, 88, 0.2);
  transform-origin: top center;
  overflow: hidden;
}
.cv-sheet.letter {
  width: 216mm;
  min-height: 279mm;
}
.cv-header {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--cv-accent);
}
.cv-photo {
  width: 29mm;
  height: 34mm;
  object-fit: cover;
  border-radius: 5mm;
  flex: none;
}
.cv-name {
  font-size: 28pt;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #12213a;
}
.cv-title {
  font-size: 13pt;
  color: var(--cv-accent);
  font-weight: 750;
  margin-top: 5px;
}
.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 9px;
  color: #4a576d;
  font-size: 8.8pt;
}
.cv-contact a {
  color: inherit;
}
.cv-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}
.cv-layout.two {
  grid-template-columns: 34% 1fr;
  align-items: start;
}
.cv-main,
.cv-side {
  min-width: 0;
}
.cv-section {
  margin-bottom: 14px;
  break-inside: avoid;
}
.cv-section h2 {
  font-size: 11.2pt;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cv-accent);
  margin: 0 0 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid #cbd6e8;
}
.cv-entry {
  margin-bottom: 9px;
  break-inside: avoid;
}
.cv-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}
.cv-entry-sub {
  color: #4d596b;
  font-weight: 650;
}
.cv-date {
  white-space: nowrap;
  color: #667185;
  font-size: 8.7pt;
}
.cv-entry p {
  margin: 4px 0;
  white-space: pre-line;
}
.cv-bullets {
  padding-left: 16px;
  margin: 4px 0;
}
.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.cv-tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef4ff;
  border: 1px solid #cbdaf5;
  font-size: 8.5pt;
}
.cv-consent {
  font-size: 7.4pt;
  color: #697386;
  margin-top: 12px;
}
.template-modern .cv-header,
.template-with-photo .cv-header,
.template-sales .cv-header,
.template-creative .cv-header,
.template-elegant .cv-header,
.template-two-column .cv-header {
  background: linear-gradient(135deg, var(--cv-accent), #668fe4);
  margin: -16mm -16mm 12mm;
  padding: 14mm 16mm;
  color: #fff;
  border: 0;
}
.template-modern .cv-name,
.template-with-photo .cv-name,
.template-sales .cv-name,
.template-creative .cv-name,
.template-elegant .cv-name,
.template-two-column .cv-name,
.template-modern .cv-title,
.template-with-photo .cv-title,
.template-sales .cv-title,
.template-creative .cv-title,
.template-elegant .cv-title,
.template-two-column .cv-title,
.template-modern .cv-contact,
.template-with-photo .cv-contact,
.template-sales .cv-contact,
.template-creative .cv-contact,
.template-elegant .cv-contact,
.template-two-column .cv-contact {
  color: #fff;
}
.template-minimal .cv-header {
  border-bottom: 1px solid #111;
}
.template-minimal .cv-section h2 {
  color: #111;
  border-color: #bbb;
}
.template-ats-standard,
.template-ats-compact,
.template-one-column {
  padding: 14mm 17mm;
}
.template-ats-standard .cv-header,
.template-ats-compact .cv-header,
.template-one-column .cv-header {
  border-bottom: 1px solid #333;
}
.template-ats-standard .cv-section h2,
.template-ats-compact .cv-section h2,
.template-one-column .cv-section h2 {
  color: #111;
  border-color: #aaa;
}
.template-ats-compact {
  font-size: 9.6pt;
  line-height: 1.25;
}
.template-no-photo .cv-header {
  background: #f2f5fa;
  padding: 10mm;
  margin: -16mm -16mm 10mm;
  border: 0;
}
.template-student .cv-header,
.template-no-experience .cv-header {
  border-bottom: 5px double var(--cv-accent);
}
.template-it .cv-section h2 {
  font-family: ui-monospace, Consolas, monospace;
}
.template-it .cv-tag {
  border-radius: 4px;
}
.template-manager .cv-name {
  font-family: Georgia, serif;
}
.template-manager .cv-section h2 {
  font-family: Georgia, serif;
  text-transform: none;
  font-size: 12pt;
}
.template-creative .cv-photo {
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.75);
}
.template-elegant .cv-name,
.template-elegant .cv-section h2 {
  font-family: Georgia, serif;
}
.template-classic .cv-photo,
.template-minimal .cv-photo,
.template-ats-standard .cv-photo,
.template-ats-compact .cv-photo,
.template-no-photo .cv-photo,
.template-student .cv-photo,
.template-no-experience .cv-photo,
.template-one-column .cv-photo {
  display: none;
}
.page-warning {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: #fff6e7;
  border: 1px solid #f0c984;
  color: #7c4b00;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.8rem;
  display: none;
}
.page-warning.show {
  display: block;
}
.tool-module {
  padding: 24px;
}
.module-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
  gap: 22px;
}
.output-paper {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-height: 420px;
  white-space: pre-wrap;
}
.score-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}
.score-ring {
  --score: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--score) * 1%), #e5eaf2 0);
  position: relative;
  margin: auto;
}
.score-ring:after {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: #fff;
}
.score-value {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 900;
}
.metric {
  margin-bottom: 12px;
}
.metric-head {
  display: flex;
  justify-content: space-between;
  font-weight: 750;
}
.bar {
  height: 8px;
  border-radius: 99px;
  background: #e7ebf2;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0;
}
.result-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.result-box {
  padding: 15px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.result-box h3 {
  font-size: 1rem;
  margin-top: 0;
}
.result-box ul {
  padding-left: 19px;
}
.content-section {
  padding: 48px 0;
}
.content-section.alt {
  background: #fff;
}
.section-title {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px;
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.section-title p {
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  color: var(--muted);
}
.template-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.template-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}
.template-mini {
  height: 180px;
  background: linear-gradient(135deg, #fff, #eef3fb);
  padding: 20px;
  position: relative;
}
.template-mini:before {
  content: "";
  display: block;
  width: 45%;
  height: 11px;
  background: var(--c, #174ea6);
  border-radius: 6px;
  box-shadow:
    0 22px 0 #cfd7e5,
    0 44px 0 #dce2ec,
    0 66px 0 #dce2ec;
}
.template-card-body {
  padding: 15px;
}
.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--accent2);
  font-size: 0.75rem;
  font-weight: 800;
}
.breadcrumbs {
  font-size: 0.88rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.article {
  max-width: 850px;
  margin: 0 auto;
}
.article h1 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.article h2 {
  margin-top: 36px;
}
.article p,
.article li {
  font-size: 1.06rem;
}
.article .lead {
  font-size: 1.22rem;
  color: var(--muted);
}
.article-callout {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: #eef4ff;
  border-radius: 0 12px 12px 0;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 13px;
  margin-bottom: 10px;
}
.faq summary {
  font-weight: 800;
  cursor: pointer;
}
.site-footer {
  background: #101a2e;
  color: #d9e1f0;
  padding: 45px 0 28px;
  margin-top: 50px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 30px;
}
.footer-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.footer-projects a {
  color: #d9e1f0;
  padding: 6px 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.footer-links a {
  color: #aebbd1;
}
.footer-note {
  color: #8f9cb3;
  font-size: 0.88rem;
  margin-top: 24px;
}
.status {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  max-width: 380px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #10233f;
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateY(130%);
  transition: 0.25s;
}
.status.show {
  transform: none;
}
.status.error {
  background: var(--danger);
}
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 38, 0.65);
  z-index: 300;
  display: none;
  place-items: center;
  padding: 20px;
}
.modal.open {
  display: grid;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  padding: 22px;
  max-height: 95vh;
  overflow: auto;
}
.crop-wrap {
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 18px;
}
.crop-canvas-wrap {
  min-height: 420px;
  background: #222;
  display: grid;
  place-items: center;
  border-radius: 14px;
  overflow: hidden;
}
.crop-canvas {
  max-width: 100%;
  max-height: 540px;
}
.crop-controls {
  display: grid;
  gap: 12px;
  align-content: start;
}
.hidden {
  display: none !important;
}
@media (max-width: 1100px) {
  .cv-workspace {
    grid-template-columns: 1fr;
  }
  .editor-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .editor-body {
    max-height: none;
  }
  .preview-panel {
    min-height: 760px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .template-showcase {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 20px, var(--max));
  }
  .header-inner {
    min-height: 62px;
  }
  .main-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 66px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }
  .main-nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .privacy-pill {
    display: none;
  }
  .hero {
    padding-top: 34px;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .tool-topbar {
    align-items: stretch;
  }
  .tool-topbar .spacer {
    display: none;
  }
  .project-input {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cv-workspace {
    display: block;
  }
  .editor-panel,
  .preview-panel {
    display: none;
  }
  .cv-workspace[data-mobile-view="editor"] .editor-panel,
  .cv-workspace[data-mobile-view="preview"] .preview-panel {
    display: block;
  }
  .mobile-view-switch {
    display: flex !important;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }
  .mobile-view-switch button {
    flex: 1;
  }
  .preview-panel {
    padding: 10px;
    min-height: 620px;
  }
  .cv-stage {
    height: 580px;
    justify-content: flex-start;
  }
  .cv-sheet {
    transform: scale(0.58);
    transform-origin: top left;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .cards,
  .result-columns {
    grid-template-columns: 1fr;
  }
  .module-grid,
  .score-grid,
  .footer-grid,
  .crop-wrap {
    grid-template-columns: 1fr;
  }
  .template-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-projects {
    grid-template-columns: repeat(2, 1fr);
  }
  .photo-box {
    grid-template-columns: 90px 1fr;
  }
  .photo-thumb {
    width: 80px;
    height: 96px;
  }
}
@media (min-width: 761px) {
  .mobile-view-switch {
    display: none !important;
  }
}
@media (max-width: 430px) {
  .template-showcase {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-projects {
    grid-template-columns: 1fr;
  }
  .cv-sheet {
    transform: scale(0.5);
  }
}
@media print {
  body {
    background: #fff;
  }
  .site-header,
  .hero,
  .tool-topbar,
  .editor-panel,
  .preview-toolbar,
  .content-section,
  .site-footer,
  .ad-slot,
  .mobile-view-switch,
  .page-warning,
  .local-banner,
  .status,
  .modal {
    display: none !important;
  }
  .tool-card,
  .preview-panel,
  .cv-stage {
    border: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
    height: auto;
    overflow: visible;
  }
  .cv-workspace {
    display: block;
  }
  .cv-sheet {
    box-shadow: none;
    transform: none !important;
    margin: 0;
    width: 210mm;
    min-height: 297mm;
  }
  .container {
    width: auto;
  }
  .tool-shell {
    margin: 0;
  }
  @page {
    size: A4;
    margin: 0;
  }
}

/* V2.6 — richer template library and preview workspace */
.cv-sheet .cv-section {
  margin-bottom: calc(14px * var(--cv-spacing, 1));
}
.preview-toolbar {
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 10px 12px;
  margin: -8px -8px 12px;
  background: rgba(223, 229, 239, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 12px;
}
.preview-toolbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-count {
  font-size: 0.75rem;
  font-weight: 800;
  color: #526078;
  background: #fff;
  border: 1px solid #cbd5e4;
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}
.preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.zoom-controls {
  display: flex;
  align-items: center;
  border: 1px solid #c7d1e0;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.zoom-controls .btn {
  border: 0;
  border-radius: 0;
}
.zoom-controls span {
  min-width: 48px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
  color: #344156;
}
.cv-stage {
  scrollbar-gutter: stable both-edges;
  background-color: #d6dde8;
  background-image: linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.28) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.28) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.28) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.28) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  border-radius: 14px;
  border: 1px solid #c8d1df;
}
.preview-panel:fullscreen {
  background: #dfe5ef;
  padding: 18px;
}
.preview-panel:fullscreen .cv-stage {
  height: calc(100vh - 86px);
}

.template-counter {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.template-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 14px;
  padding-bottom: 2px;
}
.template-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: #526078;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}
.template-filter.active {
  background: #172b4d;
  color: #fff;
  border-color: #172b4d;
}
.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.template-option {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 15px;
  transition: 0.18s;
  min-height: 134px;
}
.template-option:hover {
  transform: translateY(-2px);
  border-color: #97afd4;
  box-shadow: 0 10px 24px rgba(39, 64, 105, 0.12);
}
.template-option.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 3px rgba(23, 78, 166, 0.12),
    0 12px 26px rgba(39, 64, 105, 0.12);
}
.template-option-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.template-option-copy > span {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.template-option-copy strong {
  font-size: 0.95rem;
}
.template-option-copy small {
  font-size: 0.76rem;
}
.template-option-copy em {
  font-size: 0.74rem;
  color: #65728a;
  font-style: normal;
  line-height: 1.35;
}
.new-badge {
  display: inline-flex;
  background: #e7f7ef;
  color: #087449;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.template-thumb {
  --thumb-accent: #174ea6;
  position: relative;
  display: block;
  width: 86px;
  height: 112px;
  background: #fff;
  border: 1px solid #cfd8e6;
  box-shadow: 0 4px 10px rgba(37, 55, 88, 0.15);
  overflow: hidden;
  padding: 9px 8px;
}
.thumb-head {
  display: block;
  border-bottom: 3px solid var(--thumb-accent);
  padding-bottom: 5px;
}
.thumb-head i {
  display: block;
  width: 55%;
  height: 6px;
  background: #1e293b;
  border-radius: 1px;
}
.thumb-head b {
  display: block;
  width: 40%;
  height: 3px;
  background: var(--thumb-accent);
  margin-top: 3px;
}
.thumb-head em {
  display: block;
  width: 78%;
  height: 2px;
  background: #b8c1cf;
  margin-top: 4px;
}
.thumb-body {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}
.thumb-body.two {
  grid-template-columns: 29% 1fr;
  column-gap: 5px;
}
.thumb-body i,
.thumb-body b,
.thumb-body em,
.thumb-body small {
  display: block;
  height: 3px;
  background: #c8d0dc;
}
.thumb-body i {
  height: 24px;
}
.thumb-body b {
  height: 14px;
}
.thumb-body em {
  height: 19px;
}
.thumb-body small {
  height: 8px;
}
.thumb-body.two i {
  grid-row: 1/4;
  height: auto;
  background: #e9eef5;
}
.thumb-modern,
.thumb-with-photo,
.thumb-sales,
.thumb-creative,
.thumb-elegant,
.thumb-two-column {
  padding-top: 0;
}
.thumb-modern .thumb-head,
.thumb-with-photo .thumb-head,
.thumb-sales .thumb-head,
.thumb-creative .thumb-head,
.thumb-elegant .thumb-head,
.thumb-two-column .thumb-head {
  margin: 0 -8px;
  padding: 8px;
  background: var(--thumb-accent);
  border: 0;
}
.thumb-modern .thumb-head i,
.thumb-with-photo .thumb-head i,
.thumb-sales .thumb-head i,
.thumb-creative .thumb-head i,
.thumb-elegant .thumb-head i,
.thumb-two-column .thumb-head i {
  background: #fff;
}
.thumb-modern .thumb-head b,
.thumb-with-photo .thumb-head b,
.thumb-sales .thumb-head b,
.thumb-creative .thumb-head b,
.thumb-elegant .thumb-head b,
.thumb-two-column .thumb-head b {
  background: #cfe0ff;
}
.thumb-nordic {
  --thumb-accent: #0f766e;
}
.thumb-nordic .thumb-head {
  border: 0;
  border-left: 5px solid var(--thumb-accent);
  padding-left: 6px;
}
.thumb-executive {
  --thumb-accent: #a87926;
}
.thumb-executive .thumb-body i {
  background: #172238;
}
.thumb-timeline {
  --thumb-accent: #c0523a;
}
.thumb-timeline .thumb-body b {
  border-left: 2px solid var(--thumb-accent);
}
.thumb-editorial {
  --thumb-accent: #991b1b;
}
.thumb-editorial .thumb-head i {
  height: 8px;
  font-family: serif;
}
.thumb-charcoal {
  --thumb-accent: #e2b86b;
  background: #222b36;
}
.thumb-charcoal .thumb-head i {
  background: #fff;
}
.thumb-charcoal .thumb-body > * {
  background: #778291;
}
.thumb-sage {
  --thumb-accent: #4f6f60;
  background: #f3f7f2;
}
.thumb-cobalt {
  --thumb-accent: #1d4ed8;
  border-top: 8px solid var(--thumb-accent);
}
.thumb-compact-pro {
  --thumb-accent: #334155;
}
.thumb-compact-pro .thumb-body {
  gap: 2px;
}
.style-controls {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}
.style-controls h3 {
  margin: 0 0 14px;
}
.style-checks {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* New production CV templates */
.template-nordic {
  padding: 17mm 18mm;
  color: #243a3b;
}
.template-nordic .cv-header {
  align-items: flex-end;
  border: 0;
  border-left: 5mm solid var(--cv-accent);
  padding: 5mm 0 5mm 8mm;
}
.template-nordic .cv-name {
  font-weight: 650;
  letter-spacing: -0.045em;
  font-size: 30pt;
}
.template-nordic .cv-title {
  font-size: 11pt;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.template-nordic .cv-section h2 {
  font-size: 9.5pt;
  letter-spacing: 0.16em;
  border: 0;
  border-bottom: 1px solid #b8cfcb;
  color: var(--cv-accent);
}
.template-nordic .cv-tag {
  border: 0;
  background: #edf5f3;
  color: #294d48;
  border-radius: 3px;
}
.template-executive {
  padding: 16mm 17mm;
  color: #1b2534;
}
.template-executive .cv-header {
  border: 0;
  border-top: 2mm solid #b58a3a;
  padding-top: 7mm;
  align-items: flex-start;
}
.template-executive .cv-name {
  font-family: Georgia, serif;
  font-size: 31pt;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.template-executive .cv-title {
  color: #8a641d;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 9.5pt;
}
.template-executive .cv-layout.two {
  grid-template-columns: 29% 1fr;
  gap: 9mm;
}
.template-executive .cv-side {
  border-right: 1px solid #d8c8a9;
  padding-right: 6mm;
}
.template-executive .cv-section h2 {
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12pt;
  color: #765719;
  border-color: #d8c8a9;
}
.template-executive .cv-tag {
  border: 0;
  background: transparent;
  padding: 2px 0;
  display: block;
}
.template-timeline {
  padding: 0 16mm 16mm;
}
.template-timeline .cv-header {
  margin: 0 -16mm 12mm;
  padding: 14mm 16mm 10mm;
  background: #fff4ee;
  border: 0;
  border-bottom: 1mm solid var(--cv-accent);
}
.template-timeline .cv-photo {
  border-radius: 50%;
  width: 31mm;
  height: 31mm;
  box-shadow: 0 0 0 2mm #fff;
}
.template-timeline .cv-layout.two {
  grid-template-columns: 31% 1fr;
  gap: 8mm;
}
.template-timeline .cv-side {
  background: #fff4ee;
  margin-left: -16mm;
  padding: 7mm 7mm 7mm 16mm;
}
.template-timeline .cv-main .cv-entry {
  position: relative;
  padding-left: 6mm;
}
.template-timeline .cv-main .cv-entry:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2mm;
  width: 2.4mm;
  height: 2.4mm;
  background: var(--cv-accent);
  border-radius: 50%;
}
.template-timeline .cv-main .cv-entry:after {
  content: "";
  position: absolute;
  left: 1mm;
  top: 5mm;
  bottom: -3mm;
  border-left: 0.5mm solid #e4bbae;
}
.template-timeline .cv-main .cv-entry:last-child:after {
  display: none;
}
.template-timeline .cv-section h2 {
  border: 0;
  color: #863a29;
}
.template-editorial {
  padding: 15mm 17mm;
  color: #211f1b;
}
.template-editorial .cv-header {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 0;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 7mm 0;
}
.template-editorial .cv-photo {
  grid-row: 1/2;
  border-radius: 0;
  width: 27mm;
  height: 35mm;
  filter: grayscale(0.2);
}
.template-editorial .cv-name {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: 34pt;
  letter-spacing: -0.04em;
}
.template-editorial .cv-title {
  font-family: Georgia, serif;
  font-style: italic;
  color: #7a1f1f;
}
.template-editorial .cv-layout.two {
  grid-template-columns: 36% 1fr;
  gap: 9mm;
}
.template-editorial .cv-side {
  border-top: 5mm solid #7a1f1f;
  padding-top: 5mm;
}
.template-editorial .cv-section h2 {
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13pt;
  border-color: #1f1f1f;
  color: #1f1f1f;
}
.template-editorial .cv-main .cv-section:first-child p:first-letter {
  font-family: Georgia, serif;
  font-size: 25pt;
  float: left;
  line-height: 0.8;
  margin-right: 2px;
  color: #7a1f1f;
}
.template-charcoal {
  padding: 0 16mm 16mm;
  color: #26313d;
}
.template-charcoal .cv-header {
  margin: 0 -16mm 12mm;
  padding: 13mm 16mm;
  background: #202936;
  border: 0;
  color: #fff;
}
.template-charcoal .cv-name,
.template-charcoal .cv-title,
.template-charcoal .cv-contact {
  color: #fff;
}
.template-charcoal .cv-photo {
  border-radius: 2mm;
  border: 1mm solid #d8b76d;
}
.template-charcoal .cv-layout.two {
  grid-template-columns: 34% 1fr;
  gap: 8mm;
}
.template-charcoal .cv-side {
  background: #2a3543;
  color: #f4f6f8;
  margin-left: -16mm;
  padding: 8mm 7mm 10mm 16mm;
}
.template-charcoal .cv-side .cv-section h2 {
  color: #e6c985;
  border-color: #5e6874;
}
.template-charcoal .cv-side .cv-tag {
  background: #3a4655;
  border-color: #596575;
  color: #fff;
}
.template-charcoal .cv-main .cv-section h2 {
  color: #8f6816;
  border-bottom: 2px solid #d7b86f;
}
.template-sage {
  padding: 14mm 16mm;
  color: #2d3833;
  background: #fbfdfb;
}
.template-sage .cv-header {
  border: 0;
  background: #dfe9df;
  margin: -14mm -16mm 10mm;
  padding: 12mm 16mm 9mm;
}
.template-sage .cv-photo {
  border-radius: 50% 50% 8% 50%;
  width: 31mm;
  height: 34mm;
}
.template-sage .cv-name {
  font-family: Georgia, serif;
  font-weight: 500;
  color: #304b3e;
}
.template-sage .cv-title {
  color: #506f60;
}
.template-sage .cv-layout.two {
  grid-template-columns: 32% 1fr;
  gap: 8mm;
}
.template-sage .cv-side {
  background: #eef4ed;
  border-radius: 4mm;
  padding: 6mm;
}
.template-sage .cv-section h2 {
  border: 0;
  color: #456454;
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12pt;
}
.template-sage .cv-tag {
  background: #dfe9df;
  border: 0;
  color: #304b3e;
}
.template-cobalt {
  padding: 17mm 18mm;
  border-top: 5mm solid var(--cv-accent);
}
.template-cobalt .cv-header {
  border: 0;
  padding-bottom: 7mm;
}
.template-cobalt .cv-name {
  font-size: 32pt;
  color: #101f38;
}
.template-cobalt .cv-title {
  display: inline-block;
  color: #fff;
  background: var(--cv-accent);
  padding: 2mm 4mm;
  margin-top: 3mm;
}
.template-cobalt .cv-contact {
  border-top: 1px solid #b9c7dc;
  padding-top: 3mm;
}
.template-cobalt .cv-section h2 {
  border: 0;
  border-left: 2mm solid var(--cv-accent);
  padding-left: 3mm;
  color: #101f38;
  letter-spacing: 0.12em;
}
.template-cobalt .cv-entry-head {
  color: #142b52;
}
.template-cobalt .cv-tag {
  border: 0;
  background: #eaf0ff;
  color: #173d88;
  border-radius: 2px;
}
.template-compact-pro {
  padding: 11mm 13mm;
  font-size: 9.2pt !important;
  line-height: 1.22 !important;
}
.template-compact-pro .cv-header {
  padding-bottom: 5mm;
  border-bottom: 1.5mm solid #334155;
}
.template-compact-pro .cv-name {
  font-size: 25pt;
}
.template-compact-pro .cv-title {
  font-size: 10.5pt;
}
.template-compact-pro .cv-contact {
  font-size: 7.8pt;
  margin-top: 2mm;
}
.template-compact-pro .cv-layout.two {
  grid-template-columns: 30% 1fr;
  gap: 6mm;
  margin-top: 5mm;
}
.template-compact-pro .cv-side {
  background: #f1f5f9;
  padding: 4mm;
}
.template-compact-pro .cv-section {
  margin-bottom: 7px;
}
.template-compact-pro .cv-section h2 {
  font-size: 9.2pt;
  margin-bottom: 4px;
  padding-bottom: 2px;
}
.template-compact-pro .cv-entry {
  margin-bottom: 5px;
}
.template-compact-pro .cv-entry p,
.template-compact-pro .cv-bullets {
  margin: 2px 0;
}
.template-compact-pro .cv-tag {
  font-size: 7.5pt;
  padding: 2px 5px;
}

@media (max-width: 1250px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-option {
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .template-thumb {
    width: 75px;
    height: 99px;
  }
}
@media (max-width: 760px) {
  .preview-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin: 0 0 10px;
  }
  .preview-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .preview-actions > [data-action="fit-width"] {
    display: none;
  }
  .cv-stage {
    height: calc(100vh - 225px);
    min-height: 520px;
    justify-content: center;
  }
  .cv-sheet {
    transform-origin: top center;
  }
  .template-option {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 118px;
  }
  .template-thumb {
    width: 68px;
    height: 91px;
  }
  .style-checks {
    display: grid;
    gap: 8px;
  }
}
@media print {
  .preview-panel:fullscreen {
    padding: 0;
  }
  .cv-stage {
    background: #fff;
    background-image: none;
  }
  .template-nordic,
  .template-executive,
  .template-timeline,
  .template-editorial,
  .template-charcoal,
  .template-sage,
  .template-cobalt,
  .template-compact-pro {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.template-showcase[data-template-gallery] {
  display: block;
}
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.template-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.template-card-rich {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 18px;
  transition: 0.2s;
  box-shadow: 0 8px 22px rgba(38, 60, 98, 0.08);
}
.template-card-rich:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(38, 60, 98, 0.15);
  border-color: #a8b9d2;
}
.template-card-rich .gallery-thumb {
  width: 145px;
  height: 190px;
  padding: 14px 13px;
  box-shadow: 0 8px 22px rgba(37, 55, 88, 0.18);
}
.template-card-rich .gallery-thumb .thumb-head {
  padding-bottom: 8px;
}
.template-card-rich .gallery-thumb .thumb-head i {
  height: 9px;
}
.template-card-rich .gallery-thumb .thumb-head b {
  height: 5px;
  margin-top: 5px;
}
.template-card-rich .gallery-thumb .thumb-head em {
  height: 3px;
  margin-top: 6px;
}
.template-card-rich .gallery-thumb .thumb-body {
  gap: 7px;
  margin-top: 10px;
}
.template-card-rich .gallery-thumb .thumb-body > * {
  height: 5px;
}
.template-card-rich .gallery-thumb .thumb-body i {
  height: 40px;
}
.template-card-rich .gallery-thumb .thumb-body b {
  height: 24px;
}
.template-card-rich .gallery-thumb .thumb-body em {
  height: 31px;
}
.template-card-rich .gallery-thumb .thumb-body small {
  height: 14px;
}
.template-card-rich .gallery-thumb .thumb-body.two i {
  height: auto;
}
.template-card-rich .template-card-body {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.template-card-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 25px;
}
.template-card-rich h3 {
  margin: 9px 0 4px;
}
.template-card-rich p {
  min-height: 44px;
  margin: 0 0 13px;
}
.template-card-rich .btn {
  width: 100%;
}
@media (max-width: 1100px) {
  .template-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .gallery-filters {
    justify-content: flex-start;
  }
  .template-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .template-card-rich {
    padding-top: 12px;
  }
  .template-card-rich .gallery-thumb {
    width: 106px;
    height: 139px;
  }
  .template-card-rich .template-card-body {
    margin-top: 12px;
    padding: 12px;
  }
  .template-card-rich p {
    min-height: 0;
  }
}
@media (max-width: 430px) {
  .template-gallery-grid {
    grid-template-columns: 1fr;
  }
  .template-card-rich .gallery-thumb {
    width: 128px;
    height: 168px;
  }
}

/* 2.7: six new, genuinely different resume layouts */
.template-monogram .cv-header {
  border: 0;
  padding-left: 23mm;
  position: relative;
}
.template-monogram .cv-header::before {
  content: var(--cv-initials, "CV");
  position: absolute;
  left: 0;
  top: 0;
  width: 18mm;
  height: 18mm;
  display: grid;
  place-items: center;
  background: var(--cv-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 17pt;
}
.template-monogram .cv-name,
.template-monogram .cv-section h2 {
  font-family: Georgia, serif;
}
.template-monogram .cv-section h2 {
  color: #293246;
  border-color: var(--cv-accent);
  text-transform: none;
  letter-spacing: 0.02em;
}
.template-contour {
  border-left: 7mm solid var(--cv-accent);
  padding-left: 13mm !important;
}
.template-contour::after {
  content: "";
  position: absolute;
  right: -20mm;
  top: 44mm;
  width: 52mm;
  height: 52mm;
  border: 1.2mm solid color-mix(in srgb, var(--cv-accent) 35%, white);
  border-radius: 45% 55% 63% 37%;
  transform: rotate(28deg);
  pointer-events: none;
}
.template-contour .cv-header {
  border: 0;
}
.template-contour .cv-layout.two {
  grid-template-columns: 31% 1fr;
  gap: 9mm;
}
.template-contour .cv-side {
  border-right: 1px solid #d7deea;
  padding-right: 6mm;
}
.template-contour .cv-section h2 {
  border: 0;
  color: var(--cv-accent);
}
.template-triad {
  --triad-dark: #173f5f;
  --triad-warm: #f3a712;
}
.template-triad .cv-header {
  margin: -16mm -16mm 11mm;
  padding: 13mm 16mm;
  border: 0;
  background: linear-gradient(
    118deg,
    var(--cv-accent) 0 60%,
    var(--triad-dark) 60% 82%,
    var(--triad-warm) 82%
  );
}
.template-triad .cv-name,
.template-triad .cv-title,
.template-triad .cv-contact {
  color: #fff;
}
.template-triad .cv-photo {
  border-radius: 2mm;
  border: 1mm solid #fff;
}
.template-triad .cv-layout.two {
  grid-template-columns: 33% 1fr;
  gap: 8mm;
}
.template-triad .cv-side {
  background: #f2f6fb;
  padding: 6mm;
}
.template-heritage {
  color: #292720;
  padding: 17mm 19mm;
}
.template-heritage .cv-header {
  display: block;
  text-align: center;
  border-top: 1px solid #817458;
  border-bottom: 3px double #817458;
  padding: 7mm 0;
}
.template-heritage .cv-name {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.template-heritage .cv-title {
  color: #6c5c3e;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 9.5pt;
}
.template-heritage .cv-contact {
  justify-content: center;
}
.template-heritage .cv-section h2 {
  font-family: Georgia, serif;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #5f5037;
  border-color: #c9bea9;
}
.template-spotlight .cv-header {
  margin: -16mm -16mm 12mm;
  padding: 11mm 16mm 12mm 54mm;
  min-height: 48mm;
  border: 0;
  background: #f3f6fc;
  position: relative;
}
.template-spotlight .cv-photo {
  position: absolute;
  left: 16mm;
  bottom: -7mm;
  width: 31mm;
  height: 39mm;
  border-radius: 2mm;
  box-shadow: 0 8px 20px rgba(24, 40, 72, 0.18);
}
.template-spotlight .cv-name {
  font-size: 34pt;
}
.template-spotlight.no-photo-content .cv-header {
  padding-left: 16mm;
}
.template-spotlight .cv-title {
  display: inline-block;
  background: var(--cv-accent);
  color: #fff;
  padding: 1.5mm 3mm;
}
.template-spotlight .cv-layout.two {
  grid-template-columns: 31% 1fr;
  gap: 9mm;
}
.template-geometric {
  padding-top: 19mm;
  background:
    linear-gradient(135deg, var(--cv-accent) 0 20mm, transparent 20mm) top left /
      38mm 38mm no-repeat,
    linear-gradient(
        315deg,
        color-mix(in srgb, var(--cv-accent) 45%, white) 0 16mm,
        transparent 16mm
      )
      bottom right / 34mm 34mm no-repeat,
    #fff;
}
.template-geometric .cv-header {
  border: 0;
  padding: 6mm;
  background: #f1f5fb;
}
.template-geometric .cv-photo {
  clip-path: polygon(50% 0, 100% 22%, 92% 82%, 50% 100%, 8% 82%, 0 22%);
}
.template-geometric .cv-layout.two {
  grid-template-columns: 34% 1fr;
  gap: 7mm;
}
.template-geometric .cv-side {
  background: color-mix(in srgb, var(--cv-accent) 9%, white);
  padding: 6mm;
}
.template-geometric .cv-section h2 {
  border: 0;
  border-bottom: 2px solid var(--cv-accent);
}

/* Real A4 miniatures used both in the editor and in the gallery. */
.cv-miniature {
  --cv-accent: #174ea6;
  display: block;
  position: relative;
  width: 94px;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: #fff;
  color: #1d293b;
  border: 1px solid #cbd5e4;
  box-shadow: 0 5px 14px rgba(29, 46, 78, 0.16);
  padding: 8px;
  font-family: Arial, sans-serif;
  text-align: left;
}
.mini-cv-head {
  display: flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--cv-accent);
}
.mini-cv-head > span {
  display: grid;
  min-width: 0;
}
.mini-cv-head strong {
  font-size: 6.2px;
  line-height: 1.1;
}
.mini-cv-head em {
  color: var(--cv-accent);
  font-size: 4.4px;
  font-style: normal;
  line-height: 1.4;
}
.mini-cv-head small {
  color: #667085;
  font-size: 3.2px;
  white-space: nowrap;
  overflow: hidden;
}
.mini-avatar {
  flex: 0 0 auto;
  width: 16px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: linear-gradient(145deg, #dbe5f2, #9aabc2);
  color: #fff;
  font-size: 4.5px;
  font-style: normal;
}
.mini-cv-columns {
  display: grid;
  gap: 5px;
  margin-top: 6px;
}
.cv-miniature.is-two .mini-cv-columns {
  grid-template-columns: 31% 1fr;
}
.cv-miniature.is-one .mini-cv-side {
  display: none;
}
.mini-cv-side,
.mini-cv-main {
  display: grid;
  align-content: start;
  gap: 2.5px;
  min-width: 0;
}
.mini-cv-side {
  padding: 3px;
  background: #f0f4fa;
}
.mini-cv-side b,
.mini-cv-main b {
  color: var(--cv-accent);
  font-size: 3.6px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid color-mix(in srgb, var(--cv-accent) 30%, white);
}
.mini-cv-side small,
.mini-cv-main small,
.mini-cv-main strong,
.mini-cv-main p {
  font-size: 3.35px;
  line-height: 1.35;
  margin: 0;
}
.mini-cv-main strong {
  font-size: 3.8px;
}

/* Visual language inside the miniatures follows the corresponding full template. */
.cv-miniature.template-modern .mini-cv-head,
.cv-miniature.template-with-photo .mini-cv-head,
.cv-miniature.template-sales .mini-cv-head,
.cv-miniature.template-creative .mini-cv-head,
.cv-miniature.template-elegant .mini-cv-head,
.cv-miniature.template-two-column .mini-cv-head,
.cv-miniature.template-triad .mini-cv-head,
.cv-miniature.template-charcoal .mini-cv-head {
  margin: -8px -8px 6px;
  padding: 8px;
  background: var(--cv-accent);
  border: 0;
}
.cv-miniature.template-triad .mini-cv-head {
  background: linear-gradient(
    118deg,
    var(--cv-accent) 0 65%,
    #173f5f 65% 84%,
    #f3a712 84%
  );
}
.cv-miniature.template-charcoal .mini-cv-head {
  background: #202936;
}
.cv-miniature.template-modern .mini-cv-head *,
.cv-miniature.template-with-photo .mini-cv-head *,
.cv-miniature.template-sales .mini-cv-head *,
.cv-miniature.template-creative .mini-cv-head *,
.cv-miniature.template-elegant .mini-cv-head *,
.cv-miniature.template-two-column .mini-cv-head *,
.cv-miniature.template-triad .mini-cv-head *,
.cv-miniature.template-charcoal .mini-cv-head * {
  color: #fff;
}
.cv-miniature.template-nordic .mini-cv-head,
.cv-miniature.template-contour .mini-cv-head {
  border-bottom: 0;
  border-left: 4px solid var(--cv-accent);
  padding-left: 6px;
}
.cv-miniature.template-executive .mini-cv-head,
.cv-miniature.template-heritage .mini-cv-head {
  font-family: Georgia, serif;
  border-top: 2px solid #b58a3a;
  border-bottom: 1px solid #b58a3a;
  text-align: center;
  justify-content: center;
}
.cv-miniature.template-sage {
  background: #fbfdfb;
}
.cv-miniature.template-sage .mini-cv-head {
  margin: -8px -8px 6px;
  padding: 8px;
  background: #dfe9df;
  border: 0;
}
.cv-miniature.template-sage .mini-cv-side {
  background: #e8f0e7;
}
.cv-miniature.template-cobalt {
  border-top: 4px solid var(--cv-accent);
}
.cv-miniature.template-timeline .mini-cv-side {
  background: #fff1eb;
}
.cv-miniature.template-editorial {
  font-family: Georgia, serif;
}
.cv-miniature.template-editorial .mini-cv-head {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}
.cv-miniature.template-monogram .mini-avatar {
  display: grid;
  border-radius: 50%;
  background: var(--cv-accent);
}
.cv-miniature.template-monogram .mini-cv-head::before {
  content: "AK";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cv-accent);
  color: #fff;
  font-size: 5px;
  font-weight: 800;
}
.cv-miniature.template-contour {
  border-left: 4px solid var(--cv-accent);
}
.cv-miniature.template-spotlight .mini-cv-head {
  margin: -8px -8px 8px;
  padding: 8px;
  background: #edf2fa;
  border: 0;
}
.cv-miniature.template-geometric {
  background: linear-gradient(135deg, var(--cv-accent) 0 20px, transparent 20px),
    #fff;
  padding-top: 14px;
}
.cv-miniature.template-geometric .mini-cv-side {
  background: color-mix(in srgb, var(--cv-accent) 11%, white);
}

/* Gallery: larger previews, clear actions and no clipped content. */
.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.gallery-toolbar .gallery-filters {
  justify-content: flex-start;
  margin: 0;
}
.gallery-count {
  flex: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}
.template-gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.template-card-rich {
  align-items: stretch;
  padding: 16px 16px 0;
  overflow: hidden;
}
.template-card-rich .gallery-cv-miniature {
  width: min(100%, 252px);
  margin: 0 auto;
  padding: 20px;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(32, 47, 75, 0.18);
}
.template-card-rich .gallery-cv-miniature .mini-cv-head {
  gap: 12px;
  padding-bottom: 10px;
  border-bottom-width: 3px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-head strong {
  font-size: 15px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-head em {
  font-size: 9px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-head small,
.template-card-rich .gallery-cv-miniature .mini-cv-side small,
.template-card-rich .gallery-cv-miniature .mini-cv-main small,
.template-card-rich .gallery-cv-miniature .mini-cv-main p {
  font-size: 7px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-main strong {
  font-size: 8px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-side b,
.template-card-rich .gallery-cv-miniature .mini-cv-main b {
  font-size: 8px;
}
.template-card-rich .gallery-cv-miniature .mini-avatar {
  width: 38px;
  height: 46px;
  font-size: 10px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-columns {
  gap: 12px;
  margin-top: 13px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-side,
.template-card-rich .gallery-cv-miniature .mini-cv-main {
  gap: 6px;
}
.template-card-rich .gallery-cv-miniature .mini-cv-side {
  padding: 8px;
}
.template-card-rich .template-card-body {
  border-top: 0;
  margin-top: 15px;
  padding: 16px 0;
}
.badge-neutral {
  background: #f2f4f8;
  color: #556176;
}
.template-card-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 8px;
}
.template-card-rich .template-card-actions .btn {
  width: auto;
}

/* Enlarged pre-selection preview. */
.modal-open {
  overflow: hidden;
}
.template-preview-modal {
  padding: 18px;
}
.template-preview-card {
  max-width: 1050px;
  padding: 24px;
}
.template-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}
.template-preview-head h2 {
  margin: 10px 0 3px;
  font-size: 1.8rem;
}
.template-preview-head p {
  margin: 0;
  color: var(--muted);
}
.modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #263247;
  cursor: pointer;
  font-size: 1.7rem;
}
.template-preview-content {
  display: grid;
  grid-template-columns: minmax(390px, 1fr) 260px;
  align-items: start;
  gap: 28px;
  background: #e8edf5;
  border-radius: 18px;
  padding: 24px;
}
.template-preview-content [data-large-preview] {
  display: grid;
  place-items: center;
}
.gallery-cv-miniature.is-large {
  width: min(100%, 490px);
  padding: 38px;
  box-shadow: 0 16px 44px rgba(25, 42, 72, 0.24);
}
.gallery-cv-miniature.is-large .mini-cv-head {
  gap: 18px;
  padding-bottom: 17px;
  border-bottom-width: 4px;
}
.gallery-cv-miniature.is-large .mini-cv-head strong {
  font-size: 27px;
}
.gallery-cv-miniature.is-large .mini-cv-head em {
  font-size: 15px;
}
.gallery-cv-miniature.is-large .mini-cv-head small,
.gallery-cv-miniature.is-large .mini-cv-side small,
.gallery-cv-miniature.is-large .mini-cv-main small,
.gallery-cv-miniature.is-large .mini-cv-main p {
  font-size: 11px;
}
.gallery-cv-miniature.is-large .mini-cv-main strong {
  font-size: 13px;
}
.gallery-cv-miniature.is-large .mini-cv-side b,
.gallery-cv-miniature.is-large .mini-cv-main b {
  font-size: 12px;
}
.gallery-cv-miniature.is-large .mini-avatar {
  width: 62px;
  height: 75px;
  font-size: 14px;
}
.gallery-cv-miniature.is-large .mini-cv-columns {
  gap: 22px;
  margin-top: 22px;
}
.gallery-cv-miniature.is-large .mini-cv-side,
.gallery-cv-miniature.is-large .mini-cv-main {
  gap: 9px;
}
.gallery-cv-miniature.is-large .mini-cv-side {
  padding: 14px;
}
.template-preview-options {
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
}
.template-preview-options h3 {
  margin-top: 0;
}
.template-preview-options ul {
  padding-left: 20px;
  color: #536078;
}
.template-preview-options .btn {
  width: 100%;
}
.palette-list {
  display: flex;
  gap: 9px;
  margin: 12px 0 18px;
}
.palette-dot {
  width: 32px;
  height: 32px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--palette);
  box-shadow: 0 0 0 1px #bcc6d5;
  cursor: pointer;
}
.palette-dot.active {
  box-shadow: 0 0 0 3px #1c2d4d;
}

/* Layout protection at common desktop widths; no horizontal clipping. */
.tool-shell.container {
  width: min(1780px, calc(100% - 28px));
}
.cv-workspace {
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
}
.preview-panel,
.editor-panel,
.cv-stage {
  min-width: 0;
}
.preview-actions {
  min-width: 0;
}

@media (max-width: 1180px) {
  .template-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv-workspace {
    grid-template-columns: 1fr;
  }
  .editor-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .editor-body {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .gallery-toolbar {
    display: block;
  }
  .gallery-count {
    display: block;
    margin-top: 10px;
  }
  .template-preview-card {
    padding: 15px;
  }
  .template-preview-content {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .template-preview-options {
    position: static;
  }
  .gallery-cv-miniature.is-large {
    width: min(100%, 430px);
    padding: 28px;
  }
}
@media (max-width: 540px) {
  .template-gallery-grid {
    grid-template-columns: 1fr;
  }
  .template-card-rich .gallery-cv-miniature {
    width: min(100%, 280px);
  }
  .template-card-actions {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-cv-miniature.is-large {
    padding: 18px;
  }
  .gallery-cv-miniature.is-large .mini-cv-head strong {
    font-size: 18px;
  }
  .gallery-cv-miniature.is-large .mini-cv-head em {
    font-size: 11px;
  }
  .gallery-cv-miniature.is-large .mini-avatar {
    width: 44px;
    height: 52px;
  }
}

/* =========================================================
   CV.podziel.pl 2.8 — spokojniejszy, aplikacyjny kreator
   ========================================================= */
.builder-page .hero {
  padding: 22px 0 16px;
  background: linear-gradient(180deg, #f7f9fd 0%, #f2f5fa 100%);
  border-bottom: 1px solid var(--line);
}
.builder-page .hero-grid {
  grid-template-columns: 1fr;
  max-width: 980px;
}
.builder-page .hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  margin-bottom: 6px;
}
.builder-page .hero p {
  max-width: 820px;
  margin: 0;
  font-size: 1rem;
}
.builder-page .hero-card,
.builder-page .hero-actions {
  display: none;
}
.builder-page .tool-shell.container {
  width: min(100% - 24px, 1720px);
  max-width: 1720px;
  margin-top: 12px;
}
.builder-page .local-banner {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px auto;
  padding: 7px 11px;
  border-radius: 999px;
  align-items: center;
  font-size: .79rem;
  box-shadow: none;
}
.builder-page .local-banner br,
.builder-page .local-banner div > strong {
  display: none;
}
.builder-page .tool-card {
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(20, 35, 62, .11);
}
.builder-app {
  min-height: 780px;
}
.builder-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  flex-wrap: nowrap;
  min-height: 66px;
  padding: 10px 14px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px);
}
.project-title-wrap {
  min-width: 230px;
  max-width: 390px;
  display: grid;
  gap: 2px;
}
.project-title-wrap label {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.project-title-wrap .project-input {
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 5px 7px;
  font-size: .95rem;
  font-weight: 850;
  text-transform: none;
  letter-spacing: normal;
}
.project-title-wrap .project-input:hover,
.project-title-wrap .project-input:focus {
  background: #f3f6fb;
}
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #357054;
  font-size: .74rem;
  font-weight: 750;
  padding-left: 5px;
}
.save-indicator::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3aa36b;
}
.save-indicator[data-phase="saving"] { color: #765a12; }
.save-indicator[data-phase="saving"]::before { background: #e0a522; animation: save-pulse 1s infinite; }
.save-indicator[data-phase="error"] { color: var(--danger); }
.save-indicator[data-phase="error"]::before { background: var(--danger); }
@keyframes save-pulse { 50% { opacity: .35; } }
.project-menu {
  position: relative;
  flex: 0 0 auto;
}
.project-menu > summary {
  list-style: none;
  min-height: 42px;
}
.project-menu > summary::-webkit-details-marker { display: none; }
.project-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 9px);
  z-index: 80;
  width: 285px;
  padding: 12px;
  display: grid;
  gap: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 20px 55px rgba(18,34,61,.18);
}
.project-popover > strong {
  padding: 4px 7px 8px;
  font-size: .85rem;
}
.project-popover button,
.project-file {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 9px 10px;
  text-align: left;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}
.project-popover button:hover,
.project-file:hover { background: #eef4ff; }
.project-popover hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 5px 0;
}
.project-popover label:not(.project-file) {
  display: grid;
  gap: 5px;
  padding: 4px 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}
.project-popover select { padding: 8px 9px; }
.top-icon {
  width: 39px;
  height: 39px;
  font-size: 1.2rem;
  color: #4c5b72;
}
.top-score {
  min-width: 78px;
  height: 42px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #cfe0fa;
  border-radius: 11px;
  background: #f4f8ff;
  color: var(--accent2);
  cursor: pointer;
  font-weight: 800;
}
.top-score span { font-size: .75rem; }
.top-score strong { font-size: 1.05rem; }
.pdf-main { min-width: 142px; }
.cv-workspace {
  display: grid;
  grid-template-columns: 205px minmax(420px, 535px) minmax(535px, 1fr);
  min-height: 790px;
  background: #f7f9fc;
}
.builder-steps {
  padding: 14px 11px;
  border-right: 1px solid var(--line);
  background: #fff;
  min-width: 0;
}
.builder-steps nav {
  display: grid;
  gap: 3px;
  margin: 12px 0;
}
.builder-steps .editor-tab {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 26px minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 8px;
  text-align: left;
  white-space: normal;
}
.builder-steps .editor-tab > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.builder-steps .editor-tab small {
  color: #8490a2;
  font-size: .67rem;
}
.builder-steps .editor-tab.active small { color: var(--accent2); }
.step-index {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf1f7;
  color: #66758d;
  font-size: .72rem;
  font-weight: 900;
}
.editor-tab.active .step-index {
  color: #fff;
  background: var(--accent);
}
.progress-card {
  padding: 11px;
  border-radius: 12px;
  background: #f6f8fc;
  border: 1px solid var(--line);
}
.progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .75rem;
}
.progress-track {
  height: 7px;
  margin-top: 9px;
  border-radius: 99px;
  background: #e3e8f1;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #47a6e8);
  transition: width .25s ease;
}
.quality-card {
  width: 100%;
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #d3e1f8;
  border-radius: 13px;
  background: #f5f9ff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.quality-card > span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.quality-card strong { color: var(--accent2); font-size: 1.25rem; }
.quality-card small { color: var(--muted); font-size: .68rem; line-height: 1.3; }
.privacy-compact {
  margin-top: 13px;
  color: #5b6b81;
  font-size: .68rem;
  line-height: 1.45;
}
.editor-panel {
  border-right: 1px solid var(--line);
  background: #fbfcfe;
}
.editor-body {
  height: calc(100vh - 120px);
  min-height: 720px;
  max-height: 860px;
  padding: 20px;
  overflow: auto;
  scrollbar-gutter: stable;
}
.editor-section > .section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .82rem;
}
.step-navigation {
  position: sticky;
  bottom: -20px;
  z-index: 12;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 26px -20px -20px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.button-row.compact {
  margin: 0;
  justify-content: flex-end;
}
.content-tip {
  margin-top: 15px;
  padding: 13px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 11px 11px 0;
  background: #eef4ff;
}
.content-tip p { margin: 5px 0 0; color: #52627a; font-size: .88rem; }
.experience-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.micro-action {
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: #eef4ff;
  color: var(--accent2);
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
}
.preview-panel {
  position: relative;
  min-width: 0;
  padding: 12px;
  background: #edf0f5;
}
.preview-toolbar {
  position: sticky;
  top: 78px;
  z-index: 20;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #d6dde8;
  background: rgba(248,250,253,.96);
}
.cv-stage {
  height: calc(100vh - 170px);
  min-height: 690px;
  padding: 20px 24px 54px;
  background: #e6e9ef !important;
  background-image: none !important;
  border: 1px solid #d3d9e2;
}
.cv-sheet-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 210mm;
  transform-origin: top center;
  transition: transform .12s ease;
}
.cv-sheet-wrap .cv-sheet {
  transform: none !important;
  margin: 0;
  box-shadow: 0 10px 34px rgba(35,45,65,.18);
}
.page-guides {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
}
.page-break-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed rgba(74,91,119,.55);
  box-shadow: 0 -4px 0 rgba(230,233,239,.9), 0 4px 0 rgba(230,233,239,.9);
}
.page-guide-label {
  position: absolute;
  left: -68px;
  width: 58px;
  padding: 4px 5px;
  border: 1px solid #cbd3df;
  border-radius: 7px;
  background: rgba(255,255,255,.93);
  color: #66748a;
  text-align: center;
  font-size: 10px;
  font-weight: 850;
}
.quality-live {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}
.quality-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(78px,1fr));
  gap: 8px;
}
.quality-metrics > div {
  padding: 11px 9px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.quality-metrics span { display: block; color: var(--muted); font-size: .68rem; }
.quality-metrics strong { display: block; margin-top: 3px; color: var(--accent2); font-size: 1.05rem; }
.quality-findings {
  padding: 13px 14px;
  border: 1px solid #ead9b3;
  border-radius: 12px;
  background: #fffaf0;
}
.quality-findings p { margin: 5px 0; font-size: .84rem; }
.quality-findings .good { color: #25724d; }
.keyword-box {
  padding: 13px;
  border: 1px solid #d6e1f2;
  border-radius: 12px;
  background: #f5f9ff;
}
.keyword-box > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.keyword-box span { padding: 5px 8px; border-radius: 99px; background: #fff; border: 1px solid #d8e2f0; font-size: .73rem; }
.analysis-note { color: var(--muted); font-size: .75rem; }
.builder-start {
  max-width: 980px;
  margin: 0 auto;
  padding: 42px 34px 48px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(20,35,62,.1);
}
.builder-start h2 { margin: 10px 0 6px; font-size: clamp(1.8rem,4vw,2.7rem); }
.builder-start > p { margin: 0 auto 25px; color: var(--muted); }
.start-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.start-card { grid-column: span 2; }
.start-card:nth-child(4) { grid-column: 2 / span 2; }
.start-card:nth-child(5) { grid-column: 4 / span 2; }
.start-card {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}
.start-card:hover { transform: translateY(-2px); border-color: #8eb0e7; box-shadow: 0 12px 28px rgba(35,70,125,.12); }
.start-card.recommended { background: #f2f7ff; border-color: #a9c5ed; }
.start-card strong { font-size: 1rem; }
.start-card span { color: var(--muted); font-size: .82rem; line-height: 1.45; }

@media (max-width: 1380px) {
  .cv-workspace { grid-template-columns: 190px minmax(390px, 490px) minmax(500px,1fr); }
  .quality-metrics { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1120px) {
  .cv-workspace { grid-template-columns: 185px minmax(390px, 1fr); }
  .preview-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .preview-toolbar { top: 68px; }
  .cv-stage { height: 760px; min-height: 760px; }
  .editor-body { height: auto; min-height: 730px; }
  .start-grid { grid-template-columns: repeat(2,1fr); }
  .start-card, .start-card:nth-child(4), .start-card:nth-child(5) { grid-column: auto; }
}
@media (max-width: 760px) {
  .builder-page .hero { padding: 15px 0 10px; }
  .builder-page .hero h1 { font-size: 1.65rem; }
  .builder-page .hero p { font-size: .88rem; }
  .builder-page .tool-shell.container { width: min(100% - 12px, 1720px); }
  .builder-page .local-banner { margin-right: 4px; font-size: .68rem; }
  .builder-topbar { position: sticky; min-height: auto; padding: 8px; gap: 6px; flex-wrap: wrap; }
  .project-title-wrap { order: 3; width: 100%; max-width: none; grid-template-columns: 1fr auto; align-items: center; }
  .project-title-wrap label { grid-template-columns: 1fr; gap: 0; }
  .project-title-wrap label { font-size: 0; }
  .project-title-wrap .project-input { font-size: .9rem; padding: 8px; background: #f5f7fb; }
  .project-title-wrap .save-indicator { font-size: .67rem; white-space: nowrap; }
  .builder-topbar .spacer { display: block; }
  .top-score { min-width: 64px; }
  .top-score span { display: none; }
  .top-icon { display: none; }
  .pdf-main { min-width: 0; padding-inline: 11px; }
  .cv-workspace { display: block; min-height: 600px; }
  .builder-steps { display: none; }
  .editor-panel { border: 0; }
  .editor-body { min-height: 0; max-height: none; height: auto; padding: 14px; }
  .step-navigation { bottom: -14px; margin: 22px -14px -14px; padding: 11px 14px; }
  .preview-panel { padding: 8px; }
  .preview-toolbar { position: sticky; top: 112px; display: grid; }
  .preview-actions { justify-content: flex-start; }
  .preview-actions [data-action="fit-width"], .preview-actions [data-action="fullscreen"] { display: none; }
  .cv-stage { height: 610px; min-height: 610px; padding: 14px 8px 40px; justify-content: center; }
  .cv-sheet-wrap { transform-origin: top center; }
  .page-guide-label { display: none; }
  .quality-metrics { grid-template-columns: repeat(2,1fr); }
  .experience-tools { align-items: flex-start; flex-direction: column; }
  .item-card-head { align-items: flex-start; }
  .builder-start { padding: 28px 16px 32px; border-radius: 16px; }
  .start-grid { grid-template-columns: 1fr; }
  .start-card { min-height: 105px; }
  .project-popover { width: min(285px, calc(100vw - 24px)); }
}
@media print {
  .cv-sheet-wrap { transform: none !important; height: auto !important; }
  .page-guides { display: none !important; }
}

/* =========================================================
   CV.podziel.pl 2.8.1 — dopracowany, czytelniejszy interfejs
   ========================================================= */
.builder-page {
  background: #f4f7fb;
}
.builder-page .site-header {
  box-shadow: 0 1px 0 rgba(24, 44, 77, .04);
}
.builder-page .header-inner {
  min-height: 60px;
}
.builder-page .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.builder-page .main-nav a {
  padding: 8px 11px;
  font-size: .92rem;
}
.builder-page .lang-link,
.builder-page .privacy-pill {
  padding: 7px 11px;
}
.builder-page .hero,
.builder-page .local-banner {
  display: none;
}
.builder-page .tool-shell.container {
  width: min(calc(100% - 20px), 1880px);
  max-width: 1880px;
  margin-top: 10px;
}
.builder-page .tool-card {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(22, 43, 77, .10);
}
.builder-app {
  min-height: calc(100vh - 82px);
}
.builder-topbar {
  min-height: 58px;
  padding: 8px 11px;
  gap: 8px;
  border-bottom-color: #e2e8f1;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 1px 0 rgba(31, 51, 81, .025);
}
.project-menu > summary {
  min-height: 38px;
  padding: 8px 12px;
  border-color: #d8e1ed;
  background: #fff;
}
.project-title-wrap {
  min-width: 260px;
  max-width: 455px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.project-title-wrap label {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-label {
  flex: 0 0 auto;
  color: #7b879a;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-title-wrap .project-input {
  min-width: 110px;
  max-width: 225px;
  padding: 6px 8px;
  border: 1px solid transparent;
  font-size: .93rem;
}
.project-title-wrap .project-input:hover,
.project-title-wrap .project-input:focus {
  border-color: #d9e3f1;
  background: #f6f8fc;
}
.save-indicator {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f9f5;
  font-size: .68rem;
}
.top-icon {
  width: 37px;
  height: 37px;
  border-color: #dbe3ee;
  color: #526179;
}
.top-icon:hover {
  background: #f1f5fb;
}
.top-score {
  min-width: 76px;
  height: 39px;
  border-radius: 10px;
  background: #f6f9fe;
}
.pdf-main {
  min-width: 150px;
  min-height: 40px;
  border-radius: 10px;
  box-shadow: 0 7px 17px rgba(23, 78, 166, .18);
}
.cv-workspace {
  grid-template-columns: 226px minmax(525px, 610px) minmax(610px, 1fr);
  min-height: calc(100vh - 141px);
  background: #f6f8fb;
}
.builder-steps {
  padding: 15px 12px;
  border-right-color: #e1e7f0;
  background: #fbfcfe;
}
.progress-card {
  padding: 12px;
  border-color: #dce5f1;
  background: #f3f7fc;
}
.progress-card > div:first-child {
  align-items: center;
  color: #526179;
}
.progress-card > div:first-child strong {
  color: #173d78;
  font-size: .8rem;
}
.builder-steps nav {
  position: relative;
  gap: 5px;
  margin: 14px 0;
}
.builder-steps nav::before {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 20px;
  width: 1px;
  background: #dde5ef;
}
.builder-steps .editor-tab {
  position: relative;
  z-index: 1;
  min-height: 43px;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #53627a;
  font-size: .84rem;
}
.builder-steps .editor-tab:hover {
  background: #f1f5fb;
  color: #213653;
}
.builder-steps .editor-tab.active {
  border-color: #bed2ef;
  background: #eaf2ff;
  color: #123f82;
  box-shadow: 0 5px 13px rgba(36, 84, 151, .08);
}
.builder-steps .editor-tab:focus {
  outline: none;
}
.builder-steps .editor-tab:focus-visible {
  outline: 3px solid rgba(58, 123, 213, .24);
  outline-offset: 1px;
}
.builder-steps .editor-tab > span:nth-child(2) {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-weight: 760;
}
.builder-steps .editor-tab small {
  min-width: 31px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #eef2f7;
  text-align: center;
  font-size: .62rem;
}
.builder-steps .editor-tab.active small {
  background: #fff;
}
.step-index {
  width: 26px;
  height: 26px;
  border: 2px solid #fbfcfe;
  box-shadow: 0 0 0 1px #dde5ef;
}
.editor-tab.active .step-index {
  box-shadow: 0 0 0 1px #8db1e4;
}
.quality-card {
  padding: 13px;
  border-color: #c9daf1;
  background: linear-gradient(145deg, #f5f9ff, #edf4ff);
}
.quality-card:hover {
  border-color: #9ebce6;
  box-shadow: 0 8px 18px rgba(36, 84, 151, .08);
}
.privacy-compact {
  margin: 12px 4px 0;
  color: #778399;
}
.editor-panel {
  border-right-color: #e1e7f0;
  background: #f8fafc;
}
.editor-body {
  height: calc(100vh - 141px);
  min-height: 690px;
  max-height: none;
  padding: 22px;
  background: #f8fafc;
  scrollbar-color: #aab5c5 transparent;
  scrollbar-width: thin;
}
.editor-body::-webkit-scrollbar,
.cv-stage::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.editor-body::-webkit-scrollbar-track,
.cv-stage::-webkit-scrollbar-track {
  background: transparent;
}
.editor-body::-webkit-scrollbar-thumb,
.cv-stage::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #aeb8c7;
  background-clip: padding-box;
}
.editor-section > .section-head {
  margin-bottom: 16px;
}
.editor-section > .section-head h2 {
  font-size: 1.38rem;
  letter-spacing: -.025em;
}
.editor-section > .section-head p,
.template-counter {
  color: #758197;
}
.template-filters {
  flex-wrap: wrap;
  overflow: visible;
  gap: 6px;
  margin: 0 0 15px;
  padding: 0;
}
.template-filter {
  padding: 7px 11px;
  border-color: #d9e1ec;
  background: #fff;
  color: #53627a;
  font-size: .76rem;
}
.template-filter:hover {
  border-color: #afc3df;
  background: #f4f8fe;
}
.template-filter.active {
  border-color: #183e78;
  background: #183e78;
  box-shadow: 0 5px 12px rgba(24, 62, 120, .14);
}
.template-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.template-option {
  position: relative;
  min-height: 151px;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 11px;
  padding: 11px;
  border-color: #dfe6ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(35, 55, 86, .025);
}
.template-option:hover {
  transform: translateY(-1px);
  border-color: #a9bfdf;
  box-shadow: 0 10px 22px rgba(39, 64, 105, .10);
}
.template-option.active {
  border-color: #5d8ed5;
  background: #f5f9ff;
  box-shadow: 0 0 0 2px rgba(38, 102, 190, .11), 0 10px 22px rgba(39, 64, 105, .10);
}
.template-option.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1e62bd;
  color: #fff;
  box-shadow: 0 4px 10px rgba(30, 98, 189, .22);
  font-size: .72rem;
  font-weight: 900;
}
.template-thumb {
  width: 90px;
  height: 127px;
  border-color: #cad4e2;
  border-radius: 2px;
  box-shadow: 0 5px 12px rgba(37, 55, 88, .14);
}
.template-option-copy {
  align-content: center;
  gap: 7px;
}
.template-option-copy > span {
  padding-right: 20px;
}
.template-option-copy strong {
  font-size: .94rem;
  line-height: 1.22;
}
.template-option-copy small {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f0f4f9;
  color: #647189;
  font-size: .67rem;
  line-height: 1.25;
}
.template-option.active .template-option-copy small {
  background: #e6f0ff;
  color: #285b9e;
}
.template-option-copy em {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #68758a;
  font-size: .72rem;
  line-height: 1.42;
}
.style-controls {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dfe6ef;
  border-radius: 14px;
  background: #fff;
}
.style-controls h3 {
  margin-top: 0;
}
.step-navigation {
  border-top-color: #e0e7f0;
  box-shadow: 0 -8px 22px rgba(36, 52, 77, .04);
}
.preview-panel {
  padding: 10px;
  background: #edf1f6;
}
.preview-toolbar {
  position: relative;
  top: auto;
  margin: 0 0 9px;
  padding: 7px 9px;
  border-color: #d8e0eb;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(31, 50, 80, .055);
}
.preview-toolbar h2 {
  font-size: .95rem;
}
.page-count {
  border-color: #d9e1ec;
  background: #f5f7fa;
  color: #637087;
}
.preview-actions {
  gap: 5px;
}
.preview-actions > .btn,
.zoom-controls .btn {
  min-height: 34px;
  padding: 6px 10px;
  border-color: #d9e1ec;
  background: #fff;
  color: #45546d;
}
.preview-actions > .btn:hover,
.zoom-controls .btn:hover {
  border-color: #b8cae2;
  background: #f4f8fe;
}
.zoom-controls {
  border-color: #d9e1ec;
  border-radius: 9px;
}
.cv-stage {
  height: calc(100vh - 198px);
  min-height: 675px;
  padding: 18px 20px 48px;
  border-color: #d6dde7;
  border-radius: 12px;
  background: #dfe4eb !important;
  box-shadow: inset 0 1px 3px rgba(35, 50, 72, .06);
  scrollbar-color: #9ca8b9 transparent;
  scrollbar-width: thin;
}
.cv-sheet-wrap .cv-sheet {
  border: 1px solid rgba(111, 125, 147, .12);
  box-shadow: 0 14px 38px rgba(35, 45, 65, .19);
}
.page-guide-label {
  left: 12px;
  width: auto;
  min-width: 58px;
  padding: 4px 8px;
  border-color: #c8d8ed;
  background: rgba(238, 246, 255, .94);
  color: #2b5d9d;
  box-shadow: 0 3px 8px rgba(31, 72, 128, .09);
}
.page-break-line {
  border-top-color: rgba(63, 90, 130, .42);
}
@media (max-width: 1540px) {
  .cv-workspace {
    grid-template-columns: 218px minmax(490px, 555px) minmax(560px, 1fr);
  }
  .project-title-wrap {
    min-width: 230px;
  }
}
@media (max-width: 1260px) {
  .cv-workspace {
    grid-template-columns: 210px minmax(450px, 1fr);
  }
  .preview-panel {
    grid-column: 1 / -1;
    border-top: 1px solid #e1e7f0;
  }
  .editor-body {
    height: auto;
    min-height: 700px;
  }
  .cv-stage {
    height: 760px;
  }
}
@media (max-width: 900px) {
  .builder-page .header-inner {
    min-height: 56px;
  }
  .project-label {
    display: none;
  }
  .project-title-wrap {
    min-width: 180px;
  }
}
@media (max-width: 760px) {
  .builder-page .tool-shell.container {
    width: calc(100% - 8px);
    margin-top: 4px;
  }
  .builder-page .tool-card {
    border-radius: 12px;
  }
  .builder-topbar {
    padding: 7px;
  }
  .project-title-wrap {
    min-width: 0;
    gap: 5px;
  }
  .save-indicator {
    padding: 4px 6px;
  }
  .editor-body {
    padding: 15px;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-option {
    min-height: 139px;
  }
  .preview-toolbar {
    top: auto;
  }
  .cv-stage {
    height: 610px;
    min-height: 610px;
  }
}

/* 2.8.1 mobile top bar: one action row + one project row */
@media (max-width: 760px) {
  .builder-topbar .spacer {
    display: none;
  }
  .builder-topbar .project-menu {
    order: 1;
  }
  .builder-topbar .top-score {
    order: 2;
    margin-left: auto;
  }
  .builder-topbar .pdf-main {
    order: 3;
    min-height: 39px;
  }
  .builder-topbar .project-title-wrap {
    order: 4;
    width: 100%;
    max-width: none;
  }
  .project-title-wrap label {
    flex: 1 1 auto;
  }
  .project-title-wrap .project-input {
    max-width: none;
  }
}

/* CV.podziel.pl 2.9.0 — import/export, controlled sections and cleaner landing */
.ad-slot:empty,
.ad-placeholder,
[data-ad-placeholder] {
  display: none !important;
}

.project-popover > strong:not(:first-child) {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project-file small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 500;
}

.section-manager {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  background: #f8fafc;
}
.section-order-list {
  display: grid;
  gap: 8px;
}
.section-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
}
.section-order-row > span {
  display: grid;
  min-width: 0;
}
.section-order-row > span strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.section-order-row > span small {
  color: #b45309;
}
.section-order-row > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.section-order-row.is-hidden {
  opacity: 0.58;
  border-style: dashed;
}
.page-break-before {
  break-before: page;
  page-break-before: always;
}
.cv-sheet .page-break-before {
  position: relative;
  margin-top: 18mm;
}
.cv-sheet .page-break-before::before {
  content: "";
  position: absolute;
  top: -9mm;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(23, 78, 166, 0.28);
}

.document-import-modal .modal-card {
  width: min(920px, calc(100vw - 30px));
}
.import-review-card {
  max-height: min(900px, calc(100vh - 30px));
  overflow: auto;
}
.import-file-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #eef5ff;
  color: #17335f;
}
.import-file-summary span {
  color: #60708a;
  font-size: 0.86rem;
}
.import-section-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.import-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.import-section > input {
  margin-top: 4px;
}
.import-section-copy,
.import-section-copy > span:first-child {
  display: flex;
  min-width: 0;
}
.import-section-copy {
  flex-direction: column;
  gap: 5px;
}
.import-section-copy > span:first-child {
  justify-content: space-between;
  gap: 10px;
}
.import-section-copy em {
  font-style: normal;
  color: #174ea6;
  font-weight: 800;
}
.import-section-copy small,
.import-section-copy p {
  color: #61708a;
  margin: 0;
}
.confidence-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf5;
}
.confidence-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2e6bc2, #28a76f);
}
.import-raw {
  margin-top: 12px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #f8fafc;
}
.import-raw summary {
  cursor: pointer;
  padding: 11px 13px;
  font-weight: 750;
}
.import-raw pre,
.ats-text-preview pre {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 0.8rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #31405a;
}
.import-review-actions {
  justify-content: flex-end;
  position: sticky;
  bottom: -1px;
  padding: 12px 0 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #fff 25%);
}

.ats-file-checker {
  margin-top: 22px;
  border: 1px solid #cfe0f7;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.file-drop {
  display: grid;
  place-items: center;
  min-height: 130px;
  padding: 24px;
  border: 2px dashed #9bbbe6;
  border-radius: 16px;
  background: rgba(237, 245, 255, 0.7);
  cursor: pointer;
  text-align: center;
}
.file-drop:hover {
  border-color: #174ea6;
  background: #edf5ff;
}
.file-drop strong {
  color: #174ea6;
  font-size: 1.03rem;
}
.file-drop span {
  margin-top: 4px;
  color: #65738c;
}
.ats-file-loading,
.ats-file-result {
  margin-top: 16px;
}
.ats-file-result.error {
  padding: 14px;
  border-radius: 12px;
  background: #fff1f2;
  color: #9f1239;
}
.ats-text-preview {
  margin-top: 14px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  background: #fff;
}
.ats-text-preview summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 760;
}

.match-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.match-categories span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
}
.match-categories em {
  color: #63718a;
  font-style: normal;
  font-size: 0.78rem;
}
.match-categories strong {
  color: #174ea6;
}
.keyword-box small {
  display: block;
  margin-top: 8px;
  color: #8a5a13;
}

/* New lightweight homepage */
.home-product-hero {
  padding: 78px 0 58px;
  background:
    radial-gradient(circle at 85% 15%, rgba(60, 124, 224, 0.17), transparent 32%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
}
.home-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 54px;
}
.home-product-hero h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  color: #14223a;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.home-product-hero p {
  max-width: 690px;
  color: #53627b;
  font-size: 1.1rem;
  line-height: 1.7;
}
.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  color: #39506e;
  font-size: 0.9rem;
  font-weight: 700;
}
.hero-trust-list span::before {
  content: "✓";
  margin-right: 6px;
  color: #16865d;
}
.resume-demo-card {
  position: relative;
  min-height: 510px;
  padding: 24px;
  border: 1px solid #d9e4f2;
  border-radius: 28px;
  background: #eaf0f8;
  box-shadow: 0 30px 70px rgba(30, 61, 103, 0.14);
}
.resume-demo-sheet {
  height: 100%;
  min-height: 462px;
  padding: 38px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(39, 57, 88, 0.13);
}
.resume-demo-sheet h2 {
  margin: 0;
  color: #15233b;
  font-size: 2rem;
}
.resume-demo-sheet > strong {
  display: block;
  margin: 5px 0 18px;
  color: #174ea6;
}
.demo-contact,
.demo-line {
  height: 8px;
  margin: 7px 0;
  border-radius: 999px;
  background: #dfe7f1;
}
.demo-contact { width: 78%; height: 6px; }
.demo-section-title {
  margin: 22px 0 9px;
  padding-bottom: 6px;
  border-bottom: 2px solid #174ea6;
  color: #174ea6;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}
.demo-line.w90 { width: 90%; }
.demo-line.w80 { width: 80%; }
.demo-line.w65 { width: 65%; }
.demo-badge {
  position: absolute;
  right: -14px;
  bottom: 32px;
  display: grid;
  padding: 13px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 58, 96, 0.18);
}
.demo-badge strong { color: #12805a; }
.demo-badge span { color: #60708a; font-size: 0.78rem; }
.home-choice-grid,
.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-choice,
.home-feature {
  padding: 22px;
  border: 1px solid #dde5ef;
  border-radius: 18px;
  background: #fff;
}
.home-choice strong,
.home-feature h3 {
  display: block;
  margin-bottom: 7px;
  color: #17243b;
  font-size: 1.03rem;
}
.home-choice span,
.home-feature p {
  color: #61708a;
  line-height: 1.62;
}
.home-choice .step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #eaf2ff;
  color: #174ea6;
  font-weight: 850;
}
.home-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border-radius: 24px;
  background: #142a4c;
  color: #fff;
}
.home-cta-panel h2 { margin: 0 0 8px; color: #fff; }
.home-cta-panel p { margin: 0; color: #c8d5e8; }

@media (max-width: 980px) {
  .home-product-grid { grid-template-columns: 1fr; }
  .resume-demo-card { max-width: 620px; width: 100%; margin-inline: auto; }
  .home-choice-grid, .home-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section-order-row { align-items: flex-start; flex-direction: column; }
  .section-order-row > div { justify-content: flex-start; }
  .import-section-list { grid-template-columns: 1fr; }
  .import-file-summary { align-items: flex-start; flex-direction: column; }
  .home-product-hero { padding: 46px 0 38px; }
  .home-product-hero h1 { font-size: clamp(2.1rem, 11vw, 3.1rem); }
  .resume-demo-card { min-height: 420px; padding: 14px; border-radius: 20px; }
  .resume-demo-sheet { min-height: 390px; padding: 28px 22px; }
  .demo-badge { right: 4px; bottom: 18px; }
  .home-choice-grid, .home-feature-grid { grid-template-columns: 1fr; }
  .home-cta-panel { grid-template-columns: 1fr; padding: 26px; }
}
@media print {
  .cv-sheet .page-break-before::before { display: none; }
}

/* CV.podziel.pl 3.1.0 — rozszerzony kreator, biblioteka, ATS i tracker */
.steps-collapse{position:absolute;right:-13px;top:14px;z-index:5;width:28px;height:28px;border:1px solid #dbe4f0;border-radius:50%;background:#fff;color:#49627f;box-shadow:0 5px 16px rgba(18,43,72,.12);cursor:pointer;display:grid;place-items:center}.builder-steps{position:relative}.cv-workspace.steps-collapsed{grid-template-columns:56px minmax(380px,1fr) minmax(520px,1.25fr)}.cv-workspace.steps-collapsed .builder-steps{padding:12px 7px}.cv-workspace.steps-collapsed .progress-card,.cv-workspace.steps-collapsed .quality-card,.cv-workspace.steps-collapsed .privacy-compact,.cv-workspace.steps-collapsed .editor-tab>span:not(.step-index),.cv-workspace.steps-collapsed .editor-tab>small{display:none}.cv-workspace.steps-collapsed .builder-steps nav{gap:7px}.cv-workspace.steps-collapsed .editor-tab{justify-content:center;padding:8px}.cv-workspace.steps-collapsed .steps-collapse{transform:rotate(180deg)}
.template-search-row{margin:12px 0}.template-search-row label{display:grid;gap:6px;font-size:.78rem;font-weight:700;color:#5f7088}.template-search-row input{width:100%;border:1px solid #cfd9e7;border-radius:12px;padding:11px 13px;font:inherit;background:#fff}.show-all-templates{width:100%;margin:12px 0 20px}.template-option{position:relative}.selected-badge{position:absolute;z-index:3;top:8px;right:8px;padding:4px 8px;border-radius:999px;background:#174ea6;color:#fff;font-size:.68rem;font-style:normal;font-weight:800;box-shadow:0 3px 10px rgba(23,78,166,.24)}.empty-state{padding:22px;border:1px dashed #cbd7e7;border-radius:14px;text-align:center;color:#66758b;background:#fafcff}
.section-order-row{display:grid!important;grid-template-columns:22px minmax(160px,1fr) auto;align-items:center;gap:10px}.section-order-row.is-dragging{opacity:.45}.section-drag{cursor:grab;color:#8da0b8;font-weight:800;letter-spacing:-3px}.section-name{display:grid;gap:3px}.section-name>span{font-size:.65rem;color:#718096;text-transform:uppercase;font-weight:800}.section-name input{min-width:0;width:100%;border:1px solid #d7e1ee;border-radius:8px;padding:7px 9px;font:inherit;font-weight:700}.section-flags{display:flex;gap:5px;flex-wrap:wrap;grid-column:2}.section-flags small{border-radius:999px;background:#eef4ff;color:#2f5f9b;padding:3px 7px}.section-row-actions{grid-column:2/4;display:flex!important;gap:6px!important;flex-wrap:wrap;justify-content:flex-end}.section-manager .analysis-note{margin-top:12px}.career-inline-hint{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin-bottom:16px;border:1px solid #cfe0ff;border-radius:14px;background:#f3f7ff}.career-inline-hint div{display:grid;gap:2px}.career-inline-hint span{font-size:.8rem;color:#5c6e86}
.career-library-modal{z-index:10010}.career-library-card{width:min(1180px,96vw);max-height:92vh;overflow:hidden;padding:20px}.career-library-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;min-height:580px;max-height:75vh}.career-library-list{border:1px solid #dce5f0;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;background:#f8fafc}.career-library-filters{padding:12px;display:grid;gap:10px;border-bottom:1px solid #dce5f0}.career-library-filters label,.career-detail-head label{display:grid;gap:5px;font-size:.72rem;font-weight:800;color:#64748b}.career-library-filters input,.career-library-filters select,.career-detail-head select{border:1px solid #cfd9e7;border-radius:9px;padding:9px;font:inherit;background:#fff}.career-count{padding:8px 12px;font-size:.75rem;color:#64748b}.career-professions{overflow:auto;padding:0 8px 10px;display:grid;gap:5px}.career-profession{border:0;border-radius:10px;background:transparent;text-align:left;padding:10px;display:grid;gap:3px;cursor:pointer}.career-profession:hover,.career-profession.active{background:#e9f1ff;color:#174ea6}.career-profession small{color:#6b7b91}.career-library-detail{overflow:auto;padding:2px 6px 20px}.career-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:14px}.career-detail-head h3{font-size:1.45rem;margin:2px 0}.career-detail-head>div>span{font-size:.75rem;color:#64748b}.career-content-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.career-content-block{border:1px solid #dce5f0;border-radius:14px;padding:14px;background:#fff;margin-bottom:12px}.career-content-block p,.career-content-block li{line-height:1.55}.career-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.career-block-head h4{margin:0}.career-content-block ul{margin:0;padding-left:19px}.career-chips{display:flex;flex-wrap:wrap;gap:6px}.career-chips span{background:#eef4ff;border-radius:999px;padding:5px 9px;font-size:.78rem}.career-safe-note{border:1px solid #f0d8a7;background:#fff9ed;border-radius:12px;padding:12px;margin:10px 0 14px}.career-safe-note p{margin:4px 0 0;color:#70551e;font-size:.84rem}.career-library-open{white-space:nowrap}
.job-match-pro{margin-top:16px;border:1px solid #d9e5f4;border-radius:16px;padding:16px;background:#fbfdff}.job-match-head{display:flex;justify-content:space-between;gap:16px;align-items:start}.job-match-head h3{margin:4px 0}.job-match-head p{margin:0;color:#64748b}.job-match-score{min-width:88px;border-radius:14px;background:#174ea6;color:#fff;padding:12px;text-align:center;display:grid}.job-match-score strong{font-size:1.6rem}.job-match-score span{font-size:.7rem}.job-match-categories{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.job-match-category{border:1px solid #e0e7f0;border-radius:13px;background:#fff;padding:12px}.job-match-category>header{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid #edf1f6;padding-bottom:8px;margin-bottom:8px}.job-match-category>header span{font-weight:800;color:#174ea6}.job-match-terms{display:grid;gap:6px}.job-match-term{display:grid;grid-template-columns:20px minmax(0,1fr) auto auto;gap:7px;align-items:center;padding:7px;border-radius:9px}.job-match-term.found{background:#effaf3}.job-match-term.missing{background:#fff8eb}.job-match-term>span{font-weight:900}.job-match-term.found>span{color:#16834c}.job-match-term.missing>span{color:#b56c00}.job-match-term div{display:grid}.job-match-term small{color:#69798e}.job-match-guidance{margin-top:13px;padding:13px;border-radius:12px;background:#f2f6fb}.job-match-guidance ol{margin:7px 0;padding-left:21px}.job-match-guidance p{margin:6px 0 0;color:#65758b;font-size:.82rem}.job-match-empty{padding:10px}.job-match-empty p{margin-bottom:0;color:#65758b}
.ats-check-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.ats-check-groups section{border:1px solid #dce5f0;border-radius:14px;padding:12px;background:#fff}.ats-check-groups h3{margin:0 0 9px}.ats-check{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;padding:8px 0;border-top:1px solid #eef2f6}.ats-check:first-of-type{border-top:0}.ats-check>span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font-weight:900}.ats-check div{display:grid;gap:2px}.ats-check small{color:#65758b}.ats-check.pass>span{background:#e6f7ed;color:#117a46}.ats-check.warn>span{background:#fff3d9;color:#9b5e00}.ats-check.fail>span{background:#fdeaea;color:#bd2929}
.tracker-summary,.tracker-controls,.tracker-reminders,.tracker-privacy{border:1px solid #dce5f0;border-radius:18px;background:#fff;box-shadow:0 10px 30px rgba(25,55,90,.06)}.tracker-summary{padding:20px}.tracker-summary-head{display:flex;justify-content:space-between;align-items:start;gap:20px}.tracker-summary-head h2{font-size:1.75rem;margin:4px 0}.tracker-summary-head p{margin:0;color:#64748b}.tracker-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:18px}.tracker-metrics>div{border-radius:13px;background:#f5f8fc;padding:12px;display:grid;gap:3px}.tracker-metrics span{font-size:.74rem;color:#64748b}.tracker-metrics strong{font-size:1.45rem}.tracker-metrics .attention{background:#fff5e6;color:#9a5c00}.tracker-controls{display:flex;gap:12px;align-items:end;padding:12px;margin-top:14px;position:sticky;top:62px;z-index:20}.tracker-controls label{display:grid;gap:5px;font-size:.72rem;font-weight:800;color:#64748b}.tracker-controls input,.tracker-controls select{border:1px solid #cfd9e7;border-radius:10px;padding:9px 10px;font:inherit;background:#fff}.tracker-search{flex:1;min-width:210px}.tracker-control-buttons{display:flex;gap:6px;flex-wrap:wrap}.tracker-import{position:relative}.tracker-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,290px);gap:12px;overflow-x:auto;padding:16px 2px 20px;scroll-snap-type:x proximity}.tracker-column{border:1px solid #dce5f0;border-radius:15px;background:#f6f8fb;min-height:380px;display:flex;flex-direction:column;scroll-snap-align:start}.tracker-column>header{display:flex;justify-content:space-between;padding:12px;border-bottom:1px solid #dce5f0}.tracker-column>header span{background:#e4ebf5;border-radius:999px;padding:2px 7px}.tracker-column-body{display:grid;align-content:start;gap:9px;padding:9px;flex:1}.tracker-column-add{border:0;border-top:1px solid #dce5f0;background:transparent;padding:10px;color:#174ea6;font-weight:800;cursor:pointer}.tracker-empty-column{text-align:center;color:#93a1b4;font-size:.8rem;padding:24px 5px}.tracker-card{border:1px solid #d9e2ee;border-radius:12px;background:#fff;padding:11px;box-shadow:0 4px 12px rgba(28,54,86,.05);display:grid;gap:8px}.tracker-card.is-due{border-color:#efbd64;background:#fffaf0}.tracker-card.is-dragging{opacity:.45}.tracker-card header{display:flex;justify-content:space-between;gap:8px}.tracker-card header>div{display:grid;gap:2px}.tracker-card header span{color:#64748b;font-size:.78rem}.tracker-card-meta{display:flex;flex-wrap:wrap;gap:7px;font-size:.72rem;color:#64748b}.tracker-card p{font-size:.79rem;line-height:1.45;margin:0}.tracker-card footer{display:flex;flex-wrap:wrap;gap:5px}.tracker-due{padding:6px 8px;border-radius:8px;background:#ffe9be;color:#805000;font-size:.73rem;font-weight:800}.tracker-next{font-size:.73rem;color:#50647d}.tracker-project-link{font-size:.74rem;color:#174ea6;font-weight:700}.tracker-reminders{margin-top:14px;padding:12px;display:flex;gap:10px;align-items:center;overflow:auto;background:#fff9ed;border-color:#efd7a7}.tracker-reminders>div{min-width:170px;display:grid}.tracker-reminders>div span{font-size:.72rem;color:#7f6534}.tracker-reminders button{border:1px solid #edd7ae;border-radius:10px;background:#fff;padding:8px 10px;min-width:180px;text-align:left;display:grid;cursor:pointer}.tracker-reminders button span{font-size:.7rem;color:#725a30}.tracker-list{padding:16px 0}.tracker-table-wrap{overflow:auto;border:1px solid #dce5f0;border-radius:15px;background:#fff}.tracker-table-wrap table{width:100%;border-collapse:collapse}.tracker-table-wrap th,.tracker-table-wrap td{text-align:left;padding:11px;border-bottom:1px solid #e7edf4;white-space:nowrap}.tracker-table-wrap th{background:#f6f8fb;color:#52637a;font-size:.75rem}.status-pill{border-radius:999px;background:#edf2f8;padding:4px 8px;font-size:.72rem}.tracker-empty{text-align:center;padding:50px;border:1px dashed #cfd9e7;border-radius:16px;background:#fafcff}.tracker-privacy{padding:14px;margin:0 0 24px;display:flex;gap:12px}.tracker-privacy p{margin:0;color:#64748b;font-size:.82rem}.tracker-form-card{width:min(920px,96vw);max-height:92vh;overflow:auto}.tracker-prep{margin-top:16px;border:1px solid #dce5f0;border-radius:13px;padding:12px}.tracker-prep summary{font-weight:800;cursor:pointer}.tracker-prep[open] summary{margin-bottom:12px}.tracker-checklist{display:grid!important;gap:7px!important;align-content:start}.tracker-checklist label{display:flex!important;gap:7px;align-items:center}.tracker-form-actions{position:sticky;bottom:-20px;background:#fff;border-top:1px solid #e5ebf3;margin:18px -20px -20px;padding:12px 20px}.btn-danger{background:#fff;border:1px solid #e4a5a5;color:#b42626}.tracker-controls .btn.active{border-color:#174ea6;color:#174ea6;background:#edf4ff}
@media(max-width:1000px){.career-library-layout{grid-template-columns:260px minmax(0,1fr)}.career-content-grid,.job-match-categories,.ats-check-groups{grid-template-columns:1fr}.tracker-metrics{grid-template-columns:repeat(3,1fr)}.tracker-controls{position:static;flex-wrap:wrap}.tracker-control-buttons{width:100%}.cv-workspace.steps-collapsed{grid-template-columns:1fr}}
@media(max-width:720px){.steps-collapse{display:none}.career-library-card{padding:12px;overflow:auto}.career-library-layout{display:block;max-height:none}.career-library-list{max-height:260px;margin-bottom:12px}.career-content-grid{display:block}.career-detail-head{display:block}.career-detail-head label{margin-top:10px}.job-match-head{display:block}.job-match-score{margin-top:10px;width:90px}.job-match-term{grid-template-columns:20px 1fr}.job-match-term .micro-action{grid-column:2}.ats-check-groups{display:block}.ats-check-groups section{margin-bottom:10px}.tracker-summary-head{display:block}.tracker-summary-head .btn{margin-top:12px}.tracker-metrics{grid-template-columns:repeat(2,1fr)}.tracker-controls{display:grid}.tracker-control-buttons{overflow:auto;flex-wrap:nowrap}.tracker-board{grid-auto-columns:85vw}.tracker-privacy{display:block}.section-order-row{grid-template-columns:20px 1fr}.section-row-actions{grid-column:1/3}.section-flags{grid-column:2}.career-library-open{display:none}}

/* ==========================================================
   CV.PODZIEL.PL 3.2.0 — PREMIUM TEMPLATE COLLECTION
   36 genuinely differentiated layouts. These rules are last
   so saved projects keep their IDs while receiving the new art
   direction. All decoration remains selectable text / CSS.
   ========================================================== */
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #171717, #4b3a20);
  color: #f9e4ad;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 7px rgba(17, 17, 17, 0.18);
}
.template-option {
  border-left: 3px solid transparent;
}
.template-option:hover,
.template-option.active {
  border-left-color: var(--template-accent, var(--accent));
}
.template-option.active .premium-badge {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--template-accent, var(--accent));
}
.template-card-rich .premium-badge {
  margin-left: auto;
}

/* Consistent hard reset before individual art direction. */
.cv-sheet[class*="template-"] {
  isolation: isolate;
}
.cv-sheet[class*="template-"] .cv-header {
  box-sizing: border-box;
}
.cv-sheet[class*="template-"] .cv-layout.two {
  align-items: stretch;
}
.cv-sheet[class*="template-"] .cv-section h2 {
  line-height: 1.2;
}

/* 01 — Oxford Classic */
.template-classic {
  padding: 17mm 19mm !important;
  color: #24211d;
  background: #fffdf8;
}
.template-classic .cv-header {
  display: block;
  text-align: center;
  border: 0;
  border-top: 1px solid #7a5c2e;
  border-bottom: 3px double #7a5c2e;
  padding: 7mm 0 6mm;
}
.template-classic .cv-name {
  font-family: Georgia, serif;
  font-size: 31pt;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #2b241b;
}
.template-classic .cv-title {
  font-family: Georgia, serif;
  font-size: 10.5pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7a5c2e;
}
.template-classic .cv-contact { justify-content: center; font-size: 8.2pt; }
.template-classic .cv-section h2 {
  font-family: Georgia, serif;
  color: #5f4528;
  border: 0;
  border-bottom: 1px solid #c9b99f;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.03em;
  font-size: 12.5pt;
}
.template-classic .cv-entry-head { font-family: Georgia, serif; }
.template-classic .cv-tag { border-radius: 2px; background: #f6f0e6; border-color: #ddcfb8; }

/* 02 — Modern Edge */
.template-modern {
  padding: 0 16mm 16mm !important;
  background: linear-gradient(90deg, color-mix(in srgb, var(--cv-accent) 8%, white) 0 31%, #fff 31%);
  color: #172033;
}
.template-modern .cv-header {
  margin: 0 -16mm 11mm !important;
  padding: 13mm 16mm 11mm 20mm !important;
  min-height: 48mm;
  background: linear-gradient(118deg, #101827 0 72%, var(--cv-accent) 72%) !important;
  border: 0 !important;
  position: relative;
}
.template-modern .cv-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5mm;
  background: var(--cv-accent);
}
.template-modern .cv-name { color: #fff; font-size: 33pt; letter-spacing: -0.045em; }
.template-modern .cv-title { color: #cde0ff; text-transform: uppercase; letter-spacing: 0.11em; font-size: 10pt; }
.template-modern .cv-contact { color: #e8eef8; }
.template-modern .cv-photo { border-radius: 3mm; border: 1mm solid #fff; box-shadow: 0 8px 18px #0005; }
.template-modern .cv-layout.two { grid-template-columns: 30% 1fr; gap: 9mm; }
.template-modern .cv-side { padding: 6mm 5mm 6mm 0; border-right: 1px solid #d7dfeb; }
.template-modern .cv-section h2 { border: 0; color: #172033; letter-spacing: .12em; }
.template-modern .cv-side .cv-section h2 { color: var(--cv-accent); }
.template-modern .cv-tag { border: 0; border-radius: 3px; background: color-mix(in srgb, var(--cv-accent) 12%, white); color: #172033; }

/* 03 — Minimal Air */
.template-minimal {
  padding: 20mm 22mm !important;
  color: #202124;
  background: #fff;
}
.template-minimal .cv-header { display: block; border: 0 !important; padding: 0 0 10mm; }
.template-minimal .cv-name { font-size: 37pt; font-weight: 300; letter-spacing: -0.05em; color: #111; }
.template-minimal .cv-title { color: #111; font-size: 10pt; text-transform: uppercase; letter-spacing: .18em; }
.template-minimal .cv-contact { margin-top: 5mm; padding-top: 3mm; border-top: 1px solid #111; }
.template-minimal .cv-layout { margin-top: 7mm; gap: 0; }
.template-minimal .cv-section { margin-bottom: 7mm; }
.template-minimal .cv-section h2 {
  color: #111 !important;
  border: 0 !important;
  font-size: 8.8pt;
  letter-spacing: .22em;
  margin-bottom: 3mm;
}
.template-minimal .cv-entry-head { font-weight: 650; }
.template-minimal .cv-tag { background: transparent; border: 1px solid #d5d5d5; border-radius: 0; padding: 2px 5px; }

/* 04 — ATS Standard */
.template-ats-standard {
  padding: 15mm 18mm !important;
  color: #111;
  background: #fff;
}
.template-ats-standard .cv-header { display: block; border-bottom: 2px solid #111 !important; padding-bottom: 5mm; }
.template-ats-standard .cv-name { font-size: 25pt; color: #111; letter-spacing: 0; }
.template-ats-standard .cv-title { color: #111; font-size: 11pt; }
.template-ats-standard .cv-contact { color: #222; gap: 2px 10px; }
.template-ats-standard .cv-section h2 { color: #111 !important; border-bottom: 1px solid #111 !important; letter-spacing: .08em; }
.template-ats-standard .cv-tag { background: transparent; border: 0; padding: 0; border-radius: 0; }
.template-ats-standard .cv-tag:not(:last-child)::after { content: ","; }

/* 05 — ATS Compact */
.template-ats-compact {
  padding: 11mm 14mm !important;
  color: #111;
  font-size: 9pt !important;
  line-height: 1.2 !important;
}
.template-ats-compact .cv-header { display: grid; grid-template-columns: 1fr auto; border: 0 !important; border-bottom: 1px solid #444 !important; padding-bottom: 3mm; }
.template-ats-compact .cv-name { font-size: 23pt; color: #111; }
.template-ats-compact .cv-title { color: #111; font-size: 9.5pt; }
.template-ats-compact .cv-contact { margin-top: 2mm; font-size: 7.7pt; }
.template-ats-compact .cv-layout { margin-top: 4mm; gap: 0; }
.template-ats-compact .cv-section { margin-bottom: 4mm; }
.template-ats-compact .cv-section h2 { color: #111 !important; font-size: 8.7pt; padding-bottom: 1.5px; margin-bottom: 3px; }
.template-ats-compact .cv-entry { margin-bottom: 3mm; }
.template-ats-compact .cv-entry p, .template-ats-compact .cv-bullets { margin: 1px 0; }
.template-ats-compact .cv-tag { padding: 1px 4px; border-radius: 0; font-size: 7.4pt; background: #f4f4f4; }

/* 06 — International Clear */
.template-no-photo {
  padding: 0 17mm 17mm !important;
  background: #fff;
  color: #1d2b2a;
}
.template-no-photo .cv-header {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  align-items: end;
  margin: 0 -17mm 10mm !important;
  padding: 12mm 17mm 9mm !important;
  background: #f2f7f6 !important;
  border: 0 !important;
  border-bottom: 2mm solid var(--cv-accent) !important;
}
.template-no-photo .cv-name { font-size: 31pt; color: #102a28; }
.template-no-photo .cv-title { color: var(--cv-accent); }
.template-no-photo .cv-contact { align-content: end; justify-content: flex-end; text-align: right; }
.template-no-photo .cv-layout.two { grid-template-columns: 27% 1fr; gap: 10mm; }
.template-no-photo .cv-side { padding-right: 5mm; border-right: 1px solid #cbdedb; }
.template-no-photo .cv-section h2 { border: 0; color: var(--cv-accent); letter-spacing: .14em; }
.template-no-photo .cv-tag { border-radius: 0; background: #edf6f4; border-color: #d2e8e4; }

/* 07 — Portrait Pro */
.template-with-photo {
  padding: 0 16mm 16mm !important;
  background: linear-gradient(90deg, var(--cv-accent) 0 34%, #fff 34%);
}
.template-with-photo .cv-header {
  display: grid;
  grid-template-columns: 42mm 1fr;
  margin: 0 -16mm 0 !important;
  padding: 12mm 16mm 11mm !important;
  background: #111827 !important;
  border: 0 !important;
}
.template-with-photo .cv-photo { width: 35mm; height: 35mm; border-radius: 50%; border: 1.4mm solid var(--cv-accent); }
.template-with-photo .cv-name { color: #fff; font-size: 32pt; }
.template-with-photo .cv-title { color: #c7d2fe; }
.template-with-photo .cv-contact { color: #e5e7eb; }
.template-with-photo .cv-layout.two { grid-template-columns: 34% 1fr; gap: 0; margin-top: 0; }
.template-with-photo .cv-side { margin-left: -16mm; padding: 10mm 8mm 12mm 16mm; color: #fff; }
.template-with-photo .cv-main { padding: 10mm 0 0 10mm; }
.template-with-photo .cv-side .cv-section h2 { color: #fff; border-color: #ffffff55; }
.template-with-photo .cv-main .cv-section h2 { color: #111827; border-color: var(--cv-accent); }
.template-with-photo .cv-tag { border: 0; background: #ffffff20; color: #fff; }
.template-with-photo .cv-main .cv-tag { background: color-mix(in srgb, var(--cv-accent) 10%, white); color: #111827; }

/* 08 — Campus Fresh */
.template-student {
  padding: 15mm 17mm !important;
  background: linear-gradient(180deg, #f2fbff 0 48mm, #fff 48mm);
  color: #183044;
}
.template-student .cv-header { border: 0 !important; border-bottom: 0 !important; padding: 3mm 4mm 8mm; position: relative; }
.template-student .cv-header::after { content: "01"; position: absolute; right: 0; top: -3mm; font-size: 42pt; font-weight: 900; color: color-mix(in srgb, var(--cv-accent) 14%, white); z-index: -1; }
.template-student .cv-name { font-size: 31pt; color: #102a43; }
.template-student .cv-title { display: inline-block; background: var(--cv-accent); color: #fff; border-radius: 999px; padding: 1.5mm 4mm; font-size: 9pt; }
.template-student .cv-section { padding: 4mm 5mm; border: 1px solid #d8e8f2; border-radius: 4mm; background: #fff; box-shadow: 0 4px 12px #0c4a6e0a; }
.template-student .cv-section h2 { border: 0; color: var(--cv-accent); }
.template-student .cv-tag { background: #e8f7ff; border: 0; }

/* 09 — First Step */
.template-no-experience {
  padding: 16mm 18mm !important;
  color: #2e2340;
  background: #fff;
}
.template-no-experience .cv-header { border: 0 !important; border-bottom: 0 !important; padding: 0 0 8mm; }
.template-no-experience .cv-name { font-size: 34pt; color: #2e2340; }
.template-no-experience .cv-title { color: #fff; background: var(--cv-accent); display: inline-block; padding: 2mm 4mm; transform: skew(-6deg); }
.template-no-experience .cv-contact { padding: 4mm; background: #f6f2ff; border-radius: 3mm; }
.template-no-experience .cv-section h2 { color: #2e2340; border: 0; display: flex; align-items: center; gap: 3mm; }
.template-no-experience .cv-section h2::before { content: ""; width: 9mm; height: 2mm; background: var(--cv-accent); }
.template-no-experience .cv-tag { border: 0; border-radius: 3mm; background: #f0eaff; color: #3f1f6d; }

/* 10 — Tech Stack */
.template-it {
  padding: 0 15mm 15mm !important;
  background: linear-gradient(90deg, #0b1220 0 31%, #f8fafc 31%);
  color: #172033;
}
.template-it .cv-header {
  margin: 0 -15mm 0 !important;
  padding: 11mm 15mm !important;
  background: #050b14 !important;
  border: 0 !important;
  color: #fff;
  font-family: Consolas, ui-monospace, monospace;
}
.template-it .cv-header::before { content: ">_"; color: var(--cv-accent); font-size: 25pt; font-weight: 900; }
.template-it .cv-name { color: #fff; font-family: Consolas, ui-monospace, monospace; font-size: 28pt; }
.template-it .cv-title { color: var(--cv-accent); font-family: Consolas, ui-monospace, monospace; }
.template-it .cv-contact { color: #cbd5e1; }
.template-it .cv-layout.two { grid-template-columns: 31% 1fr; gap: 0; margin-top: 0; }
.template-it .cv-side { margin-left: -15mm; padding: 9mm 7mm 12mm 15mm; color: #dbeafe; font-family: Consolas, ui-monospace, monospace; }
.template-it .cv-main { padding: 9mm 0 0 9mm; }
.template-it .cv-side .cv-section h2 { color: var(--cv-accent); border-color: #334155; }
.template-it .cv-main .cv-section h2 { color: #0f172a; border-bottom: 2px solid var(--cv-accent); }
.template-it .cv-tag { border-radius: 2px; border-color: #334155; background: #111827; color: #67e8f9; font-family: Consolas, monospace; }
.template-it .cv-main .cv-tag { background: #e0f2fe; color: #075985; border: 0; }

/* 11 — Sales Impact */
.template-sales {
  padding: 0 16mm 16mm !important;
  background: #fff;
  color: #291a12;
}
.template-sales .cv-header {
  margin: 0 -16mm 11mm !important;
  padding: 14mm 19mm !important;
  background: linear-gradient(115deg, var(--cv-accent) 0 68%, #291a12 68%) !important;
  border: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.template-sales .cv-name, .template-sales .cv-title, .template-sales .cv-contact { color: #fff; }
.template-sales .cv-name { font-size: 34pt; }
.template-sales .cv-title { text-transform: uppercase; letter-spacing: .12em; }
.template-sales .cv-photo { border-radius: 50%; border: 1.2mm solid #fff; }
.template-sales .cv-layout.two { grid-template-columns: 29% 1fr; gap: 9mm; }
.template-sales .cv-side { background: #fff3eb; padding: 6mm; border-radius: 2mm; }
.template-sales .cv-section h2 { border: 0; color: #5b2d16; }
.template-sales .cv-main .cv-entry-head { border-left: 2mm solid var(--cv-accent); padding-left: 3mm; }
.template-sales .cv-tag { border: 0; border-radius: 2mm; background: #ffeadb; color: #7c2d12; font-weight: 700; }

/* 12 — Leadership */
.template-manager {
  padding: 17mm 18mm !important;
  color: #1d2735;
  background: #fcfcfb;
}
.template-manager .cv-header { border: 0 !important; border-bottom: 1px solid #1e3a5f !important; padding-bottom: 8mm; align-items: flex-end; }
.template-manager .cv-name { font-family: Georgia, serif; font-size: 35pt; font-weight: 500; color: #1e3a5f; }
.template-manager .cv-title { color: #6b7280; letter-spacing: .16em; text-transform: uppercase; font-size: 9.5pt; }
.template-manager .cv-layout.two { grid-template-columns: 25% 1fr; gap: 11mm; }
.template-manager .cv-side { border-top: 5mm solid #1e3a5f; padding-top: 5mm; }
.template-manager .cv-section h2 { font-family: Georgia, serif; text-transform: none; letter-spacing: 0; color: #1e3a5f; border-color: #b9c2ce; }
.template-manager .cv-main .cv-entry { padding-bottom: 4mm; border-bottom: 1px solid #e1e5ea; }
.template-manager .cv-tag { background: transparent; border-color: #9aa6b5; border-radius: 0; }

/* 13 — Creative Pulse */
.template-creative {
  padding: 0 15mm 15mm 45mm !important;
  background: #fff;
  color: #24162a;
}
.template-creative::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 37mm; background: linear-gradient(180deg, var(--cv-accent), #7c3aed 62%, #111827); z-index: -1; }
.template-creative .cv-header { margin-left: -37mm !important; padding: 12mm 0 10mm 0 !important; background: transparent !important; border: 0 !important; display: grid; grid-template-columns: 32mm 1fr; }
.template-creative .cv-photo { width: 27mm; height: 35mm; border-radius: 50% 50% 10% 50% !important; border: 1.2mm solid #fff !important; }
.template-creative .cv-name { color: #1f1125 !important; font-size: 36pt; }
.template-creative .cv-title { color: var(--cv-accent) !important; font-size: 11pt; }
.template-creative .cv-contact { color: #475569 !important; }
.template-creative .cv-layout.two { grid-template-columns: 29% 1fr; gap: 9mm; }
.template-creative .cv-side { margin-left: -37mm; padding: 8mm 6mm 8mm 0; color: #fff; }
.template-creative .cv-side .cv-section h2 { color: #fff; border-color: #ffffff55; }
.template-creative .cv-main .cv-section h2 { border: 0; color: #24162a; font-size: 12pt; text-transform: none; letter-spacing: 0; }
.template-creative .cv-main .cv-section h2::after { content: ""; display: block; width: 14mm; height: 1.5mm; margin-top: 2mm; background: var(--cv-accent); }
.template-creative .cv-tag { border: 0; background: #ffffff22; color: #fff; }
.template-creative .cv-main .cv-tag { background: #f7e9f5; color: #831843; }

/* 14 — Burgundy Elegance */
.template-elegant {
  padding: 0 18mm 18mm !important;
  background: #fffaf4;
  color: #32221f;
}
.template-elegant .cv-header {
  margin: 0 -18mm 11mm !important;
  padding: 13mm 18mm !important;
  background: #6f1d2b !important;
  border: 0 !important;
  position: relative;
}
.template-elegant .cv-header::after { content: ""; position: absolute; left: 18mm; right: 18mm; bottom: 4mm; border-bottom: 1px solid #d8b478; }
.template-elegant .cv-name { color: #fff !important; font-family: Georgia, serif; font-size: 34pt; font-weight: 500; }
.template-elegant .cv-title { color: #f1d6a3 !important; font-family: Georgia, serif; font-style: italic; }
.template-elegant .cv-contact { color: #f8e9e2 !important; }
.template-elegant .cv-photo { border-radius: 0; border: 1mm solid #d8b478; }
.template-elegant .cv-layout.two { grid-template-columns: 30% 1fr; gap: 10mm; }
.template-elegant .cv-side { border-right: 1px solid #d8b478; padding-right: 6mm; }
.template-elegant .cv-section h2 { font-family: Georgia, serif; color: #6f1d2b !important; border: 0; border-bottom: 1px solid #d8b478; text-transform: none; letter-spacing: 0; }
.template-elegant .cv-tag { background: #f8ead8; border: 0; color: #6f1d2b; }

/* 15 — Linear One */
.template-one-column {
  padding: 16mm 18mm !important;
  color: #1f2937;
}
.template-one-column .cv-header { border: 0 !important; border-left: 3mm solid var(--cv-accent) !important; padding: 2mm 0 5mm 6mm; }
.template-one-column .cv-name { font-size: 31pt; color: #111827; }
.template-one-column .cv-title { color: var(--cv-accent); }
.template-one-column .cv-layout { margin-top: 9mm; }
.template-one-column .cv-section { display: grid; grid-template-columns: 34mm 1fr; column-gap: 7mm; align-items: start; }
.template-one-column .cv-section h2 { grid-column: 1; color: var(--cv-accent) !important; border: 0 !important; font-size: 8.5pt; letter-spacing: .16em; }
.template-one-column .cv-section > :not(h2) { grid-column: 2; }
.template-one-column .cv-section .cv-entry { grid-column: 2; }
.template-one-column .cv-tag { border-radius: 0; background: #f1f5f9; border: 0; }

/* 16 — Split Professional */
.template-two-column {
  padding: 0 16mm 16mm !important;
  background: linear-gradient(90deg, #eaf4f2 0 35%, #fff 35%);
}
.template-two-column .cv-header {
  margin: 0 -16mm 0 !important;
  padding: 12mm 16mm !important;
  background: var(--cv-accent) !important;
  border: 0 !important;
}
.template-two-column .cv-name, .template-two-column .cv-title, .template-two-column .cv-contact { color: #fff !important; }
.template-two-column .cv-photo { border-radius: 2mm; border: 1mm solid #fff; }
.template-two-column .cv-layout.two { grid-template-columns: 35% 1fr; gap: 0; margin-top: 0; }
.template-two-column .cv-side { margin-left: -16mm; padding: 9mm 8mm 10mm 16mm; }
.template-two-column .cv-main { padding: 9mm 0 0 10mm; }
.template-two-column .cv-side .cv-section h2 { border: 0; color: #174b43; }
.template-two-column .cv-main .cv-section h2 { border: 0; border-left: 2mm solid var(--cv-accent); padding-left: 3mm; color: #172033; }
.template-two-column .cv-tag { border: 0; background: #d6ebe7; color: #174b43; }

/* 17 — Nordic Calm */
.template-nordic {
  padding: 18mm 20mm !important;
  color: #263638;
  background: #fbfdfd;
}
.template-nordic .cv-header { border: 0 !important; border-left: 3mm solid var(--cv-accent) !important; padding: 0 0 5mm 7mm !important; align-items: flex-end; }
.template-nordic .cv-name { font-family: Georgia, serif; font-size: 35pt; font-weight: 500; color: #173c3a; }
.template-nordic .cv-title { color: #4d6f6b; font-weight: 500; }
.template-nordic .cv-contact { color: #607472; }
.template-nordic .cv-layout { margin-top: 10mm; }
.template-nordic .cv-section { margin-bottom: 8mm; }
.template-nordic .cv-section h2 { font-family: Georgia, serif; color: #173c3a; border: 0; text-transform: none; letter-spacing: 0; font-size: 12pt; }
.template-nordic .cv-section h2::after { content: ""; display: block; width: 9mm; border-bottom: 1px solid var(--cv-accent); margin-top: 2mm; }
.template-nordic .cv-tag { background: #eaf3f1; border: 0; color: #173c3a; }

/* 18 — Executive Gold */
.template-executive {
  padding: 0 17mm 17mm !important;
  background: linear-gradient(90deg, #172238 0 29%, #fff 29%);
  color: #202938;
}
.template-executive .cv-header {
  margin: 0 -17mm 0 !important;
  padding: 13mm 17mm 11mm 55mm !important;
  background: #172238 !important;
  border: 0 !important;
  position: relative;
}
.template-executive .cv-header::before { content: var(--cv-initials, "CV"); position: absolute; left: 17mm; top: 12mm; width: 28mm; height: 28mm; display: grid; place-items: center; border: 1px solid #b58a3a; color: #d8bd82; font: 20pt Georgia, serif; }
.template-executive .cv-name { font: 500 35pt Georgia, serif; color: #fff; }
.template-executive .cv-title { color: #d8bd82; letter-spacing: .16em; text-transform: uppercase; font-size: 9pt; }
.template-executive .cv-contact { color: #dce2ec; }
.template-executive .cv-layout.two { grid-template-columns: 29% 1fr; gap: 0; margin-top: 0; }
.template-executive .cv-side { margin-left: -17mm; padding: 10mm 7mm 12mm 17mm; color: #f4f6fa; }
.template-executive .cv-main { padding: 10mm 0 0 10mm; }
.template-executive .cv-side .cv-section h2 { color: #d8bd82; border-color: #ffffff30; font-family: Georgia, serif; }
.template-executive .cv-main .cv-section h2 { color: #172238; border: 0; border-bottom: 1px solid #b58a3a; font-family: Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-executive .cv-tag { border: 0; background: #ffffff15; color: #fff; border-radius: 0; }
.template-executive .cv-main .cv-tag { background: #f4ecd9; color: #604919; }

/* 19 — Career Timeline */
.template-timeline {
  padding: 0 17mm 17mm !important;
  background: #fffaf7;
  color: #3a2925;
}
.template-timeline .cv-header { margin: 0 -17mm 10mm !important; padding: 12mm 17mm !important; background: #fff0e9 !important; border: 0 !important; border-bottom: 2mm solid var(--cv-accent) !important; }
.template-timeline .cv-photo { border-radius: 50%; border: 1mm solid var(--cv-accent); }
.template-timeline .cv-name { color: #4a251d; font-size: 32pt; }
.template-timeline .cv-title { color: #8a3c2b; }
.template-timeline .cv-layout.two { grid-template-columns: 29% 1fr; gap: 10mm; }
.template-timeline .cv-side { background: #fff0e9; padding: 6mm; border-radius: 3mm; }
.template-timeline .cv-main .cv-entry { position: relative; padding-left: 7mm; }
.template-timeline .cv-main .cv-entry::before { content: ""; position: absolute; left: 0; top: 2mm; width: 3mm; height: 3mm; background: var(--cv-accent); border-radius: 50%; }
.template-timeline .cv-main .cv-entry::after { content: ""; position: absolute; left: 1.25mm; top: 5mm; bottom: -4mm; border-left: .6mm solid #e8b9aa; }
.template-timeline .cv-main .cv-entry:last-child::after { display: none; }
.template-timeline .cv-section h2 { border: 0; color: #7c2d1e; }
.template-timeline .cv-tag { background: #ffe3d8; border: 0; color: #7c2d1e; }

/* 20 — Editorial Story */
.template-editorial {
  padding: 14mm 17mm !important;
  color: #1f1d1a;
  background: #fffefa;
}
.template-editorial .cv-header { display: grid; grid-template-columns: 34mm 1fr; border-top: 1px solid #222 !important; border-bottom: 1px solid #222 !important; padding: 7mm 0 !important; }
.template-editorial .cv-photo { width: 28mm; height: 36mm; border-radius: 0; filter: grayscale(.15); }
.template-editorial .cv-name { font: 500 37pt Georgia, serif; letter-spacing: -.04em; color: #1f1d1a; }
.template-editorial .cv-title { font: italic 12pt Georgia, serif; color: #991b1b; }
.template-editorial .cv-contact { font-family: Georgia, serif; }
.template-editorial .cv-layout.two { grid-template-columns: 35% 1fr; gap: 10mm; }
.template-editorial .cv-side { border-top: 5mm solid #991b1b; padding-top: 5mm; }
.template-editorial .cv-section h2 { font: 500 13pt Georgia, serif; text-transform: none; letter-spacing: 0; color: #1f1d1a; border-color: #1f1d1a; }
.template-editorial .cv-main .cv-section:first-child p:first-letter { float: left; font: 36pt Georgia, serif; line-height: .75; padding-right: 2mm; color: #991b1b; }
.template-editorial .cv-tag { border-radius: 0; background: transparent; border-color: #aaa; }

/* 21 — Charcoal Studio */
.template-charcoal {
  padding: 0 16mm 16mm !important;
  background: linear-gradient(90deg, #252f3b 0 35%, #f8fafc 35%);
  color: #26313d;
}
.template-charcoal .cv-header { margin: 0 -16mm 0 !important; padding: 13mm 16mm !important; background: #111827 !important; border: 0 !important; }
.template-charcoal .cv-name, .template-charcoal .cv-title, .template-charcoal .cv-contact { color: #fff !important; }
.template-charcoal .cv-name { font-size: 34pt; }
.template-charcoal .cv-title { color: #e6c985 !important; }
.template-charcoal .cv-photo { border-radius: 0; border: 1mm solid #d7b86f; }
.template-charcoal .cv-layout.two { grid-template-columns: 35% 1fr; gap: 0; margin-top: 0; }
.template-charcoal .cv-side { margin-left: -16mm; padding: 9mm 8mm 12mm 16mm; color: #f4f6f8; }
.template-charcoal .cv-main { padding: 9mm 0 0 10mm; }
.template-charcoal .cv-side .cv-section h2 { color: #e6c985; border-color: #667180; }
.template-charcoal .cv-main .cv-section h2 { color: #8f6816; border-bottom: 2px solid #d7b86f; }
.template-charcoal .cv-tag { background: #3a4655; border: 0; color: #fff; border-radius: 2px; }
.template-charcoal .cv-main .cv-tag { background: #f5ecd9; color: #7c5a14; }

/* 22 — Sage Organic */
.template-sage {
  padding: 0 16mm 16mm !important;
  background: #fbfdfb;
  color: #2d3833;
}
.template-sage .cv-header { margin: 0 -16mm 10mm !important; padding: 12mm 16mm 9mm !important; background: #dfe9df !important; border: 0 !important; border-radius: 0 0 18mm 0; }
.template-sage .cv-photo { width: 31mm; height: 34mm; border-radius: 50% 50% 8% 50%; }
.template-sage .cv-name { font: 500 33pt Georgia, serif; color: #304b3e; }
.template-sage .cv-title { color: #506f60; }
.template-sage .cv-layout.two { grid-template-columns: 32% 1fr; gap: 8mm; }
.template-sage .cv-side { background: #eef4ed; border-radius: 5mm; padding: 6mm; }
.template-sage .cv-section h2 { border: 0; color: #456454; font: 500 12pt Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-sage .cv-tag { background: #dfe9df; border: 0; color: #304b3e; }

/* 23 — Cobalt Banner */
.template-cobalt {
  padding: 17mm 18mm !important;
  border-top: 6mm solid var(--cv-accent);
  color: #101f38;
}
.template-cobalt .cv-header { display: grid; grid-template-columns: 1fr auto; border: 0 !important; padding-bottom: 7mm; }
.template-cobalt .cv-name { font-size: 34pt; color: #101f38; }
.template-cobalt .cv-title { display: inline-block; color: #fff; background: var(--cv-accent); padding: 2mm 4mm; margin-top: 3mm; }
.template-cobalt .cv-contact { border-top: 1px solid #b9c7dc; padding-top: 3mm; }
.template-cobalt .cv-section h2 { border: 0; border-left: 2mm solid var(--cv-accent); padding-left: 3mm; color: #101f38; }
.template-cobalt .cv-entry-head { color: #142b52; }
.template-cobalt .cv-tag { border: 0; background: #eaf0ff; color: #173d88; border-radius: 2px; }

/* 24 — Compact Pro */
.template-compact-pro {
  padding: 10mm 12mm !important;
  font-size: 8.9pt !important;
  line-height: 1.18 !important;
  color: #1f2937;
}
.template-compact-pro .cv-header { padding: 4mm; border: 0 !important; background: #eef2f7; }
.template-compact-pro .cv-name { font-size: 24pt; }
.template-compact-pro .cv-title { font-size: 9pt; }
.template-compact-pro .cv-contact { font-size: 7.5pt; margin-top: 1mm; }
.template-compact-pro .cv-layout.two { grid-template-columns: 29% 1fr; gap: 5mm; margin-top: 4mm; }
.template-compact-pro .cv-side { background: #f1f5f9; padding: 4mm; }
.template-compact-pro .cv-section { margin-bottom: 5px; }
.template-compact-pro .cv-section h2 { font-size: 8.5pt; margin-bottom: 3px; padding-bottom: 1px; }
.template-compact-pro .cv-entry { margin-bottom: 3px; }
.template-compact-pro .cv-entry p, .template-compact-pro .cv-bullets { margin: 1px 0; }
.template-compact-pro .cv-tag { font-size: 7pt; padding: 1px 4px; border-radius: 1px; }

/* 25 — Monogram Counsel */
.template-monogram {
  padding: 17mm 19mm !important;
  color: #293246;
  background: #fff;
}
.template-monogram .cv-header { border: 0 !important; padding-left: 26mm !important; position: relative; min-height: 22mm; }
.template-monogram .cv-header::before { content: var(--cv-initials, "CV"); position: absolute; left: 0; top: 0; width: 20mm; height: 20mm; display: grid; place-items: center; background: var(--cv-accent); color: #fff; border-radius: 50%; font: 800 18pt Georgia, serif; }
.template-monogram .cv-name { font: 500 33pt Georgia, serif; color: #293246; }
.template-monogram .cv-title { color: var(--cv-accent); font-family: Georgia, serif; }
.template-monogram .cv-section h2 { font-family: Georgia, serif; color: #293246; border-color: var(--cv-accent); text-transform: none; letter-spacing: .02em; }
.template-monogram .cv-entry-head { font-family: Georgia, serif; }
.template-monogram .cv-tag { border-radius: 999px; background: transparent; border-color: #b7c0ce; }

/* 26 — Contour Line */
.template-contour {
  padding: 16mm 18mm 16mm 14mm !important;
  border-left: 8mm solid var(--cv-accent);
  color: #263247;
  background: #fff;
}
.template-contour::after { content: ""; position: absolute; right: -22mm; top: 42mm; width: 58mm; height: 58mm; border: 1.2mm solid color-mix(in srgb, var(--cv-accent) 38%, white); border-radius: 45% 55% 63% 37%; transform: rotate(28deg); pointer-events: none; z-index: -1; }
.template-contour .cv-header { border: 0 !important; padding-bottom: 8mm; }
.template-contour .cv-name { font-size: 36pt; color: #20283a; }
.template-contour .cv-title { color: var(--cv-accent); }
.template-contour .cv-layout.two { grid-template-columns: 31% 1fr; gap: 9mm; }
.template-contour .cv-side { border-right: 1px solid #d7deea; padding-right: 6mm; }
.template-contour .cv-section h2 { border: 0; color: var(--cv-accent); }
.template-contour .cv-tag { background: color-mix(in srgb, var(--cv-accent) 10%, white); border: 0; }

/* 27 — Triad Motion */
.template-triad {
  padding: 0 16mm 16mm !important;
  color: #173047;
}
.template-triad .cv-header { margin: 0 -16mm 11mm !important; padding: 13mm 16mm !important; border: 0 !important; background: linear-gradient(118deg, var(--cv-accent) 0 60%, #173f5f 60% 82%, #f3a712 82%) !important; }
.template-triad .cv-name, .template-triad .cv-title, .template-triad .cv-contact { color: #fff; }
.template-triad .cv-photo { border-radius: 2mm; border: 1mm solid #fff; }
.template-triad .cv-layout.two { grid-template-columns: 33% 1fr; gap: 8mm; }
.template-triad .cv-side { background: #f2f6fb; padding: 6mm; border-top: 3mm solid #f3a712; }
.template-triad .cv-section h2 { border: 0; color: #173f5f; }
.template-triad .cv-main .cv-section h2::after { content: ""; display: block; width: 16mm; height: 1.5mm; margin-top: 2mm; background: linear-gradient(90deg, var(--cv-accent) 0 55%, #f3a712 55%); }
.template-triad .cv-tag { border: 0; border-radius: 2px; background: #eaf0f7; }

/* 28 — Heritage Serif */
.template-heritage {
  padding: 18mm 20mm !important;
  color: #292720;
  background: #fdfcf8;
}
.template-heritage .cv-header { display: block; text-align: center; border-top: 1px solid #817458 !important; border-bottom: 3px double #817458 !important; padding: 7mm 0 !important; }
.template-heritage .cv-name { font: 500 32pt Georgia, serif; letter-spacing: .04em; color: #292720; }
.template-heritage .cv-title { color: #6c5c3e; text-transform: uppercase; letter-spacing: .18em; font-size: 9.5pt; }
.template-heritage .cv-contact { justify-content: center; }
.template-heritage .cv-section h2 { font: 500 12pt Georgia, serif; text-transform: none; letter-spacing: .02em; color: #5f5037; border-color: #c9bea9; }
.template-heritage .cv-entry-head { font-family: Georgia, serif; }
.template-heritage .cv-tag { border-radius: 0; background: #f5f1e8; border-color: #d8cfbf; }

/* 29 — Spotlight Portrait */
.template-spotlight {
  padding: 0 16mm 16mm !important;
  color: #1d2a40;
}
.template-spotlight .cv-header { margin: 0 -16mm 13mm !important; padding: 12mm 16mm 14mm 56mm !important; min-height: 50mm; border: 0 !important; background: linear-gradient(120deg, #edf2fa 0 78%, var(--cv-accent) 78%) !important; position: relative; }
.template-spotlight .cv-photo { position: absolute; left: 16mm; bottom: -8mm; width: 32mm; height: 41mm; border-radius: 2mm; box-shadow: 0 8px 20px rgba(24,40,72,.22); border: .8mm solid #fff; }
.template-spotlight .cv-name { font-size: 35pt; color: #10203a; }
.template-spotlight .cv-title { display: inline-block; background: var(--cv-accent); color: #fff; padding: 1.5mm 3mm; }
.template-spotlight.no-photo-content .cv-header { padding-left: 16mm !important; }
.template-spotlight .cv-layout.two { grid-template-columns: 31% 1fr; gap: 9mm; }
.template-spotlight .cv-side { padding-top: 6mm; }
.template-spotlight .cv-section h2 { border: 0; color: #10203a; }
.template-spotlight .cv-main .cv-section h2 { border-bottom: 2px solid var(--cv-accent); }
.template-spotlight .cv-tag { background: #edf2fa; border: 0; }

/* 30 — Geometric Frame */
.template-geometric {
  padding: 19mm 17mm 16mm !important;
  background: linear-gradient(135deg, var(--cv-accent) 0 21mm, transparent 21mm) top left / 40mm 40mm no-repeat, linear-gradient(315deg, color-mix(in srgb, var(--cv-accent) 48%, white) 0 17mm, transparent 17mm) bottom right / 36mm 36mm no-repeat, #fff;
  color: #1f2a3d;
}
.template-geometric .cv-header { border: 0 !important; padding: 6mm; background: #f1f5fb; }
.template-geometric .cv-photo { clip-path: polygon(50% 0,100% 22%,92% 82%,50% 100%,8% 82%,0 22%); border-radius: 0; }
.template-geometric .cv-name { font-size: 33pt; }
.template-geometric .cv-layout.two { grid-template-columns: 34% 1fr; gap: 7mm; }
.template-geometric .cv-side { background: color-mix(in srgb, var(--cv-accent) 9%, white); padding: 6mm; }
.template-geometric .cv-section h2 { border: 0; border-bottom: 2px solid var(--cv-accent); }
.template-geometric .cv-tag { border-radius: 2px; border: 0; background: color-mix(in srgb, var(--cv-accent) 11%, white); }

/* 31 — Luxe Noir */
.template-luxe {
  padding: 0 16mm 16mm !important;
  background: linear-gradient(90deg, #101010 0 36%, #fbfaf7 36%);
  color: #26231f;
}
.template-luxe .cv-header { margin: 0 -16mm 0 !important; padding: 14mm 16mm !important; background: #101010 !important; border: 0 !important; border-bottom: 1mm solid #c7a66a !important; }
.template-luxe .cv-name { font: 500 36pt Georgia, serif; color: #fff; }
.template-luxe .cv-title { color: #c7a66a; font: italic 12pt Georgia, serif; }
.template-luxe .cv-contact { color: #d6d3d1; }
.template-luxe .cv-photo { border-radius: 0; border: 1mm solid #c7a66a; filter: saturate(.8); }
.template-luxe .cv-layout.two { grid-template-columns: 36% 1fr; gap: 0; margin-top: 0; }
.template-luxe .cv-side { margin-left: -16mm; padding: 10mm 8mm 12mm 16mm; color: #f5f5f4; }
.template-luxe .cv-main { padding: 10mm 0 0 10mm; }
.template-luxe .cv-side .cv-section h2 { color: #c7a66a; border-color: #ffffff28; font-family: Georgia, serif; }
.template-luxe .cv-main .cv-section h2 { color: #1c1917; border: 0; border-bottom: 1px solid #c7a66a; font: 500 12pt Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-luxe .cv-tag { background: #ffffff14; border: 1px solid #c7a66a66; color: #fff; border-radius: 0; }
.template-luxe .cv-main .cv-tag { background: #f2eadc; border: 0; color: #6b4f20; }

/* 32 — Swiss Grid */
.template-swiss {
  padding: 15mm 17mm !important;
  color: #111;
  background: linear-gradient(90deg, transparent 0 23%, #ececec 23% 23.4%, transparent 23.4% 100%), #fff;
}
.template-swiss .cv-header { display: block; border: 0 !important; border-top: 4mm solid var(--cv-accent) !important; padding-top: 6mm; }
.template-swiss .cv-name { font: 900 40pt Arial, sans-serif; color: #111; letter-spacing: -.07em; max-width: 145mm; }
.template-swiss .cv-title { color: var(--cv-accent); text-transform: uppercase; letter-spacing: .16em; font-size: 9pt; }
.template-swiss .cv-contact { font-size: 8pt; color: #111; }
.template-swiss .cv-section { display: grid; grid-template-columns: 38mm 1fr; gap: 7mm; }
.template-swiss .cv-section h2 { border: 0; color: #111; font-size: 8.5pt; letter-spacing: .14em; }
.template-swiss .cv-section h2::before { content: "■"; color: var(--cv-accent); margin-right: 2mm; }
.template-swiss .cv-section > :not(h2) { grid-column: 2; }
.template-swiss .cv-section .cv-entry { grid-column: 2; }
.template-swiss .cv-tag { background: #111; color: #fff; border: 0; border-radius: 0; }

/* 33 — Diplomat Navy */
.template-diplomat {
  padding: 0 18mm 18mm !important;
  background: linear-gradient(90deg, #f1eee7 0 27%, #fff 27%);
  color: #263445;
}
.template-diplomat .cv-header { margin: 0 -18mm 0 !important; padding: 13mm 18mm !important; background: #1e3a5f !important; border: 0 !important; border-bottom: 1mm solid #bca66a !important; }
.template-diplomat .cv-name { font: 500 34pt Georgia, serif; color: #fff; }
.template-diplomat .cv-title { color: #e8d9ab; font-family: Georgia, serif; }
.template-diplomat .cv-contact { color: #e4eaf2; }
.template-diplomat .cv-layout.two { grid-template-columns: 27% 1fr; gap: 0; margin-top: 0; }
.template-diplomat .cv-side { margin-left: -18mm; padding: 10mm 7mm 12mm 18mm; color: #29394b; }
.template-diplomat .cv-main { padding: 10mm 0 0 10mm; }
.template-diplomat .cv-side .cv-section h2 { font: 500 10pt Georgia, serif; color: #1e3a5f; border-color: #bca66a; }
.template-diplomat .cv-main .cv-section h2 { font: 500 12.5pt Georgia, serif; text-transform: none; letter-spacing: 0; color: #1e3a5f; border-color: #bca66a; }
.template-diplomat .cv-tag { border-radius: 0; background: #e6e1d7; border: 0; }

/* 34 — Studio Blocks */
.template-studio {
  padding: 0 15mm 15mm !important;
  background: #fff;
  color: #24162f;
}
.template-studio::before { content: ""; position: absolute; right: 0; top: 0; width: 33mm; height: 75mm; background: linear-gradient(180deg, #fbbf24 0 33%, var(--cv-accent) 33% 66%, #111827 66%); z-index: -1; }
.template-studio .cv-header { margin: 0 -15mm 12mm !important; padding: 15mm 48mm 12mm 15mm !important; background: #f8f5ff !important; border: 0 !important; }
.template-studio .cv-photo { border-radius: 0; transform: rotate(-3deg); box-shadow: 7px 7px 0 var(--cv-accent); }
.template-studio .cv-name { font-size: 38pt; letter-spacing: -.06em; color: #1b1022; }
.template-studio .cv-title { display: inline; color: #fff; background: #111827; box-shadow: 7px 0 0 #111827, -7px 0 0 #111827; line-height: 1.65; }
.template-studio .cv-layout.two { grid-template-columns: 33% 1fr; gap: 9mm; }
.template-studio .cv-side { padding: 6mm; background: #f8f5ff; }
.template-studio .cv-section h2 { border: 0; color: #1b1022; font-size: 12pt; text-transform: none; letter-spacing: 0; }
.template-studio .cv-section h2::after { content: ""; display: block; width: 12mm; height: 2mm; margin-top: 2mm; background: var(--cv-accent); }
.template-studio .cv-tag { border: 0; border-radius: 0; background: #efe7ff; color: #4c1d95; }

/* 35 — Blueprint Tech */
.template-blueprint {
  padding: 0 14mm 14mm !important;
  background: linear-gradient(#0c4a6e12 1px, transparent 1px), linear-gradient(90deg,#0c4a6e12 1px,transparent 1px), #f7fcff;
  background-size: 8mm 8mm;
  color: #0c3a55;
  font-family: Consolas, ui-monospace, monospace !important;
}
.template-blueprint .cv-header { margin: 0 -14mm 0 !important; padding: 11mm 14mm !important; background: #063b5c !important; border: 0 !important; border-bottom: 1.2mm solid var(--cv-accent) !important; }
.template-blueprint .cv-header::before { content: "CV / 01"; align-self: flex-start; color: #7dd3fc; font-size: 8pt; letter-spacing: .12em; }
.template-blueprint .cv-name { color: #fff; font: 700 28pt Consolas, monospace; }
.template-blueprint .cv-title { color: #7dd3fc; font-family: Consolas, monospace; }
.template-blueprint .cv-contact { color: #d8f3ff; font-size: 7.8pt; }
.template-blueprint .cv-layout.two { grid-template-columns: 31% 1fr; gap: 7mm; }
.template-blueprint .cv-side { background: #e5f6ffdd; padding: 5mm; border: 1px solid #8ed8f6; }
.template-blueprint .cv-section h2 { font-family: Consolas, monospace; color: #075985; border: 0; border-bottom: 1px dashed #38bdf8; }
.template-blueprint .cv-entry { border-left: 2px solid #38bdf8; padding-left: 3mm; }
.template-blueprint .cv-tag { border-radius: 0; border: 1px solid #38bdf8; background: #e0f2fe; color: #075985; }

/* 36 — Aurora Glass */
.template-aurora {
  padding: 0 16mm 16mm !important;
  background: radial-gradient(circle at 85% 8%, #a5f3fc80 0 32mm, transparent 33mm), radial-gradient(circle at 12% 38%, #ddd6fe80 0 35mm, transparent 36mm), #f8fafc;
  color: #172033;
}
.template-aurora .cv-header { margin: 0 -16mm 11mm !important; padding: 14mm 16mm !important; background: linear-gradient(125deg, #312e81 0, var(--cv-accent) 48%, #0891b2 100%) !important; border: 0 !important; border-radius: 0 0 12mm 0; }
.template-aurora .cv-name, .template-aurora .cv-title, .template-aurora .cv-contact { color: #fff; }
.template-aurora .cv-name { font-size: 36pt; letter-spacing: -.05em; }
.template-aurora .cv-photo { border-radius: 50%; border: 1mm solid #ffffffaa; box-shadow: 0 10px 25px #1e1b4b66; }
.template-aurora .cv-layout.two { grid-template-columns: 32% 1fr; gap: 8mm; }
.template-aurora .cv-side { padding: 6mm; background: #ffffffaa; backdrop-filter: blur(8px); border: 1px solid #fff; border-radius: 4mm; box-shadow: 0 6px 18px #312e8112; }
.template-aurora .cv-section h2 { border: 0; color: #312e81; }
.template-aurora .cv-main .cv-section h2 { border-bottom: 2px solid color-mix(in srgb, var(--cv-accent) 55%, white); }
.template-aurora .cv-tag { border: 0; background: #ede9fe; color: #4c1d95; }

/* Premium miniatures: use each template's own default accent and layout. */
.cv-miniature { --cv-accent: #174ea6; }
.cv-miniature.template-classic,
.cv-miniature.template-heritage { background: #fffdf8; font-family: Georgia, serif; }
.cv-miniature.template-classic .mini-cv-head,
.cv-miniature.template-heritage .mini-cv-head { display: block; text-align: center; border-top: 1px solid #7a5c2e; border-bottom: 2px double #7a5c2e; }
.cv-miniature.template-modern { background: linear-gradient(90deg, color-mix(in srgb,var(--cv-accent) 8%,white) 0 31%,#fff 31%); }
.cv-miniature.template-modern .mini-cv-head { background: linear-gradient(118deg,#101827 0 72%,var(--cv-accent) 72%); }
.cv-miniature.template-minimal .mini-cv-head { display:block; border-bottom:1px solid #111; padding-bottom:8px; }
.cv-miniature.template-minimal .mini-cv-head strong { font-weight:300; font-size:1.45em; }
.cv-miniature.template-ats-standard .mini-cv-head { display:block; border-bottom:2px solid #111; }
.cv-miniature.template-ats-standard .mini-cv-side,
.cv-miniature.template-ats-compact .mini-cv-side { display:none; }
.cv-miniature.template-ats-compact .mini-cv-columns { gap:2px; }
.cv-miniature.template-ats-compact .mini-cv-main { gap:2px; }
.cv-miniature.template-no-photo .mini-cv-head { margin:-8px -8px 6px; padding:8px; background:#f2f7f6; border-bottom:3px solid var(--cv-accent); }
.cv-miniature.template-with-photo { background:linear-gradient(90deg,var(--cv-accent) 0 34%,#fff 34%); }
.cv-miniature.template-with-photo .mini-cv-head { background:#111827; }
.cv-miniature.template-with-photo .mini-cv-side { background:transparent; color:#fff; }
.cv-miniature.template-student { background:linear-gradient(180deg,#f2fbff 0 28%,#fff 28%); }
.cv-miniature.template-student .mini-cv-main > b { border:0; background:#fff; box-shadow:0 0 0 1px #d8e8f2; padding:2px; border-radius:2px; }
.cv-miniature.template-no-experience .mini-cv-head em { background:var(--cv-accent); color:#fff; padding:1px 3px; }
.cv-miniature.template-it { background:linear-gradient(90deg,#0b1220 0 31%,#f8fafc 31%); font-family:Consolas,monospace; }
.cv-miniature.template-it .mini-cv-head { background:#050b14; }
.cv-miniature.template-it .mini-cv-side { background:transparent; color:#dbeafe; }
.cv-miniature.template-it .mini-cv-main b { font-family:Consolas,monospace; }
.cv-miniature.template-sales .mini-cv-head { background:linear-gradient(115deg,var(--cv-accent) 0 68%,#291a12 68%); clip-path:polygon(0 0,100% 0,100% 82%,0 100%); padding-bottom:12px; }
.cv-miniature.template-sales .mini-cv-side { background:#fff3eb; }
.cv-miniature.template-manager .mini-cv-head { background:#fff; border-bottom:1px solid #1e3a5f; }
.cv-miniature.template-manager .mini-cv-head * { color:#1e3a5f !important; }
.cv-miniature.template-manager .mini-cv-side { border-top:5px solid #1e3a5f; background:#fff; }
.cv-miniature.template-creative { background:linear-gradient(90deg,var(--cv-accent) 0 34%,#fff 34%); }
.cv-miniature.template-creative .mini-cv-head { background:#fff; margin:0; padding:0 0 6px; }
.cv-miniature.template-creative .mini-cv-head * { color:#24162a !important; }
.cv-miniature.template-creative .mini-cv-side { background:transparent; color:#fff; }
.cv-miniature.template-elegant { background:#fffaf4; font-family:Georgia,serif; }
.cv-miniature.template-elegant .mini-cv-head { background:#6f1d2b; }
.cv-miniature.template-one-column .mini-cv-head { border-left:4px solid var(--cv-accent); border-bottom:0; padding-left:6px; }
.cv-miniature.template-one-column .mini-cv-main { display:grid; grid-template-columns:26% 1fr; }
.cv-miniature.template-two-column { background:linear-gradient(90deg,#eaf4f2 0 35%,#fff 35%); }
.cv-miniature.template-two-column .mini-cv-head { background:var(--cv-accent); }
.cv-miniature.template-two-column .mini-cv-side { background:transparent; }
.cv-miniature.template-nordic .mini-cv-head { border-left:4px solid var(--cv-accent); border-bottom:0; background:transparent; }
.cv-miniature.template-executive { background:linear-gradient(90deg,#172238 0 29%,#fff 29%); }
.cv-miniature.template-executive .mini-cv-head { background:#172238; border-color:#b58a3a; }
.cv-miniature.template-executive .mini-cv-side { background:transparent; color:#fff; }
.cv-miniature.template-timeline { background:#fffaf7; }
.cv-miniature.template-timeline .mini-cv-head { background:#fff0e9; border-bottom:3px solid var(--cv-accent); }
.cv-miniature.template-timeline .mini-cv-main p { border-left:2px solid #e8b9aa; padding-left:3px; }
.cv-miniature.template-editorial { font-family:Georgia,serif; background:#fffefa; }
.cv-miniature.template-editorial .mini-cv-head { background:transparent; border-top:1px solid #222; border-bottom:1px solid #222; }
.cv-miniature.template-charcoal { background:linear-gradient(90deg,#252f3b 0 35%,#f8fafc 35%); }
.cv-miniature.template-charcoal .mini-cv-head { background:#111827; }
.cv-miniature.template-charcoal .mini-cv-side { background:transparent; color:#fff; }
.cv-miniature.template-sage { background:#fbfdfb; }
.cv-miniature.template-sage .mini-cv-head { background:#dfe9df; border-radius:0 0 14px 0; }
.cv-miniature.template-sage .mini-cv-side { background:#eef4ed; border-radius:4px; }
.cv-miniature.template-cobalt { border-top:5px solid var(--cv-accent); }
.cv-miniature.template-cobalt .mini-cv-head em { background:var(--cv-accent); color:#fff; padding:1px 3px; }
.cv-miniature.template-compact-pro { padding:5px; }
.cv-miniature.template-compact-pro .mini-cv-head { background:#eef2f7; padding:5px; }
.cv-miniature.template-compact-pro .mini-cv-main { gap:1px; }
.cv-miniature.template-monogram .mini-cv-head { padding-left:22px; position:relative; }
.cv-miniature.template-monogram .mini-cv-head::before { content:"AK"; position:absolute; left:0; width:18px; height:18px; display:grid; place-items:center; border-radius:50%; background:var(--cv-accent); color:#fff; font-weight:800; }
.cv-miniature.template-contour { border-left:5px solid var(--cv-accent); }
.cv-miniature.template-contour .mini-cv-head { border-left:0; }
.cv-miniature.template-triad .mini-cv-head { background:linear-gradient(118deg,var(--cv-accent) 0 60%,#173f5f 60% 82%,#f3a712 82%); }
.cv-miniature.template-spotlight .mini-cv-head { background:linear-gradient(120deg,#edf2fa 0 78%,var(--cv-accent) 78%); padding-left:18px; }
.cv-miniature.template-geometric { background:linear-gradient(135deg,var(--cv-accent) 0 18px,transparent 18px),#fff; padding-top:14px; }
.cv-miniature.template-luxe { background:linear-gradient(90deg,#101010 0 36%,#fbfaf7 36%); font-family:Georgia,serif; }
.cv-miniature.template-luxe .mini-cv-head { background:#101010; border-bottom:2px solid #c7a66a; }
.cv-miniature.template-luxe .mini-cv-side { background:transparent; color:#fff; }
.cv-miniature.template-swiss { background:linear-gradient(90deg,transparent 0 23%,#ececec 23% 24%,transparent 24%),#fff; }
.cv-miniature.template-swiss .mini-cv-head { display:block; border-top:5px solid var(--cv-accent); border-bottom:0; }
.cv-miniature.template-swiss .mini-cv-head strong { font-weight:900; font-size:1.5em; }
.cv-miniature.template-diplomat { background:linear-gradient(90deg,#f1eee7 0 27%,#fff 27%); font-family:Georgia,serif; }
.cv-miniature.template-diplomat .mini-cv-head { background:#1e3a5f; border-bottom:2px solid #bca66a; }
.cv-miniature.template-diplomat .mini-cv-side { background:transparent; }
.cv-miniature.template-studio { background:linear-gradient(90deg,#fff 0 72%,#fbbf24 72% 82%,var(--cv-accent) 82% 91%,#111827 91%); }
.cv-miniature.template-studio .mini-cv-head { background:#f8f5ff; margin:-8px -8px 6px; padding:8px 24px 8px 8px; }
.cv-miniature.template-studio .mini-cv-head * { color:#1b1022 !important; }
.cv-miniature.template-studio .mini-cv-side { background:#f8f5ff; }
.cv-miniature.template-blueprint { background:linear-gradient(#0c4a6e16 1px,transparent 1px),linear-gradient(90deg,#0c4a6e16 1px,transparent 1px),#f7fcff; background-size:9px 9px; font-family:Consolas,monospace; }
.cv-miniature.template-blueprint .mini-cv-head { background:#063b5c; border-bottom:2px solid var(--cv-accent); }
.cv-miniature.template-blueprint .mini-cv-side { background:#e5f6ffdd; border:1px solid #8ed8f6; }
.cv-miniature.template-aurora { background:radial-gradient(circle at 85% 8%,#a5f3fc80 0 20px,transparent 21px),radial-gradient(circle at 12% 38%,#ddd6fe80 0 22px,transparent 23px),#f8fafc; }
.cv-miniature.template-aurora .mini-cv-head { background:linear-gradient(125deg,#312e81,var(--cv-accent),#0891b2); border-radius:0 0 12px 0; }
.cv-miniature.template-aurora .mini-cv-side { background:#ffffffb8; border:1px solid #fff; border-radius:4px; }

/* Gallery cards expose the different palettes immediately. */
.template-card-rich {
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent, #174ea6) 4%, white), #fff 46%);
}
.template-card-rich:has(.template-modern) { --card-accent:#2563eb; }
.template-card-rich:has(.template-elegant) { --card-accent:#7f1d1d; }
.template-card-rich:has(.template-sage) { --card-accent:#4f6f60; }
.template-card-rich:has(.template-luxe) { --card-accent:#c7a66a; }
.template-card-rich:has(.template-studio) { --card-accent:#7c3aed; }
.template-card-rich:has(.template-blueprint) { --card-accent:#0284c7; }
.template-card-rich:has(.template-aurora) { --card-accent:#4f46e5; }

@media print {
  .template-classic,.template-modern,.template-minimal,.template-ats-standard,.template-ats-compact,
  .template-no-photo,.template-with-photo,.template-student,.template-no-experience,.template-it,
  .template-sales,.template-manager,.template-creative,.template-elegant,.template-one-column,
  .template-two-column,.template-nordic,.template-executive,.template-timeline,.template-editorial,
  .template-charcoal,.template-sage,.template-cobalt,.template-compact-pro,.template-monogram,
  .template-contour,.template-triad,.template-heritage,.template-spotlight,.template-geometric,
  .template-luxe,.template-swiss,.template-diplomat,.template-studio,.template-blueprint,.template-aurora {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* =========================================================
   CV.podziel.pl 3.3.0 — PROFESSIONAL TEMPLATE SYSTEM
   Twelve new role-specific layouts plus gallery/recommender UI.
   ========================================================= */

/* 37 — Harvard Pro */
.template-harvard {
  padding: 15mm 18mm !important;
  color: #181818;
  background: #fff;
  font-family: Georgia, serif !important;
}
.template-harvard .cv-header {
  display: block;
  text-align: center;
  padding: 0 0 5mm !important;
  border: 0 !important;
  border-bottom: 0.8mm solid #1a1a1a !important;
}
.template-harvard .cv-name { font: 700 29pt Georgia, serif; letter-spacing: .015em; color: #111; }
.template-harvard .cv-title { color: var(--cv-accent); font: 700 10pt Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.template-harvard .cv-contact { justify-content: center; color: #333; font-size: 8.2pt; }
.template-harvard .cv-layout { margin-top: 6mm; }
.template-harvard .cv-section { margin-bottom: 9px; }
.template-harvard .cv-section h2 {
  margin-bottom: 4px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid #222;
  color: #111;
  font: 700 9.2pt Georgia, serif;
  letter-spacing: .11em;
}
.template-harvard .cv-entry-head { font-family: Georgia, serif; }
.template-harvard .cv-entry-sub { color: #333; }
.template-harvard .cv-date { color: #333; font-style: italic; }
.template-harvard .cv-tag { padding: 1px 0; border: 0; border-radius: 0; background: transparent; }

/* 38 — Ivy League Modern */
.template-ivy {
  padding: 16mm 18mm !important;
  color: #1f2a26;
  background: linear-gradient(90deg, #eef4f1 0 8mm, #fff 8mm);
  font-family: Georgia, serif !important;
}
.template-ivy .cv-header { border: 0 !important; border-left: 2.5mm solid var(--cv-accent) !important; padding: 2mm 0 6mm 7mm !important; }
.template-ivy .cv-name { font: 600 32pt Georgia, serif; color: #17372f; letter-spacing: -.025em; }
.template-ivy .cv-title { color: var(--cv-accent); font: italic 11pt Georgia, serif; }
.template-ivy .cv-contact { color: #40544d; font-size: 8pt; }
.template-ivy .cv-section { display: grid; grid-template-columns: 35mm 1fr; gap: 6mm; margin-bottom: 11px; }
.template-ivy .cv-section h2 { border: 0; color: #17372f; font: 700 8.7pt Georgia, serif; letter-spacing: .08em; }
.template-ivy .cv-section > :not(h2) { grid-column: 2; }
.template-ivy .cv-section .cv-entry { grid-column: 2; }
.template-ivy .cv-tag { background: #eef4f1; color: #244b40; border: 0; border-radius: 2px; }

/* 39 — Legal Brief */
.template-legal-brief {
  padding: 17mm 19mm !important;
  color: #292522;
  background: #fffdfa;
  font-family: Georgia, serif !important;
  counter-reset: legal-section;
}
.template-legal-brief .cv-header { display: block; padding: 0 0 7mm !important; border: 0 !important; border-top: 2.2mm solid var(--cv-accent) !important; border-bottom: 1px solid #9d928b !important; }
.template-legal-brief .cv-name { font: 500 33pt Georgia, serif; color: #241f1d; }
.template-legal-brief .cv-title { color: var(--cv-accent); text-transform: uppercase; letter-spacing: .13em; font-size: 9pt; }
.template-legal-brief .cv-contact { color: #5a504b; font-size: 8pt; }
.template-legal-brief .cv-section { counter-increment: legal-section; position: relative; padding-left: 13mm; }
.template-legal-brief .cv-section h2 { border: 0; border-bottom: 1px solid #b9afa8; color: #241f1d; font: 600 11.5pt Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-legal-brief .cv-section h2::before { content: counter(legal-section, upper-roman) "."; position: absolute; left: 0; color: var(--cv-accent); font-size: 9pt; font-weight: 700; }
.template-legal-brief .cv-date { font-style: italic; }
.template-legal-brief .cv-tag { border-radius: 0; background: #f3efeb; border-color: #d7cec7; color: #453c37; }

/* 40 — Finance Ledger */
.template-finance-ledger {
  padding: 0 16mm 16mm !important;
  color: #1f2e30;
  background: linear-gradient(90deg, #fff 0 71%, #edf4f2 71%);
}
.template-finance-ledger .cv-header { margin: 0 -16mm 0 !important; padding: 12mm 16mm 9mm !important; border: 0 !important; border-top: 3mm solid var(--cv-accent) !important; border-bottom: 1px solid #9fb5b2 !important; background: #fff !important; }
.template-finance-ledger .cv-name { font-size: 31pt; color: #123d40; }
.template-finance-ledger .cv-title { color: var(--cv-accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 9pt; }
.template-finance-ledger .cv-layout.two { grid-template-columns: 1fr 29%; gap: 0; margin-top: 0; }
.template-finance-ledger .cv-main { grid-column: 1; grid-row: 1; padding: 9mm 9mm 0 0; }
.template-finance-ledger .cv-side { grid-column: 2; grid-row: 1; margin-right: -16mm; padding: 9mm 16mm 0 7mm; border-left: 1px solid #a8bbb8; }
.template-finance-ledger .cv-section h2 { border: 0; border-bottom: 1px solid #9fb5b2; color: #123d40; font-size: 9.4pt; }
.template-finance-ledger .cv-entry-head { border-bottom: 1px dotted #aab8b6; padding-bottom: 2px; }
.template-finance-ledger .cv-date { color: #174c4f; font-variant-numeric: tabular-nums; }
.template-finance-ledger .cv-tag { display: block; border: 0; border-bottom: 1px solid #d0dcda; border-radius: 0; background: transparent; padding: 3px 0; }

/* 41 — Consulting Matrix */
.template-consulting-matrix {
  padding: 0 17mm 17mm !important;
  color: #1f2937;
  background: #fff;
}
.template-consulting-matrix .cv-header { margin: 0 -17mm 10mm !important; padding: 12mm 17mm !important; border: 0 !important; background: linear-gradient(108deg, #111827 0 72%, var(--cv-accent) 72%) !important; }
.template-consulting-matrix .cv-name, .template-consulting-matrix .cv-title, .template-consulting-matrix .cv-contact { color: #fff; }
.template-consulting-matrix .cv-name { font-size: 34pt; letter-spacing: -.045em; }
.template-consulting-matrix .cv-title { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 9.2pt; }
.template-consulting-matrix .cv-layout.two { grid-template-columns: 27% 1fr; gap: 8mm; }
.template-consulting-matrix .cv-side { border: 1px solid #cfd7e6; padding: 5mm; background: #f7f9fc; }
.template-consulting-matrix .cv-section h2 { border: 0; color: #17233c; font-size: 9.3pt; letter-spacing: .11em; }
.template-consulting-matrix .cv-main .cv-section h2 { display: inline-block; background: var(--cv-accent); color: #fff; padding: 2mm 3mm; }
.template-consulting-matrix .cv-entry { padding: 3mm 0 3mm 4mm; border-left: 1.5mm solid #dce4f0; }
.template-consulting-matrix .cv-tag { border-radius: 2px; background: #eaf0fb; border: 0; color: #243b6b; }

/* 42 — Clinical Clear */
.template-clinical {
  padding: 0 16mm 16mm !important;
  color: #24383b;
  background: linear-gradient(90deg, #edf7f8 0 32%, #fff 32%);
}
.template-clinical .cv-header { margin: 0 -16mm 0 !important; padding: 12mm 16mm !important; border: 0 !important; border-bottom: 1mm solid #65aeb5 !important; background: #fff !important; }
.template-clinical .cv-name { font-size: 32pt; color: #164f57; }
.template-clinical .cv-title { color: var(--cv-accent); font-weight: 750; }
.template-clinical .cv-layout.two { grid-template-columns: 32% 1fr; gap: 0; margin-top: 0; }
.template-clinical .cv-side { margin-left: -16mm; padding: 9mm 7mm 0 16mm; }
.template-clinical .cv-main { padding: 9mm 0 0 9mm; }
.template-clinical .cv-section h2 { border: 0; color: #164f57; font-size: 9.5pt; }
.template-clinical .cv-main .cv-section h2 { border-bottom: 1px solid #b9d5d8; }
.template-clinical .cv-tag { background: #dff1f2; border: 0; color: #155d65; border-radius: 999px; }

/* 43 — Engineering Spec */
.template-engineering-spec {
  padding: 14mm 15mm !important;
  color: #252b33;
  background: linear-gradient(#c45a180d 1px, transparent 1px), linear-gradient(90deg, #c45a180d 1px, transparent 1px), #fff;
  background-size: 12mm 12mm;
  font-family: Arial, sans-serif !important;
}
.template-engineering-spec .cv-header { border: 0 !important; border-left: 3mm solid var(--cv-accent) !important; padding: 4mm 0 6mm 6mm !important; }
.template-engineering-spec .cv-header::after { content: "SPEC / CV"; margin-left: auto; align-self: flex-start; color: var(--cv-accent); font: 700 8pt Consolas, monospace; letter-spacing: .12em; }
.template-engineering-spec .cv-name { font: 800 30pt Arial, sans-serif; color: #20252c; }
.template-engineering-spec .cv-title { font: 700 9pt Consolas, monospace; color: var(--cv-accent); text-transform: uppercase; }
.template-engineering-spec .cv-layout.two { grid-template-columns: 30% 1fr; gap: 7mm; }
.template-engineering-spec .cv-side { border: 1px solid #cbd0d6; background: #f8f9fa; padding: 5mm; }
.template-engineering-spec .cv-section h2 { font: 700 9pt Consolas, monospace; color: #2f343b; border: 0; border-bottom: 1px dashed var(--cv-accent); }
.template-engineering-spec .cv-entry { padding-left: 4mm; border-left: 1mm solid #e3b08f; }
.template-engineering-spec .cv-tag { border-radius: 0; background: #fff5ed; border-color: #e6b18e; color: #8a3f13; font-family: Consolas, monospace; }

/* 44 — Product Canvas */
.template-product-canvas {
  padding: 0 16mm 16mm !important;
  color: #27233a;
  background: #fbfaff;
}
.template-product-canvas .cv-header { margin: 0 -16mm 10mm !important; padding: 13mm 16mm 12mm !important; border: 0 !important; background: radial-gradient(circle at 86% 26%, color-mix(in srgb, var(--cv-accent) 45%, white) 0 18mm, transparent 18.5mm), linear-gradient(118deg, #211c49, var(--cv-accent)) !important; border-radius: 0 0 14mm 0; }
.template-product-canvas .cv-name, .template-product-canvas .cv-title, .template-product-canvas .cv-contact { color: #fff; }
.template-product-canvas .cv-name { font-size: 35pt; letter-spacing: -.055em; }
.template-product-canvas .cv-layout.two { grid-template-columns: 32% 1fr; gap: 7mm; }
.template-product-canvas .cv-side { display: grid; align-content: start; gap: 4mm; }
.template-product-canvas .cv-side .cv-section, .template-product-canvas .cv-main .cv-section { background: #fff; border: 1px solid #e2def5; border-radius: 4mm; padding: 5mm; box-shadow: 0 3mm 8mm #332d7010; }
.template-product-canvas .cv-section h2 { border: 0; color: #332d70; text-transform: none; letter-spacing: 0; font-size: 11pt; }
.template-product-canvas .cv-tag { border: 0; background: #ede9fe; color: #4c3fa6; }

/* 45 — Portfolio Editorial */
.template-portfolio-editorial {
  padding: 0 16mm 16mm !important;
  color: #261f24;
  background: #fffdfd;
  font-family: Georgia, serif !important;
}
.template-portfolio-editorial .cv-header { margin: 0 -16mm 12mm !important; padding: 12mm 16mm 10mm !important; display: grid; grid-template-columns: 1fr 35mm; gap: 9mm; align-items: end; border: 0 !important; border-bottom: 4mm solid var(--cv-accent) !important; background: #fff8fa !important; }
.template-portfolio-editorial .cv-photo { grid-column: 2; grid-row: 1 / span 3; width: 35mm; height: 45mm; border-radius: 0; filter: grayscale(.12) contrast(1.03); box-shadow: 5mm 5mm 0 color-mix(in srgb, var(--cv-accent) 18%, white); }
.template-portfolio-editorial .cv-name { font: 500 39pt Georgia, serif; letter-spacing: -.06em; color: #2a1720; }
.template-portfolio-editorial .cv-title { color: var(--cv-accent); font-style: italic; font-size: 12pt; }
.template-portfolio-editorial .cv-layout.two { grid-template-columns: 36% 1fr; gap: 9mm; }
.template-portfolio-editorial .cv-side { border-right: 1px solid #e2c9d0; padding-right: 7mm; }
.template-portfolio-editorial .cv-section h2 { border: 0; color: #2a1720; font: 500 13pt Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-portfolio-editorial .cv-main .cv-section h2::after { content: ""; display: block; width: 18mm; height: 1.5mm; margin-top: 2mm; background: var(--cv-accent); }
.template-portfolio-editorial .cv-tag { border: 0; border-radius: 0; background: #f8e8ed; color: #7b253d; }

/* 46 — Hospitality Signature */
.template-hospitality {
  padding: 0 17mm 17mm !important;
  color: #3b332a;
  background: linear-gradient(90deg, #f4eee4 0 34%, #fffdf9 34%);
  font-family: Georgia, serif !important;
}
.template-hospitality .cv-header { margin: 0 -17mm 0 !important; padding: 13mm 17mm !important; border: 0 !important; background: #26343a !important; border-bottom: 1mm solid #c9a974 !important; }
.template-hospitality .cv-name { font: 500 35pt Georgia, serif; color: #fff; }
.template-hospitality .cv-title { color: #e2c28e; font-style: italic; }
.template-hospitality .cv-contact { color: #edf0ef; }
.template-hospitality .cv-photo { border-radius: 50% 50% 2mm 50%; border: 1mm solid #c9a974; }
.template-hospitality .cv-layout.two { grid-template-columns: 34% 1fr; gap: 0; margin-top: 0; }
.template-hospitality .cv-side { margin-left: -17mm; padding: 10mm 8mm 0 17mm; }
.template-hospitality .cv-main { padding: 10mm 0 0 10mm; }
.template-hospitality .cv-section h2 { border: 0; color: #5c452a; font: 500 11.5pt Georgia, serif; text-transform: none; letter-spacing: 0; }
.template-hospitality .cv-main .cv-section h2 { border-bottom: 1px solid #d7c1a0; }
.template-hospitality .cv-tag { border: 0; border-radius: 999px; background: #eee2d0; color: #6b4e2d; }

/* 47 — Academic Research */
.template-academic-research {
  padding: 16mm 18mm !important;
  color: #252b33;
  background: #fff;
  font-family: Georgia, serif !important;
}
.template-academic-research .cv-header { display: block; padding: 0 0 6mm !important; border: 0 !important; border-bottom: 2px solid #344e6f !important; }
.template-academic-research .cv-name { font: 600 31pt Georgia, serif; color: #263c58; }
.template-academic-research .cv-title { color: #536a87; font-style: italic; }
.template-academic-research .cv-contact { font-size: 8pt; color: #4a5563; }
.template-academic-research .cv-section { margin-bottom: 9px; }
.template-academic-research .cv-section h2 { border: 0; color: #263c58; font: 600 10pt Georgia, serif; text-transform: none; letter-spacing: .03em; }
.template-academic-research .cv-section h2::after { content: ""; display: block; width: 100%; height: 1px; margin-top: 2px; background: linear-gradient(90deg, #344e6f 0 22%, #d6dde6 22%); }
.template-academic-research .cv-entry-head { font-family: Georgia, serif; }
.template-academic-research .cv-date { font-style: italic; }
.template-academic-research .cv-tag { border: 0; border-radius: 0; background: #eef2f6; color: #344e6f; }

/* 48 — Retail Leader */
.template-retail-leader {
  padding: 0 16mm 16mm !important;
  color: #252a35;
  background: #fff;
}
.template-retail-leader .cv-header { margin: 0 -16mm 12mm !important; padding: 12mm 16mm 15mm !important; border: 0 !important; background: linear-gradient(110deg, var(--cv-accent) 0 72%, #171923 72%) !important; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
.template-retail-leader .cv-name, .template-retail-leader .cv-title, .template-retail-leader .cv-contact { color: #fff; }
.template-retail-leader .cv-name { font-size: 35pt; letter-spacing: -.05em; }
.template-retail-leader .cv-photo { border-radius: 2mm; border: 1mm solid #fff; box-shadow: 5px 6px 0 #171923; }
.template-retail-leader .cv-layout.two { grid-template-columns: 32% 1fr; gap: 8mm; }
.template-retail-leader .cv-side { background: color-mix(in srgb, var(--cv-accent) 9%, white); padding: 6mm; border-top: 3mm solid var(--cv-accent); }
.template-retail-leader .cv-section h2 { border: 0; color: #242938; font-size: 10pt; }
.template-retail-leader .cv-main .cv-section h2 { border-bottom: 2px solid var(--cv-accent); }
.template-retail-leader .cv-tag { border: 0; background: color-mix(in srgb, var(--cv-accent) 12%, white); color: color-mix(in srgb, var(--cv-accent) 75%, black); border-radius: 3px; }

/* Miniatures for templates 37–48. */
.cv-miniature.template-harvard { font-family: Georgia, serif; background:#fff; }
.cv-miniature.template-harvard .mini-cv-head { display:block; text-align:center; border-bottom:2px solid #111; }
.cv-miniature.template-harvard .mini-cv-side { display:none; }
.cv-miniature.template-ivy { font-family:Georgia,serif; background:linear-gradient(90deg,#eef4f1 0 6px,#fff 6px); }
.cv-miniature.template-ivy .mini-cv-head { border-left:4px solid var(--cv-accent); border-bottom:0; padding-left:6px; }
.cv-miniature.template-ivy .mini-cv-side { display:none; }
.cv-miniature.template-legal-brief { font-family:Georgia,serif; background:#fffdfa; border-top:4px solid var(--cv-accent); }
.cv-miniature.template-legal-brief .mini-cv-head { display:block; border-bottom:1px solid #9d928b; }
.cv-miniature.template-finance-ledger { background:linear-gradient(90deg,#fff 0 71%,#edf4f2 71%); }
.cv-miniature.template-finance-ledger .mini-cv-head { border-top:4px solid var(--cv-accent); border-bottom:1px solid #9fb5b2; }
.cv-miniature.template-finance-ledger .mini-cv-columns { grid-template-columns:1fr 29% !important; }
.cv-miniature.template-finance-ledger .mini-cv-side { grid-column:2; grid-row:1; background:transparent; border-left:1px solid #9fb5b2; }
.cv-miniature.template-finance-ledger .mini-cv-main { grid-column:1; grid-row:1; }
.cv-miniature.template-consulting-matrix .mini-cv-head { background:linear-gradient(108deg,#111827 0 72%,var(--cv-accent) 72%); }
.cv-miniature.template-consulting-matrix .mini-cv-side { background:#f7f9fc; border:1px solid #cfd7e6; }
.cv-miniature.template-consulting-matrix .mini-cv-main b { display:inline-block; background:var(--cv-accent); color:#fff; padding:1px 2px; }
.cv-miniature.template-clinical { background:linear-gradient(90deg,#edf7f8 0 32%,#fff 32%); }
.cv-miniature.template-clinical .mini-cv-head { border-bottom:3px solid #65aeb5; }
.cv-miniature.template-clinical .mini-cv-side { background:transparent; }
.cv-miniature.template-engineering-spec { background:linear-gradient(#c45a1812 1px,transparent 1px),linear-gradient(90deg,#c45a1812 1px,transparent 1px),#fff; background-size:8px 8px; font-family:Consolas,monospace; }
.cv-miniature.template-engineering-spec .mini-cv-head { border-left:4px solid var(--cv-accent); border-bottom:0; padding-left:6px; }
.cv-miniature.template-engineering-spec .mini-cv-side { background:#f8f9fa; border:1px solid #cbd0d6; }
.cv-miniature.template-product-canvas { background:#fbfaff; }
.cv-miniature.template-product-canvas .mini-cv-head { background:linear-gradient(118deg,#211c49,var(--cv-accent)); border-radius:0 0 12px 0; }
.cv-miniature.template-product-canvas .mini-cv-side,.cv-miniature.template-product-canvas .mini-cv-main { background:#fff; border:1px solid #e2def5; border-radius:4px; padding:4px; }
.cv-miniature.template-portfolio-editorial { font-family:Georgia,serif; background:#fffdfd; }
.cv-miniature.template-portfolio-editorial .mini-cv-head { background:#fff8fa; border-bottom:4px solid var(--cv-accent); }
.cv-miniature.template-portfolio-editorial .mini-avatar { border-radius:0; box-shadow:3px 3px 0 color-mix(in srgb,var(--cv-accent) 25%,white); }
.cv-miniature.template-portfolio-editorial .mini-cv-side { background:transparent; border-right:1px solid #e2c9d0; }
.cv-miniature.template-hospitality { font-family:Georgia,serif; background:linear-gradient(90deg,#f4eee4 0 34%,#fffdf9 34%); }
.cv-miniature.template-hospitality .mini-cv-head { background:#26343a; border-bottom:2px solid #c9a974; }
.cv-miniature.template-hospitality .mini-cv-side { background:transparent; }
.cv-miniature.template-academic-research { font-family:Georgia,serif; background:#fff; }
.cv-miniature.template-academic-research .mini-cv-head { display:block; border-bottom:2px solid #344e6f; }
.cv-miniature.template-academic-research .mini-cv-side { display:none; }
.cv-miniature.template-retail-leader .mini-cv-head { background:linear-gradient(110deg,var(--cv-accent) 0 72%,#171923 72%); clip-path:polygon(0 0,100% 0,100% 86%,0 100%); padding-bottom:12px; }
.cv-miniature.template-retail-leader .mini-cv-side { background:color-mix(in srgb,var(--cv-accent) 10%,white); border-top:4px solid var(--cv-accent); }

/* Professional gallery and local recommendation assistant. */
.template-advisor {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #d8e2f0;
  border-radius: 16px;
  background: linear-gradient(135deg,#f7faff,#eef4ff);
}
.template-advisor-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:14px; }
.template-advisor-head h3 { margin:0 0 4px; font-size:1.12rem; }
.template-advisor-head p { margin:0; color:var(--muted); font-size:.86rem; }
.template-advisor-grid { display:grid; grid-template-columns:repeat(4,minmax(145px,1fr)); gap:10px; }
.template-advisor-grid label { display:grid; gap:5px; color:#526179; font-size:.72rem; font-weight:800; }
.template-advisor-grid select { min-width:0; padding:9px 10px; border:1px solid #ccd8e8; border-radius:9px; background:#fff; }
.gallery-search-row { display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:10px; margin-bottom:14px; }
.gallery-search-row label { position:relative; }
.gallery-search-row input { width:100%; padding:11px 13px 11px 38px; border:1px solid #cad6e6; border-radius:11px; background:#fff; }
.gallery-search-row label::before { content:"⌕"; position:absolute; left:13px; top:8px; color:#65738a; font-size:1.25rem; }
.gallery-sort { min-width:180px; padding:10px 11px; border:1px solid #cad6e6; border-radius:11px; background:#fff; }
.template-fit-badge { display:inline-flex; align-items:center; gap:4px; padding:4px 7px; border-radius:999px; background:#edf7f2; color:#236646; font-size:.67rem; font-weight:850; }
.visual-safe { background:#edf7f2; color:#236646; }
.visual-balanced { background:#eef4ff; color:#315c9a; }
.visual-distinctive { background:#fff0f5; color:#9d3157; }
.template-card-rich.is-recommended { border-color:#91b4e7; box-shadow:0 18px 38px rgba(43,91,157,.16); }
.template-card-rich.is-recommended::before { content:"Polecany"; position:absolute; top:12px; left:12px; z-index:2; padding:5px 8px; border-radius:999px; background:#174ea6; color:#fff; font-size:.68rem; font-weight:900; }
html[lang="en"] .template-card-rich.is-recommended::before { content:"Recommended"; }
.template-card-rich { position:relative; }
.template-card-meta { display:flex; flex-wrap:wrap; gap:6px; margin:7px 0 11px; }
.template-recruiter-note { margin:10px 0 14px; padding:9px 10px; border-left:3px solid var(--template-accent,#174ea6); background:#f7f9fc; color:#526179; font-size:.77rem; line-height:1.45; }
.builder-template-fit { display:inline-flex; margin-top:5px; color:#2e6b4c; font-size:.68rem; font-weight:800; }

@media (max-width: 900px) {
  .template-advisor-grid { grid-template-columns:repeat(2,minmax(145px,1fr)); }
}
@media (max-width: 600px) {
  .template-advisor-head { display:block; }
  .template-advisor-grid { grid-template-columns:1fr; }
  .gallery-search-row { grid-template-columns:1fr; }
  .gallery-sort { width:100%; }
}
@media print {
  .template-harvard,.template-ivy,.template-legal-brief,.template-finance-ledger,
  .template-consulting-matrix,.template-clinical,.template-engineering-spec,
  .template-product-canvas,.template-portfolio-editorial,.template-hospitality,
  .template-academic-research,.template-retail-leader {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Builder template recommendations — v3.3.0. */
.template-role-hint {
  margin: 7px 0 0;
  color: #5f6f86;
  font-size: .76rem;
  line-height: 1.45;
}
.template-role-hint strong { color: #1d365c; }
.template-option { position: relative; overflow: visible; }
.role-match-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid #b8dec9;
  border-radius: 999px;
  background: #effaf4;
  color: #226846;
  box-shadow: 0 2px 8px rgba(34,104,70,.12);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .02em;
}
.template-option .template-recruiter-note {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #65758b;
  font-size: .68rem;
  font-style: normal;
  line-height: 1.35;
}
.template-option.active .template-recruiter-note { color: #405875; }
@media (max-width: 700px) {
  .template-option .template-recruiter-note { display: none; }
}

/* Keep builder cards readable inside the narrow editor column. Public gallery uses its own grid. */
.builder-app .template-grid {
  grid-template-columns: 1fr;
}
.builder-app .template-option {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 166px;
  gap: 15px;
  padding: 13px;
}
.builder-app .template-option > .cv-miniature {
  width: 106px;
  justify-self: center;
}
.builder-app .template-option-copy strong { font-size: 1rem; }
.builder-app .template-option-copy em { -webkit-line-clamp: 3; }
@media (max-width: 760px) {
  .builder-app .template-option {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 134px;
    gap: 11px;
    padding: 10px;
  }
  .builder-app .template-option > .cv-miniature { width: 82px; }
}


/* v3.4.0: SEO content architecture, profession library and article navigation */
.breadcrumbs{display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding-top:18px;padding-bottom:2px;font-size:.88rem;color:#64748b}.breadcrumbs a{color:#315f9f;text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs>span[aria-hidden="true"]{color:#b0bccd}.compact-hero{padding-top:26px}.article-meta{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin:16px 0 18px;padding:12px 15px;border:1px solid #dbe5f3;border-radius:13px;background:#f8fbff;color:#52657f;font-size:.88rem}.article-meta a{font-weight:700}.article-toc{margin:18px 0 28px;padding:18px 20px;border:1px solid #d9e4f2;border-radius:16px;background:#fff}.article-toc strong{display:block;margin-bottom:9px;color:#14243d}.article-toc ol{columns:2;column-gap:32px;margin:0;padding-left:20px}.article-toc li{break-inside:avoid;margin:6px 0}.article-toc a{text-decoration:none}.article-toc a:hover{text-decoration:underline}.related-guides-v340 .card p{font-size:.94rem}.content-directory-toolbar,.career-library-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) minmax(190px,.45fr) auto;gap:14px;align-items:end;margin:0 0 22px;padding:16px;border:1px solid #dbe5f3;border-radius:17px;background:#fff;box-shadow:0 8px 26px rgba(23,49,87,.05)}.content-directory-toolbar{grid-template-columns:minmax(280px,1fr) auto}.content-directory-toolbar label,.career-library-toolbar label{display:grid;gap:6px;font-size:.83rem;font-weight:700;color:#4b607d}.content-directory-toolbar input,.career-library-toolbar input,.career-library-toolbar select{min-height:44px;border:1px solid #cfdced;border-radius:11px;padding:0 12px;background:#fff;color:#14243d}.content-filter-row{display:flex;gap:7px;flex-wrap:wrap;grid-column:1/-1}.content-filter-row button{border:1px solid #d5e0ee;background:#fff;color:#425a78;border-radius:999px;padding:7px 12px;font-weight:700;cursor:pointer}.content-filter-row button.active{background:#18345d;color:#fff;border-color:#18345d}.career-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.career-public-card{scroll-margin-top:90px;padding:20px;border:1px solid #dbe5f3;border-radius:18px;background:#fff;box-shadow:0 9px 25px rgba(23,49,87,.055);content-visibility:auto;contain-intrinsic-size:460px}.career-public-card[hidden]{display:none}.career-public-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.career-public-head span,.role-link-card>span{font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#59708e}.career-public-card h2{font-size:1.2rem;margin:4px 0 10px}.career-public-card h3{font-size:.9rem;margin:15px 0 7px}.career-public-card p,.career-public-card li{font-size:.91rem;line-height:1.55}.btn-small{min-height:38px;padding:8px 12px;margin-top:10px}.role-hero{padding:34px 0 42px;background:linear-gradient(135deg,#f4f8ff,#eef4fb 58%,#f9fbff)}.role-hero-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:32px;align-items:center}.role-summary-card{padding:24px;border:1px solid #d6e2f1;border-radius:20px;background:#fff;box-shadow:0 18px 45px rgba(23,49,87,.09)}.role-summary-card>span{font-size:.8rem;font-weight:800;text-transform:uppercase;color:#2e64b5}.role-summary-card p{font-size:1.04rem;line-height:1.7;color:#243750}.role-summary-card small{color:#6a7c94}.role-proof{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.role-proof span{padding:7px 10px;border-radius:999px;background:#fff;border:1px solid #dbe5f3;font-size:.82rem}.role-two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:18px 0 28px}.example-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0 28px}.example-stack article{padding:17px;border:1px solid #dce6f2;border-radius:15px;background:#f9fbfe}.example-stack h3{font-size:1rem;margin-top:0}.achievement-list{display:grid;grid-template-columns:1fr 1fr;gap:9px 28px}.hub-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.role-link-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.role-link-card{padding:16px}.role-link-card h3{margin:5px 0}.tool-hub-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.tool-hub-card{padding:20px;border-radius:17px;border:1px solid #d9e4f2;background:#fff;box-shadow:0 10px 27px rgba(23,49,87,.055)}.tool-hub-card h2{font-size:1.15rem}.button-row.center{justify-content:center}.content-section,.template-card,.home-feature{content-visibility:auto;contain-intrinsic-size:360px}.seo-growth-v340 a,.home-feature a{color:inherit;text-decoration:none}.main-nav a[aria-current="page"]{color:#1f5ebf}.main-nav a[aria-current="page"]::after{content:"";display:block;height:2px;background:#2d6bd1;border-radius:2px;margin-top:3px}
@media(max-width:1100px){.career-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.role-link-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.role-hero-grid{grid-template-columns:1fr}.example-stack{grid-template-columns:1fr}}
@media(max-width:720px){.article-toc ol{columns:1}.content-directory-toolbar,.career-library-toolbar{grid-template-columns:1fr}.career-public-grid,.tool-hub-grid,.role-link-grid,.hub-card-grid,.role-two-col,.achievement-list{grid-template-columns:1fr}.role-hero{padding-top:20px}.role-summary-card{padding:18px}.breadcrumbs{font-size:.8rem}}
@media print{.breadcrumbs,.article-meta,.article-toc,.related-guides-v340,.seo-growth-v340{display:none!important}}

/* ==========================================================
   CV.PODZIEL.PL 3.4.1 — CZYTELNE PODGLĄDY SZABLONÓW
   Duże miniatury w kreatorze, przełącznik widoku i modal A4.
   ========================================================== */
.template-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 14px;
  padding: 9px 11px;
  border: 1px solid #dce5f1;
  border-radius: 12px;
  background: #f8fbff;
}
.template-view-toolbar > span {
  color: #52657f;
  font-size: .75rem;
  font-weight: 800;
}
.template-view-toolbar > div {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #d5e0ee;
  border-radius: 10px;
  background: #fff;
}
.template-view-btn {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  padding: 6px 10px;
  background: transparent;
  color: #5a6b84;
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
}
.template-view-btn:hover { background: #eef4fc; color: #214f91; }
.template-view-btn.active { background: #183e78; color: #fff; box-shadow: 0 3px 9px rgba(24,62,120,.18); }

.builder-app .template-choice {
  position: relative;
  min-width: 0;
}
.builder-app .template-choice > .template-option {
  width: 100%;
  text-align: left;
}
.builder-app .template-preview-trigger {
  position: absolute;
  z-index: 6;
  left: 13px;
  bottom: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #cbd9eb;
  border-radius: 9px;
  padding: 6px 10px;
  background: rgba(255,255,255,.96);
  color: #234f8d;
  box-shadow: 0 4px 12px rgba(30,65,110,.10);
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}
.builder-app .template-preview-trigger:hover {
  border-color: #7fa4d6;
  background: #edf5ff;
  transform: translateY(-1px);
}
.builder-app .template-choice.active .template-preview-trigger {
  border-color: #7aa4dc;
  color: #174ea6;
}

/* Default comparison mode: two cards, large readable A4 previews. */
.builder-app .template-grid.template-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.builder-app .template-grid-large .template-choice {
  min-height: 365px;
}
.builder-app .template-grid-large .template-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 365px;
  gap: 12px;
  padding: 14px 14px 54px;
}
.builder-app .template-grid-large .template-option > .cv-miniature {
  width: min(100%, 176px);
  margin: 0 auto;
  padding: 14px;
  border-color: #bcc9da;
  box-shadow: 0 10px 25px rgba(31,53,88,.18);
}
.builder-app .template-grid-large .cv-miniature .mini-cv-head {
  gap: 8px;
  padding-bottom: 8px;
  border-bottom-width: 2px;
}
.builder-app .template-grid-large .cv-miniature .mini-cv-head strong { font-size: 10.8px; }
.builder-app .template-grid-large .cv-miniature .mini-cv-head em { font-size: 6.7px; }
.builder-app .template-grid-large .cv-miniature .mini-cv-head small,
.builder-app .template-grid-large .cv-miniature .mini-cv-side small,
.builder-app .template-grid-large .cv-miniature .mini-cv-main small,
.builder-app .template-grid-large .cv-miniature .mini-cv-main p { font-size: 5.4px; }
.builder-app .template-grid-large .cv-miniature .mini-cv-main strong { font-size: 6.3px; }
.builder-app .template-grid-large .cv-miniature .mini-cv-side b,
.builder-app .template-grid-large .cv-miniature .mini-cv-main b { font-size: 6.1px; }
.builder-app .template-grid-large .cv-miniature .mini-avatar {
  width: 28px;
  height: 34px;
  font-size: 7px;
}
.builder-app .template-grid-large .cv-miniature .mini-cv-columns {
  gap: 8px;
  margin-top: 9px;
}
.builder-app .template-grid-large .cv-miniature .mini-cv-side,
.builder-app .template-grid-large .cv-miniature .mini-cv-main { gap: 4px; }
.builder-app .template-grid-large .cv-miniature .mini-cv-side { padding: 5px; }
.builder-app .template-grid-large .template-option-copy {
  width: 100%;
  align-content: start;
  gap: 6px;
}
.builder-app .template-grid-large .template-option-copy > span { padding-right: 30px; }
.builder-app .template-grid-large .template-option-copy strong { font-size: .91rem; }
.builder-app .template-grid-large .template-option-copy em {
  -webkit-line-clamp: 2;
  font-size: .70rem;
}
.builder-app .template-grid-large .template-option .template-recruiter-note { display: none; }
.builder-app .template-grid-large .selected-badge {
  top: 10px;
  right: 10px;
}
.builder-app .template-grid-large .role-match-badge {
  top: 10px;
  left: 10px;
}

/* Compact list remains available for fast scanning. */
.builder-app .template-grid.template-grid-compact { grid-template-columns: 1fr; }
.builder-app .template-grid-compact .template-choice { min-height: 166px; }
.builder-app .template-grid-compact .template-option {
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 166px;
  gap: 15px;
  padding: 13px 13px 13px 13px;
}
.builder-app .template-grid-compact .template-option > .cv-miniature { width: 106px; }
.builder-app .template-grid-compact .template-preview-trigger {
  left: auto;
  right: 14px;
  bottom: 12px;
}
.builder-app .template-grid-compact .template-option-copy { padding-bottom: 38px; }

/* Builder modal reuses the public A4 preview, with safe viewport limits. */
.builder-template-preview-modal { z-index: 10020; }
.builder-template-preview-modal .template-preview-card {
  width: min(1080px, 96vw);
  max-height: 94vh;
  overflow: auto;
}
.builder-template-preview-modal .template-preview-content {
  grid-template-columns: minmax(430px, 1fr) 280px;
}
.builder-template-preview-modal .gallery-cv-miniature.is-large {
  width: min(100%, 500px);
}
.builder-template-preview-modal .template-preview-options .btn { width: 100%; }
.builder-template-preview-modal .template-recruiter-note {
  margin: 0 0 14px;
  padding: 11px 12px;
  border-left: 3px solid #174ea6;
  background: #f6f9fd;
}

@media (max-width: 1220px) {
  .builder-app .template-grid.template-grid-large { grid-template-columns: 1fr; }
  .builder-app .template-grid-large .template-choice,
  .builder-app .template-grid-large .template-option { min-height: 340px; }
  .builder-app .template-grid-large .template-option > .cv-miniature { width: min(100%, 205px); }
}
@media (max-width: 760px) {
  .template-view-toolbar { align-items: flex-start; flex-direction: column; }
  .template-view-toolbar > div { width: 100%; }
  .template-view-btn { flex: 1; }
  .builder-app .template-grid.template-grid-large { grid-template-columns: 1fr; }
  .builder-app .template-grid-large .template-choice,
  .builder-app .template-grid-large .template-option { min-height: 325px; }
  .builder-app .template-grid-large .template-option > .cv-miniature { width: min(100%, 184px); }
  .builder-app .template-grid-compact .template-option {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 152px;
  }
  .builder-app .template-grid-compact .template-option > .cv-miniature { width: 86px; }
  .builder-template-preview-modal { padding: 8px; }
  .builder-template-preview-modal .template-preview-card { padding: 14px; }
  .builder-template-preview-modal .template-preview-content {
    display: block;
    padding: 14px;
  }
  .builder-template-preview-modal .template-preview-options {
    position: static;
    margin-top: 14px;
  }
  .builder-template-preview-modal .gallery-cv-miniature.is-large {
    width: min(100%, 360px);
    padding: 24px;
  }
}


/* =========================================================
   V3.4.2 — actual, isolated template preview images
   ========================================================= */
.template-rendered-preview {
  display: block;
  position: relative;
  aspect-ratio: 210 / 297;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #cbd6e5;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 48, 79, .17);
}
.template-rendered-preview > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}

/* The recommendation state has its own row instead of covering the document. */
.builder-app .template-state-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 24px;
  width: 100%;
}
.builder-app .template-state-row:empty { min-height: 0; }
.builder-app .template-state-row .selected-badge,
.builder-app .template-state-row .role-match-badge {
  position: static;
  inset: auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .64rem;
  line-height: 1;
  box-shadow: none;
}
.builder-app .template-state-row .selected-badge { margin-left: auto; }

/* Builder: calm A4 comparison cards. */
.builder-app .template-grid-large .template-choice,
.builder-app .template-grid-large .template-option { min-height: 424px; }
.builder-app .template-grid-large .template-option {
  gap: 10px;
  padding: 12px 12px 54px;
}
.builder-app .template-grid-large .template-option > .template-rendered-preview {
  width: min(100%, 190px);
  margin: 0 auto;
}
.builder-app .template-grid-large .template-option-copy {
  gap: 5px;
  padding-top: 1px;
}
.builder-app .template-grid-large .template-option-copy > span { padding-right: 0; }
.builder-app .template-grid-large .template-option-copy strong { line-height: 1.22; }
.builder-app .template-grid-large .template-option-copy small,
.builder-app .template-grid-large .template-option-copy em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.builder-app .template-grid-large .template-option .premium-badge,
.builder-app .template-grid-large .template-option .new-badge {
  vertical-align: middle;
}
.builder-app .template-grid-compact .template-option > .template-rendered-preview {
  width: 104px;
  align-self: start;
}
.builder-app .template-grid-compact .template-state-row {
  position: absolute;
  top: 12px;
  right: 12px;
  width: auto;
  z-index: 2;
}
.builder-app .template-grid-compact .template-option-copy { padding-top: 4px; }

/* Public gallery: one real page, no CSS miniature collisions. */
.template-card-rich .template-rendered-preview {
  width: min(100%, 284px);
  margin: 0 auto;
}
.template-card-rich .template-rendered-preview > img { image-rendering: auto; }
.template-card-rich .template-card-body { margin-top: 14px; }
.template-preview-content [data-large-preview] { min-width: 0; }
.template-preview-content .template-rendered-preview.is-large,
.builder-template-preview-modal .template-rendered-preview.is-large {
  width: min(100%, 520px);
  margin: 0 auto;
}
.template-preview-help {
  margin: 0 0 14px;
  color: #536781;
  font-size: .92rem;
  line-height: 1.55;
}

@media (max-width: 1220px) {
  .builder-app .template-grid-large .template-choice,
  .builder-app .template-grid-large .template-option { min-height: 448px; }
  .builder-app .template-grid-large .template-option > .template-rendered-preview { width: min(100%, 218px); }
}
@media (max-width: 760px) {
  .builder-app .template-grid-large .template-choice,
  .builder-app .template-grid-large .template-option { min-height: 420px; }
  .builder-app .template-grid-large .template-option > .template-rendered-preview { width: min(100%, 210px); }
  .builder-app .template-grid-compact .template-option > .template-rendered-preview { width: 88px; }
  .template-preview-content .template-rendered-preview.is-large,
  .builder-template-preview-modal .template-rendered-preview.is-large { width: min(100%, 390px); }
}

.template-start-color { display:grid; gap:8px; margin:0 0 14px; }
.template-start-color > strong { font-size:.82rem; color:#304864; }

/* ==========================================================
   V3.4.3 — Polish template naming and robust real-world layout
   ========================================================== */
.cv-header > div,
.cv-name,
.cv-title,
.cv-contact,
.cv-contact a,
.cv-contact span {
  min-width: 0;
  max-width: 100%;
}
.cv-name,
.cv-title,
.cv-contact a,
.cv-contact span {
  overflow-wrap: anywhere;
}
.cv-name { word-break: normal; }

/* Long Polish section names must remain readable in narrow sidebars. */
.cv-layout.two .cv-side .cv-section h2 {
  font-size: 10pt;
  line-height: 1.16;
  letter-spacing: .04em;
  overflow-wrap: anywhere;
}

/* Photo-oriented templates must also look correct before a photo is added. */
.template-with-photo.no-photo-content .cv-header,
.template-editorial.no-photo-content .cv-header {
  grid-template-columns: minmax(0, 1fr) !important;
}
.template-creative.no-photo-content .cv-header {
  grid-template-columns: minmax(0, 1fr) !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.template-with-photo.no-photo-content .cv-name,
.template-editorial.no-photo-content .cv-name,
.template-creative.no-photo-content .cv-name {
  max-width: 100%;
}

/* Premium headers: keep long Polish names elegant instead of oversized. */
.template-creative .cv-name {
  font-size: 32pt !important;
  line-height: .98;
  letter-spacing: -.045em;
}
.template-editorial .cv-name,
.template-portfolio-editorial .cv-name {
  font-size: 34pt !important;
  line-height: .98;
  letter-spacing: -.045em;
}
.template-studio .cv-name,
.template-aurora .cv-name,
.template-product-canvas .cv-name {
  font-size: 33pt !important;
  line-height: 1;
  letter-spacing: -.04em;
}
.template-creative .cv-side .cv-section h2 {
  font-size: 9.6pt;
  letter-spacing: .035em;
}
.template-one-column .cv-section h2 {
  font-size: 8.2pt;
  letter-spacing: .075em;
}
.template-swiss .cv-section h2 {
  font-size: 8.2pt;
  letter-spacing: .075em;
}
/* Keep the creative sidebar entirely inside its colored rail. */
.template-creative .cv-layout.two {
  grid-template-columns: 29mm minmax(0, 1fr);
  gap: 9mm;
}
.template-creative .cv-side {
  box-sizing: border-box;
  width: 29mm;
  padding: 8mm 3mm 8mm 0;
}
.template-creative .cv-side .cv-section h2 {
  font-size: 8.8pt;
  line-height: 1.14;
  letter-spacing: .015em;
}
/* Wider creative rail for long Polish labels without mid-word breaks. */
.template-creative {
  padding-left: 52mm !important;
}
.template-creative::before {
  width: 44mm;
}
.template-creative .cv-header {
  margin-left: -44mm !important;
  grid-template-columns: 38mm minmax(0, 1fr);
}
.template-creative.no-photo-content .cv-header {
  margin-left: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.template-creative .cv-layout.two {
  grid-template-columns: 36mm minmax(0, 1fr);
  gap: 8mm;
}
.template-creative .cv-side {
  margin-left: -44mm;
  width: 36mm;
  padding: 8mm 3mm 8mm 0;
}
.template-creative .cv-side .cv-section h2 {
  font-size: 8.6pt;
  letter-spacing: .01em;
  overflow-wrap: normal;
  word-break: normal;
}
.template-creative .cv-side .cv-section h2 {
  font-size: 7.8pt;
  letter-spacing: 0;
  white-space: nowrap;
}
.template-creative .cv-layout.two .cv-side .cv-section h2 {
  font-size: 8.2pt;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* ==========================================================
   CV.podziel.pl 3.6.1 — calibrated ATS, security, backup and accessibility
   ========================================================== */
.start-grid {
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
}
.start-privacy-note {
  margin: 18px 0 0 !important;
  font-size: .78rem;
  color: #5d6e85 !important;
}
.quality-extensions {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.quality-extension {
  border: 1px solid #d7e1ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(26, 48, 82, .06);
  padding: 18px;
}
.quality-extension-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.quality-extension-head h3 {
  margin: 5px 0 6px;
  font-size: 1.18rem;
}
.quality-extension-head p {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}
.ats-v2-score,
.content-coach-score {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 74px;
  display: grid;
  place-content: center;
  grid-template-columns: auto auto;
  align-items: baseline;
  border-radius: 14px;
  background: #edf5ff;
  color: var(--accent2);
}
.ats-v2-score strong,
.content-coach-score strong { font-size: 1.8rem; }
.ats-v2-score span,
.content-coach-score span { font-size: .78rem; font-weight: 800; }
.ats-v2-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.ats-v2-categories span {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}
.ats-v2-categories em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: .67rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ats-v2-categories strong { display: block; margin-top: 3px; font-size: .96rem; }
.quality-extension-toolbar,
.tailoring-compare-head,
.baseline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.quality-extension-toolbar > div { display: flex; gap: 7px; }
.quality-extension-toolbar .micro-action.active {
  background: var(--accent);
  color: #fff;
}
.ats-check-list,
.content-coach-list,
.tailoring-diff {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}
.ats-check-row,
.coach-issue,
.tailoring-diff article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fbfcfe;
}
.ats-check-row p,
.coach-issue p,
.tailoring-diff small {
  margin: 3px 0 0;
  color: #596b83;
  font-size: .76rem;
  line-height: 1.45;
}
.ats-check-row small { color: #7a8798; font-size: .65rem; }
.ats-check-state {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}
.status-pass .ats-check-state { color: #1d724b; background: #e5f7ee; }
.status-warn .ats-check-state { color: #8b5d08; background: #fff2ce; }
.status-fail .ats-check-state { color: #a62c35; background: #ffe4e6; }
.status-na .ats-check-state { color: #6c7788; background: #edf0f4; }
.good-empty {
  margin: 0;
  padding: 14px;
  border: 1px solid #cbe9d9;
  border-radius: 12px;
  background: #effaf4;
  color: #1d724b;
}
.content-coach-summary {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.content-coach-summary span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 99px;
  background: #f1f4f8;
  color: #617087;
  font-size: .7rem;
}
.content-coach-summary strong { color: var(--text); font-size: .9rem; }
.coach-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #91a1b7;
}
.severity-high .coach-dot { background: #d43d4b; box-shadow: 0 0 0 4px #ffe4e7; }
.severity-medium .coach-dot { background: #dc8b13; box-shadow: 0 0 0 4px #fff1d6; }
.severity-low .coach-dot { background: #4d7fbf; box-shadow: 0 0 0 4px #e7f0fb; }
.coach-issue details { margin-top: 7px; }
.coach-issue summary { cursor: pointer; color: var(--accent2); font-size: .72rem; font-weight: 800; }
.field-highlight {
  animation: field-highlight-v350 1.8s ease;
}
@keyframes field-highlight-v350 {
  0%, 100% { box-shadow: none; }
  20%, 70% { box-shadow: 0 0 0 4px rgba(37, 100, 200, .2); }
}
.tailoring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.tailoring-hint,
.tailoring-empty {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 11px;
  background: #f6f8fb;
  color: #617087;
  font-size: .78rem;
}
.baseline-meta {
  padding: 10px 12px;
  border-radius: 11px;
  background: #eef7f3;
  color: #315f4b;
  font-size: .75rem;
}
.tailoring-diff article > div { min-width: 0; }
.tailoring-diff small {
  display: block;
  overflow-wrap: anywhere;
}

.interview-source-card,
.interview-question-list,
.interview-timer-card,
.interview-support-grid {
  margin: 0 0 22px;
}
.interview-source-card,
.interview-timer-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 49, 84, .07);
}
.interview-source-card h2 { margin: 7px 0 6px; }
.interview-source-card > div > p { color: var(--muted); }
.interview-source-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.interview-source-grid label,
.star-grid label {
  display: grid;
  gap: 6px;
  color: #41536c;
  font-size: .75rem;
  font-weight: 800;
}
.interview-source-grid .full { grid-column: 1 / -1; }
.interview-source-grid input,
.interview-source-grid textarea,
.star-grid textarea {
  width: 100%;
  border: 1px solid #cfd9e6;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.interview-timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.interview-timer-card p { margin: 4px 0 0; color: var(--muted); }
.interview-timer { display: flex; align-items: center; gap: 7px; }
.interview-timer > strong { min-width: 72px; font-size: 1.65rem; color: var(--accent2); }
.interview-question-list { display: grid; gap: 12px; }
.interview-question {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.interview-question header { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.interview-question header > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.interview-question h3 { margin: 3px 0 0; font-size: 1rem; }
.star-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.star-grid textarea { min-height: 88px; resize: vertical; }
.interview-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.interview-support-grid .card { display: grid; gap: 8px; }
.interview-support-grid label { display: flex; gap: 8px; align-items: flex-start; color: #4d5d73; font-size: .84rem; }
.count-pill {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  border-radius: 99px;
  background: #e9f2ff;
  color: var(--accent2);
  font-weight: 900;
}

@media (max-width: 980px) {
  .ats-v2-categories { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .quality-extension { padding: 14px; border-radius: 14px; }
  .quality-extension-head { display: grid; grid-template-columns: 1fr auto; }
  .quality-extension-head p { grid-column: 1 / -1; }
  .ats-v2-categories { grid-template-columns: repeat(2, 1fr); }
  .ats-check-row,
  .coach-issue,
  .tailoring-diff article { grid-template-columns: auto minmax(0, 1fr); }
  .ats-check-row > button,
  .coach-issue > button,
  .tailoring-diff article > button { grid-column: 2; justify-self: start; }
  .quality-extension-toolbar,
  .tailoring-compare-head,
  .baseline-meta { align-items: flex-start; flex-direction: column; }
  .interview-source-grid,
  .star-grid,
  .interview-support-grid { grid-template-columns: 1fr; }
  .interview-source-grid .full { grid-column: auto; }
  .interview-timer-card { align-items: flex-start; flex-direction: column; }
  .interview-timer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .field-highlight { animation: none; outline: 3px solid rgba(37, 100, 200, .35); }
}

/* v3.6.1: ATS 3.0, backup, OCR, consent and accessibility */
.ats-gates{display:grid;gap:.45rem;padding:1rem;border:1px solid #efb0b0;background:#fff4f4;border-radius:14px;margin:1rem 0;color:#7b1b1b}.ats-gates strong{font-size:.95rem}.ats-gates span{font-size:.85rem}.ats-check-row.status-fail{border-left:4px solid #b42318}.ats-check-row.status-warn{border-left:4px solid #c97a00}.ats-check-row.status-pass{border-left:4px solid #198754}.ats-v2-score small{display:block;font-size:.7rem;line-height:1.25;color:var(--muted)}
.backup-center-modal,.ocr-progress-modal{z-index:10030}.backup-card,.ocr-card{max-width:760px}.backup-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0}.backup-stats span{padding:.8rem;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);display:grid;gap:.2rem}.backup-stats em{font-style:normal;font-size:.75rem;color:var(--muted)}.backup-stats strong{font-size:1.15rem}.backup-actions{display:flex;gap:.65rem;flex-wrap:wrap}.backup-mode{margin:1rem 0;border:1px solid var(--line);border-radius:12px;padding:.9rem;display:grid;gap:.55rem}.backup-mode legend{font-weight:700}.backup-warning{padding:.8rem 1rem;border-radius:12px;background:#fff8e6;border:1px solid #efd28b}.btn-danger{background:#a61b1b;color:#fff;border-color:#a61b1b}.ocr-card progress{width:100%;height:18px;margin:1rem 0}.legal-page{max-width:920px}.legal-page h2{margin-top:2rem}.legal-page ul{padding-left:1.3rem}.legal-status{padding:.75rem 1rem;border-radius:10px;background:var(--surface-soft);border:1px solid var(--line)}.legal-status[data-kind="success"]{background:#eaf8f0;border-color:#9ed5b5}.legal-status[data-kind="warning"]{background:#fff8e6;border-color:#efd28b}.legal-status[data-kind="error"]{background:#fff0f0;border-color:#e9a0a0}
.pwa-update-banner{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);z-index:10050;max-width:min(92vw,720px);display:flex;align-items:center;gap:1rem;padding:.85rem 1rem;border-radius:14px;background:#0f2f67;color:#fff;box-shadow:0 14px 45px rgba(15,47,103,.35)}.pwa-update-banner button{margin-left:auto}.field-highlight{outline:3px solid #f5b82e!important;outline-offset:3px}
@media(max-width:720px){.backup-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.backup-actions>*{width:100%}.pwa-update-banner{align-items:flex-start;flex-wrap:wrap}.pwa-update-banner button{margin-left:0;width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}


/* CV.podziel.pl 3.7.0 — private career center */
.career-hero{background:linear-gradient(135deg,#f5f8ff 0%,#fff 52%,#eefbf7 100%)}
.career-tool-shell{margin-top:-2rem;position:relative;z-index:2}
.career-app-root{min-height:240px}
.career-hub-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.career-hub-card{position:relative;min-height:230px;display:flex;flex-direction:column}
.career-hub-card .text-link{margin-top:auto;font-weight:800;color:var(--primary,#174ea6)}
.career-dashboard,.vault-layout,.workspace-layout,.lab-layout,.recruiter-layout,.country-layout{display:grid;gap:1.25rem}
.vault-layout,.workspace-layout,.lab-layout{grid-template-columns:minmax(260px,.8fr) minmax(0,1.5fr)}
.career-panel{background:#fff;border:1px solid #dce5f2;border-radius:20px;padding:1.25rem;box-shadow:0 12px 32px rgba(15,36,72,.07)}
.career-panel h2,.career-panel h3{margin-top:0}
.career-toolbar{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}
.career-toolbar input,.career-toolbar select{min-height:44px;flex:1 1 180px}
.career-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}
.career-form-grid .full{grid-column:1/-1}
.career-form-grid label,.career-panel label{display:grid;gap:.35rem;font-weight:700;color:#24344e}
.career-form-grid input,.career-form-grid select,.career-form-grid textarea,.career-panel input,.career-panel select,.career-panel textarea{width:100%;border:1px solid #cdd8e8;border-radius:12px;padding:.72rem .8rem;background:#fff;color:#12213a;font:inherit}
.career-form-grid textarea,.career-panel textarea{min-height:105px;resize:vertical}
.evidence-list,.package-list,.version-list,.requirement-list{display:grid;gap:.75rem}
.evidence-card,.package-card,.requirement-card,.comparison-card,.recruiter-card,.country-card{border:1px solid #dce5f2;border-radius:16px;padding:1rem;background:#fbfdff}
.evidence-card.selected,.package-card.active,.country-card.active{border-color:#2b67c8;box-shadow:0 0 0 3px rgba(43,103,200,.12)}
.evidence-card header,.package-card header,.requirement-card header{display:flex;justify-content:space-between;gap:.75rem;align-items:flex-start}
.career-badges{display:flex;flex-wrap:wrap;gap:.4rem;margin:.55rem 0}
.career-badge{display:inline-flex;align-items:center;gap:.25rem;padding:.28rem .55rem;border-radius:999px;background:#edf3ff;color:#1e4f9c;font-size:.78rem;font-weight:800}
.career-badge.verified,.career-badge.met{background:#e9f8ef;color:#17683b}
.career-badge.estimated,.career-badge.partial{background:#fff6dc;color:#805b00}
.career-badge.draft,.career-badge.missing{background:#fcecec;color:#8f2828}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.metric-card{border:1px solid #dce5f2;border-radius:16px;padding:1rem;background:#fff}
.metric-card strong{display:block;font-size:1.7rem;color:#14233e}
.requirement-card{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(180px,.8fr);gap:.75rem}
.requirement-card .requirement-actions{display:grid;gap:.45rem}
.diff-added{background:#e9f8ef;color:#145f36;padding:.15rem .28rem;border-radius:4px}.diff-removed{background:#fdecec;color:#8a2424;padding:.15rem .28rem;border-radius:4px;text-decoration:line-through}
.ats-order{white-space:pre-wrap;background:#0e1b30;color:#eaf1ff;border-radius:16px;padding:1rem;max-height:560px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.recruiter-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.recruiter-summary{display:grid;gap:.65rem}.recruiter-summary li{margin:.25rem 0}
.country-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}
.country-card{display:grid;gap:.3rem;text-align:left;cursor:pointer;color:inherit;font:inherit}.country-card span{color:#64748b;font-size:.86rem}
.career-modal-card{max-width:850px}
.career-inline-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:.75rem}
.career-note{padding:.75rem 1rem;border-left:4px solid #2b67c8;background:#f3f7ff;border-radius:0 12px 12px 0}
.empty-state{padding:1.5rem;text-align:center;border:1px dashed #bac8dc;border-radius:16px;background:#fbfdff}
.builder-career-tools{margin-top:1rem;border-top:1px solid #dce5f2;padding-top:1rem}.builder-career-tools h3{margin:.1rem 0 .6rem}.builder-career-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.builder-career-grid a,.builder-career-grid button{min-height:44px}
@media(max-width:1000px){.career-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vault-layout,.workspace-layout,.lab-layout,.recruiter-layout{grid-template-columns:1fr}.country-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.career-hub-grid,.career-form-grid,.metric-grid,.country-cards,.builder-career-grid{grid-template-columns:1fr}.career-tool-shell{margin-top:-.75rem;padding-inline:.65rem}.career-panel{padding:1rem;border-radius:16px}.requirement-card{grid-template-columns:1fr}.career-toolbar{align-items:stretch}.career-toolbar .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.career-panel,.career-card,.country-card{scroll-behavior:auto;transition:none!important}}


.career-tool-summary{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1.2rem}.career-tool-summary h2{margin:.15rem 0 .35rem}.career-tool-summary p{max-width:72ch;color:#5d6d84}
.career-tool-grid,.application-workspace-grid,.country-mode-grid,.recruiter-view-grid{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.45fr);gap:1.1rem;align-items:start}
.career-form-card,.career-list-card{background:#fff;border:1px solid #dce5f2;border-radius:20px;padding:1.2rem;box-shadow:0 12px 34px rgba(15,36,72,.07)}
.career-form-card h3,.career-list-card h3{margin-top:0}.career-list-head,.workspace-toolbar,.recruiter-toolbar,.version-controls{display:flex;align-items:center;justify-content:space-between;gap:.65rem;flex-wrap:wrap;margin-bottom:1rem}
.career-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.38fr);gap:.55rem}.career-metrics{display:flex;gap:.45rem;flex-wrap:wrap;margin:.65rem 0}.metric-tag{display:inline-flex;padding:.28rem .55rem;background:#edf3ff;border-radius:999px;color:#264d89;font-size:.78rem;font-weight:800}
.evidence-form{display:block}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.evidence-form .full,.form-grid .full{grid-column:1/-1}.field{display:grid;gap:.3rem;font-weight:750;color:#2a3952}.field input,.field select,.field textarea,.career-form-card input,.career-form-card select,.career-form-card textarea,.career-list-card input,.career-list-card select,.career-list-card textarea{width:100%;border:1px solid #cad6e7;border-radius:12px;padding:.7rem .78rem;background:#fff;color:#13233e;font:inherit}.field textarea,.career-form-card textarea,.career-list-card textarea{min-height:100px;resize:vertical}
.evidence-card{display:grid;gap:.55rem}.evidence-card h3{margin:0}.evidence-bullet{padding:.75rem;border-radius:12px;background:#f4f7fb;color:#24344d}.evidence-tags,.linked-evidence{display:flex;gap:.35rem;flex-wrap:wrap}.evidence-tags span,.linked-evidence span{font-size:.76rem;background:#edf3ff;color:#224f95;padding:.25rem .5rem;border-radius:999px}.evidence-status{font-size:.76rem;font-weight:800;padding:.28rem .55rem;border-radius:999px}.evidence-status.verified{background:#e7f7ed;color:#17653b}.evidence-status.estimated{background:#fff4d6;color:#7b5900}.evidence-status.draft{background:#edf1f7;color:#526079}
.requirement-map,.requirements-list{display:grid;gap:.75rem}.requirement-row{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(180px,.65fr);gap:.75rem;padding:.9rem;border:1px solid #dce5f2;border-radius:15px;background:#fbfdff}.requirement-title{font-weight:850;color:#14233e}.requirement-main{display:grid;gap:.45rem}.requirement-remove{justify-self:end}.importance-dot{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;border-radius:999px;background:#e7effd;color:#174e9c;font-size:.75rem;font-weight:900}.requirement-warning,.privacy-warning{padding:.8rem;border-radius:12px;background:#fff7df;color:#674b00}.workspace-documents{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.workspace-next{padding:1rem;border-radius:15px;background:#eff6ff;border:1px solid #ccdcf6}
.country-settings{display:grid;gap:.4rem}.country-settings div{display:flex;justify-content:space-between;gap:1rem;padding:.6rem 0;border-bottom:1px solid #e5ebf3}.country-settings dt{font-weight:800}.country-settings dd{margin:0;text-align:right;color:#56667d}.country-notes{padding-left:1.15rem}.country-notes li{margin:.45rem 0}.anonymous-toggle{display:flex!important;grid-template-columns:auto 1fr!important;gap:.6rem!important;align-items:flex-start;margin:1rem 0;padding:.8rem;border:1px solid #dce5f2;border-radius:14px;background:#fbfdff}.anonymous-toggle input{width:auto!important;margin-top:.2rem}.anonymous-toggle span{display:grid;gap:.2rem}.anonymous-toggle small{font-weight:500;color:#627086}
.six-second-card,.ats-text-card{background:#fff;border:1px solid #dce5f2;border-radius:20px;padding:1.2rem;box-shadow:0 12px 34px rgba(15,36,72,.07)}.six-title{font-size:1.5rem;font-weight:900;margin:.2rem 0}.six-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1rem 0}.six-facts div{padding:.75rem;background:#f4f7fb;border-radius:13px}.six-facts strong{display:block;font-size:1.2rem}.six-density,.recruiter-risks{padding:.75rem;border-radius:12px;background:#f6f8fc}.good-empty{color:#17653b;font-weight:800}.ats-text-card pre{white-space:pre-wrap;max-height:560px;overflow:auto;background:#101b2e;color:#e8effc;border-radius:14px;padding:1rem}
.version-scoreboard{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.version-scoreboard>div{padding:.85rem;border:1px solid #dce5f2;border-radius:14px;background:#fff}.version-scoreboard strong{display:block;font-size:1.5rem}.version-delta.positive{color:#17653b}.version-delta.negative{color:#9b2c2c}.version-diff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.version-table-wrap{overflow:auto}.version-table{width:100%;border-collapse:collapse}.version-table th,.version-table td{padding:.65rem;border-bottom:1px solid #dce5f2;text-align:left}.version-verdict{padding:1rem;border-radius:14px;background:#eff6ff;border-left:4px solid #2b67c8}
.quality-extension-head{margin-top:1rem;padding-top:1rem;border-top:1px solid #dce5f2}.career-tool-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.career-tool-link{display:flex;align-items:center;justify-content:center;text-align:center;min-height:44px;border:1px solid #cdd9ea;border-radius:12px;background:#fff;color:#194f9d;font-weight:800;padding:.55rem}.career-tool-link:hover{background:#f0f5ff}
@media(max-width:900px){.career-tool-grid,.application-workspace-grid,.country-mode-grid,.recruiter-view-grid{grid-template-columns:1fr}.workspace-documents,.version-diff-grid{grid-template-columns:1fr}}
@media(max-width:640px){.career-tool-summary{display:block}.career-filters,.evidence-form,.form-grid,.six-facts,.version-scoreboard,.career-tool-links{grid-template-columns:1fr}.requirement-row{grid-template-columns:1fr}.requirement-remove{justify-self:start}.career-form-card,.career-list-card,.six-second-card,.ats-text-card{padding:.9rem;border-radius:16px}}

.status:not(.show){visibility:hidden;pointer-events:none}

/* =========================================================
   CV.podziel.pl 3.7.1 — responsive public layout hotfix
   Fixes: visible skip link, header overflow at 761–1180 px,
   zoom/high-scale layouts and defensive horizontal overflow.
   ========================================================= */
html {
  max-width: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html { overflow-x: clip; }
}
body {
  max-width: 100%;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}
.skip,
.skip-link {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: #fff;
  color: var(--accent2, #0c357d);
}
.skip:focus,
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 10px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border: 2px solid var(--accent, #174ea6);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 36, 72, .18);
  text-decoration: none;
}
.container,
.header-inner,
.hero-grid,
.career-hub-grid,
.career-tool-grid,
.application-workspace-grid,
.country-mode-grid,
.recruiter-view-grid {
  min-width: 0;
}
.header-inner > *,
.hero-grid > * {
  min-width: 0;
}
.career-hero {
  overflow: hidden;
}
.career-hero h1,
.career-hero p,
.career-hero .eyebrow,
.career-hub-card h2,
.career-hub-card p,
.site-header a,
.site-footer a {
  overflow-wrap: anywhere;
  word-break: normal;
}
.career-hero .eyebrow {
  max-width: 100%;
  white-space: normal;
}
@media (max-width: 1180px) {
  .container {
    width: min(calc(100% - 24px), var(--max));
    max-width: calc(100% - 24px);
  }
  .site-header .header-inner {
    position: relative;
    min-height: 64px;
    gap: 10px;
  }
  .site-header .brand {
    flex: 1 1 auto;
  }
  .site-header .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    margin-left: auto;
  }
  .site-header .header-actions {
    order: 3;
    flex: 0 0 auto;
  }
  .site-header .privacy-pill {
    display: none;
  }
  .site-header .main-nav {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .site-header .main-nav.open {
    display: flex;
  }
  .site-header .main-nav a {
    width: 100%;
    padding: 11px 12px;
  }
}
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 20px), var(--max));
    max-width: calc(100% - 20px);
  }
  .site-header .header-inner {
    min-height: 62px;
  }
  .site-header .brand {
    font-size: 1rem;
  }
  .site-header .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .site-header .header-actions {
    gap: 4px;
  }
  .site-header .lang-link {
    padding: 7px 10px;
  }
  .career-hero {
    padding: 28px 0 20px;
  }
  .career-hero h1 {
    font-size: clamp(2rem, 11vw, 2.7rem);
    line-height: 1.05;
    letter-spacing: -.045em;
  }
  .career-hero p {
    font-size: 1rem;
  }
  .career-hero .hero-actions .btn {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .site-header .brand span:last-child {
    font-size: .92rem;
  }
  .site-header .lang-link {
    padding-inline: 8px;
  }
  .career-hero h1 {
    font-size: 1.95rem;
  }
}
