/* DOPAMIN OS v0.6.11 – Neuigkeiten-Tafel (Dashboard). Eigene Datei, lädt nach readable.css
 * (Schriftgrößen hier schon „lesbar“: Text 15px, Meta 13px, Eingaben 16px). */
.news-panel { margin: 0 0 22px; border-color: var(--line-strong); }
.news-head { flex-wrap: wrap; gap: 10px; }
.news-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
.news-head__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
/* .panel__header button färbt Knöpfe orange – hier normale Knopf-Farben behalten */
.news-head .button--primary { color: #170600; font-size: 15px; }
.news-head .button--ghost { color: var(--text); font-size: 15px; }
.news-unread { padding: 2px 9px; border-radius: 999px; color: #1a0b02; background: var(--accent); font-size: 13px; font-weight: 800; }
.news-list { display: grid; gap: 12px; }
.news-post { position: relative; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); min-width: 0; overflow-wrap: anywhere; }
.news-post.is-pinned { border-color: var(--line-strong); background: var(--orange-soft); }
.news-post.is-important { border-left: 4px solid var(--warning); }
.news-post.is-unread::before { content: ""; position: absolute; top: 16px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.news-post.is-focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.news-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.news-badge { font-size: 13px; }
.news-badge::before { display: none; }
.news-badge--imp { color: #1a1200; background: var(--warning); }
.news-badge--new { color: #1a0b02; background: var(--accent); font-weight: 800; }
.news-title { margin: 0 24px 4px 0; font-size: 17px; line-height: 1.3; }
.news-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.news-text { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-wrap; }
.news-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { margin-top: 4px; padding: 6px 0; border: 0; color: var(--accent); background: none; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.news-links, .news-files, .news-edit-list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.news-links li, .news-edit-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.news-links small, .news-files small, .news-edit-list small { color: var(--muted); font-size: 13px; }
.news-file__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.news-file { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: var(--accent-soft); font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.news-file:hover, .news-file:focus-visible { background: rgba(255,90,10,.22); }
.news-thumb { display: block; max-width: min(100%, 240px); max-height: 160px; margin-bottom: 6px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #000; }
.news-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.news-actions:empty { display: none; }
.news-actions .td-delete { margin-left: 0; }
.news-empty { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.news-all { font-size: 15px; }
/* Editor */
.news-modal { width: min(680px, calc(100vw - 28px)); }
.news-form { display: grid; gap: 14px; }
.news-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.news-form input:not([type=checkbox]):not([type=file]), .news-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: inherit; background: rgba(255,255,255,.04); font: inherit; font-size: 16px; box-sizing: border-box; }
.news-form textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.news-form__flags { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.news-form .news-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 700; cursor: pointer; }
.news-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.news-form__group { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.news-form__group legend { padding: 0 6px; color: var(--muted); font-size: 13px; font-weight: 800; }
.news-form .attachment-add { justify-self: start; padding: 10px 14px; font-size: 15px; }
.news-form__hint { margin: 0; font-size: 13px; }
.news-form__msg { min-height: 1em; margin: 0; color: var(--warning); font-size: 14px; }
.news-form .td-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
@media (max-width: 720px) {
  .news-post { padding: 12px; }
  .news-head__actions { margin-left: 0; width: 100%; }
  .news-head__actions .button { flex: 1 1 auto; min-height: 44px; }
  .news-actions .button { flex: 1 1 auto; min-height: 44px; }
  .news-file { width: 100%; }
  .news-modal { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; }
  .news-form .td-footer .button { flex: 1 1 auto; min-height: 46px; }
}
