/* ==========================================================================
   Master-Labor (views/lab.js, nur Admins) und Einstellungen → Copywriter (views/settings.js) – kompakt, bis 375 px
   ========================================================================== */

/* ---------- Einstellungen → Copywriter ---------- */
.ms-card { display: grid; gap: 12px; }
.ms-now { display: flex; align-items: center; gap: 10px; }
.ms-now b { font-size: 17px; font-weight: 800; }
.ms-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.ms-ico svg { width: 18px; height: 18px; }
.ms-list { display: grid; gap: 8px; }
.ms-opt { display: flex; gap: 10px; align-items: flex-start; text-align: left; width: 100%; border: 1px solid var(--rule); background: #fff; border-radius: 12px; padding: 10px 12px; font: inherit; color: var(--ink); cursor: pointer; min-width: 0; transition: border-color 0.12s, background 0.12s; }
.ms-opt:hover:not(:disabled) { border-color: var(--ink-2); }
.ms-opt:disabled { cursor: default; }
.ms-opt:disabled:not(.on) { opacity: 0.6; }
.ms-opt.on { border-color: var(--violet); background: var(--violet-soft); }
.ms-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--rule-2); display: grid; place-items: center; flex: none; margin-top: 1px; background: #fff; }
.ms-opt.on .ms-dot { border-color: var(--violet); background: var(--violet); color: #fff; }
.ms-dot svg { width: 11px; height: 11px; }
.ms-opt-t { display: grid; gap: 3px; min-width: 0; flex: 1; }
.ms-opt-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ms-opt-h b { font-size: 14px; font-weight: 700; }
.ms-opt-t small { font-size: 12px; color: var(--muted); }
.ms-opt-t ul { margin: 2px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 2px; }
.ms-lab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ms-lab > .grow { min-width: min(220px, 100%); }

/* ---------- Einstellungen → Copywriter → Don'ts (views/donts.js) ---------- */
/* Version und Don'ts nebeneinander; schmal untereinander */
.cw-grid { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.cw-main, .cw-side { min-width: 0; }
@media (max-width: 1150px) { .cw-grid { grid-template-columns: minmax(0, 1fr); } }
.dt-card { display: grid; gap: 10px; }
.dt-ico { background: var(--red-soft); color: var(--red); }
.dt-text { min-height: 150px; width: 100%; }
.dt-text[readonly] { background: var(--bg); color: var(--ink-2); }
.dt-foot { align-items: center; gap: 8px; }
.dt-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.dt-count.over { color: var(--red); font-weight: 650; }
.dt-card .note { display: flex; gap: 6px; align-items: flex-start; }
.dt-card .note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
/* „Don'ts aktiv“ neben der Cloudcopy-Version – dezent (neutrale Plakette) */
.badge.dt-on { vertical-align: 1px; }

/* ---------- Labor: Versionen vergleichen ---------- */
.lab-sec-h { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 22px 0 12px; }
.lab-sec-h h2 { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.lab-cmp { display: grid; gap: 12px; }
.lab-cmp-form { display: grid; gap: 10px; }
.lab-cmp-form .note { display: flex; gap: 6px; align-items: flex-start; }
.lab-cmp-form .note svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.lab-cmp-go { align-items: center; }
.lab-cmp-go > .grow { min-width: min(240px, 100%); }
.lab-cmp-res { display: grid; gap: 8px; border-top: 1px solid var(--rule); padding-top: 12px; }
.lab-cmp-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lab-cmp-col { min-width: 0; }
.lab-hls { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.lab-hls .cw-test-h { font-size: 16.5px; margin: 0; }
.lab-bullets { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
/* Werkstatt (ab 1.2): vorher-Fassung unter einem neu geschriebenen Bullet */
.lab-was { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.lab-ws { padding-top: 6px; border-top: 1px solid var(--rule); }
.lab-hist { display: grid; gap: 6px; margin-top: 8px; }
.lab-hist-i { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; text-align: left; border: 1px solid var(--rule); background: #fff; border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 12.5px; color: var(--ink); cursor: pointer; }
.lab-hist-i.on { border-color: var(--violet); background: var(--violet-soft); }
.lab-hist-i span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-warn { color: #9a6700; display: flex; gap: 4px; align-items: flex-start; }
.cw-warn svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* ---------- Bibliothek ---------- */
.cw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.cw-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 9px; min-width: 0; }
.cw-card-h { display: flex; gap: 10px; align-items: flex-start; }
.cw-card-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.cw-card-ico svg { width: 17px; height: 17px; }
.cw-card-name { font-weight: 800; font-size: 15.5px; color: var(--ink); text-decoration: none; line-height: 1.25; }
.cw-card-name:hover { text-decoration: underline; }
.cw-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.cw-short { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.cw-when { font-size: 12.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cw-when b { color: var(--ink-2); font-weight: 650; }
.cw-fp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; }
.cw-fp > div { min-width: 0; }
.cw-fp dt { font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cw-fp dd { margin: 1px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.cw-fp.compact dd { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cw-more { border-top: 1px solid var(--rule); padding-top: 8px; font-size: 12.5px; }
.cw-more summary { cursor: pointer; font-weight: 650; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 6px; }
.cw-more summary::-webkit-details-marker { display: none; }
.cw-more summary::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform 0.15s; }
.cw-more[open] summary::before { transform: rotate(45deg); }
.cw-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.cw-cols ul, .cw-sec ul { margin: 4px 0 0; padding-left: 16px; display: grid; gap: 3px; }
.cw-cols ul.no li::marker, .cw-sec ul.no li::marker { content: "✕  "; color: var(--red); font-size: 10px; }
.cw-ex { margin: 8px 0 0; padding: 8px 10px; background: var(--bg); border-radius: 8px; font-size: 12.5px; line-height: 1.45; }
.cw-ex small { display: block; font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.cw-card-f { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--rule); padding-top: 10px; }
.cw-empty { background: var(--card); border: 1px dashed var(--rule-2); border-radius: var(--r-lg); padding: 28px 18px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.cw-empty-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.cw-empty-ico svg { width: 22px; height: 22px; }
.cw-empty .small { max-width: 520px; }

/* ---------- Detail ---------- */
.cw-detail .page-head { align-items: flex-start; }
.cw-profile .card, .cw-form { display: grid; gap: 14px; }
.cw-sec h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.cw-sec p { margin: 0; font-size: 14px; line-height: 1.55; }
.cw-fp-in { gap: 10px; }
.cw-rights { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 12px; }
.cw-rights svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.cw-src-list { display: grid; gap: 6px; margin-top: 12px; }
.cw-src { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cw-src.failed { border-color: #f4c3bf; background: var(--red-soft); }
.cw-src.pending { border-style: dashed; }
.cw-src > .grow { min-width: 0; }
.cw-src-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; flex: none; }
.cw-src-ico svg { width: 15px; height: 15px; }
.cw-src-name b { font-weight: 650; font-size: 13.5px; }
.cw-err { color: var(--red); }
.cw-add { margin-top: 14px; border: 1px dashed var(--rule-2); border-radius: 12px; padding: 12px; transition: background 0.12s, border-color 0.12s; }
.cw-add.drag { background: var(--violet-soft); border-color: var(--violet); }
.cw-link .input { min-width: min(260px, 100%); }
.cw-media { font-size: 13px; white-space: nowrap; }
.cw-est { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cw-est > div { background: var(--bg); border-radius: 10px; padding: 10px; display: grid; gap: 2px; }
.cw-est b { font-size: 18px; font-weight: 800; font-feature-settings: var(--tnum); }
.cw-est span { font-size: 11.5px; color: var(--muted); }
.cw-preview { white-space: pre-wrap; font-family: var(--font); font-size: 13px; line-height: 1.55; margin: 0; max-height: 60vh; overflow: auto; }
.cw-hb { display: grid; gap: 12px; }
.cw-hb-sec { border-top: 1px solid var(--rule); padding-top: 10px; }
.cw-hb-sec:first-child { border-top: 0; padding-top: 0; }
.cw-hb-sec h3 { font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.cw-hb-sec ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; line-height: 1.5; }
.cw-hb-sec li.plain { list-style: none; margin-left: -18px; }
.cw-hb-edit { min-height: 420px; font-size: 12.5px; line-height: 1.5; }
.cw-test-grid { display: grid; gap: 12px; margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cw-test-card { background: var(--card); border: 1px solid var(--violet); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 6px; align-content: start; }
.cw-test-card.std { border-color: var(--rule-2); background: var(--bg); }
.cw-test-name { font-size: 12.5px; }
.cw-test-h { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.25; margin: 4px 0 0; }
.cw-test-p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
/* Lead in Absätzen (TSL: jede Zeile ein Absatz) */
.cw-test-p + .cw-test-p { margin-top: 8px; }

/* ---------- Handy ---------- */
@media (max-width: 720px) {
  .cw-fp, .cw-cols { grid-template-columns: minmax(0, 1fr); }
  .cw-est { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cw-card { padding: 12px; }
  .cw-card-f .btn { flex: 1 1 auto; }
  .cw-detail .page-head { flex-wrap: wrap; }
  .cw-fp-in { grid-template-columns: minmax(0, 1fr); }
  .lab-cmp-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-hist-i { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
