:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: #fffdf9;
  --surface-strong: #ffffff;
  --ink: #202428;
  --muted: #667077;
  --line: #dcd7cd;
  --line-strong: #c8c1b5;
  --teal: #11736b;
  --teal-dark: #0d5651;
  --coral: #c94f3d;
  --gold: #b9861f;
  --blue: #335c9f;
  --mint: #d7efe9;
  --rose: #f8ddd5;
  --amber: #f3e1b4;
  --shadow: 0 18px 45px rgba(29, 27, 23, 0.12);
  --radius: 8px;
  --sidebar: 260px;
  --focus: 0 0 0 3px rgba(17, 115, 107, 0.2);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(215, 239, 233, 0.38), transparent 280px),
    var(--bg);
  color: var(--ink);
}

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

button,
label,
select,
input[type="range"],
input[type="file"] {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

button {
  border: 0;
}

textarea {
  resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
}

.auth-panel {
  min-height: 100vh;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.brand-stack {
  display: grid;
  gap: 6px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, var(--teal), var(--blue)),
    var(--teal);
  font-weight: 800;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
}

.powered {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-copy h1 {
  margin: 0 0 12px;
  font-size: 2.2rem;
  line-height: 1.08;
  max-width: 12ch;
}

.auth-copy p {
  max-width: 46ch;
  margin: 0;
  color: var(--muted);
}

.auth-tabs,
.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2eee7;
  padding: 3px;
  gap: 3px;
}

.auth-tabs button,
.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.auth-tabs button.is-active,
.segmented button.is-active {
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: 0 2px 8px rgba(32, 36, 40, 0.08);
}

.auth-form {
  display: grid;
  gap: 14px;
  max-width: 440px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.field label,
.field-title {
  color: #394047;
  font-size: 0.84rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select,
.input-shell input,
.input-shell textarea,
.input-shell select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 11px 12px;
  min-height: 44px;
}

.field textarea,
.input-shell textarea {
  min-height: 112px;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  padding: 0 15px;
  color: var(--ink);
  background: #ece6dc;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn.primary {
  color: #fff;
  background: var(--teal);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.subtle {
  background: transparent;
  border: 1px solid var(--line);
}

.btn.warn {
  color: #fff;
  background: var(--coral);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.btn.icon-only {
  width: 42px;
  padding: 0;
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.auth-preview {
  min-height: 100vh;
  padding: 36px;
  display: grid;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.showcase {
  width: min(850px, 100%);
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 22px;
  align-items: center;
}

.template-strip {
  display: grid;
  gap: 14px;
}

.mini-template {
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(32, 36, 40, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 253, 249, 0.9)),
    var(--surface);
  box-shadow:
    0 20px 42px rgba(29, 27, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.mini-template.premium {
  border-color: rgba(185, 134, 31, 0.28);
}

.mini-template-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mini-template-head strong {
  color: #172027;
  font-size: 0.96rem;
}

.mini-template-head span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #4e3907;
  background: #f2dfa9;
  font-size: 0.72rem;
  font-weight: 850;
}

.mini-template.free .mini-template-head span {
  color: var(--teal-dark);
  background: var(--mint);
}

.mini-template-paper {
  min-height: 68px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 13px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(32, 36, 40, 0.1);
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--thumb-accent, var(--teal)) 0 76px, #fffaf1 76px),
    #fffaf1;
}

.mini-template-rail {
  display: grid;
  gap: 7px;
}

.mini-template-rail span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.mini-template-rail i {
  display: block;
  width: 44px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.line-set {
  display: grid;
  gap: 7px;
}

.fake-line {
  height: 7px;
  width: var(--w, 100%);
  border-radius: 999px;
  background: #ded7cb;
}

.fake-line.accent {
  background: var(--teal);
}

.preview-frame {
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-cv-frame {
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 236, 0.9)),
    var(--surface-strong);
}

.auth-cv-image {
  display: block;
  width: min(100%, 520px);
  max-height: min(74vh, 720px);
  object-fit: contain;
  border-radius: 7px;
  box-shadow: 0 14px 36px rgba(29, 27, 23, 0.13);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}

.full-shell {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
}

.workspace-shell {
  grid-template-columns: minmax(480px, 520px) minmax(520px, 1fr);
  height: 100vh;
  overflow: hidden;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: grid;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(12px);
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-header .account-box {
  grid-template-columns: minmax(210px, auto) auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
}

.app-header .user-pill {
  padding: 10px 12px;
}

.sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 18px;
  background: #fffaf1;
  border-right: 1px solid var(--line);
}

.workspace-tabs {
  height: 100vh;
  overflow: auto;
  justify-content: flex-start;
  gap: 18px;
  padding: 24px;
}

.sidebar > .brand-stack,
.sidebar > .nav,
.sidebar > .left-workspace,
.sidebar > .account-box {
  flex: 0 0 auto;
}

.left-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.left-workspace-head {
  display: grid;
  gap: 5px;
}

.left-workspace-head h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.left-workspace-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  height: 54px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.nav button {
  flex: 1 1 0;
  min-width: 0;
  height: 52px;
  min-height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.nav button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.nav button:hover {
  color: var(--ink);
  background: #f7f2ea;
}

.nav button.is-active {
  color: var(--ink);
  background: #fbfaf7;
}

.nav button.is-active::after {
  background: var(--teal);
}

.account-box {
  display: grid;
  gap: 12px;
}

.user-pill {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.user-pill strong {
  overflow-wrap: anywhere;
}

.plan-badge,
.tier-badge,
.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.tier-badge.premium,
.plan-badge.premium {
  color: #593e02;
  background: var(--amber);
}

.status-badge.danger {
  color: #7b2419;
  background: var(--rose);
}

.status-badge.warning {
  color: #5e4300;
  background: #fff2c2;
}

.main-area {
  min-width: 0;
  padding: 24px;
}

.preview-main {
  min-width: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #e6dfd3;
}

.preview-toolbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 253, 249, 0.92);
}

.preview-toolbar h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.1;
}

.preview-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.topbar h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.topbar p {
  margin: 5px 0 0;
  color: var(--muted);
}

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

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(460px, 1fr);
  gap: 20px;
  align-items: start;
}

.builder-stack {
  display: grid;
  gap: 16px;
}

.builder-editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-strong);
}

.builder-editor-tabs button {
  min-height: 52px;
  position: relative;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.builder-editor-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}

.builder-editor-tabs button.is-active {
  color: var(--ink);
  background: #fbfaf7;
}

.builder-editor-tabs button.is-active::after {
  background: var(--teal);
}

.admin-editor-tabs {
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.admin-tab-panel {
  display: contents;
}

.admin-tab-panel[hidden] {
  display: none;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.9);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.panel-body {
  padding: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.upload-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbf7ef;
}

.upload-box svg {
  color: var(--teal);
}

.upload-box strong {
  display: block;
}

.upload-box span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
}

.form-section-title svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.template-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

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

.template-card {
  display: grid;
  gap: 10px;
  min-height: 318px;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.template-card.is-selected {
  border-color: var(--teal);
  box-shadow: var(--focus);
}

.template-card.is-locked {
  background: #fcf9f1;
}

.template-thumb {
  height: 250px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--thumb-accent, var(--teal)) 0 28%, transparent 28%),
    #fbf8f1;
  padding: 11px;
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 10px;
}

