/* «Що нове» (Mark 2026-11-27, «8В 9А 11А»): вікно, мітка «Нове» на кнопці, історія, адмін-панель. */
.news-dialog { width: min(460px, calc(100vw - 24px)); max-width: none; max-height: min(85dvh, 760px); padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); overflow-y: auto; }
.news-dialog::backdrop { background: #0f241c8c; }
.news-dialog h2 { margin: 4px 0 0; color: var(--forest); font-size: 20px; line-height: 1.3; }
.news-dialog-text { margin: 10px 0 0; font-size: 15.5px; line-height: 1.5; }
.news-dialog-meta { margin: 10px 0 0; font-size: 13px; }
.news-dialog-preview { margin: 12px 0 0; padding: 8px 10px; border-radius: 8px; background: #fff6df; color: #6d4a00; font-size: 13px; font-weight: 650; }
.news-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Мітка «Нове» на кнопці, про яку повідомлення. */
.news-new { position: relative; }
.news-new::after { content: "Нове"; position: absolute; top: -13px; right: -8px; z-index: 2; padding: 0 6px; border-radius: 999px; background: #d9480f; color: #fff; font-size: 10.5px; font-weight: 800; line-height: 15px; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--paper); pointer-events: none; }

/* Меню під фото → «Що нове» і історія. */
.news-menu-count { min-width: 20px; margin-left: auto; padding: 0 6px; border-radius: 999px; background: #d9480f; color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.news-menu-count[hidden] { display: none; }
.news-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.news-history { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.news-row { display: grid; gap: 3px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.news-row:hover, .news-row:focus-visible { background: var(--cream); outline: none; }
.news-row-date { color: var(--muted); font-size: 12.5px; font-weight: 650; }
.news-row b { color: var(--forest); font-size: 15px; }
.news-row-new { justify-self: start; padding: 0 7px; border-radius: 999px; background: #d9480f; color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; }
.news-row-text { color: var(--ink); font-size: 14px; line-height: 1.45; }

/* Адмін-панель → Що нове */
.news-adm-item h3 { margin: 8px 0 4px; color: var(--forest); font-size: 17px; }
.news-adm-item > p { margin: 4px 0; }
.news-adm-item.draft { border-style: dashed; }
.news-adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.news-adm-status { padding: 2px 9px; border-radius: 999px; font-weight: 800; }
.news-adm-status.draft { background: #fff1cc; color: #7a5200; }
.news-adm-status.live { background: #e3f1e6; color: var(--forest); }
.news-adm-form { display: grid; gap: 12px; margin-top: 10px; }
.news-adm-form > label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; font-weight: 650; }
.news-adm-form input:not([type=checkbox]), .news-adm-form textarea, .news-adm-form select { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 500; }
.news-adm-roles { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.news-adm-roles legend { padding: 0 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.news-adm-role { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.news-adm-people { display: grid; gap: 4px; margin: 6px 0; padding: 0; list-style: none; font-size: 14px; }
.news-adm-people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 6px 10px; border-radius: 8px; background: #fff; }

@media (max-width: 650px) {
  .news-dialog { padding: 18px 16px 14px; }
  .news-dialog-actions .button { flex: 1; }
}
