.dellent-app { color: var(--brand-primary); font-family: Inter, Arial, sans-serif; }
.dellent-app [hidden] { display: none !important; }
.dellent-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 24px 2px 20px; }
.dellent-intro h1 { max-width: 680px; margin: 0; font-size: clamp(27px, 3vw, 34px); line-height: 1.04; letter-spacing: -.055em; }
.dellent-intro p:last-child { max-width: 600px; margin: 8px 0 0; color: var(--brand-muted); font-size: 13px; line-height: 1.6; }
.dellent-app:not(.library-view):has(#editor-active:not([hidden])) .dellent-intro { padding: 22px 2px 20px; }
.dellent-app:not(.library-view):has(#editor-active:not([hidden])) .dellent-intro h1 { font-size: clamp(28px, 3vw, 38px); }
.dellent-app:not(.library-view):has(#editor-active:not([hidden])) .dellent-intro p:last-child { margin-top: 7px; }
.dellent-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 20px; min-width: 0; }
.current-cv { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; border: 1px solid var(--brand-line); border-radius: 12px; background: #fff; }
.current-cv span, .current-cv strong { display: block; }.current-cv span { color: var(--brand-muted); font-size: 10px; }.current-cv strong { margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.current-cv button { flex-shrink: 0; }
.workspace-tabs { display: none; }
.save-bar { position:sticky; bottom:0; z-index:3; display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:8px 16px; padding:7px 24px; border-top:1px solid var(--brand-line); background:var(--brand-white); }
.save-bar-status { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--brand-muted); font-size:12px; }
.save-bar-status [data-state] { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; border-radius:6px; background:var(--portal-control); font-weight:600; }
.save-bar-status [data-state]::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.save-bar-status :is([data-state="saved"],[data-state="ready"]) { background:var(--portal-success-surface); color:var(--portal-success-ink); }
.save-bar-status [data-state="dirty"] { background:var(--brand-soft); color:var(--portal-action); }
#pdf-state-note { flex-basis:100%; margin:0; line-height:1.4; }
.dellent-app:not(.library-view):has(#editor-active:not([hidden])) .dellent-intro { display: none; }
.editor-panel:has(#editor-active:not([hidden])) { overflow: visible; }
.section-nav button.section-hidden { opacity: .6; border-style: dashed; }
.section-toggle select { max-width: 190px; padding: 6px; border: 1px solid var(--brand-line); border-radius: 6px; background: #fff; color: var(--brand-muted); font: inherit; }
.dellent-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: stretch; gap: 16px; min-width: 0; }
.start-grid { display: grid; grid-template-columns: minmax(220px, .8fr) auto minmax(0, 1.35fr) minmax(230px, .9fr); align-items: start; gap: 20px; }
.start-upload, .start-profiles, .start-detail { min-width: 0; }
.start-grid .primary-button, .start-grid .secondary-button { width: 100%; }
.start-upload .text-action { margin-top: 8px; text-align: left; padding-left: 0; }
.start-divider { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: stretch; color: var(--brand-muted); font-size: 11px; }
.start-divider::before, .start-divider::after { content: ""; flex: 1; width: 1px; min-height: 20px; background: var(--brand-line); }
.drafts-panel { display: flex; flex-direction: column; }
.drafts-panel .draft-list { flex: 1; align-content: start; max-height: 300px; }
.sidebar-panel, .editor-panel { min-width: 0; border: 1px solid var(--brand-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(16,44,60,.04); }
.sidebar-panel { padding: 22px; }
.sidebar-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 23px; }
.sidebar-heading span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-primary); font-size: 11px; font-weight: 900; }
.sidebar-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.03em; }
.upload-label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 850; }
.sidebar-panel input[type=file], .sidebar-panel input[type=search] { display: block; width: 100%; max-width: 100%; margin-bottom: 12px; padding: 10px; border: 1px solid var(--brand-line); border-radius: 9px; background: var(--brand-background); color: var(--brand-primary); font: inherit; font-size: 11px; }
.sidebar-panel input[type=file]::file-selector-button { margin-right: 9px; padding: 7px 9px; border: 0; border-radius: 6px; background: var(--brand-soft); color: var(--brand-primary); font: inherit; font-weight: 750; cursor: pointer; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 10px 14px; border-radius: 8px; font: inherit; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }
.primary-button { border: 1px solid var(--brand-primary); background: var(--brand-primary); color: #fff; }
.primary-button:hover { background: var(--brand-primary); color: #fff; text-decoration: none; }
.secondary-button { border: 1px solid var(--brand-line); background: #fff; color: var(--brand-primary); }
.secondary-button:hover { background: var(--brand-background); }
.primary-button:disabled, .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.sidebar-panel > .primary-button, .sidebar-panel > .secondary-button { width: 100%; }
.sidebar-hint { margin: 10px 0 0; color: var(--brand-muted); font-size: 11px; line-height: 1.5; }
.sidebar-divider { position: relative; margin: 23px 0; color: var(--brand-muted); font-size: 11px; text-align: center; }
.sidebar-divider::before, .sidebar-divider::after { content: ""; position: absolute; top: 50%; width: 43%; height: 1px; background: var(--brand-line); }
.sidebar-divider::before { left: 0; }.sidebar-divider::after { right: 0; }
.profile-browser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.profile-browser-head span { color: var(--brand-muted); font-size: 10px; white-space: nowrap; }
.profile-list { max-height: 230px; margin-bottom: 0; }
.profile-list .choice { align-items: flex-start; }
.profile-list .choice.active { background: var(--brand-soft); }
.profile-list .choice input { margin-top: 2px; }
.profile-list .choice span { width: 100%; }
.profile-list .choice b, .profile-list .choice small { white-space: normal; overflow-wrap: anywhere; }
.profile-list .choice small { line-height: 1.4; }
.profile-list .sidebar-hint { margin: 0; padding: 17px 12px; }
.profile-detail { margin: 0 0 12px; padding: 14px; border: 1px solid var(--brand-line); border-radius: 9px; background: var(--brand-background); overflow-wrap: anywhere; }
.profile-detail b { font-size: 15px; line-height: 1.3; }
.profile-detail > span { display: block; color: var(--brand-muted); font-size: 10px; font-weight: 750; }
.profile-detail .sidebar-hint { margin: 0; }
.profile-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 12px 0 0; }
.profile-detail dl div { display: grid; gap: 3px; }
.profile-detail dt { color: var(--brand-muted); font-size: 10px; font-weight: 750; }
.profile-detail dd { margin: 0; color: var(--brand-primary); font-size: 11px; line-height: 1.45; }
.text-action { display: block; width: 100%; margin-top: 12px; padding: 7px; border: 0; background: transparent; color: var(--brand-primary); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.draft-list { display: grid; gap: 7px; max-height: 360px; overflow-y: auto; }
.draft-item { width: 100%; padding: 12px; border: 1px solid var(--brand-line); border-radius: 9px; background: #fff; color: var(--brand-primary); text-align: left; cursor: pointer; }
.draft-item:hover, .draft-item.active { border-color: var(--brand-muted); background: var(--brand-background); }
.draft-item strong, .draft-item span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-item strong { font-size: 12px; }.draft-item span { margin-top: 5px; color: var(--brand-muted); font-size: 10px; }
.editor-panel { min-height: 500px; overflow: hidden; }
.editor-empty { display: flex; min-height: 500px; align-items: center; justify-content: center; flex-direction: column; padding: 35px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 62px; height: 74px; margin-bottom: 21px; border: 2px solid var(--brand-line); border-radius: 7px; background: var(--brand-background); color: var(--brand-primary); font-size: 20px; font-weight: 900; transform: rotate(-4deg); }
.editor-empty h2 { margin: 0; font-size: 22px; letter-spacing: -.04em; }.editor-empty p { max-width: 430px; color: var(--brand-muted); font-size: 13px; line-height: 1.6; }
.editor-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px 24px; padding:18px 30px 22px; border-bottom:1px solid var(--brand-line); }
.editor-toolbar h2 { margin:0; font-size:clamp(24px,3vw,30px); line-height:1.15; letter-spacing:-.025em; }
.editor-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.editor-status { margin: 12px 30px 0; color: var(--brand-primary); font-size: 12px; font-weight: 600; line-height: 1.5; }
.editor-status:empty { margin: 0; }
.editor-status.error { color: #a34a28; }
.pdf-privacy-check { margin-top: 12px; padding: 9px 11px; border-radius: 7px; background: #fff1e8; color: #914325; font-size: 11px; line-height: 1.5; }
.pdf-privacy-check ul { margin: 5px 0 0; padding-left: 18px; }
.editor-workspace { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(0,1.1fr); gap: 0; margin-top: 13px; border-top: 1px solid var(--brand-soft); }
.editing-pane { display: flex; flex-direction: column; min-width: 0; padding: 23px; border-right: 1px solid var(--brand-soft); }
.preview-pane { position: sticky; top: 0; min-width: 0; align-self: start; padding: 23px; background: var(--brand-background); }
.pane-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.pane-heading strong { font-size: 14px; }.pane-heading span { color: var(--brand-muted); font-size: 11px; text-align: right; }
.section-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.section-nav button { min-height: 34px; padding: 7px 10px; border: 1px solid var(--brand-line); border-radius: 7px; background: var(--brand-white); color: var(--brand-muted); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.section-nav button:hover, .section-nav button.active { border-color: var(--brand-primary); background: var(--brand-soft); color: var(--brand-primary); }
.section-nav button span { margin-left: 4px; color: var(--brand-muted); }
.editor-sections { container-type: inline-size; min-width: 0; max-height: min(78vh, 980px); overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; }
.editor-sections .section-title { position: sticky; top: 0; z-index: 1; margin: -20px -20px 18px; padding: 16px 20px 12px; border-bottom: 1px solid var(--brand-line); border-radius: 11px 11px 0 0; background: var(--brand-white); }
.cv-section { padding: 20px; border: 1px solid var(--brand-line); border-radius: 11px; background: var(--brand-white); }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }.section-title h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.add-block { padding: 7px 9px; border: 0; border-radius: 6px; background: var(--brand-soft); color: var(--brand-primary); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }.add-block:hover { background: var(--brand-line); }
.field { display: grid; gap: 6px; min-width: 0; color: var(--brand-muted); font-size: 11px; font-weight: 750; }
.field input, .field textarea, .field select, .rich-editor { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid var(--brand-line); border-radius: 8px; background: #fff; color: var(--brand-primary); font: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; }
.section-options { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.section-toggle { display: flex; align-items: center; gap: 7px; color: var(--brand-muted); font-size: 11px; }
.section-toggle input { accent-color: var(--brand-primary); }
.rich-toolbar { display: flex; flex-wrap: wrap; gap: 5px; }
.rich-toolbar button { min-width: 32px; min-height: 30px; padding: 4px 9px; border: 1px solid var(--brand-line); border-radius: 5px; background: #fff; color: var(--brand-primary); cursor: pointer; }
.rich-toolbar button:hover, .rich-toolbar button:focus-visible { background: var(--brand-soft); }
.rich-editor { min-height: 120px; max-height: 400px; overflow-y: auto; overflow-wrap: anywhere; }
.rich-editor:focus, .field select:focus { outline: 2px solid var(--brand-line); border-color: var(--brand-primary); }
.rich-editor p { margin: 0 0 8px; }.rich-editor p:last-child { margin-bottom: 0; }
.rich-editor ul { margin: 0; padding-left: 22px; }
.field textarea { min-height: 82px; resize: vertical; }.field input:focus, .field textarea:focus { outline: 2px solid var(--brand-line); border-color: var(--brand-primary); }
.block-list { display: grid; gap: 10px; }.cv-block { border: 1px solid var(--brand-line); border-radius: 10px; background: #fff; overflow: hidden; }
.block-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; cursor: pointer; list-style: none; }
.block-heading::-webkit-details-marker { display: none; }.block-heading::after { content: "+"; color: var(--brand-primary); font-size: 19px; }.cv-block[open] > .block-heading::after { content: "−"; }
.block-heading > span { min-width: 0; }.block-label { display: block; font-size: 12px; color: var(--brand-primary); overflow-wrap: anywhere; }.block-meta { display: block; margin-top: 5px; color: var(--brand-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.block-heading:hover, .cv-block[open] > .block-heading { background: var(--brand-background); }.block-heading:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: -2px; }
.block-body { padding: 16px; border-top: 1px solid var(--brand-line); }.block-body .block-toolbar { justify-content: flex-end; }
.block-menu > summary { cursor: pointer; font-size: 10px; color: var(--brand-muted); }.block-menu[open] > summary { margin-bottom: 8px; }
.block-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }.block-toolbar strong { color: var(--brand-muted); font-size: 11px; }
.block-actions { display: flex; flex-wrap: wrap; gap: 5px; }.block-actions button { min-width: 27px; min-height: 27px; padding: 3px 7px; border: 1px solid var(--brand-line); border-radius: 5px; background: #fff; color: var(--brand-muted); font: inherit; font-size: 10px; font-weight: 750; cursor: pointer; }.block-actions button:hover { color: var(--brand-primary); border-color: var(--brand-muted); }.block-actions button:disabled { opacity: .35; cursor: default; }.block-actions .remove-block { color: #a34a28; }
.block-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.block-fields .wide { grid-column: 1 / -1; }
.section-empty { margin: 0; padding: 16px; border: 1px dashed var(--brand-line); border-radius: 8px; color: var(--brand-muted); font-size: 12px; }
.section-guidance { margin: -5px 0 18px; color: var(--brand-muted); font-size: 11px; line-height: 1.5; }
.identification-fields { grid-template-columns: minmax(76px, .6fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.preview-scroll { container-type: inline-size; max-height: min(78vh, 980px); overflow: auto; scrollbar-gutter:stable; padding: 5px 7px 20px; }
.cv-sheet { --page: calc(100cqw * 297 / 210); --cv-unit: calc(min(100cqw,620px) / 595.28); box-sizing: border-box; display: flex; flex-direction: column; width: 100%; min-height: var(--page); height: auto; padding: 2% 5.54%; background: #FFFFFF; box-shadow: 0 5px 22px rgba(16,44,60,.13); color: #3C505B; font: 400 calc(var(--cv-unit) * 9)/1.22 Gellix, Arial, sans-serif; overflow-wrap: anywhere; }
.cv-sheet-content { flex: 1; padding: 2.8% 4% 4%; }
.cv-preview-pages { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; width:var(--preview-width,100%); margin-inline:auto; zoom:var(--preview-zoom,1); container-type:inline-size; }
.cv-preview-pages .cv-page {
  --page:calc(100cqw * 297 / 210);
  --cv-unit:calc(100cqw / 595.28);
  min-height:0;
  max-width:none;
  height:var(--page);
  margin:0;
  color:#304551;
  text-rendering:optimizeLegibility;
}
.cv-page > .cv-sheet-content { min-height:0; overflow:hidden; }
.cv-page > :is(.cv-sheet-banner,.cv-sheet-footer) { flex-shrink:0; }
.cv-page .cv-sheet-entry > :not(.cv-sheet-date) { grid-column:2; }
.cv-preview-pages .cv-page-oversized { height:auto; min-height:var(--page); }
.cv-sheet-banner { display: flex; align-items: center; justify-content: space-between; aspect-ratio: 14.7; padding: 0 4%; background: #102C3C; }
.cv-sheet-banner img { display: block; width: 13.1%; height: auto; }
.cv-sheet-banner svg { width: 3.5%; fill: none; stroke: #D4FF8D; stroke-width: 3; }
.cv-sheet-footer { display: flex; align-items: center; justify-content: space-between; aspect-ratio: 16; padding: 0 4%; background: #102C3C; font-size: .9em; }
.cv-sheet-footer a { color: #FFFFFF; text-decoration: none; border-bottom: 1px solid #5CADFF; padding-bottom: 2px; }
.cv-sheet-header { min-height: 34px; margin: 0 0 17px; cursor: pointer; }
.cv-sheet-header:hover { outline: 1px solid rgba(92,173,255,.25); outline-offset: 3px; }
.cv-sheet-initials { color: #102C3C; font: 600 30px/1.06 Gellix, Arial, sans-serif; }
.cv-sheet-function { margin-top: 3px; color: #3C505B; font: 500 14px/1.14 Gellix, Arial, sans-serif; }
.cv-sheet-location { margin-top: 2px; color: #3C505B; font: 400 10.5px/1.14 Gellix, Arial, sans-serif; }
.cv-sheet-section { margin-top: 15px; }
.cv-sheet-section:first-of-type { margin-top: 0; }
.cv-sheet-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.cv-sheet-section h3 { flex: 0 0 auto; margin: 0; color: #102C3C; font: 600 14px/1.21 Gellix, Arial, sans-serif; }
.cv-sheet-rule { flex: 1; height: 1px; background: #5CADFF; }
.cv-sheet p { margin: 0 0 7px; }
.cv-sheet ul { margin: 0 0 7px; padding-left: 14px; }
.cv-sheet li { padding: 0; }
.cv-sheet li::marker { color: #5CADFF; }
.cv-sheet strong { color: #102C3C; }
.cv-sheet-entry { display: grid; grid-template-columns: 17.25% minmax(0,1fr); gap: 0; margin-bottom: 10px; cursor: pointer; }
.cv-sheet-entry:hover, .cv-sheet-section:hover { outline: 1px solid rgba(92,173,255,.25); outline-offset: 2px; }
.cv-sheet-date { padding-right: 8px; font-weight: 400; }
.cv-sheet-role { color: #102C3C; font-size: 1.1em; font-weight: 700; }
.cv-sheet-subtitle { margin: 2px 0 3px; color: #3C505B; }
.cv-sheet-entry ul { margin: 0; padding-left: 14px; }
.cv-sheet-section > ul { padding-left: 14px; }
.cv-sheet-skill { display: grid; grid-template-columns: 30% minmax(0,1fr); gap: 0; margin-bottom: 4px; }
.cv-sheet-skill strong { padding-right: 8px; }
.cv-sheet-languages { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 0; }
.cv-sheet-languages > div { display: flex; gap: 9px; padding: 2px 8px; }
.cv-sheet-languages > div:nth-child(3n+1) { padding-left: 0; }
.cv-sheet-languages > div:not(:nth-child(3n+1)) { border-left: 1px solid #CFD5D8; }
.pdf-result { margin: 0 0 14px; padding: 13px; border: 1px solid var(--brand-line); border-radius: 10px; background: #fff; }.pdf-result-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }.pdf-result-head .editor-actions { justify-content: flex-end; }.pdf-result-head > div:first-child strong, .pdf-result-head > div:first-child span { display: block; }.pdf-result strong { font-size: 12px; }.pdf-result-head > div:first-child span { margin-top: 3px; color: var(--brand-muted); font-size: 10px; }.pdf-result summary { margin-top: 12px; color: var(--brand-primary); font-size: 11px; font-weight: 750; cursor: pointer; }.pdf-result iframe { display: block; width: 100%; height: 650px; margin-top: 10px; border: 1px solid var(--brand-line); border-radius: 6px; background: #fff; }
@media (max-width: 1250px) { .dellent-sidebar { grid-template-columns: minmax(0,1fr) 250px; }.start-grid { grid-template-columns: minmax(200px,.8fr) auto minmax(0,1.3fr); }.start-detail { grid-column: 1 / -1; }.start-detail .profile-detail dl { grid-template-columns: repeat(4,minmax(0,1fr)); }.start-detail .secondary-button { width: auto; min-width: 240px; } }
@media (max-width: 1000px) { .dellent-sidebar { grid-template-columns: minmax(0,1fr); }.start-grid { grid-template-columns: minmax(0,1fr); }.start-divider { flex-direction: row; }.start-divider::before, .start-divider::after { width: auto; height: 1px; min-height: 0; }.start-detail .profile-detail dl { grid-template-columns: repeat(2,minmax(0,1fr)); }.start-detail .secondary-button { width: 100%; }.editor-panel { min-height: 350px; } }
@media (max-width: 700px) { .dellent-intro { align-items: flex-start; flex-direction: column; padding-top: 34px; }.dellent-intro h1 { overflow-wrap: anywhere; }.dellent-sidebar { grid-template-columns: minmax(0,1fr); }.editor-toolbar { align-items: flex-start; flex-direction: column; padding: 22px 18px; }.editor-status { margin-left: 18px; margin-right: 18px; }.editing-pane,.preview-pane { padding: 16px; }.block-fields { grid-template-columns: minmax(0,1fr); }.block-fields .wide { grid-column: auto; }.identification-fields .field:first-child { max-width: none; }.pdf-result-head { align-items: flex-start; flex-direction: column; }.pdf-result iframe { height: 500px; }.cv-sheet { font-size: 10px; }.cv-sheet-header { margin-bottom: 30px; }.cv-sheet-initials { font-size: 23px; }.cv-sheet-function { font-size: 12px; }.cv-sheet-location { font-size: 10px; }.cv-sheet-section h3 { font-size: 15px; } }

@media (max-width: 1000px) {
  .editor-workspace { grid-template-columns: minmax(0,1fr); }
  .editing-pane { border-right: 0; }
  .preview-pane { position: static; display: none; }
  .preview-mode .editing-pane { display: none; }.preview-mode .preview-pane { display: block; }
  .workspace-tabs { display: flex; gap: 6px; padding: 0 18px; margin-top: 15px; }
  .workspace-tabs button { flex: 1; padding: 10px; border: 1px solid var(--brand-line); border-radius: 7px; background: #fff; color: var(--brand-muted); font: inherit; font-size: 12px; cursor: pointer; }
  .workspace-tabs button[aria-pressed=true] { background: var(--brand-soft); border-color: var(--brand-primary); color: var(--brand-primary); font-weight: 750; }
  .cv-sheet { --page: calc(min(100cqw, 620px) * 297 / 210); max-width: 620px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .current-cv { padding: 12px; }
  .section-title { flex-wrap: wrap; }
}

/* Compact entry, followed by a small switcher once a path is chosen. */
#source-picker { display: block; }
.start-panel { padding: 22px; }
.start-heading h2 { margin: 0 0 16px; font-size: 19px; letter-spacing: -.02em; }
.start-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.start-choice { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 17px 34px 17px 17px; border: 1px solid var(--brand-line); border-radius: 9px; background: #fff; color: var(--brand-primary); font: inherit; text-align: left; cursor: pointer; }
.start-choice::after { content: "→"; position: absolute; right: 14px; top: 16px; color: var(--brand-primary); }
.start-choice strong { font-size: 14px; }.start-choice span { font-size: 12px; line-height: 1.4; color: var(--brand-muted); }.start-choice small { display: none; }
.start-choice.main-choice { background: var(--brand-background); border-color: var(--brand-muted); }.start-choice:hover, .start-choice[aria-pressed=true] { border-color: var(--brand-primary); background: var(--brand-background); }.start-choice:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; }.start-choice:disabled { cursor: wait; opacity: .5; }
.start-panel.path-selected .start-heading { display: none; }
.start-panel.path-selected .start-choices { gap: 5px; padding: 4px; border-radius: 8px; background: var(--brand-background); }
.start-panel.path-selected .start-choice { justify-content: center; align-items: center; padding: 10px 8px; border-color: transparent; background: transparent; text-align: center; }
.start-panel.path-selected .start-choice strong { font-size: 12px; }.start-panel.path-selected .start-choice span, .start-panel.path-selected .start-choice::after { display: none; }
.start-panel.path-selected .start-choice[aria-pressed=true] { border-color: var(--brand-line); background: #fff; box-shadow: 0 2px 5px rgba(16,44,60,.04); }
.start-step { max-width: 760px; margin: 16px auto 0; padding: 16px 0 0; border-top: 1px solid var(--brand-line); }
.start-step h3 { margin: 0 0 10px; font-size: 15px; }.start-step-actions { margin-top: 12px; }
#start-upload > h3 { display: none; }
.upload-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px; border: 1px dashed var(--brand-muted); border-radius: 9px; background: var(--brand-background); cursor: pointer; text-align: center; }
.upload-drop strong { font-size: 14px; }.upload-drop > span:not(.secondary-button) { color: var(--brand-muted); font-size: 12px; overflow-wrap: anywhere; max-width: 100%; }.upload-drop.dragging, .upload-drop:focus-within { background: var(--brand-soft); border-color: var(--brand-primary); }
.visually-hidden { position: absolute; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.start-blank { width: auto; margin: 13px auto 0; padding: 5px; color: var(--brand-muted); font-weight: 600; }
#start-profiles .profile-list { max-height: 210px; }
.start-confirm { display: flex; align-items: center; gap: 15px; margin-top: 14px; }.start-confirm .profile-detail { flex: 1; min-width: 0; margin: 0; }.start-confirm > button { flex-shrink: 0; }
.profile-metadata { margin-top: 10px; }.profile-metadata summary { color: var(--brand-muted); font-size: 11px; cursor: pointer; }
#start-drafts .draft-list { margin-top: 10px; max-height: 240px; }.draft-item small { display: block; margin-top: 6px; color: var(--brand-primary); font-size: 10px; font-weight: 700; }
.editor-panel:has(#editor-active[hidden]) { display: none; }
@media (max-width: 700px) {
  .dellent-intro { padding: 18px 2px 14px; gap: 0; }  .start-panel { padding: 16px; }.start-heading h2 { font-size: 18px; margin-bottom: 12px; }
  .start-choices { grid-template-columns: minmax(0,1fr); gap: 8px; }.start-choice { padding: 13px 34px 13px 13px; gap: 5px; }.start-choice::after { top: 12px; }
  .start-panel.path-selected .start-choices { grid-template-columns: repeat(3,minmax(0,1fr)); }.start-panel.path-selected .start-choice { min-height: 47px; padding: 7px 5px; }.start-panel.path-selected .start-choice strong { font-size: 11px; line-height: 1.3; }
  .start-step { margin-top: 12px; padding-top: 12px; }.upload-drop { padding: 18px 12px; }
  .start-confirm { flex-direction: column; align-items: stretch; }.start-step-actions .primary-button, .start-confirm > .primary-button { width: 100%; }
}
/* Scale the preview with its A4 canvas, preserving the PDF hierarchy at every width. */
.cv-sheet { font-size: calc(var(--cv-unit) * 9); }
.cv-sheet-initials { font-size: calc(var(--cv-unit) * 30); }
.cv-sheet-function { font-size: calc(var(--cv-unit) * 14); }
.cv-sheet-location { font-size: calc(var(--cv-unit) * 10.5); }
.cv-sheet-section h3 { font-size: calc(var(--cv-unit) * 14); }
.cv-sheet-header { margin-bottom: calc(var(--cv-unit) * 10); }
.cv-sheet-section { margin-top: calc(var(--cv-unit) * 8); }
.cv-sheet-heading { margin-bottom: calc(var(--cv-unit) * 5); }
.cv-sheet p { margin-bottom: calc(var(--cv-unit) * 3); }
.cv-sheet-entry { margin-bottom: calc(var(--cv-unit) * 5); }
.cv-sheet-entry p:last-child { margin-top: calc(var(--cv-unit) * 4); }
.cv-sheet-role { font-size: calc(var(--cv-unit) * 10); }
.cv-sheet-skill { margin-bottom: calc(var(--cv-unit) * 4); }

[hidden] { display: none !important; }
.login-panel { max-width: 380px; margin: 12vh auto; padding: 30px; background: white; border: 1px solid var(--brand-line); border-radius: 16px; }
.login-panel form { display: grid; gap: 16px; } #login-error { color: #a34a28; }
.cv-language-picker { display: flex; gap: 12px; align-items: center; margin: 16px 24px; }
.date-range { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.date-range small { grid-column: 1 / -1; color: var(--brand-muted); }
.block-heading > .block-actions { flex-shrink: 0; } .drag-handle { cursor: grab !important; } .drag-handle:active { cursor: grabbing !important; }
.cv-sheet { padding-left: 0; padding-right: 0; }
.cv-sheet-content { padding-left: 9.1%; padding-right: 9.1%; }
.cv-sheet-banner, .cv-sheet-footer { padding-left: 9.1%; padding-right: 9.1%; }
.cv-sheet-languages { grid-template-columns: repeat(var(--language-count, 1),minmax(0,1fr)); }
.cv-sheet-languages > div, .cv-sheet-languages > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; flex-wrap: wrap; align-content: start; }

/* Reserve the same columns for actions regardless of the title length. */
.block-heading { display: grid; grid-template-columns: minmax(0,1fr) 132px 16px; gap: 12px; }
.block-heading > .block-actions { display: grid; grid-template-columns: 70px 57px; gap: 5px; justify-self: end; }
.block-heading::after { text-align: center; }
.date-range .field input, .date-range .field select, .block-fields .field input, .block-fields .field select { box-sizing: border-box; height: 40px; }
@media (max-width: 420px) { .block-heading { gap: 6px; padding: 12px; } }

.section-fields-skills { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }

.field-error { color: #a33428; font-size: 11px; font-weight: 500; line-height: 1.4; }
.field [aria-invalid="true"] { border-color: #a33428; }
.validation-summary { margin: 0 0 14px; padding: 12px; border: 1px solid #e4c6c1; border-radius: 8px; background: #fff7f5; color: #853b30; font-size: 12px; line-height: 1.5; }
.validation-summary .text-action { width: auto; margin: 6px 0 0; padding: 0; }
.section-nav .has-errors::after { content: " •"; color: #a33428; }

.processing-progress { display: flex; align-items: center; gap: 12px; padding: 13px 15px; margin-top: 12px; border: 1px solid var(--brand-line); border-radius: 9px; background: var(--brand-background); color: var(--brand-primary); font-size: 12px; }
.processing-progress strong, .processing-progress [data-progress-time] { display: block; }
.processing-progress [data-progress-time] { margin-top: 4px; color: var(--brand-muted); font-variant-numeric: tabular-nums; }
.processing-spinner { width: 22px; height: 22px; flex: 0 0 22px; border: 3px solid var(--brand-line); border-top-color: var(--brand-primary); border-radius: 50%; animation: processing-spin 0.9s linear infinite; }
.summary-progress { margin: 12px 24px; }
.upload-status { display:flex; justify-content:space-between; gap:12px; margin-top:10px; color:var(--brand-muted); font-size:12px; }
.upload-status [data-progress-time] { font-variant-numeric:tabular-nums; }
@keyframes processing-spin { to { transform: rotate(360deg); } }
@media (max-width: 700px) { .summary-progress { margin-left: 18px; margin-right: 18px; } }

/* Shared draft library: document cards, following the visual library reference. */
.dellent-app.library-view .dellent-intro { display: flex; padding: 34px 0 28px; }
.dellent-app.library-view .dellent-intro h1 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.dellent-sidebar.dellent-start { display: block; }
#create-panel { max-width: 860px; margin: 0 auto; }
#create-panel .start-choices { grid-template-columns: repeat(2,minmax(0,1fr)); }
.drafts-library { min-width: 0; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 21px; }
.library-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 11px; }
.library-title h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
#draft-count { color: #687c8b; font-size: 12px; }
.library-filters { display: flex; align-items: center; gap: 10px; }
.draft-search { position: relative; display: block; }
.draft-search svg { position: absolute; top: 12px; left: 12px; width: 17px; height: 17px; fill: none; stroke: #78909e; stroke-width: 1.7; pointer-events: none; }
.draft-search input, .draft-sort select, .library-refresh { height: 42px; border: 1px solid #dbe2e8; border-radius: 8px; background: #fff; color: var(--brand-primary); font: 400 12px Gellix, Arial, sans-serif; }
.draft-search input { width: 275px; padding: 0 12px 0 38px; }
.draft-search input::placeholder { color: #758793; }
.draft-sort select { max-width: 170px; padding: 0 12px; cursor: pointer; }
.library-refresh { width: 42px; font: 24px Arial,sans-serif; cursor: pointer; }
.library-refresh:hover { background: #edf5fc; }
.library-status { margin: 0 0 20px; padding: 14px; border: 1px solid #dbe2e8; border-radius: 8px; font-size: 13px; background: white; }
#start-drafts .draft-grid { --draft-columns: 4; display: grid; grid-template-columns: repeat(var(--draft-columns),minmax(0,1fr)); gap: 22px 18px; max-height: none; margin: 0; overflow: visible; }
#draft-results { display:contents; }
@media (min-width: 801px) {
  #draft-results.balance-last-row > .draft-card:nth-last-child(2) { grid-column-start: 1; }
}
@media (min-width: 501px) and (max-width: 800px) {
  #draft-results.balance-last-row > .draft-card:last-child { grid-column: 1 / -1; }
}
.new-draft-card {
  display:grid; place-content:center; justify-items:center; gap:12px; min-height:155px;
  padding:16px; border:1px dashed var(--portal-edge); border-radius:12px;
  background:var(--brand-soft); color:var(--portal-action); font:inherit; cursor:pointer;
}
.new-draft-card:hover { border-color:var(--portal-action); border-style:solid; background:var(--portal-field); }
.new-draft-card > span {
  display:grid; place-items:center; width:44px; height:44px; border-radius:10px;
  background:var(--portal-action); color:var(--portal-action-text); font:400 27px/1 Gellix,Arial,sans-serif;
}
#back-create { margin-bottom:4px; }
@media (max-width:500px) {
  .new-draft-card { min-height:76px; grid-auto-flow:column; align-items:center; }
}
.draft-card { position: relative; min-width: 0; border: 1px solid #dce3e8; border-radius: 12px; background: white; box-shadow: 0 2px 3px #15314006; transition: border-color .16s, box-shadow .16s, transform .16s; }
.draft-card:hover { border-color: #9dbed5; box-shadow: 0 7px 20px #1531400c; transform: translateY(-2px); }
.draft-card:has(.draft-card-menu[open]) { z-index: 5; }
.draft-card.active { border-color: var(--brand-secondary); }
.draft-thumbnail { position: relative; display: block; width: 100%; aspect-ratio: 1.38; border: 0; border-bottom: 1px solid #e5ebf0; border-radius: 11px 11px 0 0; padding: 0; overflow: hidden; background: #eff5f9; text-align: left; color: #7a8e9c; cursor: pointer; }
.draft-preview-canvas { display: block; width: 100%; height: 100%; container-type: inline-size; pointer-events: none; }
.draft-preview-canvas .cv-sheet { --page: calc(100cqw * 297 / 210); --cv-unit: calc(100cqw / 595.28); max-width: none; margin: 0; min-height: var(--page); box-shadow: none; padding-top: 2%; }
.draft-preview-canvas .cv-sheet * { pointer-events: none; }
.draft-preview-canvas .cv-sheet-banner { margin-bottom: 3%; }
.draft-preview-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 25px; text-align: center; font: 11px/1.5 Gellix,Arial,sans-serif; }
.draft-preview-placeholder > span { display: grid; place-items: center; width: 44px; height: 57px; border: 1px solid #cfdae2; border-radius: 5px; color: #9bb4c4; background: white; font-size: 18px; }
.draft-open-hint { position: absolute; right: 12px; bottom: 12px; padding: 8px 10px; border-radius: 6px; background: #102c3cee; color: white; font: 600 11px Gellix,Arial,sans-serif; opacity: 0; transition: opacity .16s; }
.draft-thumbnail:hover .draft-open-hint, .draft-thumbnail:focus-visible .draft-open-hint { opacity: 1; }
.draft-card-footer { position: relative; padding: 0 54px 0 0; min-height: 76px; }
.draft-card-title { width: 100%; min-height: 76px; display: flex; flex-direction: column; gap: 7px; justify-content: center; padding: 14px 0 14px 15px; border: 0; background: none; color: #182e3b; font-family: Gellix,Arial,sans-serif; text-align: left; cursor: pointer; }
.draft-card-title strong { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
.draft-card-title > span { color: #718696; font-size: 11px; white-space: nowrap; }
.draft-card-menu { position: absolute; right: 13px; top: 20px; }
.draft-card-menu > summary { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #c6def2; border-radius: 7px; color: #4785b3; background: white; cursor: pointer; list-style: none; font: 15px/1 Arial,sans-serif; letter-spacing: 1px; }
.draft-card-menu > summary::-webkit-details-marker { display: none; }
.draft-card-menu > summary:hover, .draft-card-menu[open] > summary { background: #edf5fc; }
.draft-card-menu-panel { position: absolute; top: 39px; right: 0; z-index: 6; display: grid; width: 186px; padding: 6px; border: 1px solid #dce3e8; border-radius: 9px; background: white; box-shadow: 0 8px 24px #102c3c20; }
.draft-card-menu-panel button, .draft-card-menu-panel a { display: block; width: 100%; padding: 10px; border: 0; border-radius: 5px; color: #284858; background: none; text-align: left; text-decoration: none; font: 500 12px Gellix,Arial,sans-serif; cursor: pointer; }
.draft-card-menu-panel button:hover, .draft-card-menu-panel a[href]:hover { background: #edf5fc; }
.draft-card-menu-panel a[aria-disabled] { color: #93a2ab; cursor: default; }
.draft-card-menu-panel [data-delete-draft] { border-top:1px solid var(--brand-line); border-radius:0 0 5px 5px; color:#912f2b; }
.gallery-more { display: flex; min-width: 185px; margin: 30px auto 0; }
.gallery-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 32px; border: 1px dashed #cfdbe3; border-radius: 12px; color: #758b99; text-align: center; }
.gallery-empty > span { font-size: 40px; color: #90b4ce; }.gallery-empty h3 { margin: 15px 0 8px; font-size: 18px; }.gallery-empty p { max-width: 410px; margin: 0; font-size: 13px; line-height: 1.6; }
.draft-preview-dialog { width: min(1064px, calc(100vw - 28px)); max-height: 94dvh; padding: 0; border: 1px solid #d4dee5; border-radius: 14px; color: #102c3c; box-shadow: 0 18px 80px #102c3c40; }
.draft-preview-dialog::backdrop { background: #102c3c80; backdrop-filter: blur(3px); }
.gallery-preview-header { display: flex; flex-wrap:wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 24px; border-bottom: 1px solid #dce3e8; background: white; }.gallery-preview-header h2 { margin: 0; font: 600 18px Gellix,Arial,sans-serif; }
.gallery-preview-actions { display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
.gallery-preview-header .section-number { margin-bottom: 5px; }
.gallery-preview-scroll { overflow: auto; scrollbar-gutter:stable; max-height: min(74dvh,960px); padding: 24px; background: #eaf0f5; }
.gallery-preview-scroll .cv-preview-pages { --preview-width-limit:1000; }
@media (prefers-reduced-motion: reduce) { .draft-card, .draft-open-hint { transition: none; }.draft-card:hover { transform: none; } }
@media (max-width: 1120px) { #start-drafts .draft-grid { --draft-columns: 3; } }
@media (max-width: 800px) { #start-drafts .draft-grid { --draft-columns: 2; gap: 16px; }.library-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; }.library-filters { width: 100%; }.draft-search { flex: 1; min-width: 0; }.draft-search input { width: 100%; }.draft-sort select { max-width: 150px; }.dellent-app.library-view .dellent-intro { align-items: flex-start; } }
@media (max-width: 500px) { #start-drafts .draft-grid { --draft-columns: 1; }.dellent-app.library-view .dellent-intro { flex-direction: column; gap: 18px; padding: 26px 0 22px; }.library-filters { flex-wrap: wrap; }.draft-search { flex-basis: calc(100% - 52px); }.draft-sort { order: 3; width: 100%; }.draft-sort select { width: 100%; max-width: none; }.gallery-preview-scroll { padding: 10px; }.gallery-preview-header { padding: 14px; }.draft-card-title strong { font-size: 15px; } }

.account-email { max-width: 235px; overflow: hidden; text-overflow: ellipsis; color: var(--brand-muted); font-size: 11px; }
@media(max-width:800px) { .account-email { max-width:210px; } }

/* Account controls replace the public CV link and stay visible in the editor. */
.site-header .dellent-account { display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.site-header .dellent-account .account-email { max-width:290px; white-space:nowrap; font-weight:400; }
.site-header .dellent-account .secondary-button { flex:0 0 auto; min-height:36px; }
@media(max-width:760px) {
  .site-header .dellent-account { gap:10px; }
}

/* Editing, account settings and background processing. */
.dellent-account[hidden], .processing-panel[hidden], .workspace-notice[hidden], #processing-count[hidden] { display:none !important; }
.account-icon-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:36px; height:36px; padding:7px 10px; border:1px solid var(--brand-line); border-radius:8px; background:var(--brand-white); color:var(--brand-primary); font:600 12px Gellix,Arial,sans-serif; cursor:pointer; }
.account-icon-button svg { width:19px; height:19px; stroke:currentColor; fill:none; stroke-width:1.5; }
#processing-count { display:grid; place-items:center; min-width:18px; height:18px; padding:0 3px; border-radius:12px; background:var(--brand-accent); color:#102c3c; font-size:10px; }
.editor-toolbar-main { display:grid; gap:8px; min-width:0; }
.editor-back {
  display:inline-flex; align-items:center; gap:8px; width:fit-content; min-height:44px;
  margin-inline-start:-8px; padding:6px 8px; border:0; border-radius:7px;
  background:transparent; color:var(--portal-action,var(--brand-primary));
  font:600 13px Gellix,Arial,sans-serif; cursor:pointer;
}
.editor-back:hover { background:var(--brand-soft); }
.editor-back svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.draft-meta { display:flex; flex-wrap:wrap; gap:6px 18px; align-items:baseline; margin:2px 0 0; font-size:12px; line-height:1.45; }
.draft-meta > div { display:flex; flex-wrap:wrap; gap:2px 6px; align-items:baseline; min-width:0; }
.draft-meta dt { color:var(--brand-muted); }
.draft-meta dd { margin:0; color:var(--brand-primary); font-weight:600; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
:is(#draft-title,#library-title):focus-visible { outline:2px solid var(--portal-action); outline-offset:3px; width:fit-content; }
.undo-actions { display:flex; flex-wrap:wrap; gap:6px; }.undo-actions button { gap:6px; min-height:44px; white-space:nowrap; }
.undo-actions svg { width:18px; height:18px; fill:currentColor; stroke:none; flex:none; }
.preview-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 10px; margin:0 0 12px; }
.preview-zoom { display:inline-flex; align-items:center; margin-inline-start:auto; border:1px solid var(--brand-line); border-radius:8px; background:var(--brand-white); }
.preview-zoom button { min-width:32px; height:34px; border:0; background:transparent; color:var(--brand-primary); border-radius:7px; font:600 17px Gellix,Arial,sans-serif; cursor:pointer; }
.preview-zoom [data-zoom-reset] { min-width:46px; padding:0 5px; font-size:11px; font-variant-numeric:tabular-nums; }
.preview-zoom button:hover:not(:disabled) { background:var(--brand-soft); }
.preview-zoom button:disabled { opacity:.45; cursor:default; }
.preview-kind { display:flex; flex:none; gap:4px; padding:4px; border:1px solid var(--brand-line); border-radius:8px; }.preview-kind button { padding:7px 12px; border:0; border-radius:5px; background:transparent; color:var(--brand-muted); font:600 12px Gellix,Arial,sans-serif; cursor:pointer; }.preview-kind [aria-pressed=true] { background:var(--brand-soft); color:var(--brand-primary); }
.original-actions { display:flex; align-items:center; justify-content:flex-end; gap:6px; margin-inline-start:auto; }
.original-actions .secondary-button { min-height:35px; padding:7px 9px; white-space:nowrap; }
#original-frame { display:block; width:100%; height:75vh; min-height:480px; border:1px solid var(--brand-line); background:#eaf0f5; border-radius:6px; }#original-unavailable { padding:24px; border:1px dashed var(--brand-line); border-radius:8px; }
.settings-dialog { width:min(440px,calc(100vw - 32px)); box-sizing:border-box; max-height:92dvh; padding:24px; overflow:auto; border:1px solid var(--brand-line); border-radius:14px; background:var(--brand-white); color:var(--brand-primary); font-family:Gellix,Arial,sans-serif; box-shadow:0 16px 70px #102c3c40; }.settings-dialog::backdrop { background:#102c3c88; backdrop-filter:blur(2px); }
.settings-heading,.theme-setting { display:flex; align-items:center; justify-content:space-between; gap:16px; }.settings-heading h2 { margin:0; font-size:23px; }.theme-setting { padding:22px 0; margin:8px 0 20px; border-bottom:1px solid var(--brand-line); font-size:14px; }.theme-setting input { width:20px; height:20px; }.settings-dialog h3 { font-size:16px; margin:0 0 18px; }.settings-dialog form { display:grid; gap:14px; }.settings-dialog .field small { color:var(--brand-muted); font-size:11px; }.settings-dialog input:not([type=checkbox]) { width:100%; box-sizing:border-box; padding:10px; border:1px solid var(--brand-line); border-radius:6px; background:var(--brand-background); color:var(--brand-primary); font:inherit; }.settings-dialog .primary-button { margin-top:6px; }#settings-status { font-size:12px; line-height:1.5; margin-bottom:0; }
.processing-panel { position:fixed; z-index:30; right:24px; top:82px; width:min(390px,calc(100vw - 32px)); max-height:calc(100dvh - 110px); overflow:auto; box-sizing:border-box; padding:18px; border:1px solid var(--brand-line); border-radius:12px; background:var(--brand-white); color:var(--brand-primary); font-family:Gellix,Arial,sans-serif; box-shadow:0 12px 45px #102c3c30; }.processing-panel-heading { display:flex; align-items:center; justify-content:space-between; gap:14px; }.processing-panel-heading strong { font-size:17px; }.processing-panel-heading small { display:block; font-size:11px; margin-top:5px; color:var(--brand-muted); }#processing-connection { font-size:11px; color:var(--brand-muted); }.processing-job { border-top:1px solid var(--brand-line); padding:14px 0; }.processing-job:last-child { padding-bottom:0; }.processing-job>div { display:flex; align-items:start; justify-content:space-between; gap:12px; }.processing-job strong { font-size:12px; overflow-wrap:anywhere; }.processing-job span { flex-shrink:0; color:var(--brand-muted); font-size:10px; }.processing-job p,.processing-empty { margin:7px 0; color:var(--brand-muted); font-size:11px; line-height:1.5; }.processing-job.completed span { color:#2b7d54; }.processing-job.failed span { color:#b14637; }.processing-job .secondary-button { min-height:30px; padding:7px 11px; }
.workspace-notice { position:fixed; bottom:24px; right:24px; z-index:40; display:flex; align-items:center; gap:12px; max-width:min(530px,calc(100vw - 32px)); box-sizing:border-box; padding:14px 16px; border:1px solid var(--brand-line); border-radius:12px; background:var(--brand-white); color:var(--brand-primary); box-shadow:0 8px 35px #102c3c30; font:500 13px/1.5 Gellix,Arial,sans-serif; }.workspace-notice span { overflow-wrap:anywhere; }.workspace-notice button { flex-shrink:0; }
html[data-dellent-theme=dark] {
  color-scheme: dark;
  --brand-primary: #eef4fa;
  --brand-text: #c7d2df;
  --brand-muted: #a6b6c8;
  --brand-line: #354458;
  --brand-background: #101722;
  --brand-white: #1a2432;
  --brand-soft: #243247;
  --brand-hover: #2f4058;
  --brand-secondary: #8cc5ff;
}
html[data-dellent-theme=dark] :is(.sidebar-panel,.editor-panel,.save-bar,.secondary-button,.draft-card,.draft-card-menu-panel,.draft-card-menu>summary,.draft-search input,.draft-sort select,.library-refresh,.library-status,.gallery-preview-header,.draft-preview-dialog,.start-choice,.cv-block,.section-nav button,.workspace-tabs button,.cv-language-picker select,.section-toggle select,.login-panel form) { background:var(--brand-white); color:var(--brand-primary); border-color:var(--brand-line); }
html[data-dellent-theme=dark] :is(.field input,.field textarea,.field select,.rich-editor,.profile-item,.upload-drop,.start-choice:hover,.block-heading,.section-heading,.editing-pane,.preview-pane,.editor-sections) { background:var(--brand-background); color:var(--brand-primary); border-color:var(--brand-line); }
html[data-dellent-theme=dark] .primary-button { background:#d4ff8d; border-color:#d4ff8d; color:#15260d; }
html[data-dellent-theme=dark] .primary-button:hover:not(:disabled) { background:#e2ffb4; border-color:#e2ffb4; }
html[data-dellent-theme=dark] :is(.draft-card-title,.draft-card-menu-panel button,.draft-card-menu-panel a) { color:var(--brand-primary); }html[data-dellent-theme=dark] :is(.draft-card-title>span,#draft-count,.draft-search input::placeholder) { color:var(--brand-muted); }
html[data-dellent-theme=dark] .draft-card-menu-panel [data-delete-draft] { color:#ffb1a8; }
html[data-dellent-theme=dark] :is(.preview-scroll,.gallery-preview-scroll,.draft-thumbnail) { background:#101c24; }html[data-dellent-theme=dark] .preview-kind [aria-pressed=true] { background:#37566b; }
html[data-dellent-theme=dark] .cv-sheet { color-scheme:light; --brand-primary:#102c3c; --brand-secondary:#5cadff; --brand-text:#3c505b; --brand-muted:#3c505b; --brand-line:#cfd5d8; --brand-white:white; background:white; color:#102c3c; }
html[data-dellent-theme=dark] :is(.validation-summary,.pdf-privacy-check) { background:#3c2924; color:#ffcfbf; border-color:#81584b; }html[data-dellent-theme=dark] .processing-job.completed span { color:#94daa6; }
html[data-dellent-theme=dark] :is(.nav-dropdown,.pdf-result) { background:var(--brand-white); }
html[data-dellent-theme=dark] :is(.draft-card-menu > summary:hover, .draft-card-menu-panel button:hover, .draft-card-menu-panel a[href]:hover, .library-refresh:hover, .secondary-button:hover, .account-icon-button:hover, .block-actions button:hover) {
  background: var(--brand-hover);
}
html[data-dellent-theme=dark] :is(.workspace-navigation .site-header, .block-actions button, .start-panel.path-selected .start-choice[aria-pressed="true"], .profile-detail) {
  background: var(--brand-white);
  border-color: var(--brand-line);
}
html[data-dellent-theme=dark] :is(.workspace-tabs button[aria-pressed="true"], .preview-kind button[aria-pressed="true"]) {
  background: var(--brand-soft);
  color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}
html[data-dellent-theme=dark] .save-bar { box-shadow: 0 -8px 22px #070c1355; }
html[data-dellent-theme=dark] .draft-thumbnail { border-color: var(--brand-line); }
html[data-dellent-theme=dark] .draft-card:hover { border-color: var(--brand-secondary); }
@media(max-width:760px) { .editor-toolbar { flex-wrap:wrap; gap:16px; }.site-header .dellent-account { gap:6px; }.processing-panel { right:16px; top:95px; }.workspace-notice { right:16px; bottom:16px; flex-wrap:wrap; }.preview-kind button { padding:7px 12px; } }

.editing-pane .validation-summary { margin:0 0 14px; padding:10px; font-size:12px; line-height:1.4; }
.editing-pane .validation-summary .text-action { display:block; margin:6px 0 0; }
.history-tab { position:fixed; right:0; top:46%; z-index:24; display:flex; align-items:center; gap:8px; padding:15px 10px; writing-mode:vertical-rl; border:1px solid var(--brand-line); border-right:0; border-radius:9px 0 0 9px; background:var(--brand-white); color:var(--brand-primary); box-shadow:0 3px 14px #102c3c18; font:600 12px Gellix,Arial,sans-serif; cursor:pointer; }
.history-tab span { display:inline-block; padding:4px 2px; border-radius:12px; background:var(--brand-soft); font-size:10px; }
.history-drawer { position:fixed; inset:0 0 0 auto; width:min(390px,calc(100vw - 28px)); max-width:none; height:100dvh; max-height:100dvh; box-sizing:border-box; margin:0; padding:24px; border:0; border-left:1px solid var(--brand-line); background:var(--brand-white); color:var(--brand-primary); font-family:Gellix,Arial,sans-serif; overflow:auto; box-shadow:-12px 0 50px #102c3c22; }
.history-drawer::backdrop { background:#102c3c55; }
.history-drawer-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }.history-drawer h2 { margin:0; font-size:24px; }.history-drawer-heading p { margin:6px 0 0; color:var(--brand-muted); font-size:11px; }.history-note { margin:22px 0; color:var(--brand-muted); font-size:12px; line-height:1.5; }
.history-list { list-style:none; display:grid; gap:0; margin:0; padding:0; }.history-list li { padding:16px 0; border-top:1px solid var(--brand-line); font-size:12px; }.history-list li>span,.history-list li>small { display:block; }.history-list li>small { margin-top:7px; color:var(--brand-muted); font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.workspace-navigation .site-header:has(> .header-actions > .dellent-account:only-child) { display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.workspace-navigation .site-header .header-actions:has(> .dellent-account:only-child) { flex:1; min-width:0; width:auto; margin-left:auto; justify-content:flex-end; }
.site-header .dellent-account { min-width:0; max-width:100%; margin-left:auto; }
.site-header .dellent-account .account-email { min-width:0; }
.site-header .dellent-account .account-icon-button { flex-shrink:0; }
@media(max-width:440px) {
  .workspace-navigation .site-header:has(> .header-actions > .dellent-account:only-child) { flex-wrap:wrap; }
  .workspace-navigation .site-header .header-actions:has(> .dellent-account:only-child) { flex-basis:100%; }
}
@media(max-width:480px) { .history-drawer { padding:20px; }.history-tab { padding:12px 7px; font-size:11px; } }

.cv-language-picker { margin-block: 12px; font-size: 12px; }
.cv-language-picker select {
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--brand-line);
  border-radius: 7px;
  background: var(--brand-white);
  color: var(--brand-primary);
  font: inherit;
}
.editor-sections .field { color: var(--brand-primary); font-size: 12px; }
.editor-sections :is(.field input, .field select, .field textarea, .rich-editor) {
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 400;
}
.editor-sections :is(.field input, .field select) { height: auto; min-height: 42px; }
.editor-sections :is(.field input, .field textarea)::placeholder { color: var(--brand-muted); opacity: .8; }
.editor-sections :is(.field input, .field select, .field textarea, .rich-editor):focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 1px;
}
.editor-sections .field-error { font-size: 12px; }
.editor-sections .rich-toolbar button { min-height: 34px; background: var(--brand-white); }
.editor-sections .rich-toolbar button:hover { background: var(--brand-soft); }
.save-bar .editor-actions > :is(button, a) { min-height:38px; padding:7px 12px; font-size:13px; white-space:nowrap; }
html[data-dellent-theme=dark] .section-nav button:is(.active, :hover) {
  background: var(--brand-soft);
  border-color: var(--brand-secondary);
}
html[data-dellent-theme=dark] :is(.editor-status.error, .field-error, .section-nav .has-errors::after) { color: #ffc0ad; }
@container (max-width: 27rem) {
  .identification-fields { grid-template-columns: minmax(76px, .55fr) minmax(0, 1.45fr); }
  .identification-fields > .field:last-child { grid-column: 1 / -1; }
}
@container (max-width: 20rem) {
  .identification-fields, .section-fields-skills, .date-range { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .editing-pane, .preview-pane { padding-inline-end: 24px; }
}

.feedback-banner {
  --feedback-background: var(--brand-soft);
  --feedback-border: var(--brand-line);
  --feedback-text: var(--brand-primary);
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid var(--feedback-border);
  border-radius: 9px;
  background: var(--feedback-background);
  color: var(--feedback-text);
  font-size: 13px;
  line-height: 1.45;
}
[data-tone="success"] {
  --feedback-background: #eaf7ee;
  --feedback-border: #87b99b;
  --feedback-text: #185535;
}
[data-tone="error"] {
  --feedback-background: #fff0ef;
  --feedback-border: #df9c96;
  --feedback-text: #842d29;
}
html[data-dellent-theme="dark"] [data-tone="success"] {
  --feedback-background: #183729;
  --feedback-border: #478961;
  --feedback-text: #b1eac3;
}
html[data-dellent-theme="dark"] [data-tone="error"] {
  --feedback-background: #412629;
  --feedback-border: #a75a5c;
  --feedback-text: #ffc1bb;
}
#process-status { white-space: pre-line; margin: 14px 0 0; }
#password-status, #invite-status, #activation-status { margin: 0; }
.workspace-notice {
  bottom: 82px;
  max-width: min(490px, calc(100vw - 32px));
  padding: 14px 16px;
  border-inline-start-width: 4px;
}
.workspace-notice div { min-width: 0; }
.workspace-notice strong, .workspace-notice span { display: block; overflow-wrap: anywhere; }
.workspace-notice strong { font-size: 14px; }
.workspace-notice span:not(:empty) { margin-top: 3px; }
.workspace-notice .account-icon-button { min-width: 32px; height: 32px; }

.settings-menu {
  display: flex;
  gap: 6px;
  margin: 18px 0 4px;
  padding: 4px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-background);
}
.settings-menu button {
  flex: 1;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-muted);
  font: 600 13px Gellix, Arial, sans-serif;
  cursor: pointer;
}
.settings-menu button[aria-pressed="true"] {
  border-color: var(--brand-line);
  background: var(--brand-white);
  color: var(--brand-primary);
}
.theme-setting input {
  appearance: none;
  box-sizing: border-box;
  width: 42px;
  height: 24px;
  padding: 3px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-soft);
  cursor: pointer;
}
.theme-setting input::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
}
.theme-setting input:checked { background: var(--brand-accent); }
.theme-setting input:checked::before { transform: translateX(18px); background: #172611; }
#settings-admin { padding-top: 18px; }
.settings-dialog.admin-view { width:min(590px,calc(100vw - 32px)); }
#invite-title, #invite-availability { margin: 0; }
.admin-accounts { margin-top:24px; padding-top:18px; border-top:1px solid var(--brand-line); }
.admin-accounts h3 { margin:0 0 8px; }
.invitation-list, .selected-upload-files { margin: 16px 0 0; padding: 0; list-style: none; }
.invitation-list li, .selected-upload-files li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--brand-line);
  overflow-wrap: anywhere;
}
.invitation-list li { justify-content: space-between; }
.admin-accounts .invitation-list { margin-top:0; }
.invitation-list li strong, .selected-upload-files li span { font-size: 13px; }
.managed-identity { min-width:0; }
.managed-status { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; margin-top:5px; color:var(--brand-muted); font-size:11px; }
.account-state { padding:3px 6px; border-radius:5px; background:var(--feedback-background,var(--brand-soft)); color:var(--feedback-text,var(--brand-primary)); }
.invitation-list button { flex:none; padding-inline:9px; }
.invitation-list .disable-account { color:var(--feedback-text); }
.selected-upload-files small { color: var(--brand-muted); font-size: 11px; }
.selected-upload-files li span { flex: 1; min-width: 0; }
.selected-upload-files .account-icon-button { min-width: 30px; height: 30px; }
#dellent-activation .field small { font-weight: 400; }
#dellent-activation .text-action { text-align: center; }

.upload-queue {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--brand-line);
}
.upload-queue-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.upload-queue-heading h3 { margin: 0; font-size: 17px; }
.queue-policy, .queue-connection { color: var(--brand-muted); font-size: 11px; }
.upload-queue .queue-connection { margin: 0; }
.queue-group + .queue-group { margin-top: 16px; }
.queue-group h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 13px;
}
.queue-group h4 span {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand-muted);
  font-size: 10px;
}
#processing-jobs { margin-top: 14px; }
.processing-job, .processing-job:last-child {
  padding: 11px 12px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-white);
}
.processing-job + .processing-job { margin-top: 6px; }
.processing-job:is(.processing,.cancelling) { background: var(--brand-soft); border-color: var(--brand-secondary); }
.processing-job .job-heading { align-items: center; }
.processing-job strong { min-width: 0; font-size: 13px; }
.processing-job .job-label {
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--brand-background);
  color: var(--brand-muted);
  font-size: 11px;
}
.processing-job.completed .job-label { color: #216746; }
.processing-job.failed .job-label { color: #983b32; }
html[data-dellent-theme="dark"] .processing-job.completed .job-label { color: #a7e4bb; }
html[data-dellent-theme="dark"] .processing-job.failed .job-label { color: #ffb1a8; }
.processing-job button { margin-top: 8px; }
.processing-job .job-phase { margin-top:6px; }
.processing-job .job-clock, .processing-job .job-clock span { color:var(--brand-muted); font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.job-spinner { width:11px; height:11px; border:2px solid var(--brand-line); border-top-color:var(--brand-primary); border-radius:50%; animation:processing-spin .85s linear infinite; }
@media(prefers-reduced-motion:reduce) { .job-spinner { animation:none; } }
@media (max-width: 500px) {
  .workspace-notice { right: 12px; bottom: 125px; gap: 8px; }
}

/* ID obrigatório para gerar/descarregar o PDF */
.cv-id-field { display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center; gap:8px; min-width:0; }
.cv-id-field label { color:var(--brand-primary); font-size:13px; font-weight:700; }
.cv-id-field input { box-sizing:border-box; width:100%; min-width:0; min-height:38px; padding:0 10px; border:1px solid var(--brand-line); border-radius:8px; background:var(--brand-white,#fff); color:var(--brand-primary); font:500 14px Gellix,Arial,sans-serif; }
.cv-id-field input:focus-visible { outline:2px solid var(--brand-secondary,#5CADFF); outline-offset:1px; }
.cv-id-field input[aria-invalid] { border-color:#c0392b; }
#cv-id-error { grid-column:1/-1; grid-row:2; color:#a33127; font-size:12px; overflow-wrap:anywhere; }
html[data-dellent-theme=dark] #cv-id-error { color:#ffc0ad; }
.save-bar .editor-actions { display:grid; grid-template-columns:clamp(180px,19vw,235px) repeat(2,max-content); grid-auto-flow:column; align-items:center; min-width:0; gap:5px 8px; }
#export-pdf { min-inline-size:106px; }
.save-bar #download-pdf { border-color:var(--portal-action); color:var(--portal-action); }
#preview-pane-title { flex:none; white-space:nowrap; }
#preview-format { min-width:0; }
.site-header .dellent-account #open-settings {
  box-sizing:border-box;
  display:grid;
  place-items:center;
  align-self:center;
  flex:0 0 36px;
  width:36px;
  height:36px;
  padding:0;
}
@media (max-width:820px) {
  .save-bar { grid-template-columns:minmax(0,1fr); justify-items:start; padding-inline:16px; }
}
@media (min-width:621px) {
  .save-bar .editor-actions:has(#download-pdf:not([hidden])) { grid-template-columns:clamp(180px,19vw,235px) repeat(3,max-content); }
  .save-bar .editor-actions > :is(.cv-id-field,button,a) { grid-row:1; }
}
@media (max-width:620px) {
  .save-bar { padding-bottom:max(8px,env(safe-area-inset-bottom)); gap:6px; border-radius:0 0 16px 16px; }
  .save-bar .editor-actions { width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-flow:row; gap:6px; }
  .save-bar :is(.cv-id-field,#cv-id-error,#download-pdf) { grid-column:1/-1; }
  .save-bar .editor-actions > :is(button,a), .save-bar .cv-id-field input { min-height:44px; }
  .save-bar .cv-id-field input { font-size:16px; }
}
@media (380px <= width <= 620px) {
  .save-bar .editor-actions:has(#download-pdf:not([hidden])) {
    grid-template-columns:minmax(0,.8fr) minmax(106px,1fr) minmax(112px,1fr);
  }
  .save-bar #download-pdf { grid-column:auto; }
}

.cv-portal {
  --portal-navy: #102c3c;
  --portal-action: #215eaa;
  --portal-action-hover: #174c8c;
  --portal-action-text: #fff;
  --portal-edge: #71879a;
  --portal-field: #f8fbfd;
  --portal-preview: #dbe8ee;
  --portal-success-ink: #1d593e;
  --portal-success-surface: #ddefe4;
  --portal-error-ink: #8d2f2b;
  --portal-error-surface: #fce8e4;
  --brand-background: #edf4f7;
  --brand-line: #adbfca;
  --brand-soft: #dfeefa;
  --brand-muted: #405969;
  min-height:100vh;
  background: var(--brand-background);
}
html[data-dellent-theme="dark"] .cv-portal {
  --portal-navy: #0c202e;
  --portal-action: #9bcaff;
  --portal-action-hover: #badbff;
  --portal-action-text: #102c3c;
  --portal-edge: #839bae;
  --portal-field: #142332;
  --portal-preview: #172736;
  --portal-success-ink: #adf0ca;
  --portal-success-surface: #204738;
  --portal-error-ink: #ffc6bc;
  --portal-error-surface: #502f36;
  --brand-background: #101d28;
  --brand-white: #223343;
  --brand-line: #526b7d;
  --brand-soft: #293f56;
  --brand-muted: #becfdd;
}
.cv-portal .dellent-app { font-family:Gellix,Arial,sans-serif; }
.cv-portal .workspace-navigation { max-width:none; background:var(--portal-navy); }
.cv-portal .site-header {
  max-width:1380px;
  margin-inline:auto;
  border-bottom:0;
  background:transparent;
}
.cv-portal .site-header :is(.logo,.logo span,.header-actions > a,.nav-group > summary,.account-email) {
  color:#f0f6fb;
}
.cv-portal .site-header :is(.header-actions > a,.nav-group > summary):hover {
  color:#b7d9ff;
}
.cv-portal .site-header :is(.current-group > summary,[aria-current="page"]) {
  box-shadow:inset 0 -2px #8fc4ff;
}
.cv-portal .site-header .dellent-account :is(button,.secondary-button) {
  border-color:#5c7483;
  background:transparent;
  color:#f0f6fb;
}
.cv-portal .site-header .dellent-account button:hover { background:#ffffff18; }
.cv-portal .site-header :focus-visible { outline:2px solid #9bcaff; outline-offset:3px; }

body.cv-portal .primary-button {
  border-color:var(--portal-action);
  background:var(--portal-action);
  color:var(--portal-action-text);
}
body.cv-portal .primary-button:hover:not(:disabled) {
  border-color:var(--portal-action-hover);
  background:var(--portal-action-hover);
}
.cv-portal .library-toolbar {
  padding:14px 16px;
  border:1px solid var(--brand-line);
  border-radius:10px;
  background:var(--brand-white);
}
.cv-portal .library-title h2 { font-size:20px; letter-spacing:-.01em; }
.cv-portal .library-title #draft-count { color:var(--brand-muted); }
.cv-portal .dellent-intro h1 { letter-spacing:-.025em; }
.cv-portal :is(.editor-panel,.sidebar-panel,.draft-card,.login-panel) {
  border-color:var(--brand-line);
  box-shadow:0 1px 3px #102c3c0e;
}
.cv-portal .draft-card:is(:hover,:focus-within,.active) { border-color:var(--portal-action); }
.cv-portal :is(.editor-toolbar,.section-options) { border-color:var(--brand-line); }
.cv-portal .draft-card-title > span { color:var(--brand-muted); }

.cv-portal {
  --portal-control: color-mix(in srgb, var(--brand-background) 72%, var(--brand-white));
  --portal-overlay-shadow: 0 16px 36px #091e3433;
}
.cv-portal .workspace-navigation { box-shadow:0 1px 0 #091e3433; }
.cv-portal :is(.login-panel,.settings-dialog,.processing-panel,.history-drawer,.draft-card-menu-panel) {
  box-shadow:var(--portal-overlay-shadow);
}
.cv-portal :is(.primary-button,.secondary-button,.account-icon-button,.library-refresh) { font-weight:600; }
.cv-portal :is(button,input,select,textarea,summary,a):focus-visible { outline:2px solid var(--portal-action); outline-offset:3px; }
.cv-portal .site-header :is(button,a,summary):focus-visible { outline-color:#b7d9ff; }
.cv-portal :is(.draft-search input,.draft-sort select,.login-panel input,.cv-id-field input:not([aria-invalid])),
.cv-portal .settings-dialog input:not([type=checkbox]) {
  background:var(--portal-control);
  border-color:var(--brand-line);
}
body.cv-portal .draft-thumbnail {
  background:var(--portal-preview);
  border-bottom-color:var(--brand-line);
  color:var(--brand-muted);
}
.cv-portal .draft-preview-placeholder > span {
  background:var(--brand-white);
  border-color:var(--portal-edge);
  color:var(--portal-action);
}
.cv-portal .draft-card-title { color:var(--brand-primary); }
.cv-portal .draft-card-title > span { font-size:12px; }
.cv-portal .draft-card.active { box-shadow:0 0 0 1px var(--portal-action); }
.cv-portal .draft-card-menu > summary {
  border-color:var(--portal-edge);
  color:var(--portal-action);
}
.cv-portal .draft-card-menu > summary:is(:hover,:focus-visible),
.cv-portal .draft-card-menu[open] > summary { background:var(--brand-soft); }
.cv-portal .draft-card:hover { transform:none; box-shadow:0 4px 14px #102c3c14; }

.cv-portal .pane-heading {
  min-height:28px;
  align-items:center;
  padding-bottom:9px;
  border-bottom:1px solid var(--brand-line);
}
.cv-portal .pane-heading strong { font-size:15px; font-weight:700; }
.cv-portal .pane-heading span { font-size:12px; line-height:1.3; }
body.cv-portal :is(.preview-scroll,.gallery-preview-scroll) {
  background:var(--portal-preview);
}
.cv-portal .preview-scroll {
  border:1px solid var(--brand-line);
  border-radius:10px;
}
.cv-portal .preview-kind { background:var(--portal-control); }
.cv-portal :is(.preview-kind,.settings-menu,.workspace-tabs) button[aria-pressed="true"] {
  background:var(--brand-soft);
  color:var(--portal-action);
}
.cv-portal .cv-block[open] > .block-heading {
  background:var(--brand-soft);
  box-shadow:inset 3px 0 var(--portal-action);
}
.cv-portal .history-tab:hover { color:var(--portal-action); background:var(--brand-soft); }
.cv-portal .save-bar { box-shadow:0 -3px 14px #102c3c0c; }

.cv-portal .start-panel.path-selected .start-choice[aria-pressed="true"] {
  border-color:var(--portal-action);
  color:var(--portal-action);
  background:var(--brand-white);
}
.cv-portal .upload-drop { background:var(--portal-control); border-color:var(--portal-action); }
.cv-portal .upload-drop:is(:hover,:focus-within,.dragging) { background:var(--brand-soft); }
.cv-portal .upload-queue {
  padding:14px;
  border:1px solid var(--brand-line);
  border-radius:10px;
  background:var(--portal-control);
}
.cv-portal .processing-job:is(.processing,.cancelling) {
  border-color:var(--brand-line);
  border-inline-start:3px solid var(--portal-action);
  background:var(--brand-soft);
}
.cv-portal .processing-job:is(.processing,.cancelling) .job-label {
  background:var(--portal-field);
  color:var(--portal-action);
}
.cv-portal .processing-job .job-heading { flex-wrap:wrap; row-gap:4px; }
.cv-portal .processing-job :is(.job-clock,.job-clock span,.job-phase > span) { font-size:12px; }
.cv-portal .processing-job .job-label {
  background:var(--portal-field);
  border:1px solid var(--brand-line);
  font-weight:700;
}
.cv-portal .processing-job.completed .job-label {
  background:var(--portal-success-surface);
  color:var(--portal-success-ink);
}
.cv-portal .processing-job.failed .job-label {
  background:var(--portal-error-surface);
  color:var(--portal-error-ink);
}
.cv-portal .job-cancel { border-color:var(--portal-edge); }
.cv-portal .job-spinner { border-color:var(--brand-line); border-top-color:var(--portal-action); }
.cv-portal :is(.draft-search input,.draft-sort select,.library-refresh,.preview-kind,.preview-zoom,.section-nav button) {
  border-color:var(--portal-edge);
}
.cv-portal :is(.draft-search input,.draft-sort select,.editor-sections .field input,.editor-sections .field textarea,
  .editor-sections .field select,.editor-sections .rich-editor,.cv-id-field input):not([aria-invalid="true"]) {
  background:var(--portal-field);
  border-color:var(--portal-edge);
}
.cv-portal :is(.draft-search input,.editor-sections input,.editor-sections textarea,.cv-id-field input)::placeholder {
  color:var(--brand-muted);
  opacity:1;
}
body.cv-portal .section-nav button {
  background:var(--portal-field);
  color:var(--brand-primary);
}
body.cv-portal .section-nav button.active {
  background:var(--brand-soft);
  border-color:var(--portal-action);
  color:var(--portal-action);
  box-shadow:inset 0 -2px var(--portal-action);
}
.cv-portal .section-nav button.section-hidden { opacity:1; }
.cv-portal :is(.settings-heading,.processing-panel-heading,.history-drawer-heading) {
  padding-bottom:12px;
  border-bottom:1px solid var(--brand-line);
}
@media (max-width:480px) {
  .cv-portal .pane-heading span { font-size:11px; }
  .cv-portal .upload-queue { padding:10px; }
}
