/* Tech CV builder: editor on the left, the preview panel on the right. On wide screens the panel stays in view
   and scrolls on its own when it's taller than the window, so the download buttons are always reachable. */
.cvb{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;align-items:start}
.cvb-edit,.cvb-editor{display:grid;gap:16px;min-width:0}

/* Editor cards: lighter padding than a single-tool card, because there are many of them. */
.tt .cvb .tt-card{padding:clamp(18px,2.4vw,28px)}
.cvb-sec{gap:14px}
.cvb-sec-head{display:grid;gap:4px}
.tt .cvb .tt-fields{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:14px 16px}
.tt .cvb-label{font-weight:600;color:var(--tt-navy);font-size:14.5px;margin-top:2px}

.tt .cvb .cvb-incoming{background:var(--tt-amber-soft);border-color:transparent;gap:10px;color:var(--tt-navy)}

/* Entries (jobs, projects, qualifications) */
.cvb-entry{display:grid;gap:14px;padding:16px;border:1.5px solid var(--tt-line);border-radius:14px;background:var(--tt-tint)}
.cvb-entry .tt-field input,.cvb-entry .tt-field select,.cvb-entry .tt-field textarea,.cvb-entry .tt-check{background:#fff}
.cvb-entry-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--tt-navy);min-height:34px}
.cvb-entry-bar span{display:flex;gap:6px;align-items:center}
.cvb-icon{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;border:1.5px solid var(--tt-line);border-radius:10px;background:#fff;color:var(--tt-navy);font:inherit;font-weight:700;cursor:pointer}
.cvb-icon:hover{border-color:var(--tt-navy);background:var(--tt-tint)}
.cvb-icon:focus-visible,.cvb-link:focus-visible,.cvb-suggest summary:focus-visible{outline:3px solid var(--tt-navy);outline-offset:2px}
.cvb-link{border:0;background:none;color:var(--tt-red);font:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:6px 4px;text-decoration:underline;text-underline-offset:3px}
.cvb-link:hover{color:#8a1c16}
.tt .cvb-add{justify-self:start;width:auto}
/* "I work here now": a compact tick box the same height as the text boxes beside it. */
.cvb-now{align-content:start}
.cvb-now > .tt-field{gap:0}
.tt .cvb-now .tt-check{min-height:50px;padding:0 14px;align-items:center;border-radius:12px;background:#fff}
.tt .cvb-now .tt-check input{margin:0}
.cvb-now .tt-check > span{font-weight:500;font-size:15.5px}

/* Achievements */
.cvb-bullets{display:grid;gap:10px}
.cvb-bullet{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
.cvb-bullet textarea,.cvb .tt-field textarea{width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--tt-line);border-radius:10px;font:inherit;font-size:15.5px;line-height:1.45;color:var(--tt-navy);background:#fff;resize:none;overflow:hidden}
.cvb-bullet textarea:focus,.cvb-text:focus{outline:none;border-color:var(--tt-navy);box-shadow:0 0 0 3px rgba(11,57,84,.15)}
.cvb-bullet-tools{display:flex;gap:4px;padding-top:6px}
.cvb-suggest{border:1.5px dashed var(--tt-line);border-radius:12px;background:#fff}
.cvb-suggest[open]{display:grid;gap:10px;padding-bottom:14px}
.cvb-suggest summary{list-style:none;display:flex;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;font-weight:600;color:var(--tt-navy);font-size:14.5px;border-radius:12px}
.cvb-suggest summary::-webkit-details-marker{display:none}
.cvb-suggest summary::before{content:"+";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--tt-navy);font-weight:700;flex:none;transition:transform .15s}
.cvb-suggest[open] summary::before{transform:rotate(45deg)}
.cvb-suggest summary:hover{background:var(--tt-tint)}
.cvb-suggest > p,.cvb-suggest > .tt-chipset{margin:0 14px}
.cvb-count{margin-left:auto;padding:1px 9px;border-radius:999px;background:var(--tt-amber-soft);font-size:12.5px}

/* Skills */
.cvb-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cvb-text{flex:1;min-width:180px;min-height:42px;padding:8px 12px;border:1.5px solid var(--tt-line);border-radius:10px;font:inherit;color:var(--tt-navy)}

/* Section order */
.cvb-order{margin:0;padding:0!important;list-style:none;display:grid;gap:6px;counter-reset:o}
.cvb-order li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:6px 8px 6px 14px;border:1.5px solid var(--tt-line);border-radius:10px;background:#fff;color:var(--tt-navy);font-weight:500;counter-increment:o;min-height:48px}
.cvb-order li > span:first-child::before{content:counter(o) ". ";color:var(--tt-muted)}
.cvb-order li > span:last-child{display:flex;gap:6px}

/* Preview panel */
.cvb-side{position:sticky;top:100px;display:grid;gap:16px;min-width:0;max-height:calc(100vh - 116px);overflow-y:auto;overscroll-behavior:contain;padding:2px 6px 6px 2px;scrollbar-width:thin}
.cvb-panel{gap:14px}
.cvb-panel-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.tt .cvb-exports{gap:8px}
.cvb-meter{display:flex;align-items:center;gap:12px;color:var(--tt-navy);font-size:14.5px}
.cvb-meter-bar{flex:1;height:8px;border-radius:999px;background:var(--tt-tint);border:1px solid var(--tt-line);overflow:hidden}
.cvb-meter-bar i{display:block;height:100%;background:var(--tt-amber)}
.cvb-paper-wrap{position:relative;overflow:hidden;border-radius:6px;border:1px solid var(--tt-line);background:#fff;box-shadow:var(--tt-shadow)}
.cvb-paper{position:absolute;top:0;left:0;width:794px;min-height:1123px;transform-origin:0 0;background:#fff;
  background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 1121px,#F48FB1 1121px,#F48FB1 1123px)}
.cvb-file{position:relative;cursor:pointer}
.tt .cvb-more summary{font-size:16px;padding:14px 18px}
.cvb-jump{color:var(--tt-navy)}

/* One column: editor, then the preview. Below this the panel is no longer pinned. */
@container tt (max-width:1000px){.cvb{grid-template-columns:1fr}.cvb-side{position:static;max-height:none;overflow:visible;padding:0}}
@media (min-width:1001px){.cvb-jump{display:none}}
@media (prefers-reduced-motion:reduce){.cvb-suggest summary::before{transition:none}}