.template-thumb.actual-template {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(233, 226, 215, 0.88)),
    #e9e2d7;
}

.template-preview-scale {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 816px;
  transform: scale(0.42) translateX(-50%);
  transform-origin: top left;
  pointer-events: none;
}

.template-preview-scale .cv-page {
  width: 816px;
  min-height: 1056px;
  margin: 0;
  box-shadow: 0 14px 34px rgba(32, 36, 40, 0.28);
}

.template-thumb.thumb-retail-photo {
  grid-template-columns: 1fr 0.34fr;
  background:
    linear-gradient(var(--thumb-accent, #cf4456) 0 20%, transparent 20%),
    linear-gradient(90deg, transparent 0 68%, #e9edf0 68% 100%),
    #fff;
}

.template-thumb.thumb-minimal-pharma {
  grid-template-columns: 1fr;
  background:
    linear-gradient(#4b4b49 0 26%, var(--thumb-accent, #4ca092) 26% 31%, #fff 31%);
}

.template-thumb.thumb-minimal-pharma .thumb-dot {
  display: none;
}

.template-thumb.thumb-slate-sidebar {
  background:
    linear-gradient(#4b4b49 0 30%, transparent 30%),
    linear-gradient(90deg, #607984 0 32%, transparent 32%),
    #fff;
}

.template-thumb.thumb-blue-portrait {
  background:
    linear-gradient(90deg, #a9cfe9 0 34%, transparent 34%),
    linear-gradient(135deg, #a9cfe9 0 28%, transparent 28%),
    #fff;
}

.template-thumb.thumb-maroon-orbit {
  grid-template-columns: 1fr 0.3fr;
  background:
    radial-gradient(circle at 82% 12%, var(--thumb-accent, #9a4052) 0 28%, transparent 29%),
    radial-gradient(circle at 88% 45%, var(--thumb-accent, #9a4052) 0 18%, transparent 19%),
    linear-gradient(90deg, transparent 0 66%, #eef1f2 66% 88%, transparent 88%),
    #fff;
}

.thumb-stack {
  display: grid;
  gap: 6px;
  align-content: start;
}

.thumb-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.template-meta > strong {
  font-size: 0.96rem;
}

.template-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.style-controls {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.style-controls.compact {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 16px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line-strong);
  background: var(--swatch);
}

.swatch.is-active {
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 5px rgba(17, 115, 107, 0.18);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.range-row input {
  width: 100%;
}

.layout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.layout-summary > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.layout-summary strong {
  overflow-wrap: anywhere;
}

.preview-panel {
  position: sticky;
  top: 20px;
}

.preview-scroll {
  overflow: auto;
  max-height: calc(100vh - 190px);
  padding: 18px;
  background: #e9e2d7;
  border-radius: 0 0 var(--radius) var(--radius);
}

.preview-canvas {
  flex: 1;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  padding: 24px;
}

.workspace-tabs .template-grid,
.workspace-tabs .cards-grid,
.workspace-tabs .billing-layout,
.workspace-tabs .profile-layout,
.workspace-tabs .erp-layout {
  grid-template-columns: 1fr;
}

.workspace-tabs .erp-layout > .panel:first-child {
  grid-column: auto;
}

.workspace-tabs .panel-head,
.workspace-tabs .panel-body {
  padding: 15px;
}

.workspace-tabs .template-card {
  min-height: 318px;
}

.workspace-tabs .account-box {
  margin-top: 2px;
}

.cv-page {
  width: min(100%, 816px);
  min-height: 1056px;
  margin: 0 auto;
  background: #fff;
  color: #202428;
  box-shadow: 0 16px 40px rgba(32, 36, 40, 0.16);
  border-radius: 4px;
  overflow: hidden;
  --gap: calc(18px * var(--cv-density, 1));
}

.cv-inner {
  padding: calc(42px * var(--cv-density, 1));
}

.cv-header {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 4px solid var(--cv-accent, var(--teal));
}

.cv-photo {
  display: none;
}

.cv-photo span {
  font-weight: 900;
  letter-spacing: 0;
}

.cv-title {
  min-width: 0;
}

.cv-name {
  margin: 0;
  color: #111416;
  font-size: 2.25rem;
  line-height: 1.05;
}

.cv-role {
  margin: 0;
  color: var(--cv-accent, var(--teal));
  font-weight: 800;
  font-size: 1.02rem;
}

.cv-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #566069;
  font-size: 0.86rem;
}

.cv-contact span {
  overflow-wrap: anywhere;
}

.cv-layout {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 26px;
  padding-top: 24px;
}

.cv-section {
  display: grid;
  gap: 9px;
  margin-bottom: var(--gap);
}

.cv-section h3 {
  margin: 0;
  color: #171b1f;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cv-section p {
  margin: 0;
  color: #394047;
}

.cv-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #394047;
}

.cv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cv-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e7f1ee;
  color: #283035;
  font-size: 0.78rem;
  font-weight: 700;
}

.cv-modern .cv-inner {
  padding: 0;
}

.cv-modern .cv-header {
  padding: 42px;
  color: #fff;
  border: 0;
  background: var(--cv-accent, var(--teal));
}

.cv-modern .cv-name,
.cv-modern .cv-role,
.cv-modern .cv-contact {
  color: #fff;
}

.cv-modern .cv-layout {
  padding: 32px 42px 42px;
}

.cv-editorial .cv-header {
  border-bottom: 1px solid #1f2428;
}

.cv-editorial .cv-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
}

.cv-editorial .cv-layout {
  grid-template-columns: 1fr;
}

.cv-editorial .cv-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cv-technical .cv-page,
.cv-page.cv-technical {
  background: #fbfcfb;
}

.cv-technical .cv-header {
  border-bottom: 0;
  padding: 28px;
  background: #111416;
}

.cv-technical .cv-name,
.cv-technical .cv-role,
.cv-technical .cv-contact {
  color: #fff;
}

.cv-technical .cv-layout {
  grid-template-columns: 1fr 0.36fr;
}

.cv-technical .cv-main {
  grid-column: 1;
  grid-row: 1;
}

.cv-technical .cv-sidebar {
  grid-column: 2;
  grid-row: 1;
}

.cv-retail-photo .cv-inner {
  padding: 34px 42px 40px;
  border-top: 34px solid var(--cv-accent, #cf4456);
}

.cv-retail-photo .cv-header {
  grid-template-columns: 1fr 154px;
  gap: 22px 28px;
  align-items: start;
  border-bottom: 2px solid #b8b8b8;
}

.cv-retail-photo .cv-photo {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  place-items: center;
  width: 154px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 35%, #f6d9cc 0 18%, transparent 19%),
    radial-gradient(circle at 50% 28%, #313943 0 15%, transparent 16%),
    linear-gradient(145deg, #d8e0e3, #f3f0ed);
  color: var(--cv-accent, #cf4456);
}

.cv-retail-photo .cv-photo span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
}

.cv-retail-photo .cv-contact {
  grid-column: 2;
  display: grid;
  gap: 4px;
  color: #202428;
  font-size: 0.72rem;
}

.cv-retail-photo .cv-name {
  text-transform: uppercase;
  font-size: 2.05rem;
}

.cv-retail-photo .cv-role {
  color: #202428;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.cv-retail-photo .cv-layout {
  grid-template-columns: 1fr 0.42fr;
  gap: 34px;
}

.cv-retail-photo .cv-main {
  grid-column: 1;
  grid-row: 1;
}

.cv-retail-photo .cv-sidebar {
  grid-column: 2;
  grid-row: 1;
}

.cv-retail-photo .cv-section h3 {
  padding-bottom: 5px;
  border-bottom: 10px solid #f5dfe3;
  font-size: 0.8rem;
}

.cv-retail-photo .cv-tags span {
  border-radius: 0;
  background: #f7e7ea;
}

.cv-minimal-pharma .cv-inner {
  padding: 0;
}

.cv-minimal-pharma .cv-header {
  padding: 36px 42px 34px;
  border: 0;
  background:
    linear-gradient(#4b4b49 0 58px, var(--cv-accent, #4ca092) 58px 70px, transparent 70px),
    #fff;
}

.cv-minimal-pharma .cv-contact {
  order: -1;
  justify-content: center;
  margin-bottom: 48px;
  color: #fff;
  font-size: 0.8rem;
}

.cv-minimal-pharma .cv-title {
  text-align: center;
}

.cv-minimal-pharma .cv-name {
  color: #555;
  font-size: 2.35rem;
  font-weight: 400;
}

.cv-minimal-pharma .cv-role {
  display: none;
}

.cv-minimal-pharma .cv-layout {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 42px 44px;
}

.cv-minimal-pharma .cv-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--cv-accent, #4ca092);
}

.cv-minimal-pharma .cv-section {
  padding-top: 18px;
  border-top: 1px solid var(--cv-accent, #4ca092);
}

.cv-minimal-pharma .cv-sidebar .cv-section {
  border-top: 0;
  padding-top: 0;
}

.cv-minimal-pharma .cv-tags span {
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-weight: 500;
}

.cv-slate-sidebar .cv-inner {
  padding: 0;
}

.cv-slate-sidebar .cv-header {
  padding: 38px 40px;
  border: 0;
  background: #4b4b49;
}

.cv-slate-sidebar .cv-name {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.85rem;
  text-transform: uppercase;
}

.cv-slate-sidebar .cv-role {
  color: #f2f2f2;
}

.cv-slate-sidebar .cv-contact {
  color: #fff;
}

.cv-slate-sidebar .cv-layout {
  grid-template-columns: 0.42fr 1fr;
  gap: 0;
  padding-top: 0;
}

.cv-slate-sidebar .cv-sidebar {
  min-height: 880px;
  padding: 32px 30px;
  background: var(--cv-accent, #5f7782);
  color: #fff;
}

.cv-slate-sidebar .cv-main {
  padding: 34px 42px 42px;
}

.cv-slate-sidebar .cv-section h3,
.cv-slate-sidebar .cv-list,
.cv-slate-sidebar .cv-section p {
  color: inherit;
}

.cv-slate-sidebar .cv-tags span {
  padding: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.cv-blue-portrait .cv-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 1056px;
  padding: 0;
}

.cv-blue-portrait .cv-header {
  position: relative;
  grid-column: 2;
  padding: 58px 42px 26px;
  border: 0;
}

.cv-blue-portrait .cv-header::after {
  content: "";
  display: block;
  width: calc(100% + 42px);
  height: 22px;
  margin-top: 20px;
  background: var(--cv-accent, #9cc6e8);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.cv-blue-portrait .cv-title {
  max-width: 440px;
}

.cv-blue-portrait .cv-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.15rem;
  font-weight: 400;
}

.cv-blue-portrait .cv-role {
  color: #111416;
}

.cv-blue-portrait .cv-contact {
  display: none;
}

.cv-blue-portrait .cv-photo {
  position: absolute;
  left: -174px;
  top: 58px;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 8px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #f5d7c8 0 20%, transparent 21%),
    radial-gradient(circle at 50% 30%, #394047 0 16%, transparent 17%),
    linear-gradient(145deg, #dce8ef, #f7f2ec);
  color: #1d5e82;
}

.cv-blue-portrait .cv-photo span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
}

.cv-blue-portrait .cv-layout {
  display: contents;
}

.cv-blue-portrait .cv-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 202px 32px 42px;
  background:
    linear-gradient(135deg, var(--cv-accent, #9cc6e8) 0 36%, transparent 36%),
    #a9cfe9;
}

.cv-blue-portrait .cv-main {
  grid-column: 2;
  padding: 0 42px 44px;
}

.cv-blue-portrait .cv-tags span {
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-weight: 600;
}

.cv-maroon-orbit .cv-inner {
  padding: 52px 48px 44px;
}

.cv-maroon-orbit .cv-header {
  position: relative;
  grid-template-columns: 1fr 150px;
  gap: 24px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 4px solid var(--cv-accent, #9a4052);
}

.cv-maroon-orbit .cv-header::before,
.cv-maroon-orbit .cv-header::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -92px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: var(--cv-accent, #9a4052);
  z-index: 0;
}

.cv-maroon-orbit .cv-header::after {
  right: -20px;
  top: 16px;
  width: 150px;
  height: 150px;
}

.cv-maroon-orbit .cv-title,
.cv-maroon-orbit .cv-contact,
.cv-maroon-orbit .cv-photo {
  position: relative;
  z-index: 1;
}

.cv-maroon-orbit .cv-name {
  max-width: 380px;
  color: var(--cv-accent, #9a4052);
  font-size: 3.2rem;
  text-transform: uppercase;
  line-height: 0.98;
}

.cv-maroon-orbit .cv-role {
  display: none;
}

.cv-maroon-orbit .cv-contact {
  grid-column: 1;
  font-size: 0.78rem;
}

.cv-maroon-orbit .cv-photo {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 9px solid #f6f7f7;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #f4d8ca 0 18%, transparent 19%),
    radial-gradient(circle at 50% 28%, #363e45 0 15%, transparent 16%),
    linear-gradient(145deg, #d9e1e4, #f7f2ed);
  color: var(--cv-accent, #9a4052);
}

.cv-maroon-orbit .cv-photo span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}

.cv-maroon-orbit .cv-layout {
  grid-template-columns: 1fr 0.34fr;
  gap: 38px;
}

.cv-maroon-orbit .cv-main {
  grid-column: 1;
  grid-row: 1;
  padding-right: 28px;
  border-right: 4px solid var(--cv-accent, #9a4052);
}

.cv-maroon-orbit .cv-sidebar {
  grid-column: 2;
  grid-row: 1;
}

.cv-maroon-orbit .cv-tags span {
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #202428;
}

.cv-maroon-orbit .cv-list li::marker {
  color: var(--cv-accent, #9a4052);
}

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

.saved-card,
.plan-card,
.invoice-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  padding: 16px;
}

.saved-card {
  display: grid;
  gap: 12px;
}

.saved-card h3,
.plan-card h3 {
  margin: 0;
}

.saved-card p,
.plan-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.saved-actions,
.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.7);
}

.empty-state h3 {
  margin: 0 0 6px;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
}

.billing-layout,
.profile-layout,
.erp-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(420px, 1fr);
  gap: 20px;
  align-items: start;
}

.erp-layout > .panel:first-child {
  grid-column: 1 / -1;
}

.admin-stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.customers-panel,
.smtp-settings-panel,
.template-access-panel,
.manual-review-panel {
  grid-column: 1 / -1;
}

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

.template-access-row {
  display: grid;
  grid-template-columns: 74px 1fr minmax(150px, 190px);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.template-access-swatch {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  align-items: center;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f4ee;
}

.template-access-swatch span {
  align-self: stretch;
  background: var(--thumb-accent);
}

.template-access-swatch i {
  display: block;
  width: 70%;
  height: 7px;
  margin-left: 10px;
  border-radius: 999px;
  background: rgba(17, 115, 107, 0.34);
  box-shadow: 0 13px 0 rgba(32, 36, 40, 0.16), 0 26px 0 rgba(32, 36, 40, 0.12);
}

.template-access-copy {
  display: grid;
  gap: 3px;
}

.template-access-copy span,
.template-access-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.compact-field {
  margin: 0;
}

.template-access-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 14px 0;
}

.price strong {
  font-size: 2rem;
}

.plan-list {
  margin: 12px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.plan-list li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.plan-list svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.stripe-box {
  display: grid;
  gap: 16px;
}

.stripe-box h3 {
  margin: 8px 0 4px;
}

.stripe-box p {
  margin: 0;
  color: var(--muted);
}

.stripe-meta {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.88rem;
}

.stripe-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(185, 134, 31, 0.3);
  border-radius: var(--radius);
  background: #fff8e5;
  color: #4d3b08;
  font-size: 0.9rem;
}

.stripe-note svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.manual-payment-box {
  display: grid;
  gap: 16px;
}

.manual-payment-box p {
  margin: 0;
  color: var(--muted);
}

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

.manual-payment-details span {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.88rem;
}

.manual-payment-details strong {
  color: var(--ink);
  font-size: 0.82rem;
}

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

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

.customer-admin-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) minmax(130px, auto) minmax(140px, 0.7fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.customer-admin-row.is-inactive {
  background: rgba(250, 236, 232, 0.72);
}

.customer-admin-copy,
.customer-admin-badges {
  display: grid;
  gap: 5px;
}

.customer-admin-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.customer-plan-field select {
  min-width: 130px;
}

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

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

.proof-row {
  align-items: center;
  flex-wrap: wrap;
}

.proof-row > div {
  display: grid;
  gap: 4px;
  min-width: 180px;
}

.proof-row > div span {
  color: var(--muted);
  font-size: 0.86rem;
}

.proof-link {
  color: var(--teal);
  font-weight: 800;
}

.proof-admin-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.72);
}

.proof-admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.proof-admin-user span:not(.plan-badge) {
  color: var(--muted);
}

.btn.compact {
  min-height: 38px;
  padding: 8px 12px;
}

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

.switch {
  position: relative;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfc7ba;
}

.slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--teal);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.payload {
  max-height: 420px;
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: #161a1d;
  color: #f5f0e8;
  font-size: 0.86rem;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 8px;
}

.toast {
  min-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #171b1f;
  color: #fff;
  box-shadow: var(--shadow);
}

.download-shell {
  position: fixed;
  left: 0;
  top: 0;
  width: 760px;
  background: #fff;
  pointer-events: none;
  opacity: 1;
  z-index: 1000;
}

.download-shell .cv-page {
  width: 760px;
  min-height: auto;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.download-shell .cv-inner {
  padding: calc(42px * var(--cv-density, 1));
}

.download-shell .cv-layout {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 26px;
  padding-top: 24px;
}

.download-shell .cv-editorial .cv-layout {
  grid-template-columns: 1fr;
}

.download-shell .cv-editorial .cv-sidebar,
.download-shell .cv-minimal-pharma .cv-sidebar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.download-shell .cv-technical .cv-layout {
  grid-template-columns: 1fr 0.36fr;
}

.download-shell .cv-retail-photo .cv-inner {
  padding: 34px 42px 40px;
}

.download-shell .cv-retail-photo .cv-header {
  grid-template-columns: 1fr 154px;
}

.download-shell .cv-retail-photo .cv-layout {
  grid-template-columns: 1fr 0.42fr;
  gap: 34px;
}

.download-shell .cv-minimal-pharma .cv-inner,
.download-shell .cv-slate-sidebar .cv-inner {
  padding: 0;
}

.download-shell .cv-minimal-pharma .cv-header {
  padding: 36px 42px 34px;
}

.download-shell .cv-minimal-pharma .cv-layout {
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 0 42px 44px;
}

.download-shell .cv-slate-sidebar .cv-layout {
  grid-template-columns: 0.42fr 1fr;
  gap: 0;
  padding-top: 0;
}

.download-shell .cv-slate-sidebar .cv-sidebar {
  min-height: 880px;
  padding: 32px 30px;
}

.download-shell .cv-slate-sidebar .cv-main {
  padding: 34px 42px 42px;
}

.download-shell .cv-blue-portrait .cv-inner {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 1056px;
  padding: 0;
}

.download-shell .cv-blue-portrait .cv-header {
  grid-column: 2;
  padding: 58px 42px 26px;
}

.download-shell .cv-blue-portrait .cv-layout {
  display: contents;
}

.download-shell .cv-blue-portrait .cv-sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: auto;
  padding: 202px 32px 42px;
}

.download-shell .cv-blue-portrait .cv-main {
  grid-column: 2;
  padding: 0 42px 44px;
}

.download-shell .cv-blue-portrait .cv-photo {
  position: absolute;
  left: -174px;
  top: 58px;
  margin-bottom: 0;
}

.download-shell .cv-maroon-orbit .cv-inner {
  padding: 52px 48px 44px;
}

.download-shell .cv-maroon-orbit .cv-header {
  grid-template-columns: 1fr 150px;
}

.download-shell .cv-maroon-orbit .cv-layout {
  grid-template-columns: 1fr 0.34fr;
  gap: 38px;
}

.download-shell .cv-maroon-orbit .cv-main {
  padding-right: 28px;
  border-right: 4px solid var(--cv-accent, #9a4052);
}

.download-shell .cv-section,
.download-shell .cv-list,
.download-shell .cv-tags {
  display: block;
}

.download-shell .cv-section {
  break-inside: auto;
  page-break-inside: auto;
}

.download-shell .cv-section h3 {
  break-after: avoid;
  page-break-after: avoid;
}

.download-shell .cv-header,
.download-shell .cv-section h3,
.download-shell .cv-list li,
.download-shell .cv-photo {
  break-inside: avoid;
  page-break-inside: avoid;
}

.download-shell .cv-list li {
  line-height: 1.35;
  margin-bottom: 6px;
}

.download-shell .cv-tags span {
  display: inline-block;
  margin: 0 6px 6px 0;
}

@media (max-width: 1180px) {
  .auth-shell,
  .workspace-grid,
  .billing-layout,
  .profile-layout,
  .erp-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-preview {
    min-height: auto;
  }

  .preview-panel {
    position: static;
  }

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

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    height: auto;
    overflow: visible;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .workspace-tabs {
    height: auto;
    min-height: auto;
  }

  .preview-main {
    height: auto;
    min-height: 80vh;
  }

  .preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .preview-canvas {
    min-height: 80vh;
  }

  .nav button {
    justify-content: center;
  }

  .account-box {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .showcase,
  .template-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .manual-payment-details {
    grid-template-columns: 1fr;
  }

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

  .cv-page {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .auth-panel,
  .auth-preview,
  .main-area,
  .sidebar {
    padding: 18px;
  }

  .topbar,
  .panel-head,
  .template-tools,
  .invoice-row,
  .toggle-row,
  .template-access-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .customer-admin-actions {
    justify-content: stretch;
  }

  .top-actions,
  .button-row,
  .saved-actions,
  .plan-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
  }

  .password-row,
  .two-col,
  .cv-layout,
  .cv-editorial .cv-sidebar,
  .cv-technical .cv-layout,
  .cv-retail-photo .cv-layout,
  .cv-minimal-pharma .cv-sidebar,
  .cv-slate-sidebar .cv-layout,
  .cv-blue-portrait .cv-inner,
  .cv-maroon-orbit .cv-layout {
    grid-template-columns: 1fr;
  }

  .nav button {
    height: 48px;
    min-height: 48px;
    gap: 5px;
    padding: 0 6px;
    font-size: 0.78rem;
  }

  .nav {
    height: 50px;
  }

  .nav button svg {
    width: 16px;
    height: 16px;
  }

  .app-header {
    padding: 18px;
  }

  .app-header-top {
    align-items: stretch;
    flex-direction: column;
  }

  .app-header .account-box {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .cv-inner,
  .cv-modern .cv-header,
  .cv-modern .cv-layout {
    padding: 24px;
  }

  .cv-retail-photo .cv-inner,
  .cv-minimal-pharma .cv-header,
  .cv-minimal-pharma .cv-layout,
  .cv-slate-sidebar .cv-main,
  .cv-maroon-orbit .cv-inner {
    padding: 24px;
  }

  .cv-retail-photo .cv-header,
  .cv-maroon-orbit .cv-header {
    grid-template-columns: 1fr;
  }

  .cv-retail-photo .cv-photo,
  .cv-retail-photo .cv-contact,
  .cv-retail-photo .cv-main,
  .cv-retail-photo .cv-sidebar,
  .cv-maroon-orbit .cv-photo,
  .cv-maroon-orbit .cv-contact,
  .cv-maroon-orbit .cv-main,
  .cv-maroon-orbit .cv-sidebar {
    grid-column: auto;
    grid-row: auto;
  }

  .cv-slate-sidebar .cv-sidebar,
  .cv-blue-portrait .cv-sidebar {
    min-height: auto;
    padding: 24px;
  }

  .cv-blue-portrait .cv-header,
  .cv-blue-portrait .cv-main {
    grid-column: auto;
    padding: 24px;
  }

  .cv-blue-portrait .cv-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cv-blue-portrait .cv-photo {
    position: static;
    margin-bottom: 16px;
  }

  .cv-maroon-orbit .cv-header::before,
  .cv-maroon-orbit .cv-header::after {
    display: none;
  }

  .cv-maroon-orbit .cv-main {
    border-right: 0;
    padding-right: 0;
  }

  .cv-name {
    font-size: 1.72rem;
  }

  .auth-cv-frame {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .template-strip {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: 28px;
  }

  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .panel-head,
  .builder-form,
  #toast {
    display: none !important;
  }

  .app-shell,
  .workspace-grid,
  .main-area {
    display: block;
    padding: 0;
  }

  .preview-scroll,
  .panel {
    border: 0;
    padding: 0;
    background: #fff;
  }

  .cv-page {
    width: 100%;
    min-height: auto;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .cv-list li,
  .cv-header {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .cv-section h3 {
    break-after: avoid;
    page-break-after: avoid;
  }
}
