/* Setări brand. Aspectul comun al paginilor de configurare (antet, carduri, câmpuri, butoane) e în configurare.css;
   aici, doar ce ține de pagina asta. Revamp vizual 2026-10-29: carduri aerisite, texte lizibile, ținte ≥ 44 px pe telefon. */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 780px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .addlink-row { flex-direction: column; align-items: stretch; }
}
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { margin-bottom: 18px; }
.field-gap { margin-top: 20px; }
.card-note { margin: -2px 0 16px; }
.card-note-tight { margin: 0 0 8px; }
.addlink-tight { margin-top: 6px; }
.tonefield { margin-bottom: 16px; }
.tonefield:last-child { margin-bottom: 0; }
.bp-text { resize: vertical; line-height: 1.45; min-height: 58px; }
/* Nota „s-a mutat în Setări conținut" pusă între carduri, în locul fostului card „Generare pe canal" (2026-10-12). */
.col > .moved-note { margin: 0; }
/* C4 — reguli învățate din editări (Voce & Ton), fiecare cu × pentru ștergere. */
.voice-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.voice-rules .vr-empty { font-size: 13px; color: var(--ink-soft); }
.voice-rules .vr-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 12px; background: #FBF8F2; font-size: 13.5px; line-height: 1.45;
}
.voice-rules .vr-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.voice-rules .vr-scope { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.voice-rules .vr-del {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--ink-soft); font-size: 17px; line-height: 1; cursor: pointer;
}
.voice-rules .vr-del:hover { border-color: var(--danger); color: var(--danger); }
.voice-rules .vr-del:disabled { opacity: 0.5; cursor: default; }

.logorow {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px; border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-inner); padding: 14px 16px; background: #FBF8F2;
}
.logorow .sq {
  width: 52px; height: 52px; border-radius: 12px; background: var(--accent-strong); color: #F4EEE1;
  display: flex; align-items: center; justify-content: center; font-family: 'Newsreader', serif; font-size: 18px;
  flex-shrink: 0; object-fit: cover;
}
img.logorow-img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.logorow .lt { flex: 1 1 180px; min-width: 0; font-size: 13.5px; color: var(--ink-soft); }
.logorow .logohint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; line-height: 1.45; }
.logorow .lb, .brandcolors-actions .lb, .pillars-actions .lb, .lead-actions .lb {
  color: var(--accent); border: 1px solid var(--accent); background: var(--surface); flex-shrink: 0; cursor: pointer;
}

/* Culorile brandului (principală + accent) și sugestia din logo */
.brandcolors { display: flex; gap: 12px; flex-wrap: wrap; }
.brandcolor {
  display: flex; align-items: center; gap: 12px; flex: 1 1 200px; min-width: 0; cursor: pointer; font-size: 14px; line-height: 1.35;
  border: 1px solid var(--border); border-radius: var(--radius-inner); padding: 10px 12px;
}
.brandcolor small { color: var(--ink-soft); font-size: 12.5px; }
.brandcolor input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: none; cursor: pointer; flex-shrink: 0; }
.brandcolors-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.brandcolors-actions .logohint { font-size: 12.5px; color: var(--ink-soft); flex: 1 1 200px; line-height: 1.45; }

#cta-list { display: flex; flex-direction: column; }
.link-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.link-row:last-child { border-bottom: none; }
.link-row .k { font-size: 14px; font-weight: 700; flex-shrink: 0; }
.link-row .u {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ink-soft); text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0;
  /* min-width:0 — fără el, un flex:1 cu white-space:nowrap nu se restrânge niciodată sub
     lățimea textului complet (implicitul min-width:auto = min-content = tot URL-ul, neîntrerupt),
     ceea ce anula complet ellipsis-ul și forța pagina să devină scrollabilă orizontal pe tabletă
     (lățimi de coloană medii, unde URL-ul nu mai încape). Bug real, găsit prin testare (2026-09-14). */
}
.addlink-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.addlink-row input { flex: 1; min-width: 120px; }

