/* CV Builder – modüle özel stiller. Tüm seçiciler .cvb* önekiyle sınırlıdır;
   sitenin ortak stillerini (styles-v10.css) değiştirmez, yalnızca değişkenlerini kullanır. */

.cvb-container { width: min(96rem, calc(100% - 3rem)); margin-inline: auto; }

/* Yalnızca CV oluşturucu sayfası: dar tablet genişliğinde menü tek satırda kalsın */
@media (min-width: 761px) and (max-width: 840px) {
  .site-nav a { padding-inline: 0.5rem; }
}

.cvb-intro { padding-block: clamp(2rem, 4.5vw, 3.4rem) clamp(1.2rem, 2.5vw, 1.8rem); }
.cvb-intro h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  letter-spacing: -0.058em;
  line-height: 1.02;
}
.cvb-intro .cvb-lead { max-width: 46rem; margin-top: 0.9rem; font-size: clamp(1rem, 1.5vw, 1.1rem); }
.cvb-privacy {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 52rem;
  margin-top: 1rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid #d8d2f2;
  border-radius: 12px;
  background: #f3f1ff;
  color: #3a3470;
  font-size: 0.9rem;
  line-height: 1.5;
}
.cvb-privacy svg { flex: none; margin-top: 0.1rem; color: var(--primary); }
.cvb-noscript { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.cvb-boot { color: var(--muted); padding-block: 2rem 4rem; }

.cvb { position: relative; padding-bottom: clamp(3rem, 6vw, 5rem); color: var(--ink); }
.cvb *:focus-visible { outline: 3px solid #6355e4; outline-offset: 2px; }
.cvb [hidden] { display: none !important; }

.cvb-visually-hidden, .cvb-visually-hidden-input {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- düğmeler ---------- */
.cvb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.cvb-btn svg { flex: none; }
.cvb-btn small { display: block; font-size: 0.72rem; font-weight: 600; opacity: 0.75; }
.cvb-btn:disabled { cursor: not-allowed; opacity: 0.55; }
.cvb-btn-primary { background: var(--primary); color: #fff; }
.cvb-btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.cvb-btn-secondary { border-color: #d3cfee; background: var(--white); color: var(--primary); }
.cvb-btn-secondary:hover:not(:disabled) { border-color: #c0b9ed; background: #f2efff; }
.cvb-btn-ghost { color: var(--muted); }
.cvb-btn-ghost:hover:not(:disabled) { background: #efedf8; color: var(--ink); }
.cvb-btn-ghost.is-danger, .cvb-btn-danger { color: #a3122f; }
.cvb-btn-danger { border-color: #f0c7d0; background: #fff4f6; }
.cvb-btn-danger:hover { background: #ffe6eb; }
.cvb-btn-ghost.is-danger:hover:not(:disabled) { background: #fff0f3; color: #8a0f28; }
.cvb-btn-sm { min-height: 2.4rem; padding: 0.35rem 0.75rem; font-size: 0.86rem; }
.cvb-btn-lg { min-height: 3.2rem; padding-inline: 1.4rem; font-size: 1rem; }
.cvb-btn-add { width: 100%; margin-top: 0.75rem; border: 1.5px dashed #c5bff0; background: #faf9ff; color: var(--primary); }
.cvb-btn-add:hover { background: #f2efff; border-color: var(--primary); }
.cvb-btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.cvb-btn.is-busy::after {
  content: "";
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid currentColor;
  border-color: #fff #fff transparent transparent;
  border-radius: 50%;
  animation: cvb-spin 0.7s linear infinite;
}
.cvb-btn-secondary.is-busy::after, .cvb-tab.is-busy::after { border-color: var(--primary) var(--primary) transparent transparent; }
@keyframes cvb-spin { to { transform: rotate(360deg); } }

.cvb-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex: none;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.cvb-icon-btn:hover:not(:disabled) { background: #efedf8; color: var(--ink); }
.cvb-icon-btn:disabled { opacity: 0.35; cursor: default; }
.cvb-icon-btn.is-danger:hover:not(:disabled) { background: #fff0f3; color: #a3122f; }

/* ---------- araç çubuğu ---------- */
.cvb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.cvb-toolbar-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cvb-toolbar .cvb-btn-secondary { text-align: left; }

/* ---------- yerleşim ---------- */
.cvb-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (min-width: 960px) {
  .cvb-layout { grid-template-columns: minmax(0, 1.04fr) minmax(20rem, 0.96fr); }
  .cvb-preview { position: sticky; top: 5.4rem; height: calc(100vh - 6.4rem); min-height: 34rem; }
  .cvb-mobilebar { display: none !important; }
}
@media (max-width: 959.98px) {
  .cvb { padding-bottom: 6rem; }
  /* sabit mobil alt çubuk footer'daki telif satırını örtmesin */
  .site-footer { padding-bottom: 4.5rem; }
  .cvb:not(.is-preview) .cvb-layout > .cvb-preview { display: none; }
  .cvb.is-preview .cvb-layout > .cvb-preview { display: flex; height: calc(100vh - 11rem); height: calc(100dvh - 11rem); min-height: 26rem; }
  .cvb.is-preview .cvb-editor { display: none; }
  .cvb.is-preview .cvb-toolbar { display: none; }
}

/* ---------- düzenleyici ---------- */
.cvb-editor { min-width: 0; }
.cvb-stepnav {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.cvb-progress { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.cvb-progress-track { position: relative; flex: 1; height: 0.45rem; overflow: hidden; border-radius: 99px; background: #ebe9f6; }
.cvb-progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--primary); transition: width 200ms ease; }
.cvb-progress-text { flex: none; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.cvb-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cvb-step {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.cvb-step:hover { border-color: #c9c3ee; color: var(--ink); }
.cvb-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  flex: none;
  border-radius: 50%;
  background: #f0eef9;
  color: var(--muted);
  font-size: 0.76rem;
}
.cvb-step.is-done .cvb-step-num { background: #e3f4ea; color: #17733f; }
.cvb-step.is-current { border-color: var(--primary); background: var(--primary); color: #fff; }
.cvb-step.is-current .cvb-step-num { background: #fff; color: var(--primary); }

.cvb-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #f1d58a;
  border-radius: 12px;
  background: #fff9e6;
  color: #5c4500;
}
.cvb-banner > svg { flex: none; margin-top: 0.15rem; }
.cvb-banner p { flex: 1; color: inherit; font-size: 0.92rem; }
.cvb-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }

.cvb-panel {
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.cvb-panel:focus { outline: none; }
.cvb-panel-head { margin-bottom: 1.25rem; }
.cvb-panel-kicker { color: var(--primary); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cvb-panel-head h2 { margin-top: 0.3rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.04em; }
.cvb-panel-intro { margin-top: 0.5rem; font-size: 0.95rem; }
.cvb-panel-body { display: grid; gap: 1.1rem; }

.cvb-footnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1rem;
}
.cvb-stepcount { color: var(--muted); font-size: 0.85rem; font-weight: 700; text-align: center; }

/* ---------- form alanları ---------- */
.cvb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); gap: 0.95rem 1rem; }
.cvb-grid-tight { gap: 0.6rem 0.8rem; }
.cvb-field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.cvb-field.is-full, .cvb-checkline.is-full { grid-column: 1 / -1; }
.cvb-field > label, .cvb-label { color: var(--ink); font-size: 0.9rem; font-weight: 700; line-height: 1.35; }
.cvb-optional { color: var(--muted); font-weight: 600; }
.cvb-input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #cfcce2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}
.cvb-input::placeholder { color: #8b8aa0; opacity: 1; }
.cvb-input:hover { border-color: #b9b5d8; }
.cvb-input:focus { border-color: var(--primary); outline: 3px solid #d9d4ff; outline-offset: 0; }
.cvb-input[aria-invalid="true"] { border-color: #c4203f; }
.cvb-input:disabled { background: #f4f3f8; color: #8b8aa0; }
.cvb-textarea { min-height: 6rem; resize: vertical; }
.cvb-select { appearance: none; padding-right: 2.2rem; background-image: linear-gradient(45deg, transparent 50%, #55566d 50%), linear-gradient(135deg, #55566d 50%, transparent 50%); background-position: right 1.05rem center, right 0.75rem center; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.cvb-date { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(6.5rem, 0.8fr); gap: 0.45rem; }
.cvb-req { color: #c0263b; font-weight: 700; }
.cvb-reqlegend { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; }
.cvb-reqmsg { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 1rem; padding: 0.7rem 0.9rem; border: 1px solid #f1b9c2; border-radius: 10px; background: #fff1f3; color: #9b1c31; font-size: 0.9rem; font-weight: 600; }
.cvb-reqmsg[hidden] { display: none; }
.cvb-field.is-disabled { opacity: 0.6; }
.cvb-hint { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
.cvb-counter { color: var(--muted); font-size: 0.8rem; text-align: right; }
.cvb-error { color: #b0163a; font-size: 0.84rem; font-weight: 600; line-height: 1.45; }
.cvb-checkline { display: flex; align-items: center; gap: 0.6rem; min-height: 2.5rem; }
.cvb-checkline label { font-size: 0.93rem; font-weight: 600; cursor: pointer; }
.cvb-check { width: 1.2rem; height: 1.2rem; flex: none; margin: 0; accent-color: var(--primary); cursor: pointer; }
.cvb-sortbox { padding: 0.7rem 0.85rem; border-radius: 12px; background: #f7f6fc; }
.cvb-spacer { display: none; }
@media (min-width: 640px) { .cvb-spacer { display: block; } }
.cvb-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.cvb-fieldset legend { margin-bottom: 0.6rem; padding: 0; font-size: 0.95rem; font-weight: 700; }
.cvb-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: #f5f4fb;
  font-size: 0.88rem;
}
.cvb-note svg { flex: none; margin-top: 0.1rem; color: var(--primary); }
.cvb-warn { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.6rem; color: #8a5a00; font-weight: 600; font-size: 0.9rem; }
.cvb-subtitle { margin-top: 0.4rem; font-size: 1.05rem; }
.cvb-empty { padding: 0.9rem 1rem; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 0.92rem; text-align: center; }

/* ---------- fotoğraf ---------- */
.cvb-photo { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #faf9fe; }
.cvb-photo-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.cvb-photo-head h3 { font-size: 1.05rem; }
.cvb-badge { padding: 0.15rem 0.55rem; border-radius: 99px; background: var(--lilac); color: var(--primary); font-size: 0.75rem; font-weight: 700; }
.cvb-photo-main { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin-bottom: 0.7rem; }
.cvb-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 8.5rem;
  flex: none;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid #d6d3ea;
  border-radius: 10px;
  background: repeating-conic-gradient(#f1f0f7 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}
.cvb-photo-frame[data-shape="square"] { aspect-ratio: 1; }
.cvb-photo-frame[data-shape="circle"] { aspect-ratio: 1; border-radius: 50%; }
.cvb-photo-canvas { display: none; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.cvb-photo-canvas:active { cursor: grabbing; }
.cvb-photo.has-photo .cvb-photo-canvas { display: block; }
.cvb-photo.has-photo .cvb-photo-empty { display: none; }
.cvb-photo-empty { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-align: center; }
.cvb-photo-side { display: grid; gap: 0.6rem; flex: 1 1 15rem; min-width: 0; }
.cvb-photo-buttons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cvb-photo-controls { display: grid; gap: 0.5rem; }
.cvb-field-range { gap: 0.15rem; }
.cvb-field-range label { font-size: 0.84rem; }
.cvb-range { width: 100%; min-height: 1.8rem; margin: 0; accent-color: var(--primary); }

/* ---------- kayıt listeleri ---------- */
.cvb-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.cvb-entry { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color 140ms ease, box-shadow 140ms ease; }
.cvb-entry.is-open { border-color: #c9c3ee; box-shadow: 0 0.4rem 1.4rem #2a206a12; }
.cvb-entry.is-dragging { opacity: 0.5; }
.cvb-entry.is-drop { border-color: var(--primary); box-shadow: 0 0 0 2px #d9d4ff; }
.cvb-entry-head { display: flex; align-items: center; gap: 0.15rem; padding: 0.3rem 0.35rem 0.3rem 0.3rem; }
.cvb-grip { display: inline-grid; place-items: center; width: 1.6rem; height: 2.5rem; flex: none; color: #9a98b3; cursor: grab; touch-action: none; }
.cvb-entry-toggle {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.4rem;
  border: 0;
  border-radius: 9px;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.cvb-entry-toggle:hover { background: #f7f6fc; }
.cvb-entry-chev { display: inline-grid; place-items: center; flex: none; margin-top: 0.2rem; color: var(--muted); transition: transform 140ms ease; }
.cvb-entry.is-open .cvb-entry-chev { transform: rotate(90deg); }
.cvb-entry-text { display: grid; min-width: 0; }
.cvb-entry-title { font-size: 0.97rem; line-height: 1.35; overflow-wrap: anywhere; }
.cvb-entry-sub { color: var(--muted); font-size: 0.84rem; line-height: 1.4; overflow-wrap: anywhere; }
.cvb-entry-actions { display: flex; flex: none; align-items: center; }
.cvb-entry-body { padding: 0.4rem 1rem 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.cvb-entry-foot { display: flex; justify-content: flex-end; margin-top: 0.6rem; }

/* ---------- beceriler ---------- */
.cvb-skillgroup { display: grid; gap: 0.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.cvb-skillgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.cvb-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.cvb-tag { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid #d8d2f2; border-radius: 8px; background: #f6f4ff; }
.cvb-tag-text { min-height: 2.2rem; padding: 0.25rem 0.35rem 0.25rem 0.65rem; border: 0; background: none; color: #3a2f8c; font: inherit; font-size: 0.9rem; font-weight: 600; text-align: left; overflow-wrap: anywhere; cursor: text; }
.cvb-tag-x { display: inline-grid; place-items: center; width: 2.1rem; border: 0; border-left: 1px solid #e2ddf7; border-radius: 0 8px 8px 0; background: none; color: #6b62a8; cursor: pointer; }
.cvb-tag-x:hover { background: #ffe9ee; color: #a3122f; }
.cvb-taginput { display: flex; gap: 0.45rem; }
.cvb-taginput .cvb-input { flex: 1; min-width: 0; }

/* ---------- ek bölümler ---------- */
.cvb-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cvb-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: 1px solid #d3cfee;
  border-radius: 99px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.cvb-chip:hover { background: #f2efff; }
.cvb-extras { display: grid; gap: 0.9rem; }
.cvb-extra { position: relative; padding: 0.9rem; border: 1px solid var(--line); border-radius: 14px; background: #fcfcff; }
.cvb-extra > label { padding-right: 2.6rem; }
.cvb-extra-x { position: absolute; top: 0.5rem; right: 0.5rem; }

/* ---------- tasarım ---------- */
.cvb-templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 0.7rem; }
.cvb-template label {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}
.cvb-template label:hover { border-color: #c0b9ed; }
.cvb-template input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px #e3dfff; }
.cvb-template input:focus-visible + label { outline: 3px solid #6355e4; outline-offset: 2px; }
.cvb-template strong { font-size: 0.93rem; }
.cvb-template span:not(.cvb-thumb) { color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.cvb-thumb { display: grid; gap: 4px; align-content: start; height: 6.2rem; margin-bottom: 0.25rem; padding: 0.6rem; border: 1px solid #e7e6ef; border-radius: 8px; background: #fff; }
.cvb-thumb i { display: block; height: 4px; border-radius: 2px; background: #d9d9e3; }
.cvb-thumb i:nth-child(1) { width: 55%; height: 8px; background: #1b1b24; }
.cvb-thumb i:nth-child(2) { width: 38%; background: #6f6f80; }
.cvb-thumb i:nth-child(3) { height: 1px; margin-block: 3px; background: #1b1b24; }
.cvb-thumb i:nth-child(4) { width: 30%; height: 5px; background: #33333f; }
.cvb-thumb i:nth-child(6) { width: 80%; }
.cvb-thumb.is-modern i:nth-child(2), .cvb-thumb.is-modern i:nth-child(4) { background: var(--primary); }
.cvb-thumb.is-modern i:nth-child(3) { height: 2px; background: var(--primary); }
/* Modern Spotlight: renkli başlık bandı */
.cvb-thumb.is-spotlight { position: relative; overflow: hidden; padding-top: 2.35rem; }
.cvb-thumb.is-spotlight::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1.95rem;
  background: radial-gradient(circle at 92% -10%, rgb(255 255 255 / 0.18) 0 38%, transparent 39%), var(--primary);
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / 0.22);
}
.cvb-thumb.is-spotlight i:nth-child(1) { position: absolute; top: 0.5rem; left: 0.6rem; width: 46%; height: 7px; background: #fff; }
.cvb-thumb.is-spotlight i:nth-child(2) { position: absolute; top: 1.15rem; left: 0.6rem; width: 30%; height: 3px; background: rgb(255 255 255 / 0.75); }
.cvb-thumb.is-spotlight i:nth-child(3) { width: 100%; height: 2px; margin-block: 0 2px; background: linear-gradient(90deg, var(--primary) 0 8%, transparent 8% 40%, #e3e0f5 40%); }
.cvb-thumb.is-spotlight i:nth-child(4) { width: 34%; background: #1b1b24; }
.cvb-thumb.is-spotlight i:nth-child(5) { position: relative; margin-left: 7px; }
.cvb-thumb.is-spotlight i:nth-child(5)::before { content: ''; position: absolute; left: -7px; top: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.cvb-thumb.is-spotlight i:nth-child(6) { width: 70%; margin-left: 7px; }

/* Yan Panel: solda renkli sütun, yuvarlak fotoğraf */
.cvb-thumb.is-sidebar { position: relative; overflow: hidden; padding: 0.55rem 0.6rem 0.6rem 45%; background: linear-gradient(var(--primary), var(--primary)) 0 0 / 100% 5px no-repeat, #fff; }
.cvb-thumb.is-sidebar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 36%; background: var(--primary); border-top-right-radius: 12px; }
.cvb-thumb.is-sidebar::after { content: ''; position: absolute; top: 0.55rem; left: 9%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #eae7fb; }
.cvb-thumb.is-sidebar i:nth-child(1) { width: 85%; height: 8px; background: var(--primary); }
.cvb-thumb.is-sidebar i:nth-child(2) { width: 60%; }
.cvb-thumb.is-sidebar i:nth-child(3) { width: 100%; height: 1px; background: #d6d3ef; }
.cvb-thumb.is-sidebar i:nth-child(4) { width: 40%; height: 5px; background: var(--primary); }

.cvb-school-manual { margin-top: 0.45rem; }
.cvb-school-manual[hidden] { display: none; }
.cvb-swatches { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.cvb-swatches.is-muted { opacity: 0.5; }
.cvb-swatch label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.45rem;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.cvb-swatch input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px #e3dfff; }
.cvb-swatch input:focus-visible + label { outline: 3px solid #6355e4; outline-offset: 2px; }
.cvb-swatch input:disabled + label { cursor: not-allowed; }
.cvb-dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; }
.cvb-dot.is-indigo { background: #4235c7; }
.cvb-dot.is-navy { background: #1f3a6e; }
.cvb-dot.is-teal { background: #0f6b63; }
.cvb-dot.is-burgundy { background: #8f1d3a; }
.cvb-dot.is-slate { background: #334155; }

/* ---------- indirme ---------- */
.cvb-checklist { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.cvb-checklist li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.93rem; font-weight: 600; }
.cvb-checklist .is-ok { color: #17733f; }
.cvb-checklist .is-miss { color: #8a5a00; }
.cvb-fileline { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; font-weight: 600; }
.cvb-filename { padding: 0.15rem 0.45rem; border-radius: 6px; background: #f1f0f8; color: var(--ink); font-size: 0.88rem; overflow-wrap: anywhere; }
.cvb-download-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cvb-ats { padding: 0.9rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfe; }
.cvb-ats h4 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.cvb-pre {
  max-height: 22rem;
  margin: 0;
  overflow: auto;
  color: #2a2a35;
  font: 0.82rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- önizleme ---------- */
.cvb-preview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e8e7f1;
}
.cvb-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  padding: 0.45rem 0.6rem 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.cvb-preview-status { color: var(--muted); font-size: 0.83rem; font-weight: 600; }
.cvb-preview-status.is-busy::before { content: ""; display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.45rem; border-radius: 50%; background: #e0a100; vertical-align: 0.05rem; }
.cvb-preview-status.is-error { color: #b0163a; }
.cvb-zoom { display: flex; align-items: center; gap: 0.15rem; }
.cvb-zoom-value { min-width: 3.1rem; font-size: 0.83rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.cvb-preview-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 1rem; }
.cvb-pages { display: grid; justify-items: center; gap: 1.1rem; width: max-content; min-width: 100%; }
.cvb-page { margin: 0; }
.cvb-page canvas { display: block; background: #fff; box-shadow: 0 0.3rem 1.2rem #1e1a3a29, 0 0 0 1px #1e1a3a14; }
.cvb-page figcaption { margin-top: 0.4rem; color: var(--muted); font-size: 0.78rem; font-weight: 600; text-align: center; }
.cvb-preview-empty {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  width: min(18rem, 80%);
  padding: 0.75rem 1rem;
  transform: translateX(-50%);
  border: 1px dashed #c9c5e4;
  border-radius: 12px;
  background: #ffffffe6;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  pointer-events: none;
}

/* ---------- mobil alt çubuk ---------- */
.cvb-mobilebar {
  position: fixed;
  z-index: 6;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.4rem;
  padding: 0.5rem max(0.75rem, env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: rgba(248, 248, 252, 0.98);
  box-shadow: 0 -0.5rem 1.4rem #221b4f14;
}
.cvb-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #d3cfee;
  border-radius: 10px;
  background: #fff;
  color: var(--primary);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.cvb-tab[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.cvb-tab-dl { padding-inline: 0.9rem; }

/* ---------- bildirimler ---------- */
.cvb-toasts {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 1.2rem;
  display: grid;
  gap: 0.5rem;
  width: min(28rem, calc(100% - 1.5rem));
  transform: translateX(-50%);
  pointer-events: none;
}
@media (max-width: 959.98px) { .cvb-toasts { bottom: 5.2rem; } }
.cvb-toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.5rem 0.6rem 0.85rem;
  border-radius: 12px;
  background: #1e1a3a;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 0.6rem 1.6rem #120e2e40;
  pointer-events: auto;
  animation: cvb-in 160ms ease-out;
}
.cvb-toast.is-leaving { opacity: 0; transition: opacity 160ms ease; }
.cvb-toast.is-error { background: #8f1430; }
.cvb-toast.is-success .cvb-toast-icon { color: #7be3a6; }
.cvb-toast-icon { display: inline-grid; flex: none; }
.cvb-toast-text { flex: 1; line-height: 1.4; overflow-wrap: anywhere; }
.cvb-toast-action { min-height: 2.2rem; padding: 0.2rem 0.7rem; border: 1px solid #ffffff59; border-radius: 8px; background: none; color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.cvb-toast-close { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none; border: 0; border-radius: 8px; background: none; color: #ffffffcc; cursor: pointer; }
.cvb-toast-close:hover, .cvb-toast-action:hover { background: #ffffff1f; }
@keyframes cvb-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- diyalog ---------- */
html.cvb-modal-open { overflow: hidden; }
.cvb-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem #120e2e4d;
}
.cvb-dialog[open] { display: flex; flex-direction: column; }
.cvb-dialog.is-wide { width: min(48rem, calc(100% - 2rem)); }
.cvb-dialog::backdrop { background: #120e2e8c; }
.cvb-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0.8rem 0.6rem 1.3rem; }
.cvb-dialog-head h2 { font-size: 1.3rem; letter-spacing: -0.03em; }
.cvb-dialog-body { flex: 1; min-height: 0; overflow: auto; padding: 0.2rem 1.3rem 1rem; }
.cvb-dialog-body > p, .cvb-dialog-body .cvb-imp > p { color: var(--muted); }
.cvb-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; padding: 0.85rem 1.3rem 1.1rem; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .cvb-dialog, .cvb-dialog.is-wide { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .cvb-dialog-actions .cvb-btn { flex: 1 1 8rem; }
}
.cvb-imp { display: grid; gap: 0.8rem; }
.cvb-imp-table { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; margin: 0; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; }
.cvb-imp-table dt { color: var(--muted); font-weight: 600; }
.cvb-imp-table dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cvb-imp-table dd.is-none { color: #9a98b3; font-weight: 500; }
.cvb-imp-photo { display: flex; gap: 0.9rem; align-items: center; padding: 0.7rem; border: 1px solid var(--line); border-radius: 12px; }
.cvb-imp-photo img { width: 4.5rem; height: 6rem; flex: none; object-fit: cover; border-radius: 8px; }
.cvb-raw summary { padding-block: 0.4rem; color: var(--primary); font-weight: 700; cursor: pointer; }
.cvb-raw { display: grid; gap: 0.5rem; }
.cvb-raw[open] { padding-bottom: 0.2rem; }
.cvb-rawtext { margin-block: 0.5rem; font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- küçük ekranlar ---------- */
@media (max-width: 760px) {
  .cvb-container { width: calc(100% - 2rem); }
  .cvb-toolbar { padding: 0.5rem; }
  .cvb-toolbar > .cvb-btn-primary { display: none; }
  .cvb-toolbar-group { width: 100%; }
  .cvb-toolbar-group .cvb-btn { flex: 1 1 auto; }
  .cvb-stepnav { padding: 0.7rem; }
  .cvb-steps { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.3rem; margin-inline: -0.2rem; padding-inline: 0.2rem; }
  .cvb-panel { padding: 1rem; border-radius: 16px; }
  .cvb-entry-body { padding: 0.9rem 0.75rem 0.8rem; }
  .cvb-photo-frame { width: 7rem; }
  .cvb-footnav .cvb-btn { padding-inline: 0.75rem; }
  .cvb-imp-table { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .cvb-imp-table dd { margin-bottom: 0.4rem; }
}
@media (max-width: 380px) {
  .cvb-container { width: calc(100% - 1.25rem); }
  .cvb-stepcount { display: none; }
  .cvb-entry-actions .cvb-icon-btn { width: 2.25rem; }
  .cvb-taginput { flex-direction: column; }
  .cvb-mobilebar { gap: 0.3rem; padding-inline: 0.5rem; }
  .cvb-tab { padding-inline: 0.5rem; font-size: 0.88rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cvb *, .cvb-toast { animation: none !important; transition: none !important; }
}
