.news-panel { padding: 20px; }
.news-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); min-height: 200px; padding: 20px 0; overflow: hidden; border-bottom: 1px solid var(--color-border); }
.news-list--cards .news-card:first-child { padding-top: 0; }
.news-list--cards .news-card:last-child { padding-bottom: 0; border-bottom: 0; }
.news-card__media { position: relative; min-width: 0; overflow: hidden; border-radius: var(--radius-surface); background: var(--color-surface-muted); }
.news-card__media img { display: block; width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.news-card__category { position: absolute; top: 14px; left: 14px; padding: 4px 9px; border-radius: var(--radius-status); background: var(--color-accent); color: var(--color-text-primary); font-size: var(--font-xs); line-height: var(--line-xs); text-transform: uppercase; }
.news-card__content { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: 28px 32px; }
.news-card__content time { color: var(--color-text-tertiary); font-size: var(--font-xs); line-height: var(--line-xs); }
.news-card__content h2 { margin-top: 10px; font-size: var(--font-2xl); line-height: var(--line-2xl); }
.news-card__content p { margin-top: 8px; color: var(--color-text-secondary); font-size: var(--font-base); line-height: var(--line-base); }
.news-card__more { display: inline-flex; min-height: 40px; align-self: flex-start; align-items: center; gap: 8px; margin-top: 20px; padding: 0 16px; border-radius: var(--radius-control); background: var(--color-sidebar); color: var(--color-text-inverse); font-weight: 500; text-decoration: none; }
.news-card__more span { display: block; width: 10px; height: 8px; flex: 0 0 10px; overflow: hidden; background: var(--color-text-inverse); font-size: 0; line-height: 0; -webkit-mask: var(--portal-chevron-image) center / contain no-repeat; mask: var(--portal-chevron-image) center / contain no-repeat; transform: rotate(-90deg); transition: transform .15s ease; }
.news-card__more:hover span { transform: translateX(3px) rotate(-90deg); }
.news-list { margin-top: 8px; }
.news-panel .news-list { margin-top: 0; }
.news-item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.news-item:last-child { border-bottom: 0; }
.news-item__image { width: 160px; height: 100px; flex: 0 0 auto; border-radius: var(--radius-surface); object-fit: cover; }
.news-panel .news-item__image { width: 112px; height: 72px; }
.news-item__content { min-width: 0; flex: 1; }
.news-item__meta { display: flex; gap: 12px; color: var(--color-text-tertiary); font-size: var(--font-xs); line-height: var(--line-xs); }
.news-item__meta span { color: var(--color-accent-hover); text-transform: uppercase; }
.news-item h3 { margin-top: 8px; font-size: var(--font-base); line-height: var(--line-base); }
.news-item p { margin-top: 4px; color: var(--color-text-secondary); }
.news-lazy-loader { display: flex; min-height: 64px; align-items: center; justify-content: center; gap: 10px; color: var(--color-text-secondary); font-size: var(--font-sm); }
.news-lazy-loader.is-error { color: var(--color-text-primary); }
.news-editor-form { display: grid; gap: 16px; }
.news-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 16px; }
.news-editor-main, .news-editor-sidebar { display: grid; gap: 18px; padding: 20px; }
.news-editor-sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.news-editor-sidebar input[type="file"] { height: auto; min-height: 40px; padding: 7px 8px; }
.news-editor-sidebar input[type="file"]::file-selector-button { margin-right: 10px; padding: 5px 9px; border: 0; border-radius: var(--radius-control); background: var(--color-surface-muted); color: var(--color-text-primary); cursor: pointer; }
.news-cover-preview { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--color-border); border-radius: var(--radius-surface); background: var(--color-surface-muted); }
.news-cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.news-cover-preview.is-empty { display: grid; place-items: center; color: var(--color-text-tertiary); font-size: var(--font-xs); }
.news-editor-actions { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--color-border); }
.news-editor-actions .button { width: 100%; }
.news-quill-editor { min-height: 360px; color: var(--color-text-primary); font-size: var(--font-sm); line-height: 1.65; }
.news-editor-main .ql-toolbar.ql-snow { border-color: var(--color-border); border-radius: var(--radius-control) var(--radius-control) 0 0; background: var(--color-surface-muted); }
.news-editor-main .ql-container.ql-snow { border-color: var(--color-border); border-radius: 0 0 var(--radius-control) var(--radius-control); font-family: inherit; }
.news-editor-main .ql-editor { min-height: 360px; font-size: var(--font-sm); line-height: 1.65; }
.news-editor-main .ql-editor.ql-blank::before { color: var(--color-text-tertiary); font-style: normal; }
.news-editor-main .ql-toolbar button:hover .ql-stroke, .news-editor-main .ql-toolbar button.ql-active .ql-stroke { stroke: var(--color-accent-hover); }
.news-editor-main .ql-toolbar button:hover .ql-fill, .news-editor-main .ql-toolbar button.ql-active .ql-fill { fill: var(--color-accent-hover); }
.news-manage-table { min-width: 920px; }
.news-manage-table__title-link { color: var(--table-entity-link-color); font-weight: var(--table-entity-font-weight); text-decoration: none; }
.news-manage-table__title-link:hover { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }
.news-manage-table__actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }
.news-manage-table__delete { min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--color-danger); font-size: var(--font-xs); cursor: pointer; }
.news-manage-table__delete:hover { text-decoration: underline; }
.news-view-count { min-width: 28px; padding: 2px 6px; border: 0; background: transparent; color: var(--color-text-primary); font: inherit; cursor: pointer; }
.news-view-count:focus-visible { border-radius: var(--radius-checkbox); outline: 2px solid var(--color-accent); outline-offset: 2px; }
.news-viewers-popover { position: fixed; z-index: 110; width: max-content; min-width: 220px; max-width: min(340px, calc(100vw - 24px)); max-height: 280px; padding: 10px 12px; overflow-y: auto; overscroll-behavior: none; border: 1px solid var(--color-border); border-radius: var(--radius-surface); background: var(--color-surface); color: var(--color-text-primary); box-shadow: var(--shadow-dropdown); }
.news-viewers-popover ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.news-viewers-popover li { display: grid; gap: 2px; }
.news-viewers-popover__person { display: grid; gap: 2px; width: 100%; padding: 6px 8px; border: 0; border-radius: var(--radius-option); background: transparent; color: var(--color-text-primary); font: inherit; text-align: left; cursor: pointer; }
.news-viewers-popover__person:hover, .news-viewers-popover__person:focus-visible { background: var(--color-surface-muted); outline: none; }
.news-viewers-popover__person strong { font-weight: 500; }
.news-viewers-popover__person span { color: var(--color-text-secondary); font-size: var(--font-xs); }
.news-article { width: min(900px, 100%); margin: 0 auto; }
.news-article__header { margin-bottom: 24px; text-align: center; }
.news-article__header time { display: block; margin-top: 10px; color: var(--color-text-tertiary); font-size: var(--font-xs); }
.news-article__header h1 { margin: 0; }
.news-article__header p { max-width: 720px; margin: 12px auto 0; color: var(--color-text-secondary); font-size: var(--font-lg); line-height: var(--line-lg); }
.news-article__category { display: inline-flex; margin-top: 10px; padding: 5px 10px; border-radius: var(--radius-status); background: var(--color-accent); color: var(--color-text-primary); font-size: var(--font-xs); font-weight: 600; text-transform: uppercase; }
.news-article__cover { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-surface); }
.news-article__content { max-width: 760px; margin: 32px auto 0; color: var(--color-text-primary); font-size: var(--font-base); line-height: 1.75; }
.news-article__content h2, .news-article__content h3, .news-article__content ul, .news-article__content ol { margin: 0; }
.news-article__content ul, .news-article__content ol { padding-left: 24px; }
.news-article__content blockquote { margin: 5px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--color-accent); color: var(--color-text-secondary); }
.news-article__content img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-surface); }
.news-article__content .is-align-center { text-align: center; }
.news-article__content .is-align-right { text-align: right; }
.news-card__title-link, .news-item__title-link { color: inherit; text-decoration: none; }
.news-card__title-link:hover, .news-item__title-link:hover { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .news-editor-layout { grid-template-columns: 1fr; }
  .news-editor-sidebar { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .news-cover-preview, .news-editor-sidebar .form-hint, .news-editor-actions { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .news-card { grid-template-columns: 1fr; }
  .news-card__media img { min-height: 220px; max-height: 260px; }
  .news-card__content { padding: 20px 0; }
  .news-item { align-items: flex-start; }
  .news-item__image { width: 112px; height: 76px; }
  .news-editor-main, .news-editor-sidebar { padding: 16px; }
  .news-editor-sidebar { grid-template-columns: 1fr; }
  .news-cover-preview, .news-editor-sidebar .form-hint, .news-editor-actions { grid-column: auto; }
  .news-editor-actions { align-items: stretch; flex-direction: column-reverse; }
  .news-editor-actions .button { width: 100%; }
  .news-article__header { text-align: left; }
  .news-article__header p { font-size: var(--font-base); line-height: var(--line-base); }
  .news-article__content { margin-top: 24px; }
}
