.news-admin {
    display: block;
    min-width: 0;
    padding: 24px;
    color: #172436;
    background: #eef2f7;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}
.news-admin [hidden] { display: none !important; }
.news-admin .news-container { max-width: 1440px; width: 100%; max-height: none; overflow: clip; margin: 0 auto; border-radius: 12px; box-shadow: 0 6px 28px #1724360c; }
.news-admin .news-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 32px; text-align: left; background: #26374a; }
.news-header h1 { margin: 10px 0 6px; font-size: 25px; letter-spacing: -.4px; }
.news-header p { color: #d0dbe6; opacity: 1; }
.news-header a { color: #e2ecf5; text-decoration: none; }
.news-header a:hover { text-decoration: underline; }
.news-back-link { font-size: 13px; }
.news-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.news-header-actions button { padding: 9px 12px; border: 1px solid #6c7c8e; background: transparent; color: #fff; border-radius: 6px; font: inherit; cursor: pointer; }
.news-content { padding: 28px 32px 32px; }
.news-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.news-section-heading h2 { font-size: 23px; margin: 0 0 6px; letter-spacing: -.3px; }
.news-section-heading p { font-size: 13px; color: #5d6d80; margin: 0; }
.news-admin button, .news-admin input, .news-admin textarea, .news-admin select { font-family: inherit; }
.news-admin button { touch-action: manipulation; }
.news-admin button:focus-visible, .news-admin a:focus-visible { outline: 3px solid #3e76cb; outline-offset: 3px; }
.news-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 600; line-height: 1.4; text-decoration: none; cursor: pointer; }
.news-button-primary { color: #fff; background: #315fc2; border-color: #315fc2; }
.news-button-primary:hover:not(:disabled) { background: #244d9f; }
.news-button-secondary { color: #26374a; background: #fff; border-color: #c8d2df; }
.news-button-secondary:hover:not(:disabled) { background: #f4f7fb; }
.news-button:disabled, .news-format-toolbar button:disabled { opacity: .55; cursor: wait; }
.news-text-button { padding: 5px 0; border: 0; color: #315fc2; background: none; font-size: 13px; text-align: left; cursor: pointer; }
.news-text-button:hover { text-decoration: underline; }
.news-filters { display: grid; grid-template-columns: minmax(150px,1fr) minmax(170px,1fr) auto; align-items: end; gap: 14px; padding: 18px; background: #f5f7fb; border: 1px solid #e0e6ef; border-radius: 9px; margin-bottom: 18px; }
.news-field { min-width: 0; margin-bottom: 18px; }
.news-filters .news-field { margin-bottom: 0; }
.news-field label { display: block; font-size: 13px; font-weight: 600; color: #26374a; margin-bottom: 7px; }
.news-field input:not([type='checkbox']), .news-field select, .news-field textarea { display: block; width: 100%; min-height: 42px; margin: 0; padding: 10px 12px; border: 1px solid #c8d2df; border-radius: 6px; background: #fff; color: #172436; font-size: 14px; line-height: 1.5; }
.news-field input:focus, .news-field select:focus, .news-field textarea:focus { outline: 2px solid #315fc22e; outline-offset: 1px; border-color: #315fc2; }
.news-field textarea { resize: vertical; }
.news-field input[type='file'] { font-size: 13px; padding: 8px; }
.news-field input[type='file']::file-selector-button { margin-right: 10px; padding: 6px 9px; border: 1px solid #c8d2df; border-radius: 4px; background: #f5f7fb; color: #26374a; font: inherit; cursor: pointer; }
.news-help { margin: 7px 0 0; color: #5d6d80; font-size: 12px; line-height: 1.55; }
.news-loading { padding: 32px; text-align: center; color: #5d6d80; font-size: 14px; }
.news-empty { padding: 48px 24px; background: #f7f9fc; border: 1px dashed #c8d2df; border-radius: 9px; text-align: center; }
.news-empty h3 { font-size: 18px; margin-bottom: 9px; }
.news-empty p { color: #5d6d80; font-size: 14px; margin-bottom: 18px; }
.news-articles { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.news-list-item { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid #e0e6ef; border-radius: 9px; background: #fff; }
.news-list-image { width: 106px; height: 72px; object-fit: cover; border-radius: 6px; background: #e9eef5; flex: 0 0 auto; }
.news-list-info { flex: 1; min-width: 0; }
.news-list-title { display: inline; border: 0; padding: 0; background: none; color: #172436; font-size: 16px; font-weight: 600; text-align: left; line-height: 1.45; cursor: pointer; overflow-wrap: anywhere; }
.news-list-title:hover { color: #315fc2; text-decoration: underline; }
.news-list-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin-top: 9px; font-size: 12px; color: #5d6d80; }
.news-list-excerpt { margin-top: 6px; color: #5d6d80; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-status { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.news-status-draft { color: #526277; background: #edf0f5; }
.news-status-scheduled { color: #845516; background: #fff2d5; }
.news-status-published { color: #196346; background: #e1f3eb; }
.news-status-archived { color: #625674; background: #eee9f5; }
.news-status-expired { color: #7d4e31; background: #f5e9df; }
.news-featured-label { font-weight: 600; color: #72521b; }
.news-pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; color: #5d6d80; font-size: 13px; }
.news-notice { padding: 13px 16px; margin-bottom: 22px; border-radius: 7px; border: 1px solid #bbd9c8; background: #eaf7f0; color: #1a5d40; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.news-notice[data-kind='error'] { border-color: #edc5c5; background: #fff0f0; color: #943d3d; }
.news-notice[data-kind='info'] { border-color: #c8d8f0; background: #eef4fc; color: #31558b; }
.news-notice p { margin: 0; }
.news-notice .news-button, .news-notice a { margin-top: 10px; margin-right: 10px; }
.news-field-error { margin: 7px 0 0; color: #943d3d; font-size: 12px; line-height: 1.5; }
.news-field [aria-invalid='true'] { border-color: #b64a4a; }
.news-editor-heading { align-items: flex-start; }
.news-editor-heading h2 { margin-top: 8px; }
.news-editor-fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.news-editor-grid { display: grid; grid-template-columns: minmax(0,1fr) 295px; gap: 22px; }
.news-writing-column, .news-settings-column { min-width: 0; display: grid; align-content: start; gap: 20px; }
.news-panel { min-width: 0; padding: 22px; border: 1px solid #dce3ed; border-radius: 9px; background: #fff; }
.news-panel h3 { margin: 0 0 19px; color: #26374a; font-size: 16px; }
.news-panel .news-field:last-child { margin-bottom: 0; }
.news-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.news-optional { color: #64748b; font-size: 12px; }
.news-checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; color: #26374a; margin: 10px 0; cursor: pointer; }
.news-checkbox input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: #315fc2; }
.news-settings-column .news-help { margin-bottom: 16px; }
.news-full-width { width: 100%; margin-bottom: 10px; }
.news-archive { color: #914343; margin-top: 10px; }
.news-format-toolbar { display: flex; flex-wrap: wrap; gap: 3px; padding: 6px; border: 1px solid #c8d2df; border-bottom: 0; border-radius: 6px 6px 0 0; background: #f5f7fb; }
.news-format-toolbar button { min-height: 34px; padding: 6px 10px; border: 0; border-radius: 4px; background: transparent; color: #33465c; font: inherit; font-size: 12px; cursor: pointer; }
.news-format-toolbar button:hover { background: #e6edf6; }
.news-field .news-body-input { border-radius: 0 0 6px 6px; font-size: 14px; line-height: 1.7; min-height: 340px; }
.news-format-help { margin-top: 12px; color: #526277; font-size: 12px; line-height: 1.8; }
.news-format-help summary { cursor: pointer; color: #315fc2; }
.news-format-help p { margin-top: 8px; }
.news-format-help code { font-size: 12px; background: #f1f4f8; padding: 1px 3px; border-radius: 3px; }
.news-cover-preview { margin-bottom: 17px; display: flex; gap: 16px; align-items: flex-start; }
.news-cover-preview img { display: block; width: min(300px,65%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: #e9eef5; }
.news-editor-footer { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0 0; margin-top: 24px; border-top: 1px solid #dce3ed; background: #fff; }
.news-editor-footer p { color: #5d6d80; font-size: 12px; line-height: 1.5; }
.news-editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.news-preview-dialog { width: min(850px,calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; border: 1px solid #c8d2df; border-radius: 12px; background: #fff; color: #172436; box-shadow: 0 18px 70px #09132444; overflow: auto; }
.news-preview-dialog::backdrop { background: #14223699; }
.news-preview-toolbar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; border-bottom: 1px solid #dce3ed; background: #f5f7fb; }
.news-preview-toolbar p { font-size: 13px; font-weight: 600; }
.news-preview-toolbar p span { font-size: 12px; font-weight: 400; color: #5d6d80; }
.news-preview-article { padding: 28px 36px 40px; }
.news-preview-cover { width: 100%; max-height: 370px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.news-preview-meta { display: flex; gap: 14px; color: #526277; font-size: 12px; margin-bottom: 12px; }
.news-preview-article h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.5px; margin: 0 0 16px; overflow-wrap: anywhere; }
.news-preview-excerpt { color: #526277; font-size: 17px; line-height: 1.6; margin: 0 0 24px; }
.news-article-body { color: #26374a; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.news-article-body p, .news-article-body ul, .news-article-body ol, .news-article-body blockquote { margin: 0 0 16px; }
.news-article-body ul, .news-article-body ol { padding-left: 25px; }
.news-article-body h2 { font-size: 23px; line-height: 1.35; margin: 28px 0 12px; }
.news-article-body h3 { font-size: 19px; margin: 22px 0 10px; }
.news-article-body a { color: #315fc2; text-decoration: underline; }
.news-article-body pre { max-width: 100%; padding: 12px; overflow: auto; background: #eef2f7; border-radius: 5px; }
.news-article-body code { font-family: ui-monospace, monospace; font-size: .92em; }
.news-article-body blockquote { padding-left: 16px; border-left: 3px solid #c8d2df; color: #526277; }
@media (max-width: 1050px) {
    .news-admin { padding: 14px; }
    .news-admin .news-header { padding: 23px; align-items: flex-start; }
    .news-header-actions { max-width: 285px; gap: 12px; }
    .news-content { padding: 24px; }
    .news-filters { grid-template-columns: 1fr 1fr; }
    .news-editor-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 16px; }
    .news-panel { padding: 18px; }
}
@media (max-width: 760px) {
    .news-admin { padding: 0; }
    .news-admin .news-container { border-radius: 0; }
    .news-admin .news-header { display: block; padding: 20px; }
    .news-header-actions { max-width: none; justify-content: flex-start; margin-top: 18px; }
    .news-content { padding: 22px 18px; }
    .news-section-heading { align-items: flex-start; }
    .news-editor-grid { grid-template-columns: 1fr; }
    .news-settings-column { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .news-list-image { width: 70px; height: 62px; }
    .news-list-item { gap: 12px; padding: 14px; align-items: flex-start; }
    .news-list-item > .news-button { display: none; }
    .news-editor-footer { padding-bottom: 12px; }
    .news-preview-toolbar { padding: 12px 16px; }
    .news-preview-toolbar p span { display: none; }
    .news-preview-article { padding: 22px; }
}
@media (max-width: 480px) {
    .news-header-actions { font-size: 12px; gap: 12px 16px; }
    .news-section-heading { flex-wrap: wrap; gap: 14px; }
    .news-section-heading h2 { font-size: 21px; }
    .news-filters { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
    .news-search-field { grid-column: 1 / -1; }
    .news-filters .news-button { grid-column: 1 / -1; }
    .news-settings-column { grid-template-columns: 1fr; }
    .news-panel { padding: 16px; }
    .news-editor-footer { position: static; display: block; }
    .news-editor-actions { justify-content: flex-start; margin-top: 12px; }
    .news-preview-toolbar { align-items: flex-start; }
    .news-preview-article { padding: 20px 17px; }
    .news-preview-article h1 { font-size: 25px; }
    .news-cover-preview { flex-direction: column; }
    .news-cover-preview img { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .news-admin *, .news-admin *::before, .news-admin *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