/* Piloni editoriali (G1): nume + pondere + × pe primul rând, descrierea dedesubt */
#pillars-list { display: flex; flex-direction: column; gap: 12px; }
.pillar-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 92px 36px; gap: 8px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.pillar-row:last-child { border-bottom: none; }
.pillar-row .pillar-desc { grid-column: 1 / -1; }
.pillar-name { font-weight: 700; }
.pillar-cta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pillar-cta select { flex: 1; min-width: 0; }
.pillar-weight { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-soft); }
.pillar-weight input { width: 100%; min-width: 0; text-align: right; }
.pillar-remove {
  width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface);
  color: var(--ink-soft); font-size: 18px; line-height: 1; cursor: pointer;
}
.pillar-remove:hover { color: var(--danger); border-color: var(--danger); }
.pillars-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pillars-actions .lb:disabled, .pillars-actions .btn-ghost:disabled { opacity: .5; cursor: default; }
.pillars-total { font-size: 12.5px; color: var(--ink-soft); margin-left: auto; }
.pillars-total.off { color: var(--amber); font-weight: 600; }
#pillars-status { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; min-height: 1em; }
#pillars-status.error { color: var(--danger); }

/* G7 + C7 — comutatoarele (se salvează la bifare). */
.native-toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.45; padding: 4px 0; }
.native-toggle input { width: 20px; height: 20px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.native-toggle small { color: var(--ink-soft); font-size: 12.5px; }
#native-status { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; min-height: 1em; }
#native-status.error { color: var(--danger); }
.objectives-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 560px) {
  .objectives-grid { grid-template-columns: minmax(0, 1fr); }
  .pillars-total { margin-left: 0; flex-basis: 100%; }
}

.save-status { font-size: 13px; color: var(--ok); margin-top: 10px; min-height: 1em; }
.save-status.error { color: var(--danger); }

/* C5 — promisiuni */
#offers-list { display: flex; flex-direction: column; gap: 12px; }
.offer-row {
  border: 1px solid var(--border); border-radius: var(--radius-inner); padding: 14px; background: #FBF8F2;
  display: flex; flex-direction: column; gap: 10px;
}
.offer-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.offer-name { font-weight: 700; }
.offer-field { display: flex; flex-direction: column; gap: 4px; }
.offer-field .field-label { margin: 0; }
#btn-add-offer:disabled { opacity: .5; cursor: default; }

