/* CV builder, application page and /profilis/ (loaded only there, after bd-icons.css – includes/front.php). Split out of bd-icons.css. */
/* AI CV builder on /profilis/ (bd-cvbuild.js) */
.aj-cvb-form { display: grid; gap: 18px; }
.aj-cvb-field { display: grid; gap: 6px; }
.aj-cvb-label { font-size: 15px; font-weight: 600; color: #0b0b12; }
.aj-cvb-hint { font-size: 13px; color: #6b6b78; }
.aj-cvb-input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid #e0e0e6; border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: #0b0b12; outline: none; }
.aj-cvb-input:focus { border-color: #2a6bff; box-shadow: 0 0 0 3px rgba(42,107,255,.15); }
.aj-cvb-textarea { height: auto; min-height: 190px; padding: 12px; line-height: 1.55; resize: vertical; }
.aj-cvb-count { justify-self: end; font-size: 12px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.aj-cvb-count.is-ok { color: #16a34a; }
.aj-cvb-links { display: grid; gap: 8px; }
.aj-cvb-link-row { display: flex; gap: 8px; }
.aj-cvb-contact { border: 1px solid #e6e6ec; border-radius: 14px; padding: 12px 14px; background: #fafafb; }
.aj-cvb-summary { display: grid; gap: 2px; list-style: none; }
.aj-cvb-summary::-webkit-details-marker { display: none; }
.aj-cvb-summary::after { content: "Pridėti"; justify-self: end; margin-top: -34px; font-size: 13px; font-weight: 600; color: #2a6bff; }
.aj-cvb-contact[open] .aj-cvb-summary::after { content: "Slėpti"; }
.aj-cvb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.aj-cvb-mini { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: #3f3f46; }
.aj-cvb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.aj-cvb-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #e6e6ec; border-radius: 12px; background: #fff; }
.aj-cvb-seg-btn { border: 0; background: transparent; height: 34px; padding: 0 12px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: #6b6b78; }
.aj-cvb-seg-btn.is-on { background: #0b0b12; color: #fff; }
button.aplikuok-cv-btn.aj-cvb-go { border: 0; font: inherit; flex: 1 1 240px; min-height: 48px; }
button.aplikuok-cv-btn.aj-cvb-go:disabled { opacity: .6; }
.aj-cvb-status { margin: 0; font-size: 14px; color: #2a6bff; min-height: 20px; }
.aj-cvb-status.is-bad { color: #dc2626; }
.aj-cvb-note { margin: 0; font-size: 12px; color: #8a8a96; }
.aj-cvb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid #e0e0e6; border-radius: 11px; background: #fff; color: #0b0b12; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.aj-cvb-btn:hover { background: #f5f5f7; }
.aj-cvb-btn .aplikuok-fi { width: 15px; height: 15px; }
.aj-cvb-primary { background: #2a6bff; border-color: #2a6bff; color: #fff; }
.aj-cvb-primary:hover { background: #1f5ae6; }
.aj-cvb-ghost { border-color: transparent; background: transparent; color: #6b6b78; }
.aj-cvb-icon-btn { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.aj-cvb-result { display: grid; gap: 14px; }
.aj-cvb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-cvb-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: #eef4ff; }
.aj-cvb-share .aj-cvb-input { flex: 1 1 260px; height: 40px; }
.aj-cvb-share .aj-cvb-note { flex-basis: 100%; }
.aj-cvb-tips { padding: 14px 16px; border-radius: 14px; background: #fff8e6; font-size: 14px; }
.aj-cvb-tips-title { margin: 0 0 6px; font-weight: 600; }
.aj-cvb-tips ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
@media (max-width: 767px) {
  .aj-cvb-grid { grid-template-columns: minmax(0, 1fr); }
  .aj-cvb-toolbar .aj-cvb-btn { flex: 1 1 calc(50% - 8px); }
  .aj-cvb-foot > * { flex: 1 1 100%; }
}
/* CV builder page: side-panel cards (bd-cvbuild.js) and PATARIMAI items */
.aj-cvb-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid #e6e6ec; border-radius: 22px; background: #fff; }
.aj-cvb-card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.25; color: #0b0b12; }
.aj-cvb-card .aj-cvb-hint { margin: -6px 0 2px; }
.aj-cvb-card .aj-cvb-seg { width: 100%; }
.aj-cvb-card .aj-cvb-seg-btn { flex: 1; }
.aj-cvb-card button.aplikuok-cv-btn.aj-cvb-go { flex: none; width: 100%; }
.aj-cvb-card > .aj-cvb-btn { width: 100%; height: 44px; }
.aj-cvb-card > .aj-cvb-primary { height: 48px; font-size: 15px; }
.aj-cvb-card .aj-cvb-share { flex-direction: column; align-items: stretch; padding: 10px; }
.aj-cvb-card .aj-cvb-share .aj-cvb-input { flex: none; }
.aj-cvb-card .aj-cvb-share .aj-cvb-btn { width: 100%; }
.aj-cvb-tip { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; font-size: 14px; }
.aj-cvb-tip::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #0b0b12; }
.aj-cvb-tip strong { font-weight: 600; color: #0b0b12; }
.aj-cvb-tip span { color: #6b6b78; line-height: 1.45; }
.aplikuok-cvk-main .aj-cv-doc { border-radius: 14px; }

/* ── CV builder polish: step cards, gradient prompt box, aligned controls ─────────────────────── */
.aplikuok-cvk-main { background: transparent !important; border: 0 !important; padding: 0 !important; }
.aj-cvb-form { gap: 16px; }
.aj-cvb-step { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid #e6e6ec; border-radius: 22px; background: #fff; }
.aj-cvb-step-head { display: flex; align-items: flex-start; gap: 12px; }
.aj-cvb-num { flex-shrink: 0; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: #0b0b12; color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.aj-cvb-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.aj-cvb-step-title { margin: 0; display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: #0b0b12; }
.aj-cvb-step-title .aplikuok-fi { width: 18px; height: 18px; color: #2a6bff; }
.aj-cvb-step .aj-cvb-hint { margin: 0; line-height: 1.45; }
/* Prompt box with the rainbow border (same as the CV buttons) */
.aj-cvb-prompt { display: flex; flex-direction: column; border: 1.5px solid transparent; border-radius: 16px;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef) border-box; transition: box-shadow .2s ease; }
.aj-cvb-prompt:focus-within { box-shadow: 0 0 0 4px rgba(99,102,241,.14); }
.aj-cvb-textarea { display: block; width: 100%; box-sizing: border-box; min-height: 200px; padding: 16px 16px 8px; border: 0 !important; border-radius: 16px 16px 0 0; background: transparent; resize: vertical; outline: none; box-shadow: none !important; font: inherit; font-size: 15px; line-height: 1.6; color: #0b0b12; }
.aj-cvb-textarea::placeholder { color: #a1a1aa; }
.aj-cvb-prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 10px 16px; border-top: 1px dashed #ececf1; font-size: 12px; }
.aj-cvb-prompt-hint { color: #a1a1aa; }
.aj-cvb-count { display: inline-flex; align-items: center; gap: 5px; justify-self: auto; font-variant-numeric: tabular-nums; }
.aj-cvb-count .aplikuok-fi { width: 13px; height: 13px; }
/* Links: icon inside the field, dashed "add" row */
.aj-cvb-link-row { display: flex; align-items: center; gap: 8px; }
.aj-cvb-input-icon { position: relative; flex: 1; min-width: 0; display: block; }
.aj-cvb-input-icon > .aplikuok-fi { position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: #a1a1aa; pointer-events: none; }
.aj-cvb-input-icon > .aj-cvb-input { padding-left: 38px; }
.aj-cvb-icon-btn { width: 44px; height: 44px; border-radius: 12px; }
.aj-cvb-add { width: 100%; height: 44px; justify-content: flex-start; padding: 0 14px; border: 1px dashed #d4d4dc; border-radius: 12px; background: transparent; color: #3f3f46; font-weight: 600; }
.aj-cvb-add:hover { border-color: #2a6bff; color: #2a6bff; background: #f7f9ff; }
/* Contacts: a real toggle, vertically centred with the title */
.aj-cvb-toggle { flex-shrink: 0; align-self: center; height: 34px; padding: 0 10px 0 12px; border-radius: 10px; flex-direction: row-reverse; gap: 6px; font-size: 13px; color: #2a6bff; border-color: #dfe8ff; background: #f5f8ff; }
.aj-cvb-toggle .aplikuok-fi { width: 14px; height: 14px; transition: transform .2s ease; }
.aj-cvb-toggle.is-open .aplikuok-fi { transform: rotate(180deg); }
.aj-cvb-grid { margin-top: 0; }
.aj-cvb-grid[hidden] { display: none; }
.aj-cvb-mini.is-wide { grid-column: 1 / -1; }
.aj-cvb-mini > span { font-size: 12px; font-weight: 600; color: #3f3f46; }
/* Side card */
.aj-cvb-with-icon { display: inline-flex; align-items: center; gap: 6px; }
.aj-cvb-with-icon .aplikuok-fi { width: 14px; height: 14px; }
.aj-cvb-card button.aplikuok-cv-btn.aj-cvb-go .aplikuok-cv-btn-inner { width: 100%; }
.aj-cvb-card .aj-cvb-status:empty { display: none; }
.aj-cvb-primary .aplikuok-fi--arrow-right { margin-left: auto; }
.aj-cvb-card > .aj-cvb-primary { justify-content: flex-start; padding: 0 16px; }
.aj-cvb-card > .aj-cvb-btn:not(.aj-cvb-primary) { justify-content: flex-start; padding: 0 16px; }
.aj-cvb-card > .aj-cvb-ghost { height: 38px; }
@media (max-width: 767px) {
  .aj-cvb-step { padding: 18px; border-radius: 18px; }
  .aj-cvb-step-head { flex-wrap: wrap; }
  .aj-cvb-toggle { margin-left: 38px; }
}
.aj-cvb-card-title { display: flex; align-items: center; gap: 10px; }
.aj-cvb-card-ico { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #6366f1, #d946ef); }
.aj-cvb-card-ico .aplikuok-fi { width: 16px; height: 16px; }
.aj-cvb-card-ico.is-done { background: #16a34a; }

/* Type roles (copy of the bd-icons.css block, at its original place in the cascade: it must still win over the builder rules above) */
.aj-cvb-step-title, .aj-cvb-card-title, .aj-cvb-tips-title, .aplikuok-pf-cvlink-title { font-family: var(--aj-font-head); font-weight: 500; letter-spacing: -0.01em; }
.aj-cvb-num, .aj-cvb-count, .aplikuok-pf-facts b, .aplikuok-pf-skills .aplikuok-match-pill small { font-family: var(--aj-font-num); font-variant-numeric: tabular-nums; }
/* Pridėti/Slėpti sits on the title row (28px), not the middle of title + hint */
.aj-cvb-toggle { align-self: flex-start; margin-top: -3px; }
/* Profile "Neturi CV" card: wand icon + arrow */
.aplikuok-pf-cvlink-ico.aplikuok-fi { width: 18px; height: 18px; flex-shrink: 0; color: #8b5cf6; }
.aplikuok-pf-cvlink-go .aplikuok-fi { width: 16px; height: 16px; }
/* The builder's button has no hint line: its label stays put on hover (the sheen still runs) */
.aplikuok-cv-btn.aj-cvb-go:hover .aplikuok-cv-btn-label, .aplikuok-cv-btn.aj-cvb-go:focus-visible .aplikuok-cv-btn-label { transform: none; opacity: 1; }
/* Profile "Neturi CV" card: the animated CV button (a span – the whole card is the link); hovering the card plays it */
.aplikuok-pf-cvlink .aplikuok-cv-btn { flex-shrink: 0; width: 240px; max-width: 100%; }
.aplikuok-pf-cvlink .aplikuok-cv-btn-inner { height: 44px; padding: 0 16px; }
.aplikuok-pf-cvlink:hover .aplikuok-cv-btn-label { transform: translateY(-24px); opacity: 0; }
.aplikuok-pf-cvlink:hover .aplikuok-cv-btn-hint { transform: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .aplikuok-pf-cvlink:hover .aplikuok-cv-btn { animation: aplikuok-sheen 2.4s linear infinite; }
  .aplikuok-pf-cvlink:hover .aplikuok-cv-btn-marquee { animation: aplikuok-edge 7s linear infinite; }
}
@media (hover: none) { .aplikuok-pf-cvlink:hover .aplikuok-cv-btn-label { transform: none; opacity: 1; } }
@media (max-width: 767px) { .aplikuok-pf-cvlink .aplikuok-cv-btn { width: 100%; } }

/* CV language: single-select combobox (reuses the search strip's .aj-combo look) */
.aj-cvb-card .aj-combo, .aj-cvb-foot .aj-combo { display: block; flex: none; width: 100%; }
.aj-cvb-lang .aj-combo-pop { width: 100%; }
.aj-cvb-lang .aj-combo-value .aplikuok-fi { width: 16px; height: 16px; opacity: .6; }
.aj-cvb-lang .aj-combo-trigger { font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; }

/* CV builder: optional-icons switch (side card) */
.aj-cvb-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 2px; font-size: 14px; font-weight: 500; color: #0b0b12; }
.aj-cvb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.aj-cvb-switch-track { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: 999px; background: #d9d9e0; transition: background .15s ease; }
.aj-cvb-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.aj-cvb-switch input:checked + .aj-cvb-switch-track { background: #0b0b12; }
.aj-cvb-switch input:checked + .aj-cvb-switch-track::after { transform: translateX(16px); }
.aj-cvb-switch input:focus-visible + .aj-cvb-switch-track { outline: 2px solid #2a6bff; outline-offset: 2px; }

/* PATARIMAI: "Ko dar trūksta" highlighted on top */
.aj-cvb-missing { display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; padding: 14px 16px; border-radius: 14px; background: #fff7e6; border: 1px solid #fde2a8; list-style: none; }
.aj-cvb-missing-title { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--aj-font-head); font-size: 15px; font-weight: 500; color: #7a4a00; }
.aj-cvb-missing-title .aplikuok-fi { width: 16px; height: 16px; color: #d97706; }
.aj-cvb-missing-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; font-size: 14px; color: #3f3f46; }
.aj-cvb-missing-list li::marker { color: #d97706; }
.aj-cvb-missing-btn { align-self: flex-start; height: 36px; font-size: 13px; border-color: #fde2a8; }

/* Rich-text story box (Tiptap, assets/rte/rte.js) inside the gradient prompt: toolbar on top, editor below */
.aj-rte { display: flex; flex-direction: column; }
.aj-rte-bar { display: flex; align-items: center; gap: 2px; padding: 8px 10px; border-bottom: 1px dashed #ececf1; }
.aj-rte-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #52525b; }
.aj-rte-btn:hover { background: #f2f2f5; color: #0b0b12; }
.aj-rte-btn.is-on { background: #0b0b12; color: #fff; }
.aj-rte-btn .aplikuok-fi { width: 16px; height: 16px; }
.aj-rte-sep { width: 1px; height: 18px; margin: 0 6px; background: #e4e4ea; }
.aj-rte-content { min-height: 220px; max-height: 60vh; overflow-y: auto; padding: 14px 16px 10px; outline: none; font-size: 15px; line-height: 1.6; color: #0b0b12; }
.aj-rte-content > * + * { margin-top: 8px; }
.aj-rte-content p { margin: 0; }
.aj-rte-content ul, .aj-rte-content ol { margin: 0; padding-left: 22px; }
.aj-rte-content li + li { margin-top: 4px; }
.aj-rte-content li::marker { color: #71717a; }
.aj-rte-content strong { font-weight: 600; }
.aj-rte-content p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: #a1a1aa; pointer-events: none; }

/* CV editor on /cv-kurimas/: the document scaled up for editing (print, PDF and the share page keep the A4 sizes) */
@media screen and (min-width: 768px) {
  .aj-cvb-result .aj-cv-doc { max-width: none; padding: 56px 64px; font-size: 15.5px; line-height: 1.6; }
  .aj-cvb-result .aj-cv-name { font-size: 36px; }
  .aj-cvb-result .aj-cv-headline { font-size: 19px; }
  .aj-cvb-result .aj-cv-contact { font-size: 14px; }
  .aj-cvb-result .aj-cv-h2 { font-size: 12px; }
  .aj-cvb-result .aj-cv-summary, .aj-cvb-result .aj-cv-item-title { font-size: 16.5px; }
  .aj-cvb-result .aj-cv-item-meta { font-size: 14px; }
  .aj-cvb-result .aj-cv-skill-row { grid-template-columns: 200px minmax(0, 1fr); }
  .aj-cvb-result .aj-cv-ico { width: 16px; height: 16px; }
  .aj-cvb-result .t-minimal .aj-cv-name { font-size: 24px; }
  .aj-cvb-result .t-minimal .aj-cv-headline { font-size: 17px; }
  .aj-cvb-result .t-minimal .aj-cv-h2, .aj-cvb-result .t-minimal .aj-cv-item-title, .aj-cvb-result .t-minimal .aj-cv-skill-group { font-size: 19.5px; }
  .aj-cvb-result .t-minimal .aj-cv-head, .aj-cvb-result .t-minimal .aj-cv-sec { grid-template-columns: 170px minmax(0, 1fr); gap: 0 40px; }
}
.aj-cvb-result .aj-cv-doc [contenteditable="true"] { padding: 1px 4px; margin: -1px -4px; }
.aj-cvb-result .aj-cv-doc [contenteditable="true"]:hover { background: rgba(42,107,255,.07); outline: 1px solid rgba(42,107,255,.2); }

/* AI block edits in the CV editor (assets/cv-ai.js) */
.aj-ai-scope { position: relative; }
.aj-cv-doc [data-block] { position: relative; }
.aj-cv-doc [data-block]::after { content: ""; position: absolute; inset: -8px -12px; border: 1.5px dashed transparent; border-radius: 12px; pointer-events: none; transition: border-color .15s ease; }
.aj-cv-doc [data-block].is-hover::after { border-color: rgba(42,107,255,.3); }
/* Selected / AI writing: a rainbow ring (masked gradient), moving while the text streams in */
.aj-cv-doc [data-block].aj-ai-sel::after, .aj-cv-doc [data-block].aj-ai-busy::after {
  border: 0; padding: 2px; background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.aj-cv-doc [data-block].aj-ai-busy::after { animation: aplikuok-sheen 1.4s linear infinite; }
.aj-cv-doc [data-block].aj-ai-done { animation: aj-ai-flash 1.2s ease; }
@keyframes aj-ai-flash { from { background: rgba(99,102,241,.1); } to { background: transparent; } }
.aj-ai-live { min-height: 1.5em; white-space: pre-wrap; color: #3f3f46; }
.aj-ai-live::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; border-radius: 2px; background: #6366f1; animation: aj-ai-caret 1s steps(2) infinite; }
@keyframes aj-ai-caret { 50% { opacity: 0; } }

.aj-ai-bar { position: absolute; z-index: 20; display: flex; gap: 2px; padding: 3px; transform: translate(-100%, calc(-100% + 1px)); border: 1px solid #e4e4ea; border-bottom: 0; border-radius: 10px 10px 0 0; background: #fff; }
.aj-ai-bar[hidden] { display: none; }
.aj-ai-bar-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: #3f3f46; }
.aj-ai-bar-btn:hover { background: #f2f2f5; color: #0b0b12; }
.aj-ai-bar-btn .aplikuok-fi { width: 14px; height: 14px; }
.aj-ai-bar-btn.is-ai { background: #0b0b12; color: #fff; }

.aj-ai-pop { position: absolute; z-index: 30; display: flex; flex-direction: column; gap: 10px; box-sizing: border-box; width: 340px; max-width: calc(100vw - 32px); padding: 14px; transform: translate(-100%, 8px); border: 1px solid #e4e4ea; border-radius: 14px; background: #fff; font-size: 14px; color: #0b0b12; }
.aj-ai-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.aj-ai-pop-title { display: flex; align-items: center; gap: 7px; margin: 0; font-family: var(--aj-font-head); font-size: 15px; font-weight: 500; }
.aj-ai-pop-title .aplikuok-fi { width: 16px; height: 16px; color: #8b5cf6; }
.aj-ai-x { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: #71717a; }
.aj-ai-x:hover { background: #f2f2f5; color: #0b0b12; }
.aj-ai-x .aplikuok-fi { width: 14px; height: 14px; }
.aj-ai-pop-label { margin: -6px 0 0; font-size: 12.5px; color: #71717a; }
.aj-ai-pop-body { display: flex; flex-direction: column; gap: 10px; }
.aj-ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-ai-chip { height: 28px; padding: 0 10px; border: 1px solid #e4e4ea; border-radius: 999px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 500; color: #3f3f46; }
.aj-ai-chip:hover { background: #f5f5f8; color: #0b0b12; }
.aj-ai-chip:disabled, .aj-ai-input:disabled { opacity: .5; }
.aj-ai-input { box-sizing: border-box; width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid #e0e0e6; border-radius: 10px; outline: none; resize: vertical; font: inherit; font-size: 14px; line-height: 1.45; color: #0b0b12; }
.aj-ai-input:focus { border-color: #8b8df5; }
.aj-ai-foot { display: flex; align-items: center; gap: 8px; }
.aj-ai-status { flex: 1; min-width: 0; font-size: 12.5px; color: #71717a; }
.aj-ai-status.is-bad { color: #dc2626; }
.aj-ai-go, .aj-ai-ghost { display: inline-flex; flex-shrink: 0; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 13.5px; font-weight: 600; }
.aj-ai-go { margin-left: auto; border: 0; background: #0b0b12; color: #fff; }
.aj-ai-go:disabled { opacity: .75; }
.aj-ai-ghost { border: 1px solid #e4e4ea; background: #fff; color: #0b0b12; }
.aj-ai-ghost:hover { background: #f5f5f8; }
.aj-ai-go .aplikuok-fi, .aj-ai-ghost .aplikuok-fi { width: 14px; height: 14px; }
.aj-ai-ok { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 13.5px; color: #166534; }
.aj-ai-ok .aplikuok-fi { width: 16px; height: 16px; margin-top: 1px; color: #16a34a; }
@media (max-width: 767px) {
  .aj-ai-pop { left: 0 !important; width: 100%; max-width: none; transform: translateY(8px); }
}
@media print { .aj-ai-bar, .aj-ai-pop { display: none !important; } .aj-cv-doc [data-block]::after { display: none; } }

/* Autosave status in the side card (bd-cvbuild.js) */
.aj-cvb-saved { display: flex; align-items: center; gap: 6px; margin: -4px 0 2px; font-size: 12.5px; color: #16a34a; }
.aj-cvb-saved .aplikuok-fi { width: 14px; height: 14px; }
.aj-cvb-saved.is-busy { color: #71717a; }
.aj-cvb-saved.is-bad { color: #dc2626; }
.aj-cvb-saved-dot { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; animation: aj-ai-caret 1s steps(2) infinite; }

/* Reorder buttons in the block toolbar (cv-ai.js) */
.aj-ai-bar-btn.is-icon { width: 26px; padding: 0; justify-content: center; }
.aj-ai-bar-btn:disabled { opacity: .35; }
.aj-ai-bar-btn:disabled:hover { background: transparent; }
.aj-ai-bar-sep { width: 1px; margin: 5px 2px; background: #e4e4ea; }
.aj-ai-bar [hidden] { display: none; }
.aplikuok-cvk-eyebrow .aplikuok-fi { width: 13px; height: 13px; }

/* CV builder side panel, shadcn-like: Card (header + content), Button (default / outline / ghost), Select, Switch,
   Separator. One primary action, secondary actions side by side, settings, then the tertiary link */
.aj-cvb-card { gap: 12px; padding: 20px; border: 1px solid #e4e4e7; border-radius: 14px; }
.aj-cvb-card-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 2px; }
.aj-cvb-card .aj-cvb-card-title { font-size: 18px; line-height: 1.25; }
.aj-cvb-card-desc { margin: 0; font-size: 13.5px; line-height: 1.45; color: #71717a; }
.aj-cvb-card .aj-cvb-btn { height: 40px; border-color: #e4e4e7; border-radius: 8px; font-size: 14px; font-weight: 500; }
.aj-cvb-card .aj-cvb-btn:hover { background: #f4f4f5; }
.aj-cvb-card > .aj-cvb-primary { height: 44px; border-radius: 8px; font-weight: 600; }
.aj-cvb-card > .aj-cvb-primary:hover { background: #1f5ae6; }
.aj-cvb-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aj-cvb-duo .aj-cvb-btn { width: 100%; padding: 0 10px; justify-content: center; }
.aj-cvb-share-slot:empty { display: none; }
.aj-cvb-card .aj-cvb-share { border-radius: 10px; }
.aj-cvb-sep { height: 1px; margin: 2px -20px; background: #f0f0f2; }
.aj-cvb-label { margin: 0 0 -2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a1a1aa; }
.aj-cvb-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aj-cvb-field > span { font-size: 14px; font-weight: 500; color: #0b0b12; }
.aj-cvb-card .aj-cvb-field .aj-combo { width: 156px; }
.aj-cvb-card .aj-combo-trigger { height: 36px; padding: 0 10px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; }
.aj-cvb-card .aj-combo-trigger:hover { background: #f4f4f5; }
.aj-cvb-card .aj-combo-pop { right: 0; left: auto; width: max(100%, 200px); border-color: #e4e4e7; border-radius: 10px; }
.aj-cvb-card .aj-cvb-switch { min-height: 36px; padding: 0; }
.aj-cvb-switch-text { display: flex; flex-direction: column; gap: 1px; }
.aj-cvb-switch-text small { font-size: 12.5px; font-weight: 400; color: #71717a; }
.aj-cvb-card > .aj-cvb-ghost { height: 36px; margin: -4px -8px -6px; padding: 0 8px; justify-content: flex-start; border: 0; color: #52525b; }
.aj-cvb-card > .aj-cvb-ghost:hover { background: #f4f4f5; color: #0b0b12; }

/* Save status: one quiet line above the CV and the side panel */
/* Row above the CV and the side panel: save status left, PDF + share link right (shadcn outline sm buttons) */
.aj-cvb-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin: -4px 0 -6px; }
.aj-cvb-topbar .aj-cvb-saved { margin: 0; }
.aj-cvb-topactions { display: flex; align-items: center; gap: 8px; }
.aj-cvb-topactions:empty { display: none; }
.aj-cvb-btn.aj-cvb-sm { height: 34px; padding: 0 12px; border-color: #e4e4e7; border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 500; }
.aj-cvb-btn.aj-cvb-sm:hover { background: #f4f4f5; }
.aj-cvb-btn.aj-cvb-sm .aplikuok-fi { width: 14px; height: 14px; }
.aj-cvb-sharewrap { position: relative; }
.aj-cvb-sharepop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 32px); padding: 14px; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; }
.aj-cvb-sharepop[hidden] { display: none; }
.aj-cvb-share-title { margin: 0; font-family: var(--aj-font-head); font-size: 15px; font-weight: 500; color: #0b0b12; }
.aj-cvb-share-row { display: flex; gap: 8px; }
.aj-cvb-sharepop .aj-cvb-input { flex: 1; min-width: 0; height: 36px; border-color: #e4e4e7; border-radius: 8px; font-size: 13px; }
.aj-cvb-sharepop .aj-cvb-btn { height: 36px; border-radius: 8px; font-size: 13.5px; font-weight: 500; }
.aj-cvb-sharepop .aj-cvb-note { margin: 0; font-size: 12px; line-height: 1.45; color: #71717a; }
@media (max-width: 767px) { .aj-cvb-topbar { flex-wrap: wrap; } .aj-cvb-sharepop { right: auto; left: 0; } }

/* Editor: room between sections for the section toolbar (it sits on the outline, above the section) */
.aj-cvb-result .aj-cv-doc .aj-cv-sec + .aj-cv-sec { margin-top: 44px; }
.aj-cvb-result .aj-cv-doc.t-classic .aj-cv-sec + .aj-cv-sec { margin-top: 36px; }
@media print { .aj-cvb-result .aj-cv-doc.t-minimal .aj-cv-sec + .aj-cv-sec { margin-top: 34px; } .aj-cvb-result .aj-cv-doc.t-classic .aj-cv-sec + .aj-cv-sec { margin-top: 18px; } }
.aj-cvb-sharepop { align-items: stretch; text-align: left; }

/* CV editor: Tiptap in CV fields (inline mode) – a small format bar floats above the field while it is focused */
.aj-rte-inline { position: relative; }
.aj-rte-field { outline: none; }
.aj-rte-field p { margin: 0; }
.aj-rte-inline .is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: #a1a1aa; pointer-events: none; }
.aj-rte-float { position: absolute; top: -40px; left: -6px; z-index: 25; display: none; gap: 2px; padding: 3px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; }
.aj-rte-inline.is-focus .aj-rte-float { display: flex; }
.aj-rte-float .aj-rte-btn { width: 28px; height: 28px; }
.aj-cv-bullets-edit { margin-top: 6px; }
.aj-cv-bullets-edit ul { display: grid; gap: 3px; margin: 0; padding-left: 18px; }
.aj-cv-bullets-edit li::marker { color: #a1a1aa; }
.t-minimal .aj-cv-bullets-edit ul { gap: 2px; padding-left: 16px; }

/* "+ Pridėti skiltį" gaps between sections (they carry the spacing between sections in the editor): a dark badge
   like the PATARIMAI tag on a dashed guide line */
.aj-cvb-result .aj-cv-doc .aj-cv-add { position: relative; height: 64px; }
.aj-cvb-result .aj-cv-doc.t-classic .aj-cv-add { height: 56px; }
.aj-cvb-result .aj-cv-doc .aj-cv-add + .aj-cv-sec, .aj-cvb-result .aj-cv-doc .aj-cv-sec + .aj-cv-add { margin-top: 0; }
.aj-cvb-result .aj-cv-doc .aj-cv-add.is-first { height: 44px; margin-top: -24px; }
.aj-cv-add::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 1.5px dashed transparent; transition: border-color .15s ease; }
.aj-cvb-result .aj-cv-doc:hover .aj-cv-add::before { border-top-color: #e4e4e7; }
.aj-cvb-result .aj-cv-doc .aj-cv-add:hover::before { border-top-color: #2a6bff; }
.aj-cv-add-btn { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; transform: translate(-50%, -50%); border: 0; border-radius: 6px; background: #0b0b12; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .15s ease, background .15s ease; }
.aj-cv-add-btn .aplikuok-fi { width: 12px; height: 12px; }
.aj-cvb-result .aj-cv-doc:hover .aj-cv-add-btn { opacity: .55; }
.aj-cvb-result .aj-cv-doc .aj-cv-add:hover .aj-cv-add-btn, .aj-cv-add-btn:focus-visible { opacity: 1; }
.aj-cvb-result .aj-cv-doc .aj-cv-add-btn:hover { background: #2a6bff; }
/* "Pridėti skiltį" combobox (shadcn Command): search, grouped options, keyboard highlight */
.aj-cv-addmenu { position: absolute; z-index: 35; display: flex; flex-direction: column; width: 280px; overflow: hidden; border: 1px solid #e4e4e7; border-radius: 12px; background: #fff; }
.aj-cv-addmenu-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-bottom: 1px solid #f0f0f2; color: #a1a1aa; }
.aj-cv-addmenu-search .aplikuok-fi { width: 15px; height: 15px; }
.aj-cv-addmenu-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: #0b0b12; }
.aj-cv-addmenu-list { max-height: 320px; overflow-y: auto; padding: 4px; }
.aj-cv-addmenu-group { margin: 6px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #a1a1aa; }
.aj-cv-addmenu-item { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: #0b0b12; text-align: left; }
.aj-cv-addmenu-item.is-active { background: #f4f4f5; }
.aj-cv-addmenu-item .aplikuok-fi { width: 15px; height: 15px; color: #71717a; }
.aj-cv-addmenu-empty { margin: 0; padding: 18px 8px; text-align: center; font-size: 13px; color: #71717a; }
.aj-ai-bar-btn.is-danger:hover, .aj-ai-bar-btn.is-danger.is-armed { background: #fee2e2; color: #dc2626; }

/* Portfolio template in the editor: its own scale (the editor's minimal/classic sizes would be too big here) */
@media screen and (min-width: 768px) {
  .aj-cvb-result .aj-cv-doc.t-portfolio { padding: 16px; font-size: 15.5px; }
  .aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-name { font-size: 19px; }
  .aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-headline { font-size: 14.5px; }
  .aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-h2 { font-size: 32px; }
  .aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-item-title { font-size: 18px; }
}
.aj-cvb-result .aj-cv-doc.t-portfolio { gap: 0; }
.aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-photo { margin-top: 14px; }
.aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-add { height: 44px; }
.aj-cvb-result .aj-cv-doc.t-portfolio .aj-cv-add.is-first { height: 44px; margin-top: 0; }

/* Drag and drop of sections (cv-ai.js) */
.aj-cv-dropline { position: absolute; z-index: 30; height: 3px; border-radius: 3px; background: #2a6bff; pointer-events: none; }
.aj-cv-dropline::before, .aj-cv-dropline::after { content: ""; position: absolute; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: #2a6bff; }
.aj-cv-dropline::before { left: -4px; } .aj-cv-dropline::after { right: -4px; }
.aj-cv-doc [data-sec].is-dragging { opacity: .4; }
.is-dragging-sec, .is-dragging-sec * { user-select: none; }
.aj-ai-bar-btn.is-grip { touch-action: none; }

/* Photo field in the side panel */
.aj-cvb-photo { display: flex; align-items: center; gap: 6px; }
.aj-cvb-photo-thumb { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: #f4f4f5; }
.aj-cvb-photo-thumb.is-empty { border: 1px dashed #d4d4d8; }
.aj-cvb-photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aj-cvb-btn.aj-cvb-icon-only { width: 34px; padding: 0; }
.aj-cvb-btn.aj-cvb-sm span:empty { display: none; }

/* Remove (custom sections): labelled, red when armed */
.aj-ai-bar-btn.is-danger { color: #71717a; }
.aj-ai-bar-btn.is-danger:hover, .aj-ai-bar-btn.is-danger.is-armed { background: #fee2e2; color: #dc2626; }
.aj-ai-bar-btn { white-space: nowrap; }

/* CV builder, finished CV: side card holds only "Ko dar trūksta" (Breakdance tag + title hidden, no card chrome) */
.aplikuok-cvk-tips.is-result { padding: 0 !important; border: 0 !important; background: none !important; }
.aplikuok-cvk-tips.is-result .aplikuok-cvk-tag, .aplikuok-cvk-tips.is-result .aplikuok-cvk-tips-title { display: none !important; }
.aplikuok-cvk-tips.is-result [data-aj-cvb-tips] { margin: 0; padding: 0; list-style: none; }
/* "Patikslinti" pop-over (answers → /cv-refine) */
.aplikuok-cvk-side { position: relative; }
.aj-cvb-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(9,9,11,.45); }
.aj-cvb-refine { display: flex; flex-direction: column; gap: 20px; box-sizing: border-box; width: 640px; max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden; padding: 28px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; font-family: var(--aj-font-body); font-size: 16px; line-height: 1.55; color: #0b0b12; }
.aj-cvb-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aj-cvb-modal-title { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--aj-font-head); font-size: 24px; font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; color: #0b0b12; }
.aj-cvb-modal-title .aplikuok-fi { width: 22px; height: 22px; color: #8b5cf6; }
.aj-ai-x.aj-cvb-modal-x { flex-shrink: 0; width: 36px; height: 36px; margin: 0; padding: 0; line-height: 0; }
.aj-cvb-modal-x .aplikuok-fi { width: 18px; height: 18px; }
.aj-cvb-refine .aj-cvb-refine-body { flex: 1 1 auto; min-height: 0; gap: 18px; margin: -4px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.aj-cvb-refine .aj-cvb-refine-body::-webkit-scrollbar { display: none; }
.aj-cvb-modal-foot { flex-shrink: 0; margin: 0 -28px -28px; padding: 16px 28px 24px; border-top: 1px solid #f0f0f2; background: #fff; }
.aj-cvb-modal-foot:empty { display: none; }
.aj-cvb-refine .aj-cvb-modal-head { flex-shrink: 0; }
.aj-cvb-refine .aj-cvb-refine-desc { font-size: 15px; line-height: 1.55; color: #52525b; }
.aj-cvb-refine .aj-cvb-refine-q { gap: 8px; font-size: 15.5px; font-weight: 500; line-height: 1.45; }
.aj-cvb-refine .aj-ai-input { min-height: 84px; padding: 12px 14px; font-family: var(--aj-font-body); font-size: 15.5px; line-height: 1.5; }
.aj-cvb-refine .aj-ai-status { font-size: 14px; }
.aj-cvb-refine .aj-ai-go, .aj-cvb-refine .aj-ai-ghost { height: 42px; padding: 0 18px; font-family: var(--aj-font-body); font-size: 15px; font-weight: 500; }
.aj-cvb-refine .aj-ai-go .aplikuok-fi, .aj-cvb-refine .aj-ai-ghost .aplikuok-fi { width: 16px; height: 16px; }
.aj-cvb-refine .aj-ai-ok { font-size: 15.5px; line-height: 1.5; }
@media (max-width: 767px) { .aj-cvb-refine { padding: 20px; } .aj-cvb-modal-foot { margin: 0 -20px -20px; padding: 14px 20px 18px; } .aj-cvb-modal-title { font-size: 20px; } }
.aj-cvb-refine-body { display: flex; flex-direction: column; gap: 12px; }
.aj-cvb-refine-desc { margin: 0; font-size: 13px; line-height: 1.5; color: #71717a; }
.aj-cvb-refine-q { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: #18181b; }
.aj-cvb-refine-q textarea { resize: vertical; }
/* The whole CV while the refine request runs */
.aj-cv-doc.aj-ai-busy { position: relative; }
.aj-cv-doc.aj-ai-busy::before { content: ""; position: absolute; inset: -3px; z-index: 5; padding: 3px; border-radius: 14px; pointer-events: none;
  background: linear-gradient(90deg, #f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef, #f43f5e); background-size: 200% 100%; animation: aplikuok-sheen 1.4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.aj-cv-doc.aj-ai-done { animation: aj-ai-flash 1.2s ease; }
/* (i) Kaip redaguoti */
.aj-cvb-btn.aj-cvb-icon-only { width: 34px; padding: 0; justify-content: center; }
.aj-cvb-infopop { width: 340px; }
.aj-cvb-howto { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aj-cvb-howto li { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; color: #52525b; }
.aj-cvb-howto strong { font-weight: 500; color: #18181b; }
.aj-cvb-field[hidden] { display: none !important; }

/* Profile: the CV card once a CV is made – edit / preview / share link */
.aplikuok-pf-cvlink.is-made { cursor: default; }
.aplikuok-pf-cvacts { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 8px; }
.aplikuok-pf-cvact { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 1px solid #e4e4e7; border-radius: 9px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 500; color: #18181b; text-decoration: none; cursor: default; transition: background .15s ease, border-color .15s ease; }
.aplikuok-pf-cvact:hover { background: #f4f4f5; }
.aplikuok-pf-cvact .aplikuok-fi { width: 15px; height: 15px; }
.aplikuok-pf-cvact.is-primary { border-color: #18181b; background: #18181b; color: #fff; }
.aplikuok-pf-cvact.is-primary:hover { background: #27272a; }
@media (max-width: 767px) { .aplikuok-pf-cvacts { width: 100%; } .aplikuok-pf-cvact { flex: 1 1 auto; justify-content: center; } }

/* Patikslinti: progress while the AI works */
.aj-cvb-progress { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.aj-cvb-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--aj-font-body); font-size: 15px; color: #3f3f46; }
.aj-cvb-progress-label { display: inline-flex; align-items: center; gap: 10px; }
.aj-cvb-progress-dot { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; animation: aj-cvb-pulse 1.2s ease-in-out infinite; }
.aj-cvb-progress-time { font-family: var(--aj-font-num); font-size: 14px; font-variant-numeric: tabular-nums; color: #71717a; }
.aj-cvb-progress-track { position: relative; height: 6px; overflow: hidden; border-radius: 999px; background: #f0f0f3; }
.aj-cvb-progress-bar { position: relative; width: 0; height: 100%; overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #8b5cf6, #d946ef); transition: width .25s linear; }
.aj-cvb-progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: aj-cvb-shimmer 1.4s ease-in-out infinite; }
.aj-cvb-progress.is-done .aj-cvb-progress-bar { background: #16a34a; transition: width .35s ease; }
.aj-cvb-progress.is-done .aj-cvb-progress-dot { background: #16a34a; animation: none; }
@keyframes aj-cvb-pulse { 50% { opacity: .35; transform: scale(.8); } }
@keyframes aj-cvb-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .aj-cvb-progress-dot, .aj-cvb-progress-bar::after { animation: none; } }
.aj-cvb-btn.aj-cvb-primary.is-busy { opacity: .8; }

/* CV builder: Peržiūra (read-only preview over the page) */
.aj-cvb-preview { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: #f4f4f5; }
.aj-cvb-preview-bar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-bottom: 1px solid #e4e4e7; background: #fff; }
.aj-cvb-preview-title { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--aj-font-head); font-size: 17px; font-weight: 500; color: #0b0b12; }
.aj-cvb-preview-title .aplikuok-fi { width: 18px; height: 18px; }
.aj-cvb-preview-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.aj-cvb-preview-sheet { flex: 1; overflow-y: auto; padding: 32px 16px 64px; }
.aj-cvb-preview-sheet > .aj-cv-doc { max-width: 860px; margin: 0 auto; border-radius: 12px; background: #fff; }
@media (max-width: 767px) { .aj-cvb-preview-bar { flex-wrap: wrap; padding: 10px 16px; } .aj-cvb-preview-sheet { padding: 16px 8px 48px; } }
@media print { .aj-cvb-preview { display: none !important; } }

/* ── Application queue on /profilis/ (bd-profile.js: [data-aj-pf-matches]) ─────────────────────────────── */
.aj-ap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0 12px; border-bottom: 1px solid #efeff3; font-family: var(--aj-font-body); }
.aj-ap-count { flex: 1; font-size: 13px; color: #6b6b78; }
.aj-ap-count b { font-family: var(--aj-font-num); font-variant-numeric: tabular-nums; font-weight: 600; color: #0b0b12; }
.aj-ap-count i { font-style: normal; margin: 0 4px; color: #c4c4cc; }
.aj-ap-msg { flex-basis: 100%; margin: 0; font-size: 13px; color: #b91c1c; }
.aj-ap-all, .aj-ap-btn, .aj-ap-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; font-family: var(--aj-font-body); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; }
.aj-ap-all { border: 0; background: #0b0b12; color: #fff; }
.aj-ap-all:hover { background: #27272f; }
.aj-ap-btn { border: 1px solid #e4e4e7; background: #fff; color: #0b0b12; }
.aj-ap-btn:hover { border-color: #0b0b12; }
.aj-ap-act { flex-shrink: 0; display: flex; justify-content: flex-end; min-width: 108px; }
.aj-ap-busy { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b6b78; white-space: nowrap; }
.aj-ap-busy .aplikuok-fi { animation: aj-ap-spin 1s linear infinite; }
@keyframes aj-ap-spin { to { transform: rotate(360deg); } }
.aj-ap-chip { border: 1px solid transparent; background: #f0f0f3; color: #3f3f46; }
.aj-ap-chip.is-ready { background: #0b0b12; color: #fff; }
.aj-ap-chip.is-sent { background: #dcfce7; color: #15803d; }
.aj-ap-chip.is-reply, .aj-ap-chip.is-interview { background: #dbeafe; color: #1d4ed8; }
.aj-ap-chip.is-offer { background: #15803d; color: #fff; }
.aj-ap-chip.is-no { background: #f4f4f5; color: #a1a1aa; }
@media (max-width: 767px) { .aj-ap-act { min-width: 0; } .aj-ap-row .aj-pf-job-match { display: none; } }


/* CV builder (/cv-kurimas/): one corner scale with the rest of the site – 22px for the big surfaces (the CV page, the
   side cards, dialogs), 16px for boxes inside them, 12px for controls */
.aj-cvb-result .aj-cv-doc, .aj-cvb-card, .aj-cvb-preview-sheet > .aj-cv-doc, .aj-cvb-refine, .aj-cvb-sharepop { border-radius: 22px !important; }
.aj-cvb-contact, .aj-cvb-share, .aj-cvb-tips, .aj-cvb-missing, .aj-cvb-prompt, .aj-cvb-textarea { border-radius: 16px !important; }
@media (max-width: 767px) { .aj-cvb-result .aj-cv-doc, .aj-cvb-card { border-radius: 18px !important; } }

/* "Analizuoti rinkoje" (Tavo CV paruoštas): the signature AI button – black with the rainbow edge and a sparkle */
.aj-cvb-btn.aj-cvb-ai { border: 1.5px solid transparent !important; border-radius: 12px !important; color: #fff !important;
  background: linear-gradient(#0b0b12, #0b0b12) padding-box, linear-gradient(110deg, #f43f5e, #f59e0b 20%, #22c55e 40%, #06b6d4 60%, #6366f1 80%, #d946ef) border-box !important; }
.aj-cvb-btn.aj-cvb-ai:hover { background: linear-gradient(#1c1c26, #1c1c26) padding-box, linear-gradient(110deg, #f43f5e, #f59e0b 20%, #22c55e 40%, #06b6d4 60%, #6366f1 80%, #d946ef) border-box !important; }
.aj-cvb-btn.aj-cvb-ai .aplikuok-fi { color: #fff; }
.aj-pf-job-saved { display: inline-grid; place-items: center; flex: none; color: #0b0b12; } .aj-pf-job-saved .aplikuok-fi { width: 15px; height: 15px; }

/* "Paruošti" in progress: the step it is on, a percentage and a thin bar (bd-profile.js progress()) */
.aj-ap-prog { display: inline-flex; flex-direction: column; gap: 5px; width: 168px; max-width: 100%; }
.aj-ap-prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; color: #52525b; white-space: nowrap; }
.aj-ap-prog-top b { font: 600 12px/1 var(--aj-font-num, 'Mona Sans', sans-serif); font-variant-numeric: tabular-nums; color: #0b0b12; }
.aj-ap-prog-track { position: relative; height: 4px; overflow: hidden; border-radius: 999px; background: #ececf1; }
.aj-ap-prog-track i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #0b0b12; transition: width .25s linear; }
@media (prefers-reduced-motion: reduce) { .aj-ap-prog-track i { transition: none; } }

/* Profilis → Įgūdžiai: the same chips and picker as "Technologijos" in the CV check (CvFlow SkillPicker) – dot for how
   the skill was used, logo, years, round ×; a dashed "+ Pridėti technologiją" pill opens a searchable list with sritis tabs */
.aj-pf-tech { display: block !important; }
.aj-pf-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; color: hsl(240 5% 50%); font: 400 12px/1.2 var(--aj-font-body, Inter, sans-serif); }
.aj-pf-legend span { display: inline-flex; align-items: center; gap: 6px; }
.aj-pf-legend i, .aj-pf-dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 999px; }
.aj-pf-legend .is-hi, .aj-pf-dot.is-hi { background: hsl(152 58% 36%); }
.aj-pf-legend .is-mid, .aj-pf-dot.is-mid { background: hsl(40 90% 45%); }
.aj-pf-legend .is-lo, .aj-pf-dot.is-lo { background: hsl(240 5% 65%); }
.aj-pf-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aj-pf-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 10px; border: 1px solid hsl(240 10% 90%); border-radius: 999px; background: #fff; color: #0b0b12; font: 500 13px/1 var(--aj-font-body, Inter, sans-serif); }
.aj-pf-chip img { width: 14px; height: 14px; object-fit: contain; }
.aj-pf-yrs { color: hsl(240 5% 50%); font: 400 12px/1 var(--aj-font-num, 'Mona Sans', sans-serif); }
.aj-pf-chip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 2px; padding: 0; border: 0; border-radius: 999px; background: hsl(240 12% 94.5%); color: hsl(240 5% 50%); cursor: default; }
.aj-pf-chip-x svg { width: 11px; height: 11px; }
.aj-pf-chip-x:hover { background: hsl(240 10% 88%); color: #0b0b12; }
.aj-pf-chips { position: relative; }
.aj-pf-pick { display: inline-flex; }
.aj-pf-pick-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border: 1px dashed hsl(240 10% 82%); border-radius: 999px; background: transparent; color: hsl(240 5% 50%); font: 500 13px/1 var(--aj-font-body, Inter, sans-serif); cursor: default; }
.aj-pf-pick-btn:hover, .aj-pf-pick-btn[aria-expanded="true"] { border-color: hsl(240 5% 65%); color: #0b0b12; }
.aj-pf-pick-btn .aplikuok-fi { width: 14px; height: 14px; }
.aj-pf-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; width: min(100%, 380px); min-width: min(300px, 100%); box-sizing: border-box; padding: 8px; border: 1px solid hsl(240 10% 90%); border-radius: 14px; background: #fff; }
.aj-pf-pick-search { display: flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 10px; border: 1px solid hsl(240 10% 90%); border-radius: 10px; }
.aj-pf-pick-search .aplikuok-fi { width: 15px; height: 15px; color: hsl(240 5% 50%); }
.aj-pf-pick-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: transparent; color: #0b0b12; font: 400 13.5px/1 var(--aj-font-body, Inter, sans-serif); outline: none; box-shadow: none; }
.aj-pf-pick-tabs { display: flex; gap: 4px; margin: 8px -8px 0; padding: 0 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 8px, #000 calc(100% - 16px), transparent); }
.aj-pf-pick-tabs::-webkit-scrollbar { display: none; }
.aj-pf-pick-tabs[hidden] { display: none; }
.aj-pf-pick-tabs button { flex: none; white-space: nowrap; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: hsl(240 12% 94.5%); color: #3f3f46; font: 500 12px/1 var(--aj-font-body, Inter, sans-serif); cursor: default; }
.aj-pf-pick-tabs button:hover { background: hsl(240 10% 90%); }
.aj-pf-pick-tabs button[aria-pressed="true"] { background: #0b0b12; color: #fff; }
.aj-pf-pop ul { max-height: 256px; margin: 8px 0 0; padding: 0; overflow-y: auto; list-style: none; scrollbar-width: none; }
.aj-pf-pop ul::-webkit-scrollbar { display: none; }
.aj-pf-pop li button { display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #0b0b12; font: 500 13px/1 var(--aj-font-body, Inter, sans-serif); text-align: left; cursor: default; }
.aj-pf-pop li button:hover, .aj-pf-pop li:first-child button:focus-visible { background: hsl(240 12% 94%); }
.aj-pf-pop li img, .aj-pf-pick-nologo { width: 16px; height: 16px; flex: none; object-fit: contain; }
.aj-pf-pick-nologo { display: inline-block; border-radius: 4px; background: hsl(240 12% 94.5%); }
.aj-pf-pop li button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-pf-pop li small { color: hsl(240 5% 50%); font: 400 12px/1 var(--aj-font-num, 'Mona Sans', sans-serif); }
.aj-pf-pop li .aplikuok-fi { width: 14px; height: 14px; }
.aj-pf-pick-none { padding: 12px 8px; color: hsl(240 5% 50%); font: 400 13px/1.4 var(--aj-font-body, Inter, sans-serif); }

/* Mano paraiškos: the status chip opens the application page */
a.aj-ap-chip { text-decoration: none; gap: 4px; padding-right: 8px; }
a.aj-ap-chip .aplikuok-fi { width: 14px; height: 14px; opacity: .7; }
a.aj-ap-chip:hover { filter: brightness(.96); }
a.aj-ap-chip.is-ready:hover { filter: none; background: #26262f; }

/* CV builder + application page (/cv-kurimas/, /profilis/paraiska/{job}/; html.aj-cvk) – one shadcn scale:
   surfaces 22px (cards, the CV, the letter), popovers 16px, controls 10px (button, input, select, textarea, tabs list),
   small controls inside them 8px (tab trigger, xs button). Heights: lg 40 (card actions), default 36 (select, input,
   inline buttons), sm 32 (toolbar), xs 28. Buttons: text-sm (14px) medium, 16px icons. Muted text 13.5px #71717a. */
.aj-cvk .aj-cvb-card .aj-cvb-btn, .aj-cvk .aj-app-prep > .aj-cvb-btn, .aj-cvk .aj-app-empty > .aj-cvb-btn { height: 40px; padding: 0 14px; border-radius: 10px !important; font-size: 14px; font-weight: 500; }
.aj-cvk .aj-cvb-card > .aj-cvb-ghost { height: 36px; }
.aj-cvk .aj-cvb-btn .aplikuok-fi { width: 16px; height: 16px; }
.aj-cvk .aj-cvb-card .aj-combo-trigger { height: 36px; border-radius: 10px; }
.aj-cvk .aj-cvb-card .aj-combo-pop, .aj-cvk .aj-cvb-sharepop { border-radius: 16px !important; }
.aj-cvk .aj-cvb-card .aj-cvb-field .aj-combo { width: 180px; }
.aj-cvk .aj-cvb-btn.aj-cvb-sm { height: 32px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
.aj-cvk .aj-cvb-sharepop .aj-cvb-input, .aj-cvk .aj-cvb-sharepop .aj-cvb-btn { border-radius: 10px; }
.aj-cvk .aj-cvb-card-desc, .aj-app-muted { margin: 0; color: #71717a; font-size: 13.5px; line-height: 1.45; }

/* Application page */
.aj-app-back { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 32px; margin: 0 0 6px -10px; padding: 0 10px; border-radius: 10px; color: #52525b; font: 500 14px/1 var(--aj-font-body, Inter, sans-serif); text-decoration: none; }
.aj-app-back:hover { background: #f4f4f5; color: #0b0b12; }
.aj-app-back .aplikuok-fi { width: 16px; height: 16px; }
/* Tabs (shadcn TabsList / TabsTrigger) */
[data-aj-cvb]:has(> .aj-app-tabs) { display: flex; flex-direction: column; }
.aj-app-tabs { display: inline-flex; align-items: center; gap: 0; align-self: flex-start; height: 36px; margin-bottom: 12px; padding: 3px; border-radius: 10px; background: #e9e9ee; box-sizing: border-box; }
.aj-cvk .aj-app-tab.aj-cvb-btn { height: 30px; padding: 0 12px; gap: 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #71717a; font-size: 14px; font-weight: 500; }
.aj-cvk .aj-app-tab.aj-cvb-btn:hover { color: #0b0b12; }
.aj-cvk .aj-app-tab.aj-cvb-btn[aria-selected="true"] { border-color: #e4e4e7; background: #fff; color: #0b0b12; }
/* Job (the not-prepared state) */
.aj-app-job { display: flex; align-items: flex-start; gap: 12px; }
.aj-app-job img, .aj-app-job-logo { width: 40px; height: 40px; flex: none; padding: 3px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; object-fit: contain; box-sizing: border-box; }
.aj-app-job-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aj-app-job-title { color: #0b0b12; font: 600 14px/1.3 var(--aj-font-body, Inter, sans-serif); text-decoration: none; }
.aj-app-job-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.aj-app-job-sub { color: #71717a; font-size: 13.5px; }
/* Alert (warning / success) */
.aj-app-warn, .aj-app-alert { margin: 0; padding: 10px 12px; border: 1px solid; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.aj-app-warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
.aj-app-alert { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
/* Paruošti / Paruošti iš naujo */
.aj-app-prep { display: flex; flex-direction: column; gap: 8px; }
.aj-cvk .aj-app-prep > .aj-cvb-btn { width: 100%; justify-content: flex-start; }
.aj-app-prep .aj-ap-prog { width: 100%; padding: 8px 0 6px; }
.aj-app-prep .aj-cvb-status:empty { display: none; }
.aj-app-card .aj-app-ver .aj-combo-pop { width: max(100%, 240px); }
/* Main column surfaces: the empty states and the letter (same corner and border as the CV) */
.aj-app-empty, .aj-app-letter { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid #e4e4e7; border-radius: 22px; background: #fff; box-sizing: border-box; }
.aj-app-empty { align-items: flex-start; gap: 8px; color: #71717a; font-size: 14px; line-height: 1.5; }
.aj-app-empty p { margin: 0; }
.aj-app-empty .aj-app-empty-title { color: #0b0b12; font-family: var(--aj-font-head); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.aj-app-empty .aj-app-job { margin-bottom: 8px; }
.aj-app-empty .aj-app-prep { width: min(100%, 320px); margin-top: 8px; }
.aj-app-empty > .aj-cvb-btn { margin-top: 8px; text-decoration: none; }
/* Letter: Label + Input / Textarea (focus as the builder's inputs) */
.aj-app-field { display: flex; flex-direction: column; gap: 8px; }
.aj-app-field > span { color: #0b0b12; font-size: 14px; font-weight: 500; line-height: 1; }
.aj-app-field .aj-cvb-input { height: 36px; padding: 0 12px; border: 1px solid #e4e4e7; border-radius: 10px; font-size: 14px; }
.aj-app-textarea { display: block; width: 100%; min-height: 320px; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; color: #0b0b12; font: 400 14px/1.7 var(--aj-font-body, Inter, sans-serif); resize: vertical; overflow: hidden; outline: none; box-sizing: border-box; }
.aj-app-textarea:focus { border-color: #2a6bff; box-shadow: 0 0 0 3px rgba(42,107,255,.15); }
.aj-app-sign { margin: -8px 0 0; color: #71717a; font-size: 13.5px; }
.aj-app-letter-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 -24px -8px; padding: 16px 24px 0; border-top: 1px solid #f0f0f2; }
.aj-app-letter-foot .aj-app-muted { font-variant-numeric: tabular-nums; }
.aj-cvk .aj-app-letter-foot .aj-cvb-btn { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.aj-app-fit-acts { display: inline-flex; flex: none; align-items: center; gap: 4px; margin: -4px 0 -4px 4px; }
.aj-cvk .aj-cvb-card .aj-cvb-btn.aj-app-xs { height: 28px; padding: 0 8px; gap: 4px; border: 1px solid #e4e4e7; border-radius: 8px !important; background: #fff; font-size: 12.5px; font-weight: 500; }
.aj-cvk .aj-cvb-card .aj-cvb-btn.aj-app-xs:hover { background: #f4f4f5; }
.aj-cvk .aj-cvb-card .aj-cvb-btn.aj-app-xs .aplikuok-fi { width: 14px; height: 14px; }
.aj-cvk .aj-cvb-card .aj-cvb-btn.aj-app-xs-icon { width: 28px; padding: 0; border-color: transparent; background: transparent; color: #a1a1aa; }
.aj-cvk .aj-cvb-card .aj-cvb-btn.aj-app-xs-icon:hover { background: #f4f4f5; color: #0b0b12; }
.aj-app-link { align-self: flex-start; padding: 0; border: 0; background: none; color: #71717a; font: 500 13.5px/1.4 var(--aj-font-body, Inter, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: default; }
.aj-app-link:hover { color: #0b0b12; }
@media (max-width: 767px) {
  .aj-app-empty, .aj-app-letter, .aj-app-fit { padding: 18px; border-radius: 18px; }
  .aj-app-letter-foot { margin: 0 -18px -4px; padding: 14px 18px 0; }
  .aj-app-tabs { align-self: stretch; } .aj-cvk .aj-app-tab.aj-cvb-btn { flex: 1; }
}

/* Application page – side panel 340px; Select fields stacked (Label above, full width), so nothing is squeezed */
@media (min-width: 1024px) { .aj-app-mode .aplikuok-cvk-grid { grid-template-columns: minmax(0, 1fr) 340px !important; } }
.aj-app-mode .aj-cvb-card .aj-cvb-field { flex-direction: column; align-items: stretch; gap: 8px; }
.aj-app-mode .aj-cvb-card .aj-cvb-field .aj-combo { width: 100%; }
.aj-app-mode .aj-cvb-card .aj-combo-pop { left: 0; right: 0; width: auto; }
/* Buttons: text centred (the ghost link-button stays left), and hovers that keep the label readable */
.aj-cvk .aj-cvb-card > .aj-cvb-btn:not(.aj-cvb-ghost), .aj-cvk .aj-app-prep > .aj-cvb-btn, .aj-cvk .aj-app-empty > .aj-cvb-btn { justify-content: center !important; }
.aj-cvk .aj-cvb-primary .aplikuok-fi--arrow-right { margin-left: 0; }
.aj-cvk a.aj-cvb-btn, .aj-cvk a.aj-cvb-btn:hover { text-decoration: none; }
.aj-cvk .aj-cvb-btn.aj-cvb-primary:not(.aj-cvb-ai):hover { border-color: #1f5ae6; background: #1f5ae6; color: #fff; }
.aj-cvk a.aj-cvb-btn:not(.aj-cvb-primary):hover { color: #0b0b12; }

/* Status dot (Select options and the "Mano paraiškos" chips) */
.aj-status-dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 999px; background: #a1a1aa; }
.aj-status-dot.is-ready { background: #f59e0b; }
.aj-status-dot.is-sent { background: #22c55e; }
.aj-status-dot.is-reply, .aj-status-dot.is-interview { background: #3b82f6; }
.aj-status-dot.is-offer { background: #15803d; }
.aj-ap-chip.is-offer .aj-status-dot { background: #fff; }
.aj-status-dot.is-no { background: #a1a1aa; }
.aj-combo-trigger .aj-status-dot { margin: 0 2px; }
.aj-combo-opt .aj-status-dot { margin-right: 8px; }
a.aj-ap-chip .aj-status-dot { margin-right: 2px; }

/* Atitikimas: a surface under the CV (or the letter) – header, then two columns split by a separator */
.aj-app-fit { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; padding: 24px; border: 1px solid #e4e4e7; border-radius: 22px; background: #fff; box-sizing: border-box; }
.aj-app-fit-head { display: flex; flex-direction: column; gap: 4px; }
.aj-app-fit-head .aj-cvb-card-title { margin: 0; font-size: 18px; }
.aj-app-fit-cols { display: grid; grid-template-columns: 1fr 1fr; }
.aj-app-fit-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.aj-app-fit-col:first-child { padding-right: 24px; }
.aj-app-fit-col + .aj-app-fit-col { padding-left: 24px; border-left: 1px solid #f0f0f2; }
.aj-app-fit-col .aj-cvb-label { margin: 0; }
.aj-app-fit-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.aj-app-fit-list li { display: flex; align-items: flex-start; gap: 10px; color: #0b0b12; font-size: 14px; line-height: 20px; }
.aj-app-fit-text { flex: 1; min-width: 0; }
.aj-app-fit-mark { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 999px; background: #16a34a; color: #fff; }
.aj-app-fit-mark .aplikuok-fi { width: 12px; height: 12px; }
.aj-app-fit-mark.is-gap { background: #fef3c7; color: #d97706; }
.aj-app-fit-mark.is-gap .aplikuok-fi { width: 14px; height: 14px; }
.aj-app-fit .aj-cvb-btn.aj-app-xs { height: 28px; padding: 0 8px; gap: 4px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; color: #0b0b12; font-size: 12.5px; font-weight: 500; }
.aj-app-fit .aj-cvb-btn.aj-app-xs:hover { background: #f4f4f5; }
.aj-app-fit .aj-cvb-btn.aj-app-xs .aplikuok-fi { width: 14px; height: 14px; }
.aj-app-fit .aj-cvb-btn.aj-app-xs-icon { width: 28px; padding: 0; border-color: transparent; background: transparent; color: #a1a1aa; }
.aj-app-fit .aj-cvb-btn.aj-app-xs-icon:hover { background: #f4f4f5; color: #0b0b12; }
.aj-app-fit-foot { padding-top: 16px; border-top: 1px solid #f0f0f2; }
@media (max-width: 767px) {
  .aj-app-fit-cols { grid-template-columns: 1fr; }
  .aj-app-fit-col:first-child { padding-right: 0; }
  .aj-app-fit-col + .aj-app-fit-col { margin-top: 20px; padding: 20px 0 0; border-left: 0; border-top: 1px solid #f0f0f2; }
}

/* Layout-shift guards (Lighthouse CLS). /cv-kurimas/: bd-cvbuild.js inserts the save-status bar above the grid
   (34px bar − 10px margins + 20px gap = 44px) and fills the main column after the first paint – reserve both. */
.aplikuok-cvk-grid { margin-top: 44px; }
.aj-cvb-topbar + .aplikuok-cvk-grid { margin-top: 0; }
[data-aj-cvb]:empty { min-height: 80vh; }
/* /profilis/: which block shows is decided in <head> (html.aj-has-profile, includes/account.php) before the first
   paint, instead of bd-profile.js hiding one after it */
html:not(.aj-has-profile) [data-aj-pf-content] { display: none; }
html.aj-has-profile [data-aj-pf-empty] { display: none; }
/* CV builder sources (bd-cvbuild.js): PDF upload, GitHub username */
.aj-cvb-sources { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #e6e6ec; }
.aj-cvb-pdf.is-set { color: #0b0b12; border-color: #c9c9d3; }

/* Profile: tailored CV versions under the CV card (bd-profile.js paintCvVersions) */
.aplikuok-pf-cvvers:empty { display: none; }
.aplikuok-pf-cvvers { margin-top: 16px; padding-top: 14px; border-top: 1px solid #ececf0; width: 100%; }
.aplikuok-pf-cvvers-title { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b6b78; }
.aplikuok-pf-cvvers-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.aplikuok-pf-cvver { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6e6ec; border-radius: 12px; background: #fff; color: #0b0b12; text-decoration: none; }
.aplikuok-pf-cvver:hover { border-color: #c9c9d3; }
.aplikuok-pf-cvver-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.aplikuok-pf-cvver-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aplikuok-pf-cvver-main span { font-size: 12px; color: #6b6b78; }
.aplikuok-pf-cvver-status { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #f3f3f6; color: #3a3a48; white-space: nowrap; }
.aplikuok-pf-cvver .aplikuok-fi { width: 16px; height: 16px; color: #9a9aab; }
.aplikuok-pf-cvlink:has(> .aplikuok-pf-cvvers:not(:empty)) { flex-wrap: wrap; }
.aplikuok-pf-cvlink > .aplikuok-pf-cvvers { flex: 1 0 100%; order: 10; }

.aplikuok-jfit-chip img { width: 14px; height: 14px; object-fit: contain; flex: none; }
.aplikuok-jfit-chip.is-hit { background: #fff; color: #0b0b12; box-shadow: inset 0 0 0 1px #e6e6ec; }
/* Profile: tailored CV versions as the usual job rows (bd-profile.js paintCvVersions) */
.aplikuok-pf-cvvers-list .aj-pf-job > a { padding: 10px 0; }
/* Application side panel: "Nurodymai" (prompt for re-preparing) – full width under its label, a real writing box */
.aj-cvb-field:has(> .aj-app-instr) { flex-direction: column; align-items: stretch; gap: 6px; }
.aj-app-instr { width: 100%; min-height: 180px; padding: 10px 12px; font: inherit; font-size: 14px; line-height: 1.5; resize: vertical; box-sizing: border-box; }
/* Application page header: the job (bd-cvbuild.js appHead) */
.aj-app-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin: 6px 0 4px; padding: 24px 28px; border: 1px solid #e6e6ec; border-radius: 20px; background: #fff; }
.aj-app-hero-main { display: flex; align-items: flex-start; gap: 16px; min-width: 0; flex: 1 1 420px; }
.aj-app-hero .aplikuok-cvk-h1 { margin: 0; }
.aj-app-joblogo { width: 64px; height: 64px; border-radius: 14px; border: 1px solid #e6e6ec; object-fit: contain; padding: 6px; background: #fff; flex: none; box-sizing: border-box; }
.aj-app-jobtext { display: grid; gap: 6px; min-width: 0; }
.aj-app-jobline { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: #0b0b12; }
.aj-app-jobit { display: inline-flex; align-items: center; gap: 5px; }
.aj-app-jobline b { font-weight: 600; }
.aj-app-jobline .aplikuok-fi, .aj-app-jobdates .aplikuok-fi { width: 15px; height: 15px; color: #6b6b78; }
.aj-app-joblink { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: #2563eb; text-decoration: none; }
.aj-app-joblink:hover { text-decoration: underline; text-underline-offset: 3px; }
.aj-app-joblink .aplikuok-fi { width: 14px; height: 14px; color: currentColor; }
.aj-app-jobdates { margin: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6b6b78; font-variant-numeric: tabular-nums; }
.aj-app-jobdates.is-soon { color: #b91c1c; }
.aj-app-jobdates.is-expired { color: #b91c1c; }
/* "Nurodymai": the same rainbow border as the builder's story box – it is a prompt for the AI */
.aj-app-instr { border: 1.5px solid transparent !important; border-radius: 14px !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #f43f5e, #f59e0b, #22c55e, #06b6d4, #6366f1, #d946ef) border-box !important; outline: none; }
.aj-app-instr:focus { box-shadow: 0 0 0 4px rgba(99,102,241,.14) !important; }
/* Application header: salary + market comparison (bd-cvbuild.js salaryCard) */
.aj-app-salary { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: 0 1 auto; max-width: 100%; padding-left: 32px; border-left: 1px dashed #d4d4dc; }
.aj-app-sal-vs { margin-top: auto !important; padding-top: 10px; }
.aj-app-sal-top, .aj-app-sal-vs { justify-content: flex-end; }
@media (max-width: 720px) { .aj-app-hero { padding: 18px; } .aj-app-hero-main { gap: 12px; } .aj-app-salary { padding: 16px 0 0; border-left: 0; border-top: 1px dashed #d4d4dc; flex-basis: 100%; } .aj-app-joblogo { width: 48px; height: 48px; border-radius: 12px; padding: 4px; } .aj-app-salary { align-items: flex-start; text-align: left; } .aj-app-sal-top, .aj-app-sal-vs { justify-content: flex-start; } }
.aj-app-sal-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.aj-app-sal-num { margin: 0; font-family: "Mona Sans", Inter, sans-serif; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #0b0b12; line-height: 1.1; }
.aj-app-sal-sub { margin: 0; font-size: 12px; color: #6b6b78; }
.aj-app-sal-net { margin: 0; font-size: 13px; color: #52525b; }
.aj-app-sal-net b { font-family: "Mona Sans", Inter, sans-serif; font-weight: 600; color: #0b0b12; font-variant-numeric: tabular-nums; }
.aj-app-sal-vs { margin: 0; font-size: 12px; color: #3f3f46; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aj-app-sal-pill, .aj-app-sal-d { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; font-family: "Mona Sans", Inter, sans-serif; font-variant-numeric: tabular-nums; }
.aj-app-sal-d { height: 18px; padding: 0 6px; font-size: 11px; }
.is-up.aj-app-sal-pill, .is-up.aj-app-sal-d { background: #dcfce7; color: #15803d; }
.is-down.aj-app-sal-pill, .is-down.aj-app-sal-d { background: #fee2e2; color: #b91c1c; }
.is-flat.aj-app-sal-pill, .is-flat.aj-app-sal-d { background: #f0f0f3; color: #52525b; }

/* Side card headers: the title follows a small icon tile (32 px, 16 px Lucide icon) */
.aj-cvb-card-title { display: flex; align-items: center; gap: 10px; }
.aj-cvb-card-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: #f4f4f6; box-shadow: inset 0 0 0 1px #e8e8ee; color: #0b0b12; }
.aj-cvb-card-ico .aplikuok-fi { width: 16px; height: 16px; }
.aj-cvb-card-head .aj-cvb-card-desc { padding-left: 42px; }
.aj-app-fit-head .aj-cvb-card-desc { padding-left: 42px; }

/* Top bar: the save button beside the save status */
.aj-cvb-savebox { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aj-cvb-savebtn.is-done { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }

/* Application header: match score + ATS / AI-text check */
.aj-app-scores { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.aj-app-score { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid #e6e6ec; border-radius: 8px; background: #fafafb; font-size: 12.5px; color: #52525b; cursor: help; white-space: nowrap; }
.aj-app-score .aplikuok-fi { width: 14px; height: 14px; }
.aj-app-score b { font-weight: 600; color: #18181b; font-variant-numeric: tabular-nums; }
.aj-app-score.is-good { background: #f0fdf4; border-color: #bbf7d0; } .aj-app-score.is-good b, .aj-app-score.is-good .aplikuok-fi { color: #15803d; }
.aj-app-score.is-low { background: #fef2f2; border-color: #fecaca; } .aj-app-score.is-low b, .aj-app-score.is-low .aplikuok-fi { color: #b91c1c; }
.aj-app-score-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid #18181b; border-radius: 8px; background: #18181b; color: #fff; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.aj-app-score-btn .aplikuok-fi { width: 14px; height: 14px; }
.aj-app-score-btn:hover:not(:disabled) { background: #3f3f46; }
.aj-app-score-btn:disabled { opacity: .6; cursor: default; }
.aj-app-score-btn.is-busy .aplikuok-fi { animation: aj-spin 1s linear infinite; }
.aj-app-score-link { border: 0; background: none; padding: 0 4px; font: inherit; font-size: 12.5px; color: #52525b; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.aj-app-score-link:hover { color: #18181b; }
.aj-app-ats { margin: 8px 0 4px; padding: 20px 24px; border: 1px solid #e6e6ec; border-radius: 20px; background: #fff; }
.aj-app-ats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aj-app-ats-t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 13px; font-weight: 600; color: #18181b; }
.aj-app-ats-t .aplikuok-fi { width: 16px; height: 16px; color: #71717a; }
.aj-app-ats-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 13px; line-height: 1.5; color: #3f3f46; }
.aj-app-ats-list > li { position: relative; padding-left: 26px; }
.aj-app-ats-list > li::before { content: ''; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E") center / 11px no-repeat; }
.aj-app-ats-list.is-bad > li::before { background: #dc2626 url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%223.2%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M18%206%206%2018M6%206l12%2012%22%2F%3E%3C%2Fsvg%3E") center / 10px no-repeat; }
.aj-app-ats-list.is-warn > li::before { border-radius: 0; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M10.3%203.6%201.9%2018a2%202%200%200%200%201.7%203h16.8a2%202%200%200%200%201.7-3L13.7%203.6a2%202%200%200%200-3.4%200z%22%20fill%3D%22%23facc15%22%2F%3E%3Cpath%20d%3D%22M12%209v4.5M12%2017h.01%22%20stroke%3D%22%23422006%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / 18px no-repeat; }
.aj-app-ats-q { display: block; margin-top: 3px; padding-left: 8px; border-left: 2px solid #e4e4e7; font-size: 12px; color: #71717a; font-style: italic; quotes: "„" "“"; }
.aj-app-ats-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.aj-app-ats-chip { padding: 3px 8px; border-radius: 6px; background: #f4f4f5; font-size: 12px; color: #3f3f46; }
.aj-app-ats-ai { margin: 12px 0 0 !important; font-size: 12.5px; line-height: 1.5; color: #52525b; }
.aj-app-muted { margin: 0 !important; font-size: 13px; color: #71717a; }
.aj-app-ats-note { margin: 16px 0 0 !important; padding-top: 12px; border-top: 1px dashed #e4e4e7; font-size: 11.5px; color: #71717a; }
@media (max-width: 860px) { .aj-app-ats-grid { grid-template-columns: 1fr; gap: 18px; } .aj-app-ats { padding: 18px; } }

/* Profile: AI plan and credits box (assets/bd-profile.js paintCredits) */
.aj-pf-credits { container-type: inline-size; width: 100%; box-sizing: border-box; display: grid; gap: 14px; margin-top: 12px; padding: 18px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fff; font-variant-numeric: tabular-nums; }
.aj-pf-cr-head { display: flex; align-items: flex-start; gap: 12px; }
.aj-pf-cr-head h3 { margin: 0 !important; font-size: 16px; font-weight: 600; color: #09090b; }
.aj-pf-cr-head p { margin: 2px 0 0 !important; font-size: 13px; line-height: 1.45; color: #71717a; }
.aj-pf-cr-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: #f4f4f5; }
.aj-pf-cr-ico .aplikuok-fi { width: 16px; height: 16px; color: #18181b; }
.aj-pf-cr-plan { margin-left: auto; flex: none; padding: 3px 8px; border-radius: 6px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aj-pf-cr-plan.is-pro { background: #18181b; }
.aj-pf-cr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aj-pf-cr-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fafafa; border: 1px solid #f0f0f2; }
.aj-pf-cr-stat span { font-size: 12px; color: #71717a; }
.aj-pf-cr-stat b { font-family: var(--aj-font-num); font-size: 20px; font-weight: 600; color: #09090b; }
.aj-pf-cr-stat small { font-size: 11px; color: #a1a1aa; }
.aj-pf-cr-bar { height: 6px; border-radius: 3px; background: #f0f0f2; overflow: hidden; }
.aj-pf-cr-bar i { display: block; height: 100%; background: #16a34a; }
.aj-pf-cr-log { margin: 0; padding: 0; list-style: none; border-top: 1px dashed #e4e4e7; }
.aj-pf-cr-log li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #f4f4f5; font-size: 13px; color: #3f3f46; }
.aj-pf-cr-log time { font-size: 12px; color: #a1a1aa; }
.aj-pf-cr-log b { text-align: right; font-weight: 600; color: #52525b; }
.aj-pf-cr-log b.is-plus { color: #15803d; }
.aj-pf-cr-log b.is-minus { color: #b91c1c; }
.aj-pf-cr-empty { margin: 0 !important; font-size: 13px; color: #71717a; }
.aj-pf-cr-empty a { color: #18181b; text-decoration: underline; text-underline-offset: 3px; }
.aj-pf-cr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.aj-pf-cr-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; color: #18181b !important; font-size: 13px; font-weight: 500; text-decoration: none; }
.aj-pf-cr-btn:hover { background: #f4f4f5; }
.aj-pf-cr-btn.is-primary { background: #18181b; border-color: #18181b; color: #fff !important; }
.aj-pf-cr-btn.is-primary:hover { background: #3f3f46; }
@container (max-width: 460px) {
  .aj-pf-cr-stats { grid-template-columns: minmax(0, 1fr); }
  .aj-pf-cr-stat { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
  .aj-pf-cr-stat span { flex: 1 1 auto; }
  .aj-pf-cr-stat b { font-size: 16px; }
  .aj-pf-cr-stat small { flex-basis: 100%; }
  .aj-pf-cr-log li { grid-template-columns: minmax(0, 1fr) auto; }
  .aj-pf-cr-log time { grid-row: 2; }
  .aj-pf-cr-log b { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}
/* same look as the board's area tabs on /darbai/ (.aplikuok-bd-tabs / .aplikuok-bd-tab / .aplikuok-bd-bubble) */
.aj-pf-tabs { display: flex; align-self: flex-start; width: fit-content; max-width: 100%; box-sizing: border-box; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; border: 1px solid #e6e6ec; border-radius: 18px; background: #fff; }
.aj-pf-tabs::-webkit-scrollbar { display: none; }
.aj-pf-tabs a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 39px; box-sizing: border-box; padding: 9px 14px; border-radius: 12px; color: #6b6b78; font-family: "Mona Sans", sans-serif; font-size: 15px; font-weight: 500; line-height: 21px; text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.aj-pf-tabs a .aplikuok-fi { width: 16px; height: 16px; }
.aj-pf-tabs a:hover { color: #0b0b12; }
.aj-pf-tabs a[aria-selected="true"] { background: #efeff3; color: #0b0b12; }
.aj-pf-tabs a:focus-visible { outline: 2px solid #2a6bff; outline-offset: -2px; }
.aj-pf-tab-badge { display: inline-block; min-width: 24px; box-sizing: border-box; padding: 1px 7px; border-radius: 999px; background: #efeff3; color: #6b6b78; font-size: 12px; font-weight: 500; line-height: 16.8px; text-align: center; font-variant-numeric: tabular-nums; }
.aj-pf-tabs a[aria-selected="true"] .aj-pf-tab-badge { background: #0b0b12; color: #fff; }
.aj-pf-tab-badge[hidden] { display: none; }
html:not(.aj-has-profile):not(.aj-pf-member) .aj-pf-tabs { display: none; }
/* which cards show: Apžvalga = CV card + skills, Darbai = applications + saved, the other two are built by bd-profile.js */
html:is(.aj-has-profile, .aj-pf-member) .aplikuok-pf-main > * { display: none !important; }
html[data-aj-pf-tab="apzvalga"] .aplikuok-pf-main > .bde-f-container-381-131,
html[data-aj-pf-tab="darbai"] .aplikuok-pf-main > :is(.bde-f-container-381-121, .bde-f-container-381-126),
html[data-aj-pf-tab="paraiskos"] .aplikuok-pf-main > [data-aj-pf-pane="paraiskos"],
html[data-aj-pf-tab="planas"] .aplikuok-pf-main > [data-aj-pf-pane="planas"],
html[data-aj-pf-tab="nustatymai"] .aplikuok-pf-main > [data-aj-pf-pane="nustatymai"] { display: flex !important; }
html:is(.aj-has-profile, .aj-pf-member):not([data-aj-pf-tab="apzvalga"]) .aplikuok-pf-wrap > :is(.aplikuok-pf-cvlink, .aplikuok-pf-empty) { display: none !important; }
/* a member without a CV yet: Apžvalga shows the "Profilis dar tuščias" block, the other tabs the profile grid */
html.aj-pf-member:not(.aj-has-profile):not([data-aj-pf-tab="apzvalga"]) [data-aj-pf-content] { display: grid; }
[data-aj-pf-pane="planas"], [data-aj-pf-pane="nustatymai"], [data-aj-pf-pane="paraiskos"] { flex-direction: column; gap: 20px; }
/* Paraiškos: counts, then every application with its status and date */
.aj-pf-ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.aj-pf-ap-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid #ececf1; border-radius: 16px; background: #fafafb; }
.aj-pf-ap-tile b { font-family: "BR Sonoma", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 28px; font-weight: 500; line-height: 1.1; color: #0b0b12; font-variant-numeric: tabular-nums; }
.aj-pf-ap-tile span { font-size: 14px; font-weight: 500; color: #33333f; }
.aj-pf-ap-tile small { font-size: 12.5px; color: #8a8a96; }
.aj-pf-ap-tile.is-sent { background: #f4fbe6; border-color: #e1f0bf; }
.aj-pf-ap-split { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: #55556a; }
.aj-pf-ap-split span { display: inline-flex; align-items: center; gap: 6px; }
.aj-pf-ap-split b { color: #0b0b12; font-variant-numeric: tabular-nums; }
[data-aj-pf-pane="paraiskos"] { min-width: 0; }
[data-aj-pf-pane="paraiskos"] > .aj-pf-set { min-width: 0; grid-template-columns: minmax(0, 1fr); }   /* long titles ellipsize instead of widening the page */
.aj-pf-ap-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.aj-pf-ap-list li { min-width: 0; }
.aj-pf-ap-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #ececf1; border-radius: 14px; color: #0b0b12; text-decoration: none; }
.aj-pf-ap-list a:hover { border-color: #c9c9d3; }
.aj-pf-ap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aj-pf-ap-main b { font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-pf-ap-main small { font-size: 12.5px; color: #8a8a96; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aj-pf-ap-list time { flex: none; font-size: 12.5px; color: #8a8a96; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .aj-pf-ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aj-pf-ap-list time { display: none; } }
[data-aj-pf-pane="planas"] .aj-pf-credits { margin-top: 0; padding: 22px; border-color: #e6e6ec; border-radius: 20px; }
/* Nustatymai */
.aj-pf-set { display: grid; gap: 16px; padding: 22px; border: 1px solid #e6e6ec; border-radius: 20px; background: #fff; }
.aj-pf-set header h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-family: "BR Sonoma", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 18px; font-weight: 500; color: #0b0b12; }
.aj-pf-set header p { margin: 4px 0 0; font-size: 13px; color: #6b6b78; }
.aj-pf-set.is-danger { border-color: #fecaca; }
.aj-pf-form { display: grid; gap: 14px; margin: 0; }
.aj-pf-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.aj-pf-form fieldset:disabled { opacity: .5; }
.aj-pf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aj-pf-field { display: grid; gap: 6px; font-size: 13px; }
.aj-pf-field > span { font-weight: 500; color: #18181b; }
.aj-pf-field small { font-size: 12px; color: #71717a; }
.aj-pf-field :is(input, select) { box-sizing: border-box; width: 100%; height: 36px; padding: 0 12px; border: 1px solid #e4e4e7; border-radius: 8px; background: #fff; color: #18181b; font: inherit; font-size: 14px; }
.aj-pf-field :is(input, select):focus { outline: none; border-color: #a1a1aa; box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.aj-pf-field input[readonly] { background: #f7f7f9; color: #52525b; }
.aj-pf-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aj-pf-seg label { position: relative; cursor: pointer; }
.aj-pf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.aj-pf-seg span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 8px; }
.aj-pf-seg b { font-size: 14px; font-weight: 500; color: #18181b; }
.aj-pf-seg small { font-size: 12px; color: #71717a; }
.aj-pf-seg input:checked + span { border-color: #18181b; box-shadow: inset 0 0 0 1px #18181b; }
.aj-pf-seg input:focus-visible + span { outline: 2px solid #2a6bff; outline-offset: 2px; }
.aj-pf-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: #18181b; }
.aj-pf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.aj-pf-switch i { position: relative; flex-shrink: 0; width: 36px; height: 20px; border-radius: 999px; background: #e4e4e7; transition: background .15s; }
.aj-pf-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.aj-pf-switch input:checked + i { background: #18181b; }
.aj-pf-switch input:checked + i::after { transform: translateX(16px); }
.aj-pf-switch input:focus-visible + i { outline: 2px solid #2a6bff; outline-offset: 2px; }
.aj-pf-set-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aj-pf-set-actions .aj-pf-cr-btn { gap: 8px; cursor: pointer; font-family: inherit; }
.aj-pf-cr-btn:disabled { opacity: .5; cursor: not-allowed; }
.aj-pf-cr-btn.is-danger { background: #dc2626; border-color: #dc2626; color: #fff !important; }
.aj-pf-cr-btn.is-danger:hover:not(:disabled) { background: #b91c1c; }
.aj-pf-saved { font-size: 13px; color: #15803d; }
.aj-pf-saved.is-bad { color: #b91c1c; }
@media (max-width: 560px) { .aj-pf-row, .aj-pf-seg { grid-template-columns: minmax(0, 1fr); } }
/* one column (Breakdance stacks the grid below 1024 px): the profile card only on Apžvalga, so a tab opens at its content */
@media (max-width: 1023px) {
  html:is(.aj-has-profile, .aj-pf-member):not([data-aj-pf-tab="apzvalga"]) .aplikuok-pf-grid > .bde-f-container-381-116 { display: none !important; }
}

/* "Planas ir AI" → Kreditų naudojimas (bd-profile.js paintPlan) */
.aj-cu-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px; }
.aj-cu-head h2 { margin: 0; font-family: "BR Sonoma", Inter, ui-sans-serif, system-ui, sans-serif; font-size: 22px; font-weight: 500; color: #0b0b12; }
.aj-cu-head p { margin: 4px 0 0; font-size: 14px; color: #6b6b78; }
.aj-cu-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #e9e9ee; }
.aj-cu-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: #6b6b78; font: 500 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.aj-cu-seg button:hover { color: #0b0b12; }
.aj-cu-seg button[aria-selected="true"] { background: #fff; color: #0b0b12; box-shadow: 0 1px 2px rgba(11,11,18,.08), 0 0 0 1px rgba(11,11,18,.04); }
.aj-cu-seg button:focus-visible { outline: 2px solid #2a6bff; outline-offset: 1px; }
.aj-cu-card { display: grid; gap: 16px; padding: 22px; border: 1px solid #e6e6ec; border-radius: 20px; background: #fff; font-variant-numeric: tabular-nums; min-width: 0; }
.aj-cu-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.aj-cu-top h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: #0b0b12; }
.aj-cu-top p { margin: 3px 0 0; font-size: 13px; color: #6b6b78; }
.aj-cu-top p b { color: #0b0b12; font-weight: 600; }
.aj-cu-top .aj-pf-cr-btn { flex-shrink: 0; }
.aj-cu-pro { padding: 2px 8px; border-radius: 999px; background: #0b0b12; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.aj-cu-barwrap { position: relative; padding-top: 2px; }
.aj-cu-bar { display: flex; gap: 4px; height: 10px; }
.aj-cu-bar i { flex: 1 1 0; min-width: 6px; border-radius: 999px; transition: filter .15s, transform .15s; }
.aj-cu-bar i[data-aj-cu-k] { cursor: default; }
.aj-cu-bar i[data-aj-cu-k]:hover { filter: brightness(1.08); transform: scaleY(1.25); }
.aj-cu-bar i.is-left { background: #ececf0; }
.aj-cu-tip { position: absolute; bottom: calc(100% + 8px); z-index: 2; display: grid; gap: 2px; padding: 8px 12px; border: 1px solid #e4e4e7; border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(11,11,18,.1); white-space: nowrap; pointer-events: none; }
.aj-cu-tip b { font-size: 13px; font-weight: 600; color: #0b0b12; }
.aj-cu-tip span { font-size: 12px; color: #6b6b78; }
.aj-cu-tip[hidden] { display: none; }
.aj-cu-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; font-size: 13px; color: #55556a; }
.aj-cu-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.aj-cu-keys > span { display: inline-flex; align-items: center; gap: 6px; }
.aj-cu-keys i { width: 8px; height: 8px; border-radius: 50%; }
.aj-cu-keys b { font-family: "Mona Sans", sans-serif; font-weight: 600; color: #0b0b12; }
.aj-cu-reset { color: #8a8a96; }
.aj-cu-note { margin: 0 !important; font-size: 12px; color: #8a8a96; }
.aj-cu-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 16px; border-top: 1px solid #f0f0f3; }
.aj-cu-stats > div { display: grid; gap: 4px; padding: 0 16px; border-left: 1px solid #f0f0f3; }
.aj-cu-stats > div:first-child { padding-left: 0; border-left: 0; }
.aj-cu-stats b { font-family: "Mona Sans", sans-serif; font-size: 24px; font-weight: 600; line-height: 1.15; color: #0b0b12; }
.aj-cu-stats span { font-size: 13px; color: #6b6b78; }
.aj-cu-tablewrap { overflow-x: auto; margin: 0 -22px -22px; }
.aj-cu-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aj-cu-table th { padding: 10px 22px; border-top: 1px solid #f0f0f3; border-bottom: 1px solid #f0f0f3; background: #fafafb; color: #6b6b78; font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.aj-cu-table td { padding: 12px 22px; border-bottom: 1px solid #f4f4f6; color: #18181b; vertical-align: middle; }
.aj-cu-table tr:last-child td { border-bottom: 0; }
.aj-cu-table .is-num { text-align: right; font-family: "Mona Sans", sans-serif; font-weight: 600; white-space: nowrap; }
.aj-cu-table .is-plus { color: #15803d; }
.aj-cu-table .is-minus { color: #b91c1c; }
.aj-cu-time { color: #6b6b78; white-space: nowrap; font-family: "Mona Sans", sans-serif; }
.aj-cu-badge { display: inline-block; padding: 3px 9px; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-radius: 7px; background: color-mix(in srgb, var(--c) 8%, #fff); color: color-mix(in srgb, var(--c) 85%, #000); font-size: 12px; font-weight: 500; white-space: nowrap; }
.aj-cu-badge.is-buy { --c: #15803d; }
.aj-cu-costs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.aj-cu-costs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #f0f0f3; border-radius: 12px; background: #fafafb; font-size: 13px; color: #18181b; }
.aj-cu-costs li > span { display: grid; grid-template-columns: 8px auto; column-gap: 8px; align-items: center; }
.aj-cu-costs li > span > i { width: 8px; height: 8px; border-radius: 50%; }
.aj-cu-costs small { grid-column: 2; font-size: 12px; color: #8a8a96; }
.aj-cu-costs b { font-family: "Mona Sans", sans-serif; font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) {
  .aj-cu-card { padding: 18px; }
  .aj-cu-tablewrap { margin: 0 -18px -18px; }
  .aj-cu-table th, .aj-cu-table td { padding-left: 18px; padding-right: 18px; }
  .aj-cu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .aj-cu-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .aj-cu-top { flex-wrap: wrap; }
  .aj-cu-table :is(th, td):nth-child(2) { display: none; }   /* the action name already says what it was */
}



/* An application made from an older CV (aj-apps.js stale): the mark in Paraiškos and the note on its page */
.aj-pf-ap-stale { flex: none; padding: 2px 8px; border-radius: 999px; background: #fff4e5; color: #b45309; font-size: 12px; font-weight: 500; }
.aj-app-stale { display: grid; gap: 10px; margin: 4px 0 6px; padding: 12px 14px; border: 1px solid #fde3bf; border-radius: 14px; background: #fffaf2; }
.aj-app-stale p { margin: 0; font-size: 13.5px; line-height: 1.5; color: #7a4a10; }
.aj-cvb-card > .aj-cvb-merge { width: 100%; height: 40px; justify-content: center; }