/* C6 — Publicuri: un rând pliabil per public (numele + nivelul în titlu), câmpurile dedesubt */
#audiences-list { display: flex; flex-direction: column; gap: 10px; }
.aud-row { border: 1px solid var(--border); border-radius: var(--radius-inner); padding: 0 14px; background: #FBF8F2; }
.aud-row > summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 0; min-height: 44px; box-sizing: border-box;
  cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 700;
}
.aud-row > summary::-webkit-details-marker { display: none; }
.aud-row > summary::before { content: '▸'; color: var(--icon); font-size: 12px; }
.aud-row[open] > summary::before { content: '▾'; }
.aud-sum-aw { font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.aud-body { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; }
.aud-name { font-weight: 700; }
.aud-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aud-channels { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.aud-ch { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 36px; }
.aud-ch input { accent-color: var(--accent); }
#audiences-status { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; min-height: 1em; }
#audiences-status.error { color: var(--danger); }
#btn-add-audience:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  .aud-cta { grid-template-columns: minmax(0, 1fr); }
}

.card > .sec-head { margin-bottom: 12px; }

/* P11 — Raport săptămânal */
.wr-locked { font-size: 13px; color: var(--ink-soft); background: var(--surface-alt); border-radius: var(--radius-inner); padding: 10px 12px; margin: 0 0 12px; }
.wr-next { font-size: 13px; color: var(--ink-soft); margin: 10px 0 0; min-height: 1em; }
.wr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wr-actions .btn-ghost:disabled { opacity: .5; cursor: default; }
#wr-status { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; min-height: 1em; }
.wr-emails { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.wr-emails-title { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.wr-emails-list { margin: 0 0 8px; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.wr-emails-list li { margin: 0 0 4px; overflow-wrap: anywhere; }
.wr-emails-note { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.5; }
#wr-status.error { color: var(--danger); }
.wr-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(11, 37, 48, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wr-modal[hidden] { display: none; }
.wr-dialog { background: var(--surface); border-radius: var(--radius-card); width: min(720px, 100%); height: min(88vh, 900px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(11, 37, 48, .35); }
.wr-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.wr-dialog-title { font-family: 'Newsreader', serif; font-size: 21px; color: var(--accent-strong); }
.wr-dialog-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.wr-close {
  border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer;
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 10px;
}
.wr-close:hover { background: var(--surface-alt); }
.wr-frame { flex: 1; width: 100%; border: 0; background: #F6F1E7; }
@media (max-width: 560px) {
  .wr-modal { padding: 0; }
  .wr-dialog { width: 100%; height: 100%; border-radius: 0; }
}
/* P10 — formularul scurt înainte de link (lead-uri) */
.lead-setup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.lead-actions { margin-top: 12px; }
.lead-setup .logohint { font-size: 12.5px; color: var(--ink-soft); margin: 10px 0 0; }
.lead-setup .logohint.error { color: var(--danger, #B42318); }
.link-row .lead-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 12.5px; color: var(--ink-soft); flex-shrink: 0; cursor: pointer; }
.link-row .lead-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
@media (max-width: 520px) {
  .link-row { flex-wrap: wrap; }
  .link-row .u { flex-basis: 100%; order: 3; text-align: left; }
}

/* Salvare per secțiune (2026-10-09) — stilurile comune (.sec-save, .sec-save-state, .autosave-note) sunt în
   shared/style.css. Aici: starea de sub linkul de confidențialitate, mesajul bibliotecii CTA și bara de jos. */
.privacy-state { display: flex; margin-top: 6px; }
.privacy-state:empty { display: none; }
#btn-save-privacy:disabled:not(.is-busy):not(.is-done) { background: var(--border-strong); color: var(--surface); box-shadow: none; }
.cta-status { font-size: 12.5px; color: var(--ink-soft); margin: 8px 0 0; }
.cta-status:empty { display: none; }
.cta-status.error { color: var(--danger); }
header.page-header .save-status { margin-top: 4px; }

/* „Salvează tot": bara apare doar cu modificări nesalvate și stă lipită jos (deasupra subsolului fix de pe
   desktop, --app-footer-h), ca butonul să fie la îndemână oriunde pe pagina lungă. */
.save-bar {
  position: sticky; bottom: calc(var(--app-footer-h, 0px) + 12px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-top: 24px; padding: 12px 14px 12px 18px; border-radius: var(--radius-card);
  background: var(--surface); border: 1px solid var(--amber); box-shadow: 0 8px 28px rgba(11, 37, 48, .16);
}
.save-bar[hidden] { display: none; }
.save-bar-text { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; color: var(--ink); line-height: 1.4; }
.save-bar-text b { font-weight: 700; color: var(--amber); }
.save-bar-list { color: var(--ink-soft); }
.save-bar .btn-primary { flex-shrink: 0; }
@media (max-width: 560px) {
  .save-bar { bottom: 10px; padding: 10px 10px 10px 14px; }
  .save-bar-list { display: none; }
  .save-bar-text { font-size: 13px; }
}

/* „Profilul brandului: X din Y completate” (revamp 2026-10-29) — calculat din câmpurile încărcate pe pagină. */
.pm-card { margin-bottom: 18px; display: flex; flex-direction: column; gap: 12px; }
.pm-card[hidden] { display: none; }
.pm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.pm-card .sec-head { margin: 0; }
.pm-count { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.pm-num {
  font-family: 'Newsreader', serif; font-weight: 600; line-height: 1; color: var(--accent-strong);
  font-size: clamp(34px, 5vw, 46px); font-variant-numeric: lining-nums tabular-nums;
}
.pm-of { font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.pm-bar { height: 10px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; }
.pm-bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.pm-card.is-complete .pm-bar > span { background: var(--ok); }
.pm-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.pm-hint:empty { display: none; }
.pm-missing { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pm-missing:empty { display: none; }
.pm-missing a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--icon-soft); color: var(--ink); font-size: 13.5px; font-weight: 700; text-decoration: none;
}
.pm-missing a::before { content: '+'; color: var(--icon); font-weight: 800; font-size: 16px; line-height: 1; }
.pm-missing a:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--icon); }
@media (prefers-reduced-motion: reduce) { .pm-bar > span { transition: none; } }

@media (max-width: 600px) {
  .pm-missing a { min-height: 44px; }
  .pillar-row { grid-template-columns: minmax(0, 1fr) 92px 44px; }
  .pillar-remove, .voice-rules .vr-del { width: 44px; height: 44px; }
  .brandcolors-actions .lb, .logorow .lb { flex: 1 1 100%; }
}
