/*! EchoHaber R1033 | Shared theme surface and compact layout | ECHOBILISIM-ECHOHABER */
/* Only application-owned UI; never recolor news images, embeds, logos or print. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) {
    --eh-positive-bg:#16352b;--eh-positive-fg:#a7f3d0;--eh-positive-line:#376b55;
    --eh-negative-bg:#3b2228;--eh-negative-fg:#fecaca;--eh-negative-line:#80505a;
    --eh-caution-bg:#382c1a;--eh-caution-fg:#fde68a;--eh-caution-line:#806334;
    --eh-info-bg:#1b304a;--eh-info-fg:#bfdbfe;--eh-info-line:#42658c;
    color-scheme:dark;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.alert-success,.security-state.good,.news-live-chip,.badge-live,.home-newsroom-primary-badge-live,.market-info-card.is-up .market-info-change,.comment-form-feedback.is-success,.live-admin-emergency-feedback.is-success,.editor-video-upload-state.is-success,.editor-speech-status-card.is-success,.cron-health-badge.is-healthy,.cron-inline-state.is-healthy) {
    background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.alert-error,.btn-danger,.security-card-icon.danger,.market-info-card.is-down .market-info-change,.comment-form-feedback.is-error,.live-admin-emergency-feedback.is-error,.editor-video-upload-state.is-error,.editor-speech-status-card.is-error,.cron-health-badge.is-danger,.cron-inline-state.is-danger,.news-management-action-count,.payout-state-message.is-locked,.verify-email-confirm-card.is-invalid .verify-email-confirm-kicker) {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.alert-warning,.message-disabled-notice,.payout-policy-chips .is-warning,.payout-state-message:not(.is-locked),.premium-pending-banner,.premium-pending-banner>span,.cron-health-badge.is-warning,.cron-inline-state.is-warning,.weather-settings-icon,.admin-error-icon) {
    background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.alert-info,.comment-form-feedback.is-info,.live-admin-emergency-feedback.is-info) {
    background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;border-color:var(--eh-info-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.editor-video-upload-state,.editor-speech-status-card,.premium-pending-banner,.payout-state-message) :is(strong,small,p) {color:inherit!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .live-broadcast-human-gate .live-broadcast-start {
    background:#26354b!important;color:#f8fafc!important;border:1px solid #64748b!important;box-shadow:none!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .live-broadcast-human-gate .live-broadcast-start:hover {background:#34465f!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .live-broadcast-human-gate .live-broadcast-start .ui-icon {color:#fca5a5!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.panel-content,.profile-content,.rich-editor,.search-page) :is(input,textarea,select):not([type="color"]) {color-scheme:dark}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.panel-content,.profile-content,.rich-editor,.search-page) :is(input,textarea)::placeholder {color:var(--muted,#a1adc0);opacity:1}
  /* Article series uses legacy variable names elsewhere; use the actual theme tokens here. */
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .article-series-strip {
    background:var(--surface,#101828)!important;border-color:var(--line,#334155)!important;color:var(--text,#d0d5dd)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .article-series-strip__icon {
    background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .article-series-strip__copy small {color:var(--eh-info-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .article-series-strip__copy strong {color:var(--ink,#f8fafc)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .article-series-strip__copy span {color:var(--muted,#a1adc0)!important}
  /* Account and panel notices: keep buttons independent and preserve the status semantics. */
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.verification-banner,.system-update-banner) {
    background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.verification-banner,.system-update-banner) :is(strong,small,p) {color:inherit!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.verification-banner-icon,.system-update-banner-icon) {background:transparent!important;color:var(--eh-caution-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .verify-email-confirm-card.is-invalid .verify-email-confirm-hero {
    background:linear-gradient(180deg,var(--eh-negative-bg),var(--surface,#101828))!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.verify-email-confirm-card.is-invalid .verify-email-confirm-icon,.market-error,.market-change.is-down,.live-editor-launch>span,.live-creation-mode-card>span) {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-card.active {
    background:var(--eh-positive-bg)!important;border-color:var(--eh-positive-line)!important;color:var(--eh-positive-fg)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-card.active :is(strong,div>span) {color:var(--eh-positive-fg)!important}
  /* Keep native browser widgets, root canvas and scrollbars in the resolved theme. */
  html[data-resolved-theme="dark"] {color-scheme:dark}
  html[data-resolved-theme="light"] {color-scheme:light}
  .article-series-strip__copy :is(strong,span),:is(.verification-banner,.system-update-banner)>div {min-width:0;overflow-wrap:anywhere}
  :is(.verification-banner,.system-update-banner)>:is(form,a) {max-width:100%;min-width:0}
  @media(max-width:600px) {
    .article-series-strip {gap:9px;padding:11px 12px;border-radius:12px}
    .article-series-strip>.btn {white-space:normal;text-align:center;min-height:40px}
    :is(.verification-banner,.system-update-banner) {gap:9px;padding:11px 12px;align-items:stretch}
    :is(.verification-banner,.system-update-banner)>:is(form,a),.verification-banner form>.btn {width:100%}
    :is(.verification-banner,.system-update-banner) .btn {white-space:normal;text-align:center;min-height:40px}
  }
  /* Compact layout, without changing table scrolling or minimum touch targets. */
  :where(.panel-body) :is(.panel-head,.page-title-row,.panel-actions,.page-actions,.filter-bar) {gap:8px 12px;min-width:0}
  :where(.panel-body) :is(.panel-head,.page-title-row) > * {min-width:0;max-width:100%}
  :is(.profile-content,.account-overview-panel,.profile-action-center) :is(.account-overview-heading,.profile-action-center-head) > * {min-width:0;max-width:100%}
  :is(.profile-action-center-card,.account-publisher-summary,.account-premium-summary,.account-referral-summary,.profile-saved-search-item,.profile-application-status) :is(strong,small,em) {overflow-wrap:anywhere;min-width:0}
  :is(.payout-state-message,.premium-pending-banner,.comment-form-feedback,.editor-video-upload-state,.editor-speech-status-card) {min-width:0;overflow-wrap:anywhere}
  :is(.editor-video-upload-state,.editor-speech-status-card) > div {min-width:0;max-width:100%}
  :is(.editor-video-upload-state,.editor-speech-status-card) :is(strong,small,p) {min-width:0;white-space:normal;overflow-wrap:anywhere}
  :is(.panel-body,.profile-content,.account-overview-panel,.profile-action-center) :is(a,button,input,select,textarea):focus-visible {outline:2px solid var(--link,#60a5fa);outline-offset:2px}
  @media (max-width:600px) {
    :where(.panel-body) :is(.panel-head,.page-title-row,.panel-actions,.page-actions,.filter-bar) {gap:8px}
    .panel-body .panel-head:has(>.panel-actions) {display:flex;flex-wrap:wrap;align-items:flex-start}
    .panel-body .panel-head:has(>.panel-actions)>:first-child {flex:1 1 12rem}
    .panel-body .panel-head>.panel-actions {flex:0 1 auto;max-width:100%}
    :where(.panel-body) :is(.panel-actions,.page-actions,.form-actions,.filter-bar) > * {min-width:0;max-width:100%}
    :is(.payout-state-message,.premium-pending-banner,.comment-form-feedback) {padding:10px;gap:8px}
    :is(.profile-action-center-card,.profile-saved-search-item,.profile-application-status) > * {min-width:0;max-width:100%}
  }
}

/* R1032: application chrome only; preserve media, advertiser creative and brand previews. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-save-icon {
    background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.skip-link,.news-video-ad-head>span) {
    background:#26354b!important;color:#f8fafc!important;border-color:#64748b!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark).panel-body .panel-sidebar nav a.active {
    background:#243653!important;color:#e8f0ff!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark).panel-body .panel-sidebar nav a.active :is(.panel-nav-text,.panel-nav-icon) {color:inherit!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark).panel-body .panel-sidebar nav a.active .panel-nav-count {
    background:#344d70!important;color:#f8fafc!important;border:1px solid #64748b!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.news-series-admin-item,.article-facts__row) {border-color:var(--line,#293548)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.news-series-admin-icon,.article-facts__icon) {background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important}
  .news-series-admin-copy :is(strong,p,small),.news-series-title-row :is(h1,p) {overflow-wrap:anywhere;min-width:0}
  .news-series-admin-actions,.news-series-admin-actions form {min-width:0;max-width:100%}
  @media(max-width:600px) {
    .news-series-admin-grid {gap:10px;min-width:0}
    .news-series-admin-item {padding:10px;gap:8px;grid-template-columns:36px minmax(0,1fr)}
    .news-series-admin-icon {width:36px;height:36px}
    .news-series-admin-actions {grid-column:1/-1;padding-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .news-series-admin-actions :is(.btn,form) {width:100%;min-width:0;max-width:100%}
    .news-series-admin-actions .btn {min-height:40px;white-space:normal;text-align:center;justify-content:center}
    .news-series-admin-actions form:last-child {grid-column:1/-1}
    .news-series-admin-stats {gap:6px 10px}
  }
  @media(forced-colors:active) {
    .panel-body .panel-sidebar nav a.active {outline:2px solid Highlight;outline-offset:-2px}
  }
}

/* R1033: checked/unchecked settings, public account status and market indicators. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.theme-settings-page-v2 .theme-toggle-state .is-on,.market-change.is-up,.status.status-active) {
    background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-settings-page-v2 .theme-toggle-state .is-off {
    background:var(--soft,#1e293b)!important;color:var(--text,#d0d5dd)!important;border-color:var(--line,#334155)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-settings-page-v2 .theme-setting-toggle>input:not(:checked)+.theme-toggle-switch {
    background:#34465f;box-shadow:inset 0 0 0 1px #64748b;
  }
  /* Keep the switch thumb bright as a functional control, not a page surface. */
  .theme-settings-page-v2 .theme-setting-toggle {min-height:68px;gap:10px;padding:11px 12px;border-radius:12px}
  .theme-settings-page-v2 .theme-toggle-copy :is(strong,small) {overflow-wrap:anywhere}
  .theme-settings-page-v2 .theme-setting-toggle:has(input:focus-visible) {outline:2px solid var(--link,#60a5fa);outline-offset:2px}
  @media(max-width:600px) {
    .theme-settings-page-v2 .theme-setting-toggle {grid-template-columns:52px minmax(0,1fr);gap:5px 10px;padding:10px;min-height:68px}
    .theme-settings-page-v2 .theme-toggle-switch {grid-column:1;grid-row:1 / span 2;align-self:start;margin-top:2px}
    .theme-settings-page-v2 .theme-toggle-copy {grid-column:2;grid-row:1}
    .theme-settings-page-v2 .theme-toggle-state {grid-column:2;grid-row:2;justify-content:flex-start;min-width:0;padding:0}
    .theme-settings-page-v2 .theme-toggle-state b {min-height:22px;padding:4px 7px}
    .theme-settings-page-v2 .theme-option-card {padding:12px;gap:12px}
    .theme-settings-page-v2 .theme-range-grid {grid-template-columns:minmax(0,1fr)}
  }
  @media(forced-colors:active) {
    .theme-settings-page-v2 .theme-setting-toggle:has(input:focus-visible) {outline:2px solid Highlight}
  }
}

/* R1034: a full-width empty result is not a label/value mobile card cell.
   Keep native table semantics on desktop and horizontal-scroll tables. */
@media screen {
  .panel-body .table-wrap table tbody tr.table-empty-row > td[colspan] {
    text-align:center!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
    padding:10px!important;
    border:0!important;
  }
  .panel-body .table-wrap table tbody tr.table-empty-row > td[colspan] > .empty-state {
    box-sizing:border-box;
    width:100%;min-width:0;max-width:100%;
    margin:0!important;padding:clamp(16px,4vw,28px) 12px!important;
    border-radius:12px;min-height:0;
    background:var(--surface);border-color:var(--line);
    white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
  }
  .panel-body .table-wrap table tbody tr.table-empty-row > td[colspan] > .empty-state :is(h2,h3,p) {
    width:auto;min-width:0;max-width:100%;margin-inline:auto;
    white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important;
    text-align:center!important;
  }
  .panel-body .table-wrap table tbody tr.table-empty-row > td[colspan] > .empty-state h3 {
    margin-block:0 6px;color:var(--ink);line-height:1.35;font-size:15px;
  }
  .panel-body .table-wrap table tbody tr.table-empty-row > td[colspan] > .empty-state p {
    margin-block:0;color:var(--muted);line-height:1.5;font-size:13px;max-width:52ch;
  }
  /* Dedicated card layouts switch at different widths; the ordinary table
     fallback must retain table-cell display above its own breakpoint. */
  @media(max-width:1240px) {
    .panel-body .table-wrap table.news-list-table tbody tr.table-empty-row {grid-template-columns:minmax(0,1fr)!important}
    .panel-body .table-wrap table.news-list-table tbody tr.table-empty-row > td[colspan] {grid-column:1/-1!important}
  }
  @media(max-width:1100px) {
    .panel-body .payout-table-panel .mobile-card-table table tbody tr.table-empty-row > td[colspan] {display:block!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important}
    .panel-body .payout-table-panel .mobile-card-table table tbody tr.table-empty-row > td[colspan]::before {content:none!important;display:none!important}
  }
  @media(max-width:900px) {
    .panel-body .earnings-table-panel .mobile-card-table table tbody tr.table-empty-row > td[colspan] {display:block!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important}
    .panel-body .earnings-table-panel .mobile-card-table table tbody tr.table-empty-row > td[colspan]::before {content:none!important;display:none!important}
  }
  @media(max-width:760px) {
    .panel-body .table-wrap table:is(.admin-responsive-table,.news-list-table) tbody tr > td[colspan]:only-child,
    .panel-body :is(.newsletter-responsive-table,.broadcast-history-panel .table-wrap) table tbody tr.table-empty-row > td[colspan] {
      display:block!important;grid-column:1/-1!important;grid-template-columns:minmax(0,1fr)!important;
      width:100%!important;max-width:100%!important;min-width:0!important;padding:4px!important;
      border:0!important;text-align:center!important;
    }
    .panel-body .table-wrap table:is(.admin-responsive-table,.news-list-table) tbody tr > td[colspan]:only-child::before,
    .panel-body :is(.newsletter-responsive-table,.broadcast-history-panel .table-wrap) table tbody tr.table-empty-row > td[colspan]::before {content:none!important;display:none!important}
    .panel-body .table-wrap table.admin-responsive-table tbody tr.table-empty-row {padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
    /* Multi-line values must not flow back into the label column. */
    .admin-body .table-wrap table.admin-responsive-table tbody tr > td:not([colspan]):has(> :nth-child(2)) {
      display:block!important;min-width:0!important;white-space:normal!important;overflow-wrap:break-word!important;
    }
    .admin-body .table-wrap table.admin-responsive-table tbody tr > td:not([colspan]):has(> :nth-child(2))::before {display:block!important;margin-bottom:5px!important}
  }
  @media(max-width:720px) {
    .panel-body .mobile-card-table table tbody tr.table-empty-row > td[colspan] {display:block!important;grid-column:1/-1!important;width:100%!important;max-width:100%!important;min-width:0!important}
    .panel-body .mobile-card-table table tbody tr.table-empty-row > td[colspan]::before {content:none!important;display:none!important}
  }
  @media(max-width:760px) {
    .admin-body form.premium-order-filter {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
    .admin-body form.premium-order-filter > select {grid-column:1/-1!important}
    .admin-body form.premium-order-filter > :is(button,a) {min-width:0!important;min-height:44px;white-space:normal;text-align:center;justify-content:center}
  }
}
@media screen and (max-width:760px) {
  .admin-body .premium-orders-table table.admin-responsive-table .premium-order-actions {margin:0!important;max-width:100%!important}
}

/* R1036 — one filter layout, actual DOM order matches keyboard order. */
@media screen {
  .admin-body form.eh-filter-form.eh-filter-form {
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))!important;
    align-items:end!important;gap:8px!important;padding:12px!important;
    min-width:0;max-width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);
  }
  .admin-body form.eh-filter-form.eh-filter-form > :is(input:not([type=hidden]),select,label:not(.sr-only),.eh-filter-actions) {
    grid-column:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;
  }
  .admin-body form.eh-filter-form > label:not(.sr-only) {min-width:0;max-width:100%}
  .admin-body form.eh-filter-form input:not([type=hidden]),.admin-body form.eh-filter-form select {
    min-width:0!important;max-width:100%!important;min-height:44px;width:100%;box-sizing:border-box;
  }
  .admin-body form.eh-filter-form.eh-filter-form > .eh-filter-actions {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important;
  }
  .admin-body form.eh-filter-form .eh-filter-actions > .btn {
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
    min-width:0!important;max-width:100%!important;width:100%!important;min-height:44px!important;height:auto!important;
    grid-column:auto!important;grid-row:auto!important;margin:0!important;padding:9px 7px!important;font-size:13px;line-height:1.25;white-space:normal!important;text-align:center;overflow-wrap:break-word;
  }
  .admin-body form.eh-filter-form .eh-filter-actions > .btn .ui-icon {flex:0 0 auto;width:15px;height:15px}
  .admin-body form.eh-filter-form .eh-filter-date {display:grid;gap:4px;font-size:12px;font-weight:650;color:var(--muted)}
  .admin-body form.eh-filter-form .eh-filter-actions > .btn:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  @media(min-width:761px) {
    .admin-body form.eh-filter-form.eh-filter-form > .eh-filter-actions {grid-column:span 2!important}
  }
  @media(max-width:760px) {
    .admin-body form.eh-filter-form.eh-filter-form {grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:10px!important}
    .admin-body form.eh-filter-form.eh-filter-form > :is(input:not([type=hidden]),label:not(.sr-only),select,.eh-filter-actions) {grid-column:1/-1!important}
    .admin-body form.eh-filter-form.eh-filter-form > .eh-filter-date {grid-column:auto!important}
  }
  @media(max-width:400px) {
    .admin-body form.eh-filter-form.eh-filter-form > .eh-filter-date {grid-column:1/-1!important}
  }
  /* Dedicated mobile lists have their own breakpoints; only adjust cells once stacked. */
  @media(max-width:720px) {
    .panel-body .table-wrap.mobile-card-table table tbody tr > td:not([colspan]):has(> :nth-child(2)) {
      display:block!important;text-align:start!important;min-width:0!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere;
    }
    .panel-body .table-wrap.mobile-card-table table tbody tr > td:not([colspan]):has(> :nth-child(2))::before {display:block!important;margin-bottom:5px!important;text-align:start!important}
    .panel-body .table-wrap.mobile-card-table table tbody tr > td:not([colspan]) > :is(form,div,small,strong,a) {min-width:0;max-width:100%;overflow-wrap:anywhere}
    .panel-body .table-wrap.mobile-card-table table tbody tr > td[colspan]:only-child {display:block!important;width:100%!important;max-width:100%!important;text-align:center!important;min-width:0!important;word-break:normal!important;overflow-wrap:break-word!important}
    .panel-body .table-wrap.mobile-card-table table tbody tr > td[colspan]:only-child::before {content:none!important;display:none!important}
  }
  /* Application-owned light surfaces found during the palette scan. */
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.weather-settings-icon,.admin-error-icon) {
    background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .publisher-create-menu.is-open .publisher-create-glyph-plus {
    background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;border-color:var(--eh-info-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .verify-email-confirm-card.is-invalid .verify-email-confirm-kicker {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .payout-state-message.is-locked {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .eh-filter-form :is(select,input:not([type=hidden])) {
    color-scheme:dark;background-color:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .eh-filter-form select option {background:var(--surface);color:var(--ink)}
}

@media screen and (max-width:760px) {
  /* Ledger and account Premium history had remained horizontal-scroll tables. */
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table {
    display:block!important;width:100%!important;min-width:0!important;max-width:100%;border:0!important;background:transparent!important;
  }
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table > thead {
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  }
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table > tbody {
    display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;gap:8px;padding:4px;
  }
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table > tbody > tr {
    display:block!important;width:100%;min-width:0;max-width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin:0;
  }
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table > tbody > tr > td {
    display:block!important;width:100%!important;min-width:0!important;max-width:100%;padding:7px 0!important;text-align:start!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;border:0!important;border-bottom:1px solid var(--line)!important;
  }
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table > tbody > tr > td:last-child {border-bottom:0!important}
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table td[data-label]::before {content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:3px}
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table td[colspan]:only-child {text-align:center!important}
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table td[colspan]:only-child::before {content:none!important;display:none!important}
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table td > :is(strong,small,a) {max-width:100%;overflow-wrap:anywhere;white-space:normal}
  :is(.panel-body,.page-user-panel,.dashboard-public) table.eh-mobile-table td > small {display:block;color:var(--muted)}
}

/* R1038: update workflow, home labels and video controls in resolved dark mode.
   Prefer the resolved theme (including system preference); keep media itself intact. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .pending-update.update-package-ready {
    background:var(--eh-positive-bg)!important;border-color:var(--eh-positive-line)!important;color:var(--eh-positive-fg)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .update-package-ready > p {color:var(--eh-positive-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .update-package-meta > span {
    background:var(--surface,#111827)!important;border-color:var(--line,#334155)!important;color:var(--ink,#f8fafc)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.recommended-lead-badge,.home-newsroom-primary-badge:not(.home-newsroom-primary-badge-live),.home-page-pro .category-video-play,.home-video-play-badge,.headline-controls>button:hover,.headline-controls>button:focus-visible) {
    background:#26354b!important;color:#f8fafc!important;border-color:#64748b!important;box-shadow:none!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.recommended-lead-badge,.home-newsroom-primary-badge:not(.home-newsroom-primary-badge-live)) svg {color:#bfdbfe!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .premium-plan-card li .ui-icon {color:var(--eh-positive-fg)!important}
  /* Long build labels and package metadata must wrap without squeezing buttons. */
  .update-package-ready-head {flex-wrap:wrap;min-width:0}
  .update-package-ready-head > strong {min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.35;font-size:clamp(16px,2vw,22px)}
  .update-package-ready .update-package-meta > span,.update-package-ready .update-retention-note > span {min-width:0;max-width:100%;overflow-wrap:anywhere}
  .update-package-ready .update-retention-note {margin:4px 0;gap:8px}
  .update-package-ready form,.update-package-ready form > .btn {min-width:0;max-width:100%;white-space:normal}
  .update-package-ready form > .btn {min-height:44px!important;line-height:1.35;text-align:center}
  :is(.recommended-lead-badge-group,.home-newsroom-primary-badge-group) {max-width:calc(100% - 28px);min-width:0}
  :is(.recommended-lead-badge-group,.home-newsroom-primary-badge-group)>b {max-width:100%;white-space:normal;overflow-wrap:break-word}
  @media(max-width:600px) {
    .update-package-ready {padding:11px;gap:9px}
    .update-package-ready .update-package-meta {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .update-package-ready .update-package-meta > span {padding:8px}
    .update-package-ready .update-package-meta strong {font-size:12px;line-height:1.4}
    .update-package-ready form > .btn {min-height:44px;line-height:1.35;text-align:center}
  }
  @media(max-width:360px) {
    .update-package-ready .update-package-meta {grid-template-columns:minmax(0,1fr)}
  }
}

/* R1039: editorial revision text remains readable in resolved dark mode. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.review-revision-legend .is-added,.review-revision-diff ins) {
    color:var(--eh-positive-fg)!important;background:var(--eh-positive-bg)!important;border-color:var(--eh-positive-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.review-revision-legend .is-removed,.review-revision-diff del) {
    color:var(--eh-negative-fg)!important;background:var(--eh-negative-bg)!important;border-color:var(--eh-negative-line)!important;
  }
  .review-revision-field summary {flex-wrap:wrap;overflow-wrap:anywhere;min-width:0}
  .review-revision-field summary b {white-space:normal;max-width:100%;overflow-wrap:anywhere}
  .review-revision-legend>span {max-width:100%;min-width:0;overflow-wrap:break-word}
  @media(max-width:600px) {
    .review-revision-panel {padding:10px;gap:8px}
    .review-revision-field summary {padding:9px 10px;min-height:44px;box-sizing:border-box}
    .review-revision-diff {font-size:12px;line-height:1.65}
  }
}

/* R1040: editorial analysis status contrast and compact, readable labels. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .seo-content-insight.is-ready {
    background:var(--eh-positive-bg)!important;border-color:var(--eh-positive-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .seo-content-insight.is-ready :is(i,em,b) {color:var(--eh-positive-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .seo-content-insight.is-warning {
    background:var(--eh-caution-bg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .seo-content-insight.is-warning :is(i,em,b) {color:var(--eh-caution-fg)!important}
  body.panel-body .seo-content-insight {grid-template-columns:auto minmax(0,1fr) auto;min-width:0;max-width:100%;gap:6px}
  body.panel-body .seo-content-insight :is(b,em) {min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.4}
  body.panel-body .seo-content-insight b {overflow:visible;text-overflow:clip}
  @media(max-width:480px) {
    body.panel-body .seo-content-insights {padding:10px;gap:8px}
    body.panel-body .seo-content-insight {grid-template-columns:24px minmax(0,1fr);padding:8px;align-items:center}
    body.panel-body .seo-content-insight i {width:24px;height:24px;grid-row:1/span 2}
    body.panel-body .seo-content-insight em {grid-column:2;text-align:start}
  }
}

/* R1041: consistent GET filter actions across publisher and reader panels. */
@media screen {
  form[method="get"] > .eh-reader-filter-actions {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-column:auto!important;gap:8px!important;align-items:stretch!important;
    min-width:0!important;width:100%!important;max-width:100%!important;margin:0!important;
  }
  form[method="get"] > .eh-reader-filter-actions > .btn {
    display:flex!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;
    min-height:44px!important;height:auto!important;margin:0!important;padding:8px 7px!important;
    gap:5px!important;text-align:center;white-space:normal!important;word-break:normal!important;
    overflow-wrap:break-word;line-height:1.3;
  }
  form[method="get"] > .eh-reader-filter-actions > a.btn {grid-column:1!important;grid-row:1!important;order:0!important}
  form[method="get"] > .eh-reader-filter-actions > button.btn {grid-column:2!important;grid-row:1!important;order:1!important}
  form[method="get"] > .eh-reader-filter-actions > .btn svg {flex-shrink:0}
  /* The action group replaces the two previous grid items; span the row on narrower panels. */
  .author-news-filter-v3734[method="get"] > .eh-reader-filter-actions {grid-column:span 2!important}
  .earnings-filter-form--advanced[method="get"] > .eh-reader-filter-actions {grid-column:1/-1!important}
  @media(max-width:1100px) {
    form[method="get"] > .eh-reader-filter-actions {grid-column:1/-1!important}
    .author-news-filter-v3734[method="get"] > .eh-reader-filter-actions {grid-column:1/-1!important}
  }
  @media(max-width:760px) {
    :is(.author-news-filter-v3734,.earnings-filter-form--advanced,.user-library-toolbar,.notification-filter-bar)[method="get"] {min-width:0!important;max-width:100%!important}
    :is(.author-news-filter-v3734,.earnings-filter-form--advanced,.user-library-toolbar,.notification-filter-bar)[method="get"] > label {min-width:0!important;max-width:100%!important}
  }
  :is(html[data-resolved-theme="dark"],body[data-theme="dark"],body.theme-dark) form[method="get"] > .eh-reader-filter-actions > a.btn-ghost {
    background:var(--surface)!important;border-color:var(--line)!important;color:var(--ink,var(--text))!important;
  }
}

/* R1042: public mid-roll container and compact system diagnostics. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .news-video-ad-body .ad-slot {
    background:var(--surface,#111827)!important;color:var(--ink,#f1f5f9)!important;border-color:var(--line,#334155)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .check-item.ok>span {
    background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .check-item.bad>span {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;
  }
  .admin-body .check-item {grid-template-columns:28px minmax(0,1fr) auto;gap:4px 8px;min-width:0;padding:9px}
  .admin-body .check-item :is(strong,small) {min-width:0;overflow-wrap:anywhere;word-break:normal;line-height:1.4}
  .admin-body .system-info>div {grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:4px 12px;padding:9px 0}
  .admin-body .system-info :is(dt,dd,code) {min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal;white-space:normal}
  @media(max-width:480px) {
    .admin-body .check-item {grid-template-columns:28px minmax(0,1fr)}
    .admin-body .check-item>span {grid-row:1/span 2}
    .admin-body .check-item>small {grid-column:2}
    .admin-body .system-info>div {grid-template-columns:minmax(0,1fr);gap:3px}
  }
}

/* R1043 — Content-width dashboard grids, readable flat cards and section shortcuts. */
@media screen {
  .eh-dashboard-jump {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 12px;padding:8px;border:1px solid var(--line,#d0d5dd);border-radius:10px;background:var(--surface,#fff);min-width:0;max-width:100%;box-sizing:border-box}
  .eh-dashboard-jump-label {font-size:12px;font-weight:700;color:var(--muted,#667085);padding-inline:4px}
  .eh-dashboard-jump>a {display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;min-width:0;padding:5px 10px;border:1px solid var(--line,#d0d5dd);border-radius:7px;color:var(--ink,var(--text,#101828));background:var(--soft,var(--surface,#fff));font-size:12px;font-weight:650;line-height:1.4;text-decoration:none;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
  .eh-dashboard-jump>a:hover {border-color:var(--brand,#2563eb);text-decoration:underline}
  .eh-dashboard-jump>a:focus-visible {outline:2px solid var(--brand,#2563eb);outline-offset:2px}
  :is(.admin-body,.author-panel-body,.profile-page-modern) :is(h2[id],#haberlerim) {scroll-margin-block-start:92px}
  .admin-body :is(.dashboard-quick-actions,.dashboard-priority-grid,.dashboard-publishing-health-grid),
  body.author-panel-body :is(.author-command-grid,.author-attention-grid,.author-content-health-grid,.author-seven-day-performance-grid),
  .profile-page-modern :is(.account-overview-grid,.profile-action-center-grid,.profile-follow-overview-grid,.profile-dashboard-welcome .profile-dashboard-quick-grid) {
    grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:8px!important;min-width:0;max-width:100%;
  }
  body.author-panel-body .author-content-health-grid>a:last-child:nth-child(odd) {grid-column:auto}
  .admin-body .dashboard-quick-action {grid-template-columns:32px minmax(0,1fr) auto;min-height:64px;padding:9px;gap:7px;border-radius:10px;box-shadow:none}
  .admin-body .dashboard-quick-action-icon {width:32px;height:32px;border-radius:8px}
  body.author-panel-body .author-command-grid>a {grid-template-columns:34px minmax(0,1fr);min-height:64px;padding:9px;gap:2px 8px;border-radius:10px;box-shadow:none}
  body.author-panel-body .author-command-grid>a>span {width:34px;height:34px;border-radius:8px}
  .admin-body .dashboard-quick-action-copy :is(strong,small),
  body.author-panel-body .author-command-grid :is(strong,small),
  body.author-panel-body :is(.author-attention-grid,.author-content-health-grid) :is(strong,small),
  .profile-page-modern :is(.profile-dashboard-quick-grid,.profile-follow-overview-grid,.account-overview-grid,.profile-action-center-grid) :is(strong,small,em) {
    min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;line-height:1.4;display:block;-webkit-line-clamp:unset;
  }
  .admin-body .dashboard-quick-action-copy strong,body.author-panel-body .author-command-grid strong {font-size:13px}
  .admin-body .dashboard-quick-action-copy small,body.author-panel-body .author-command-grid small,
  body.author-panel-body :is(.author-attention-grid,.author-content-health-grid) small,
  .profile-page-modern .profile-follow-overview-grid :is(small,em) {font-size:11px}
  :is(.admin-body .dashboard-quick-action,body.author-panel-body .author-command-grid>a,.profile-page-modern .profile-dashboard-quick-grid>a):focus-visible {outline:2px solid var(--brand,#2563eb);outline-offset:2px}
  .admin-body .dashboard-quick-action>b {font-size:11px;height:auto;min-height:24px;max-width:100%;overflow-wrap:anywhere}
  .profile-page-modern .profile-dashboard-quick-grid>a {min-height:64px;padding:9px}
  .home-page-pro :is(.home-section-head-pro,.home-category-head,.home-live-hub-head,.home-live-head-side) {min-width:0;max-width:100%;flex-wrap:wrap;gap:6px 10px}
  .home-page-pro :is(.home-section-head-pro,.home-category-head,.home-live-head-side)>* {min-width:0;max-width:100%;overflow-wrap:anywhere}
  @media(max-width:600px) {
    .eh-dashboard-jump {gap:5px;padding:7px}
    .eh-dashboard-jump-label {flex-basis:100%}
    .eh-dashboard-jump>a {min-height:44px;flex:1 1 125px}
  }
  @media(prefers-reduced-motion:reduce) {
    .admin-body .dashboard-quick-action:hover,body.author-panel-body .author-command-grid>a:hover {transform:none}
  }
}

/* R1044: responsive editorial agenda, accessible additional events and reader actions. */
@media screen {
  .news-editorial-calendar,.news-calendar-layout,.news-calendar-panel,.news-calendar-side {min-width:0;max-width:100%}
  .news-calendar-panel {container-type:inline-size;container-name:eh-calendar}
  .news-calendar-weekdays,.news-calendar-grid {min-width:0}
  .news-calendar-agenda-note,.news-calendar-agenda-empty,.news-calendar-full-date,.news-calendar-event-status {display:none}
  .news-calendar-agenda-empty[hidden] {display:none!important}
  .news-calendar-navigation>div {min-width:0}
  .news-calendar-navigation .icon-btn {flex-shrink:0;min-width:44px;min-height:44px}
  .news-calendar-stats article {min-width:0;min-height:66px;gap:8px;padding:10px;border-radius:10px}
  .news-calendar-stats article>span {flex:0 0 32px;width:32px;height:32px;border-radius:8px}
  .news-calendar-stats article>div {min-width:0;overflow-wrap:anywhere}
  .news-calendar-legend {flex-wrap:wrap;gap:6px 12px}
  .news-calendar-more {min-width:0;padding:0;font-size:12px}
  .news-calendar-more>summary {cursor:pointer;padding:7px 4px;color:var(--ink);overflow-wrap:anywhere;line-height:1.35}
  .news-calendar-more>summary:focus-visible,.news-calendar-event:focus-visible {outline:2px solid var(--brand);outline-offset:-2px}
  .news-calendar-extra-events {display:grid;gap:5px;margin-top:4px}
  .news-calendar-upcoming-list :is(strong,small),.news-calendar-density-list :is(strong,em) {min-width:0;overflow-wrap:anywhere}
  .news-calendar-upcoming-list>.empty-state.small {min-height:0;padding:16px 12px;margin:0;overflow-wrap:anywhere}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .news-calendar-event.is-scheduled time,
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .news-calendar-upcoming-list time {color:var(--eh-info-fg)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .news-calendar-event.is-published time {color:var(--eh-positive-fg)}
  /* A narrow desktop content column also needs the agenda, not just a phone. */
  @container eh-calendar (max-width: 859px) {
    .news-calendar-agenda-note {display:block;margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.5}
    .news-calendar-agenda-empty:not([hidden]) {display:block;padding:16px;border:1px solid var(--line);border-radius:8px;color:var(--muted);text-align:center}
    .news-calendar-weekdays,.news-calendar-day.is-outside,.news-calendar-day.is-empty {display:none}
    .news-calendar-grid {grid-template-columns:minmax(0,1fr);gap:8px;border:0}
    .news-calendar-day {min-height:0;padding:9px;border:1px solid var(--line);border-radius:9px;opacity:1}
    .news-calendar-day>header {flex-wrap:wrap;gap:4px;margin-bottom:6px}
    .news-calendar-day>header time {width:auto;height:auto;min-height:27px;padding:3px 7px;font-size:13px;display:inline-flex}
    .news-calendar-day>header .news-calendar-day-number {display:none}
    .news-calendar-day>header .news-calendar-full-date {display:inline;color:inherit;font-size:inherit}
    .news-calendar-day>header>span {font-size:11px}
    .news-calendar-event {grid-template-columns:44px minmax(0,1fr);min-height:44px;padding:7px;gap:2px 8px;font-size:12px;line-height:1.4}
    .news-calendar-event .news-calendar-event-title {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
    .news-calendar-event-status {display:block;grid-column:2;color:var(--muted);font-size:11px;line-height:1.35}
    .news-calendar-more>summary {min-height:44px;box-sizing:border-box;padding:12px 7px}
  }
  /* Older engines keep the original scrollable seven-column layout instead of clipping. */
  @supports not (container-type:inline-size) {
    @media(max-width:900px) {.news-calendar-panel {overflow-x:auto}.news-calendar-weekdays,.news-calendar-grid {min-width:760px}}
  }
  .notification-page-pro .notification-page-actions {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;align-items:stretch;min-width:0}
  .notification-page-pro .notification-page-actions form {min-width:0;margin:0;grid-column:auto}
  .notification-page-pro .notification-page-actions .btn {width:100%;min-width:0;min-height:44px;white-space:normal;line-height:1.35;padding:7px 9px;overflow-wrap:anywhere}
  .notification-page-pro .notification-page-actions .btn .ui-icon {flex-shrink:0}
  .notification-page-pro .notification-item-copy,.notification-page-pro .notification-item-title-row {min-width:0;overflow-wrap:anywhere}
  .notification-page-pro .notification-item-title-row {flex-wrap:wrap}
  @media(max-width:680px) {
    .notification-page-pro .notification-page-actions {grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%}
    .notification-page-pro .notification-page-actions form:last-child {grid-column:1/-1}
    .news-calendar-toolbar {padding:10px;gap:8px}
    .news-calendar-stats {gap:6px}
    .news-calendar-stats article {padding:8px;gap:6px}
    .news-calendar-stats strong {font-size:18px}
    .news-calendar-stats small {margin-top:3px;font-size:11px;line-height:1.35}
  }
}

/* R1045: paged audit workspace and compact private conversation search. */
@media screen {
  .eh-audit-workspace {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start;min-width:0}
  .eh-audit-workspace>section,.eh-audit-table,.eh-audit-table :is(td,th,details) {min-width:0;max-width:100%}
  .eh-audit-table {width:100%;table-layout:fixed}
  .eh-audit-table :is(td,th,code) {overflow-wrap:anywhere;word-break:normal;white-space:normal}
  .eh-audit-table td:nth-child(5) {width:32%}
  .eh-audit-detail summary {cursor:pointer;min-height:44px;box-sizing:border-box;padding:10px 3px;color:var(--ink);line-height:1.5}
  .eh-audit-detail pre {box-sizing:border-box;max-width:100%;max-height:24rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;padding:10px;margin:0;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:12px;line-height:1.5}
  .eh-audit-detail summary:focus-visible,.eh-audit-navigation a:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .eh-audit-navigation {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:10px;min-width:0}
  .eh-audit-navigation .btn {min-width:0;min-height:44px;white-space:normal;text-align:center;overflow-wrap:anywhere}
  .eh-audit-empty {width:100%;box-sizing:border-box;padding:20px 12px;margin:0;min-height:0;overflow-wrap:anywhere}
  .eh-audit-files .file-list>div {display:flex;flex-wrap:wrap;gap:4px 12px;min-width:0;align-items:center}
  .eh-audit-files .file-list :is(strong,span) {min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
  .eh-inbox-filter {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:10px 0;align-items:end;min-width:0}
  .eh-inbox-search {display:grid;gap:4px;min-width:0;color:var(--ink);font-size:12px;font-weight:600}
  .eh-inbox-search input {width:100%;min-width:0;min-height:44px;box-sizing:border-box;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:16px}
  .eh-inbox-filter-actions {display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
  .eh-inbox-filter-actions label {display:flex;align-items:center;gap:6px;min-height:44px;min-width:0;color:var(--ink);font-size:12px;overflow-wrap:anywhere}
  .eh-inbox-filter-actions input {accent-color:var(--brand);flex:none;width:18px;height:18px}
  .eh-inbox-filter-actions button {min-height:44px;min-width:0;white-space:normal}
  .eh-inbox-filter-count {grid-column:1/-1;margin:0;font-size:12px}
  .message-inbox-panel :is(.conversation-card,.eh-inbox-filter,.eh-inbox-no-match)[hidden] {display:none!important}
  .messages-page .conversation-card {min-width:0;max-width:100%;box-sizing:border-box;gap:8px;padding:10px;box-shadow:none}
  .messages-page .eh-conversation-heading {flex-wrap:wrap;justify-content:space-between;gap:4px 8px}
  .messages-page .eh-conversation-heading strong {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
  .messages-page .eh-conversation-heading time {font-size:11px;white-space:normal}
  .messages-page .conversation-copy p {white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
  .messages-page .message-user-badges--inbox {flex-wrap:wrap;justify-content:flex-start;gap:4px}
  .messages-page .blocked-user-row strong {white-space:normal;overflow-wrap:anywhere}
  .messages-page .blocked-user-row button {min-width:44px;min-height:44px}
  .eh-inbox-no-match {min-height:0;padding:18px 10px;overflow-wrap:anywhere}
  @media(max-width:900px) {
    .admin-body .eh-audit-table tbody td.eh-audit-detail {display:block!important;width:100%!important}
    .admin-body .eh-audit-table tbody td.eh-audit-detail::before {display:block!important;margin-bottom:3px}
    .eh-audit-navigation .btn {flex:1 1 125px}
  }
  @media(max-width:600px) {
    .eh-inbox-filter {grid-template-columns:minmax(0,1fr)}
    .eh-inbox-filter-actions {justify-content:space-between}
    .messages-page .conversation-card {grid-template-columns:36px minmax(0,1fr) minmax(24px,max-content);padding:8px;gap:7px}
    .messages-page .conversation-card>.conversation-avatar {width:36px;height:36px;flex-basis:36px}
    .messages-page .conversation-card>.conversation-avatar img {width:100%;height:100%;object-fit:cover}
  }
}
@media screen {
  .eh-audit-panel {container-type:inline-size;container-name:eh-audit}
  @container eh-audit (max-width:850px) {
    .admin-body .eh-audit-panel .table-wrap {display:block!important;overflow:visible!important;width:100%!important;min-width:0!important;padding:0 8px 8px!important;box-sizing:border-box}
    .admin-body .eh-audit-panel .eh-audit-table,.admin-body .eh-audit-panel .eh-audit-table tbody {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
    .admin-body .eh-audit-panel .eh-audit-table thead {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important}
    .admin-body .eh-audit-panel .eh-audit-table tbody tr {display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important;margin:0 0 8px!important;padding:8px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--surface)!important}
    .admin-body .eh-audit-panel .eh-audit-table tbody td {display:grid!important;grid-template-columns:minmax(0,30%) minmax(0,1fr)!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;gap:6px!important;padding:6px 0!important;white-space:normal!important;overflow-wrap:anywhere!important;border:0!important;border-bottom:1px solid var(--line)!important;align-items:start!important}
    .admin-body .eh-audit-panel .eh-audit-table tbody td::before {content:attr(data-label)!important;display:block!important;color:var(--muted)!important;font-size:11px!important;overflow-wrap:normal!important;letter-spacing:normal!important;text-transform:none!important}
    .admin-body .eh-audit-panel .eh-audit-table tbody td.eh-audit-detail {display:block!important;border-bottom:0!important}
    .admin-body .eh-audit-panel .eh-audit-table tbody td.eh-audit-detail details {display:block;width:100%}
  }
}

/* R1046: compact reader follow workspace; preserve complete names and titles. */
@media screen {
  .following-page .following-author-grid,.following-page .category-following-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:10px;min-width:0}
  .following-page :is(.following-author-card,.category-following-card) {min-width:0;max-width:100%;box-sizing:border-box;padding:12px;gap:10px;border-radius:10px;box-shadow:none;background:var(--surface);color:var(--ink);container-type:inline-size}
  .following-page :is(.following-author-main,.category-following-main,.following-latest) {min-width:0;gap:8px}
  .following-page :is(.following-author-main,.category-following-main,.following-latest) > span {min-width:0}
  .following-page :is(.following-author-main,.category-following-main,.following-latest) :is(strong,small,p) {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
  .following-page .following-author-main {grid-template-columns:44px minmax(0,1fr)}
  .following-page .following-author-main :is(img,.avatar-placeholder) {width:44px;height:44px;border-radius:9px}
  .following-page .following-author-stats {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .following-page .following-author-stats span {min-width:0;padding:6px 3px;font-size:11px;overflow-wrap:anywhere;word-break:normal}
  .following-page .following-author-stats b {font-size:13px;overflow-wrap:anywhere}
  .following-page .following-latest strong {font-size:13px;line-height:1.45}
  .following-page .following-latest small {font-size:11px}
  .following-page .following-author-actions {display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding-top:8px}
  .following-page .following-author-actions form,.following-page .category-following-actions form {min-width:0;margin:0}
  .following-page .category-following-actions {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .following-page :is(.following-author-actions,.category-following-actions) .btn {width:100%;min-width:0;min-height:44px;height:auto;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;justify-content:center;padding:7px}
  .following-page :is(.following-author-actions,.category-following-actions) .btn svg {flex-shrink:0}
  .following-page .following-author-actions .pro-toggle {min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .following-page .category-following-stats span {max-width:100%;min-width:0;box-sizing:border-box;flex-wrap:wrap;overflow-wrap:anywhere}
  .following-page .user-library-toolbar {grid-template-columns:minmax(0,1fr) minmax(0,220px) auto;gap:8px;padding:9px}
  .following-page .user-library-toolbar .user-library-count {overflow-wrap:anywhere;min-width:0}
  @media(max-width:700px) {
    .following-page .user-library-toolbar {grid-template-columns:minmax(0,1fr)}
  }
  @container (max-width:245px) {
    .following-page .category-following-actions {grid-template-columns:minmax(0,1fr)}
    .following-page .following-author-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    .following-page .following-author-stats span:last-child {grid-column:1/-1}
  }
}


/* R1047: compact, readable reader history and editorial series workspace. */
@media screen {
  .reading-history-page .reading-history-card {grid-template-columns:minmax(0, min(28%,160px)) minmax(0,1fr);min-width:0;gap:0;border-radius:10px;container-type:inline-size}
  .reading-history-page .reading-history-media {min-width:0;min-height:0;align-self:start;aspect-ratio:16/10;overflow:hidden;margin:10px 0 0 10px;border-radius:7px}
  .reading-history-page .reading-history-copy {min-width:0;gap:7px;padding:10px 12px;align-content:start}
  .reading-history-page .reading-history-copy h2 {display:block;overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:clamp(15px,2vw,19px);line-height:1.4}
  .reading-history-page :is(.reading-history-meta,.reading-history-foot) {flex-wrap:wrap;gap:5px 10px;min-width:0}
  .reading-history-page :is(.reading-history-meta,.reading-history-foot) small {font-size:12px;overflow-wrap:anywhere;min-width:0}
  .reading-history-page .reading-history-meta span {font-size:11px;overflow-wrap:anywhere}
  .reading-history-page .reading-history-progress {grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
  .reading-history-page .reading-history-progress span {font-size:12px;white-space:normal;overflow-wrap:anywhere}
  .reading-history-page .reading-history-actions {display:flex;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;margin-left:auto}
  .reading-history-page .reading-history-actions .btn {width:auto;min-width:0;min-height:44px;height:auto;font-size:12px;white-space:normal;padding:6px 9px;overflow-wrap:anywhere;text-align:center}
  .reading-history-page .reading-history-actions .icon-btn {width:44px;height:44px;min-width:44px}
  .reading-history-page .reading-history-actions form {flex:none}
  .reading-history-page .reading-history-title-actions .btn {min-height:44px;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .reading-history-page .reading-history-title-actions form {min-width:0}
  @container (min-width:520px) {
    .reading-history-page .reading-history-progress {grid-template-columns:minmax(0,1fr) auto;gap:8px}
  }
  @container (max-width:360px) {
    .reading-history-page .reading-history-actions {width:100%;margin:0}
    .reading-history-page .reading-history-actions .btn {flex:1 1 100px}
  }
  .news-series-list-panel {container-type:inline-size;min-width:0}
  .eh-series-filter {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,150px) auto;align-items:end;gap:8px;padding:10px 12px;min-width:0;border-bottom:1px solid var(--line)}
  .eh-series-filter label {display:grid;gap:4px;min-width:0;font-size:12px;color:var(--ink);font-weight:600}
  .eh-series-filter :is(input,select) {width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:16px}
  .eh-series-filter .btn {min-height:44px;min-width:0;white-space:normal}
  .eh-series-filter p {grid-column:1/-1;margin:0;font-size:12px;color:var(--muted)}
  :is(.eh-series-filter,.eh-series-no-match,.news-series-admin-item)[hidden] {display:none!important}
  .news-series-list-panel .news-series-admin-item {min-width:0;max-width:100%;box-sizing:border-box}
  .news-series-list-panel .news-series-admin-copy {min-width:0}
  .news-series-list-panel .news-series-admin-actions .btn {min-height:44px;min-width:0;height:auto;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .eh-series-no-match {min-height:0;padding:18px 12px;overflow-wrap:anywhere}
  @container (max-width:440px) {
    .eh-series-filter {grid-template-columns:minmax(0,1fr) auto}
    .eh-series-filter label:first-child {grid-column:1/-1}
    .news-series-list-panel .news-series-admin-item {grid-template-columns:36px minmax(0,1fr);gap:8px;padding:10px}
    .news-series-list-panel .news-series-admin-actions {grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-left:0}
    .news-series-list-panel .news-series-admin-actions :is(.btn,form) {width:100%;min-width:0;max-width:100%}
    .news-series-list-panel .news-series-admin-actions form:last-child {grid-column:1/-1}
  }
}

/* R1048: compact technical SEO workspace; independent of mobile table JS. */
@media screen {
  .eh-redirect-workspace {container-type:inline-size;min-width:0;padding:12px;gap:10px}
  .eh-redirect-filter {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,1fr);align-items:end;gap:8px;min-width:0}
  .eh-redirect-filter label {display:grid;gap:4px;min-width:0;font-size:12px;font-weight:600;color:var(--ink)}
  .eh-redirect-filter :is(input,select) {width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:16px}
  .eh-redirect-summary {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin:12px 0 8px;min-width:0}
  .eh-redirect-summary h2 {margin:0;font-size:16px;color:var(--ink)}
  .eh-redirect-summary span {color:var(--muted);font-size:12px;overflow-wrap:anywhere}
  .eh-redirect-list {display:grid;gap:7px;list-style:none;padding:0;margin:0;min-width:0}
  .eh-redirect-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(110px,.5fr) auto;align-items:center;gap:10px;padding:10px;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink)}
  .eh-redirect-address {display:grid;gap:3px;min-width:0}
  .eh-redirect-address>span,.eh-redirect-meta small {font-size:11px;font-weight:600;color:var(--muted)}
  .eh-redirect-address code {display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;font-size:12px;line-height:1.45;background:var(--soft);color:var(--ink);border-radius:5px;padding:6px}
  .eh-redirect-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
  .eh-redirect-meta>span {display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
  .eh-redirect-meta strong {font-size:12px;color:var(--ink)}
  .eh-redirect-code {font-variant-numeric:tabular-nums}
  .eh-redirect-row form {margin:0;min-width:0}
  .eh-redirect-row .btn,.eh-redirect-pagination .btn,.eh-redirect-create .eh-redirect-actions .btn,.eh-redirect-heading .btn {min-height:44px;height:auto;white-space:normal;min-width:0;max-width:100%;overflow-wrap:anywhere;text-align:center;justify-content:center}
  .eh-redirect-row .btn {width:100%}
  .eh-redirect-empty {width:100%;padding:18px 10px;text-align:center;border:1px dashed var(--line);border-radius:9px;color:var(--ink);overflow-wrap:anywhere}
  .eh-redirect-empty p {margin:5px 0 0;color:var(--muted);font-size:13px}
  .eh-redirect-pagination {display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin-top:12px;color:var(--muted)}
  .eh-redirect-create .eh-redirect-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .eh-redirect-create .eh-redirect-actions .btn {width:100%}
  @container (max-width:680px) {
    .eh-redirect-filter {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    .eh-redirect-filter label:first-child,.eh-redirect-filter .eh-filter-actions {grid-column:1/-1}
    .eh-redirect-filter label:nth-child(2) {grid-column:1/-1}
    .eh-redirect-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
    .eh-redirect-address {grid-column:1/-1}
    .eh-redirect-row form {align-self:end}
  }
  @media(max-width:760px) {
    .eh-redirect-filter {grid-template-columns:minmax(0,1fr)}
    .eh-redirect-row {grid-template-columns:repeat(2,minmax(0,1fr))}
    .eh-redirect-address {grid-column:1/-1}
  }
}

/* R1049: compact corporate pages workspace without mobile table conversion. */
@media screen {
  .eh-pages-workspace {container-type:inline-size;min-width:0;padding:12px;color:var(--ink)}
  .eh-pages-filter {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);align-items:end;gap:8px;min-width:0}
  .eh-pages-filter label {display:grid;gap:4px;min-width:0;font-size:12px;font-weight:600;color:var(--ink)}
  .eh-pages-filter :is(input,select) {width:100%;min-width:0;min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-size:16px}
  .eh-pages-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}
  .eh-pages-summary>div {display:grid;gap:3px;min-width:0;padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);overflow-wrap:anywhere}
  .eh-pages-summary strong {font-size:20px;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ink)}
  .eh-pages-summary span,.eh-pages-list-heading span {font-size:12px;line-height:1.4;color:var(--muted)}
  .eh-pages-list-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:12px 0 8px}
  .eh-pages-list-heading h2 {font-size:16px;margin:0;color:var(--ink)}
  .eh-pages-list {display:grid;list-style:none;gap:7px;padding:0;margin:0;min-width:0}
  .eh-pages-row {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,240px);align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
  .eh-pages-identity {display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:5px;min-width:0;overflow-wrap:anywhere;word-break:normal}
  .eh-pages-identity > :is(strong,small) {display:block;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}
  .eh-pages-identity strong {font-size:14px;line-height:1.4;color:var(--ink)}
  .eh-pages-identity small,.eh-pages-meta small {font-size:11px;color:var(--muted);line-height:1.4}
  .eh-pages-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
  .eh-pages-meta>div {display:grid;gap:3px;min-width:0;overflow-wrap:anywhere;font-size:12px;color:var(--ink)}
  .eh-pages-meta>div:last-child {grid-column:1/-1}
  .eh-pages-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
  .eh-pages-actions form {margin:0;min-width:0;grid-column:1/-1}
  .eh-pages-actions>a:only-of-type {grid-column:1/-1}
  .eh-pages-actions .btn,.eh-pages-pagination .btn {min-width:0;max-width:100%;min-height:44px;height:auto;white-space:normal;text-align:center;justify-content:center;overflow-wrap:anywhere}
  .eh-pages-actions .btn {width:100%}
  .eh-pages-empty {width:100%;min-width:0;box-sizing:border-box;text-align:center;padding:18px 10px;border:1px dashed var(--line);border-radius:9px;overflow-wrap:anywhere}
  .eh-pages-empty p {margin:5px 0 0;color:var(--muted);font-size:13px}
  .eh-pages-pagination {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:12px;color:var(--muted)}
  @container (max-width:760px) {
    .eh-pages-filter {grid-template-columns:minmax(0,1fr)}
    .eh-pages-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
    .eh-pages-row {grid-template-columns:minmax(0,1fr);gap:8px}
    .eh-pages-meta {padding:8px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
  }
  @media(max-width:760px) {
    .eh-pages-filter,.eh-pages-row {grid-template-columns:minmax(0,1fr)}
    .eh-pages-summary {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
}

/* R1050: publication controls and payment validation use the shared theme.
   White switch thumbs remain intentional; only the track is recolored. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark).panel-body .news-publish-card label.switch > input[type="checkbox"]:not(:checked) {
    background-color:#34465f!important;border-color:#64748b!important;box-shadow:none!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .payout-validation-note:not([hidden]) {
    background:var(--eh-negative-bg);color:var(--eh-negative-fg);border-color:var(--eh-negative-line);
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) [data-payout-amount][aria-invalid="true"] {outline-color:#fda29b}
  .panel-body .news-publish-card label.switch > span > small {font-size:12px!important;line-height:1.45!important;overflow-wrap:anywhere}
  .panel-body .news-publish-card label.switch > span > strong {font-size:13px!important;line-height:1.4!important;overflow-wrap:anywhere}
  .panel-body .news-publish-card label.switch {border-radius:8px!important;min-height:48px!important;gap:8px!important}
  .panel-body .news-publish-card label.switch:has(input:focus-visible) {outline:2px solid var(--brand);outline-offset:2px}
  .payout-validation-note {overflow-wrap:anywhere;max-width:100%;box-sizing:border-box}
}

/* R1051: corporate pages use explicit, scoped layout primitives. */
@media screen {
  .admin-body .eh-pages-workspace {box-sizing:border-box;max-width:100%}
  .admin-body .eh-pages-summary {min-width:0;gap:8px;margin:12px 0}
  .admin-body .eh-pages-summary>div {align-content:start;padding:10px;min-height:64px}
  .admin-body .eh-pages-summary>div>:is(strong,span) {display:block;min-width:0;overflow-wrap:anywhere}
  .admin-body .eh-pages-list {list-style:none;padding-inline-start:0;margin:0}
  .admin-body .eh-pages-row {list-style:none;box-sizing:border-box;max-width:100%}
  .admin-body .eh-pages-row::marker {content:""}
  .admin-body .eh-pages-meta>div>:is(small,span) {display:block;min-width:0;overflow-wrap:anywhere}
  .admin-body .eh-pages-meta>div>small {font-size:12px}
  .admin-body .eh-pages-actions .btn {font-size:12px;line-height:1.35;padding:8px;gap:5px}
  .admin-body .eh-pages-actions .btn .ui-icon {flex-shrink:0}
  .admin-body .eh-pages-actions .btn:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  @container (min-width:1000px) {
    .admin-body .eh-pages-row {grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,270px)}
    .admin-body .eh-pages-actions {grid-template-columns:repeat(3,minmax(0,1fr))}
    .admin-body .eh-pages-actions form {grid-column:auto}
    .admin-body .eh-pages-actions>a:only-of-type {grid-column:span 2}
  }
  @media (max-width:760px) {
    .admin-body .eh-pages-workspace {padding:10px}
    .admin-body .eh-pages-meta {padding:8px 0;border-block:1px solid var(--line)}
  }
}
/* R1051: reclaim vertical space without shrinking readable text or touch targets. */
@media screen {
  .admin-body .eh-pages-identity {grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}
  .admin-body .eh-pages-identity>strong {grid-column:1;grid-row:1}
  .admin-body .eh-pages-identity>small {grid-column:1/-1;grid-row:2}
  .admin-body .eh-pages-identity>.status {grid-column:2;grid-row:1;justify-self:end;white-space:normal;text-align:center;max-width:100%;overflow-wrap:anywhere}
  .admin-body .eh-pages-meta>div:last-child {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px}
  @container (min-width:310px) and (max-width:760px) {
    .admin-body .eh-pages-actions {grid-template-columns:repeat(3,minmax(0,1fr))}
    .admin-body .eh-pages-actions form {grid-column:auto}
    .admin-body .eh-pages-actions>a:only-of-type {grid-column:span 2}
  }
}

/* R1052: compact notification preferences/policies; preserve the saved checkbox state. */
@media screen {
  :is(.profile-notification-panel .notification-matrix,.notification-policy-card .notification-policy-matrix) {
    container-type:inline-size;min-width:0;width:100%;box-sizing:border-box;
  }
  .profile-notification-panel .notification-topic :is(strong,small),.notification-policy-card .notification-policy-row>strong {overflow-wrap:anywhere;word-break:normal}
  .profile-notification-panel .notification-topic small {font-size:12px;line-height:1.4}
  .notification-policy-card .policy-check {min-height:48px;gap:4px;padding:7px 5px;justify-content:center;flex-direction:column;overflow-wrap:anywhere}
  .notification-policy-card .policy-check .policy-channel-label {display:none;color:var(--ink);font-size:11px;line-height:1.3;text-align:center}
  .notification-policy-card .policy-check em {font-size:0;white-space:normal;text-align:center;line-height:1.2}
  .notification-policy-card .policy-check em::before {content:none!important}
  .notification-policy-card .policy-check em::after {content:"Kapalı";font-size:11px;color:var(--muted)}
  .notification-policy-card .policy-check input:checked~em::after {content:"Açık";color:var(--ink)}
  .profile-notification-panel .notification-channel-toggle em::after {font-size:11px;line-height:1.2}
  .profile-notification-panel .notification-channel-toggle>input:checked~em::after {color:var(--ink)}
  .profile-notification-panel .notification-channel-toggle.is-policy-disabled {opacity:1!important;cursor:not-allowed!important}
  .profile-notification-panel .notification-channel-toggle.is-policy-disabled>input:disabled~.setting-check {
    background:color-mix(in srgb,var(--muted) 18%,var(--soft))!important;border-color:var(--line)!important;opacity:1!important;
  }
  .profile-notification-panel .notification-channel-toggle.is-policy-disabled :is(.notification-channel-mobile-label,em) {color:var(--muted)!important}
  .profile-notification-panel .profile-extra-toggle {min-height:60px;padding:10px;gap:8px}
  .profile-notification-panel .profile-extra-toggle>input:disabled+.profile-extra-switch .setting-check {background:color-mix(in srgb,var(--muted) 18%,var(--soft))!important;box-shadow:inset 0 0 0 1px var(--line)!important}
  .profile-notification-panel .profile-extra-toggle.is-policy-disabled {opacity:1!important;cursor:not-allowed!important}
  .profile-notification-panel .profile-extra-copy small {font-size:12px;overflow-wrap:anywhere;line-height:1.4}
  .profile-notification-panel .profile-notification-actions .btn {min-height:44px;white-space:normal;overflow-wrap:anywhere}
  /* Inactive tracks are neutral, not white. Thumb remains light for contrast. */
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.notification-policy-card .policy-check>input:not(:checked)~.setting-check,.profile-notification-panel .profile-extra-toggle>input:not(:checked)+.profile-extra-switch .setting-check,.settings-admin-page-v3 .article-setting-card>input:not(:checked)+.setting-check) {
    background:#34465f!important;border-color:#64748b!important;box-shadow:inset 0 0 0 1px #64748b!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .profile-notification-panel .profile-extra-toggle>input:disabled+.profile-extra-switch .setting-check {
    background:#34465f!important;box-shadow:inset 0 0 0 1px #64748b!important;
  }
  .notification-policy-card .policy-check:has(input:focus-visible),.profile-notification-panel .notification-channel-toggle:has(input:focus-visible) {outline:2px solid var(--link,#60a5fa)!important;outline-offset:-2px!important}
  @container (max-width:650px) {
    .profile-notification-panel .notification-matrix-head,.notification-policy-card .notification-policy-head {display:none!important}
    .profile-notification-panel .notification-matrix-row,.notification-policy-card .notification-policy-row {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:0!important;padding:0!important;min-width:0!important}
    .profile-notification-panel .notification-matrix-row {margin-bottom:6px!important;border-radius:9px!important;border:1px solid var(--line)!important;overflow:hidden!important}
    .profile-notification-panel .notification-matrix-row:last-child {margin-bottom:0!important}
    .profile-notification-panel .notification-topic,.notification-policy-card .notification-policy-row>strong {grid-column:1/-1!important;padding:9px!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;background:var(--soft)!important}
    .profile-notification-panel .notification-channel-toggle,.notification-policy-card .policy-check {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;align-items:center!important;justify-items:center!important;align-content:center!important;gap:4px!important;padding:6px 3px!important;min-height:66px!important;border:0!important;border-left:1px solid var(--line)!important;border-radius:0!important;background:var(--surface)!important;text-align:center!important}
    .profile-notification-panel .notification-matrix-row .notification-channel-toggle:nth-child(2),.notification-policy-card .notification-policy-row .policy-check:nth-child(2) {border-left:0!important}
    .profile-notification-panel .notification-channel-toggle .notification-channel-mobile-label,.notification-policy-card .policy-check .policy-channel-label {display:block!important;grid-column:1!important;grid-row:1!important;text-align:center!important;color:var(--ink);font-size:11px!important;line-height:1.3;white-space:normal;overflow-wrap:anywhere;letter-spacing:0;text-transform:none}
    .profile-notification-panel .notification-channel-toggle .setting-check,.notification-policy-card .policy-check .setting-check {grid-column:1!important;grid-row:2!important;align-self:center!important}
    .profile-notification-panel .notification-channel-toggle em,.notification-policy-card .policy-check em {grid-column:1!important;grid-row:3!important;text-align:center!important;min-height:12px!important;overflow-wrap:anywhere}
  }
  @container (max-width:225px) {
    .profile-notification-panel .notification-matrix-row,.notification-policy-card .notification-policy-row {grid-template-columns:minmax(0,1fr)!important}
    .profile-notification-panel .notification-channel-toggle,.notification-policy-card .policy-check {grid-template-columns:46px minmax(0,1fr)!important;grid-template-rows:auto auto!important;justify-items:start!important;min-height:46px!important;padding:6px!important;border-left:0!important;border-top:1px solid var(--line)!important}
    .profile-notification-panel .notification-channel-toggle .setting-check,.notification-policy-card .policy-check .setting-check {grid-column:1!important;grid-row:1/span 2!important}
    .profile-notification-panel .notification-channel-toggle .notification-channel-mobile-label,.notification-policy-card .policy-check .policy-channel-label {grid-column:2!important;grid-row:1!important;text-align:left!important}
    .profile-notification-panel .notification-channel-toggle em,.notification-policy-card .policy-check em {grid-column:2!important;grid-row:2!important;text-align:left!important}
  }
}
@media screen {
  .notification-policy-card .policy-check>input {position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important}
  .profile-notification-panel .notification-channel-toggle>input {inset:0 auto auto 0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important}
}

/* R1053: homepage ordering, newsletter status contrast and scheduler layout. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .homepage-visibility-toggle>input:not(:checked)+.homepage-toggle-track {
    background:#34465f!important;box-shadow:inset 0 0 0 1px #64748b!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.newsletter-cron-health,.newsletter-health-inline).is-healthy {background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.newsletter-cron-health,.newsletter-health-inline).is-warning {background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.newsletter-cron-health,.newsletter-health-inline).is-danger {background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important}
  .admin-body .homepage-layout-blocks,.admin-body .cron-admin-page {container-type:inline-size;min-width:0;max-width:100%}
  .admin-body .homepage-block-order:not([hidden]) {display:grid;grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;min-width:0}
  .admin-body .homepage-block-order[hidden] {display:none!important}
  .admin-body .homepage-block-order .btn {min-height:44px;min-width:0;justify-content:center;white-space:normal;padding:6px 8px;font-size:12px;gap:5px}
  .admin-body .homepage-block-order .btn:disabled {opacity:.55;cursor:not-allowed}
  .admin-body .homepage-block-order .btn:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .admin-body .homepage-toggle-copy strong {font-size:12px!important;overflow-wrap:anywhere}
  .admin-body .homepage-toggle-copy small {font-size:11px!important;overflow-wrap:anywhere}
  .admin-body .homepage-visibility-toggle {min-height:54px!important}
  .admin-body .homepage-block-heading-copy small {font-size:12px;overflow-wrap:anywhere}
  .admin-body .cron-admin-page :is(.cron-main,.cron-side,.cron-layout,.cron-field-grid,.cron-schedule-fields,.cron-command-card,.cron-task-list,.cron-health-grid) {min-width:0;max-width:100%;gap:10px}
  .admin-body .cron-health-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:8px}
  .admin-body .cron-health-grid article {min-width:0;padding:10px;gap:8px}
  .admin-body .cron-health-grid article :is(small,em),.admin-body .cron-task-list :is(p,em),.admin-body .cron-command-card header small {font-size:12px;overflow-wrap:anywhere}
  .admin-body .cron-schedule-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,65px),1fr));overflow:visible;gap:6px}
  .admin-body .cron-schedule-fields>div {min-width:0;padding:9px 5px;overflow-wrap:anywhere}
  .admin-body .cron-schedule-fields small {font-size:11px}
  .admin-body .cron-copy-line .btn {min-height:44px;white-space:normal}
  .admin-body .cron-copy-line code {white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
  .admin-body .cron-runtime-list dd,.admin-body .cron-runtime-list dt {min-width:0;overflow-wrap:anywhere}
  .admin-body :is(.cron-health-badge,.cron-inline-state,.newsletter-cron-health,.newsletter-health-inline) {white-space:normal;max-width:100%;overflow-wrap:anywhere;line-height:1.35}
  @container (max-width:850px) {
    .admin-body .homepage-block-toggles {grid-column:1/-1!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))!important}
    .admin-body .homepage-block-order:not([hidden]) {grid-column:1/-1}
    .admin-body .cron-layout,.admin-body .cron-side {grid-template-columns:minmax(0,1fr)}
    .admin-body .cron-hero {align-items:flex-start;flex-direction:column;gap:10px;padding:14px}
  }
  @container (max-width:500px) {
    .admin-body .cron-field-grid,.admin-body .cron-copy-line {grid-template-columns:minmax(0,1fr)}
    .admin-body .cron-command-card header,.admin-body .cron-task-list article {grid-template-columns:34px minmax(0,1fr)}
    .admin-body .cron-command-card header>b {grid-column:2;justify-self:start}
    .admin-body .cron-task-list article em {grid-column:2;max-width:none;text-align:left}
    .admin-body .cron-copy-line .btn {width:100%}
  }
}

/* R1054: speech editor: dark controls, legible status and compact dialog. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .editor-speech-option>input:not(:checked)+.setting-check {
    background:#34465f!important;box-shadow:inset 0 0 0 1px #64748b!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .editor-speech-status-card.is-warning {
    background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .editor-speech-modal :is(.editor-speech-status-icon,.editor-speech-meta .ui-icon,.editor-speech-permission-note>.ui-icon) {color:#c4b5fd!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .editor-speech-status-card.is-listening .editor-speech-status-icon {color:var(--eh-positive-fg)!important;background:var(--eh-positive-bg)!important}
  .editor-speech-dialog {min-width:0;container-type:inline-size;border-radius:14px;box-shadow:none}
  .editor-speech-dialog .editor-speech-header {gap:10px;padding:14px 16px;min-width:0}
  .editor-speech-dialog .editor-speech-header>div {min-width:0}
  .editor-speech-dialog .editor-speech-header h2 {font-size:20px;overflow-wrap:anywhere}
  .editor-speech-dialog .editor-speech-header p {font-size:12px;overflow-wrap:anywhere}
  .editor-speech-dialog .editor-speech-header>.icon-btn {flex:none;min-width:44px;min-height:44px}
  .editor-speech-dialog .editor-speech-body {min-height:0;min-width:0;padding:12px 16px;gap:10px}
  .editor-speech-dialog :is(.editor-speech-option,.editor-speech-status-card,.editor-speech-permission-note) {min-width:0;padding:10px;border-radius:10px;gap:9px}
  .editor-speech-dialog :is(.editor-speech-option,.editor-speech-permission-note,.editor-speech-transcript-field) small {font-size:12px;overflow-wrap:anywhere;line-height:1.45}
  .editor-speech-dialog .editor-speech-permission-note>div {min-width:0}
  .editor-speech-dialog .editor-speech-option>input {width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0}
  .editor-speech-dialog .editor-speech-option>input:focus-visible+.setting-check {outline:2px solid var(--link,#60a5fa);outline-offset:3px}
  .editor-speech-dialog .editor-speech-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .editor-speech-dialog .editor-speech-controls .btn:first-child {grid-column:auto}
  .editor-speech-dialog :is(.editor-speech-controls,.editor-speech-actions) .btn {min-width:0;min-height:44px;width:100%;white-space:normal;overflow-wrap:anywhere;justify-content:center;padding:7px 8px;font-size:12px}
  .editor-speech-dialog .editor-speech-transcript-field textarea {min-height:140px;max-height:42dvh;padding:10px;border-radius:10px;font-size:16px;overflow-wrap:anywhere}
  .editor-speech-dialog .editor-speech-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:10px}
  @container (max-width:450px) {
    .editor-speech-dialog .editor-speech-controls {grid-template-columns:repeat(2,minmax(0,1fr))}
    .editor-speech-dialog .editor-speech-controls .btn:first-child {grid-column:1/-1}
    .editor-speech-dialog .editor-speech-transcript-field>span {display:grid;gap:3px}
    .editor-speech-dialog .editor-speech-transcript-field small {text-align:left}
  }
  @media(max-width:680px) {
    .editor-speech-dialog {border-radius:0}
    .editor-speech-dialog .editor-speech-header {padding:max(12px,env(safe-area-inset-top)) 12px 10px}
    .editor-speech-dialog .editor-speech-body {padding:10px 12px max(12px,env(safe-area-inset-bottom))}
  }
}

/* R1055: account security — never truncate one-time recovery credentials. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .security-page .security-recovery-panel {
    background:var(--eh-info-bg)!important;border-color:var(--eh-info-line)!important;color:var(--eh-info-fg)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .security-page .security-recovery-panel :is(.kicker,h2,p) {color:var(--eh-info-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .security-page .recovery-codes code {background:var(--surface,#111827)!important;color:var(--ink,#f8fafc)!important;border-color:var(--eh-info-line)!important}
  .security-page .security-recovery-panel {min-width:0;max-width:100%;padding:12px 14px;margin-bottom:14px;border-radius:12px;box-shadow:none}
  .security-page .security-recovery-panel .panel-head {margin-bottom:10px;min-width:0}
  .security-page .security-recovery-panel .panel-head>div {min-width:0;overflow-wrap:anywhere}
  .security-page .security-recovery-panel .recovery-codes {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,224px),1fr));gap:7px;min-width:0}
  .security-page .recovery-codes>li {list-style:none;min-width:0;margin:0;padding:0}
  .security-page .security-recovery-panel .recovery-codes code {display:block;min-width:0;max-width:100%;box-sizing:border-box;padding:9px 6px;border:1px solid var(--line);border-radius:7px;font-size:13px;line-height:1.5;letter-spacing:normal;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal;user-select:all;text-align:center}
  .security-page .security-sessions-card {container-type:inline-size;min-width:0}
  .security-page .security-sessions-head {grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important}
  .security-page .security-sessions-heading {min-width:0;overflow-wrap:anywhere}
  .security-page .security-session-count {display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;padding:2px 6px;margin-inline-start:3px;font-size:12px;line-height:1.3;vertical-align:middle;background:var(--soft);border:1px solid var(--line);color:var(--ink);border-radius:6px;font-variant-numeric:tabular-nums}
  .security-page .security-session-item {grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:9px 10px!important;align-items:center}
  .security-page .security-session-item .security-session-copy {min-width:0;overflow-wrap:anywhere}
  .security-page :is(.security-session-item,.security-revoke-all-form) .btn {width:auto;height:auto;min-width:0;min-height:44px;padding:7px 10px;font-size:12px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;text-align:center;justify-content:center;gap:6px}
  .security-page :is(.security-session-item,.security-revoke-all-form) .btn .ui-icon {flex:none;width:16px;height:16px}
  @container (max-width:520px) {
    .security-page .security-sessions-head {grid-template-columns:38px minmax(0,1fr)!important}
    .security-page .security-revoke-all-form {grid-column:1/-1;width:100%}
    .security-page .security-revoke-all-form .btn {width:100%}
    .security-page .security-session-item {grid-template-columns:minmax(0,1fr)!important}
    .security-page .security-session-item form,.security-page .security-session-item .btn {width:100%}
    .security-page .security-session-item .status {justify-self:start}
  }
}

/* R1056: shared pro switches and member Premium checkout surfaces. */
@media screen {
  .pro-toggle,.pro-toggle.compact,.settings-toggle-stack .pro-toggle {
    grid-template-columns:74px minmax(0,1fr);gap:10px;padding:8px 10px;min-height:44px;align-items:center;
  }
  .pro-toggle>input[type="checkbox"] {left:0;top:0;width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0}
  .pro-toggle .pro-toggle-track,.pro-toggle.compact .pro-toggle-track {width:74px;height:28px;box-shadow:none}
  .pro-toggle .pro-toggle-track:before {font-size:10px;letter-spacing:0;line-height:1;right:7px}
  .pro-toggle .pro-toggle-track i,.pro-toggle.compact .pro-toggle-track i {width:20px;height:20px;top:3px;left:3px;box-shadow:none}
  .pro-toggle input:checked+.pro-toggle-track:before {left:7px;right:auto}
  .pro-toggle input:checked+.pro-toggle-track i,.pro-toggle.compact input:checked+.pro-toggle-track i {left:49px}
  .pro-toggle>span:last-child strong,.pro-toggle.compact>span:last-child strong,.settings-toggle-stack .pro-toggle strong {font-size:13px;line-height:1.4}
  .pro-toggle>span:last-child small,.pro-toggle.compact>span:last-child small,.settings-toggle-stack .pro-toggle small {font-size:12px;line-height:1.4}
  .pro-toggle input:focus-visible+.pro-toggle-track {outline:2px solid var(--link,#60a5fa);outline-offset:3px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .pro-toggle input:not(:checked)+.pro-toggle-track {background:#34465f;border-color:#64748b}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .pro-toggle input:checked+.pro-toggle-track {background:#17603e;border-color:#55a67b}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .premium-account-page :is(.premium-status-icon,.premium-plan-icon,.premium-benefits>div>span) {background:var(--eh-caution-bg);color:var(--eh-caution-fg)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .premium-account-page :is(.premium-status-card>div>span,.premium-selected-plan em) {color:var(--eh-caution-fg)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .premium-account-page .premium-recommended {background:var(--eh-caution-bg);color:var(--eh-caution-fg);border:1px solid var(--eh-caution-line)}
  .premium-account-page {container-type:inline-size;container-name:eh-premium-account}
  .premium-account-page :is(.premium-layout,.premium-layout>main,.premium-sidebar,.premium-plan-grid,.premium-plan-card,.premium-status-card>div,.premium-pending-banner>div,.premium-payment-card dd,.premium-payment-note p) {min-width:0;overflow-wrap:anywhere}
  .premium-account-page .premium-plan-card {display:flex;flex-direction:column;gap:4px;padding:16px;border-radius:12px}
  .premium-account-page .premium-plan-card ul {gap:7px;padding:12px 0;margin:8px 0 12px}
  .premium-account-page .premium-plan-card li .ui-icon {flex:0 0 16px}
  .premium-account-page .premium-plan-card .btn {margin-top:auto;min-height:44px;white-space:normal;text-align:center}
  .premium-account-page .premium-plan-card h3 {font-size:clamp(24px,4vw,32px);overflow-wrap:anywhere}
  .premium-account-page .premium-recommended {position:static;align-self:flex-start;order:-1;margin-bottom:4px}
  .premium-account-page .premium-plan-icon {margin-bottom:4px}
  .premium-account-page .premium-status-card {gap:12px;padding:16px;border-radius:12px}
  .premium-account-page .premium-payment-card .icon-btn {width:44px;height:44px;min-height:44px}
  .premium-account-page :is(.premium-payment-card,.premium-benefits,.premium-order-panel) {padding:14px}
  .premium-account-page .premium-pending-banner>span {flex:0 0 38px}
  .premium-account-page .premium-pending-banner .btn {min-height:44px;white-space:normal}
  .premium-account-page .premium-order-panel[hidden] {display:none!important}
  .copy-feedback {max-width:calc(100% - 24px);width:max-content;overflow-wrap:anywhere;text-align:center;box-shadow:none;border:1px solid #64748b}
  @container eh-premium-account (max-width:850px) {
    .premium-account-page .premium-layout {grid-template-columns:minmax(0,1fr)!important;gap:14px}
    .premium-account-page .premium-sidebar {position:static;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
    .premium-account-page .premium-status-card {grid-template-columns:auto minmax(0,1fr)}
    .premium-account-page .premium-status-date {grid-column:1/-1;min-width:0;padding:8px 0 0;border-left:0;border-top:1px solid var(--line);text-align:left}
  }
  @container eh-premium-account (max-width:460px) {
    .premium-account-page .premium-plan-grid {grid-template-columns:minmax(0,1fr)!important;gap:10px}
    .premium-account-page .premium-pending-banner {flex-wrap:wrap}
    .premium-account-page .premium-pending-banner form,.premium-account-page .premium-pending-banner .btn {width:100%}
    .premium-account-page .premium-selected-plan {grid-template-columns:minmax(0,1fr)}
    .premium-account-page .premium-selected-plan em {justify-self:start}
  }
}

/* R1057: audio discovery, usable compact playback and Premium status surfaces. */
@media screen {
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.account-premium-summary>span,.audio-directory-page .audio-premium-mini,.audio-directory-page .badge-premium.inline,.audio-directory-page .audio-premium-feature-cover>span) {
    background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .account-premium-summary.is-active {border-color:var(--eh-caution-line)!important}
  .audio-directory-page {min-width:0;container-type:inline-size;container-name:eh-audio-directory}
  .audio-directory-page :is(.audio-directory-hero>div,.audio-directory-section-head>div,.audio-directory-copy,.audio-directory-inline-player,.audio-directory-meta,.audio-directory-meta span,.audio-premium-feature-card>div) {min-width:0;overflow-wrap:anywhere}
  .audio-directory-page :is(.audio-directory-copy h2,.audio-directory-hero h1,.audio-directory-section-head h2,.audio-premium-feature-card h2) {overflow-wrap:anywhere}
  .audio-directory-page .audio-directory-hero {gap:12px;padding:16px;border-radius:12px}
  .audio-directory-page .audio-directory-jump {display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
  .audio-directory-jump strong {font-size:12px;color:var(--muted);padding-inline:4px}
  .audio-directory-jump a {display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:0;max-width:100%;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:700;overflow-wrap:anywhere;text-align:center}
  .audio-directory-page :is(.audio-directory-jump a,.audio-directory-inline-controls button,.audio-directory-inline-controls select,.audio-directory-slider-arrow):focus-visible {outline:2px solid var(--link,var(--brand));outline-offset:2px}
  .audio-directory-page :is(.audio-directory-section-head h2,.audio-directory-category-section) {scroll-margin-top:110px}
  .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) {grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
  .audio-directory-page .audio-directory-card {container-type:inline-size;container-name:eh-audio-card;border-radius:12px}
  .audio-directory-page .audio-directory-copy {padding:12px}
  .audio-directory-page .audio-directory-inline-player {padding:0 12px 12px;gap:6px}
  .audio-directory-page .audio-directory-inline-controls {grid-template-columns:auto minmax(0,1fr) auto 44px 58px;gap:6px;font-size:11px}
  .audio-directory-page .audio-directory-inline-controls input[type=range] {min-height:28px;height:auto;cursor:pointer}
  .audio-directory-page .audio-directory-inline-controls button {width:44px;height:44px}
  .audio-directory-page .audio-directory-inline-controls select {display:block;width:58px;height:44px;font-size:12px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .audio-directory-inline-controls :is(select,button) {color-scheme:dark;background:var(--surface,#101828);color:var(--ink,#f8fafc);border-color:var(--line,#334155)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .audio-directory-inline-controls select option {background:var(--surface,#101828);color:var(--ink,#f8fafc)}
  .audio-directory-page .audio-directory-inline-state {white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.4}
  .audio-directory-page .audio-directory-inline-listen {min-height:44px!important;font-size:12px!important}
  .audio-directory-page .audio-directory-listen {min-height:44px;white-space:normal;text-align:center}
  .audio-directory-page .audio-premium-mini {font-size:10px;line-height:1.3;margin-left:0}
  .audio-directory-page .audio-directory-category-actions>a {min-height:44px;white-space:normal;text-align:center}
  .audio-directory-page .audio-directory-slider-arrow {width:44px;height:44px}
  @container eh-audio-card (max-width:330px) {
    .audio-directory-page .audio-directory-inline-controls {grid-template-columns:auto minmax(0,1fr) auto;row-gap:4px}
    .audio-directory-page .audio-directory-inline-controls button {grid-column:1;grid-row:2}
    .audio-directory-page .audio-directory-inline-controls select {grid-column:2/-1;grid-row:2;width:100%}
  }
  @container eh-audio-directory (min-width:621px) {
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-card {display:flex;flex-direction:column}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-cover {width:100%;height:auto;aspect-ratio:16/9}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-card>a.audio-directory-listen {width:auto;margin:0 12px 12px}
  }
  @container eh-audio-directory (max-width:620px) {
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) {grid-template-columns:minmax(0,1fr)}
    .audio-directory-page .audio-directory-section-head {flex-wrap:wrap;gap:8px}
    .audio-directory-page .audio-directory-category-actions {justify-content:flex-start}
    .audio-directory-page .audio-premium-feature-card {grid-template-columns:minmax(0,1fr);border-radius:12px}
    .audio-directory-page .audio-premium-feature-cover {min-height:0;aspect-ratio:16/9}
    .audio-directory-page .audio-premium-feature-card>div {padding:14px;gap:8px}
    .audio-directory-page .audio-premium-feature-card .btn {width:100%;min-height:44px;white-space:normal;text-align:center}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-card {display:grid;grid-template-columns:92px minmax(0,1fr);grid-template-rows:auto auto}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-card .audio-directory-cover {grid-column:1;grid-row:1;width:100%;height:100%;min-height:104px;aspect-ratio:auto}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-copy {grid-column:2;grid-row:1;padding:10px}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-inline-player {grid-column:1/-1;grid-row:2;padding:8px 10px 10px;border-top:1px solid var(--line)}
    .audio-directory-page :is(.audio-directory-latest-grid,.audio-directory-category-grid) .audio-directory-card>a.audio-directory-listen {grid-column:1/-1;grid-row:2;width:auto;margin:8px 10px 10px}
  }
  .audio-directory-page .audio-directory-categories {grid-template-columns:minmax(0,1fr)}
  .audio-directory-page .audio-directory-category-section {min-width:0;padding:12px;border-radius:12px}
}

/* R1058: palette diagnostics and preview modes are independent of saved site settings. */
@media screen {
  .theme-settings-page-v2 .theme-control-main {min-width:0;container-type:inline-size;container-name:eh-theme-main}
  .theme-settings-page-v2 .theme-control-sidebar {min-width:0;gap:10px}
  .theme-settings-page-v2 .theme-preview-mode {padding:12px;display:grid;gap:8px;border-radius:12px;background:var(--surface);color:var(--ink)}
  .theme-settings-page-v2 :is(.theme-preview-mode,.theme-audit-actions,.theme-audit-results)[hidden] {display:none!important}
  .theme-preview-mode-buttons {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .theme-preview-mode-buttons .btn {width:100%;min-width:0;min-height:44px;padding:5px;white-space:normal;font-size:12px;overflow-wrap:anywhere}
  .theme-preview-mode-buttons .btn[aria-pressed="true"] {background:var(--brand);color:#fff;border-color:var(--brand)}
  .theme-preview-mode small,.theme-audit-actions small {color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
  .theme-settings-page-v2 .theme-palette-audit {display:grid;gap:10px;padding:14px;border-radius:12px;min-width:0}
  .theme-palette-audit .panel-head {margin:0;min-width:0}
  .theme-palette-audit .theme-audit-summary {margin:0;padding:10px;border:1px solid var(--line);background:var(--soft);color:var(--ink);border-radius:8px;font-size:13px;font-weight:700;overflow-wrap:anywhere}
  .theme-palette-audit .theme-audit-summary[data-state="warning"] {background:#fffaeb;color:#92400e;border-color:#f4c76d}
  .theme-palette-audit .theme-audit-summary[data-state="ok"] {background:#ecfdf3;color:#067647;border-color:#abefc6}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-palette-audit .theme-audit-summary[data-state="warning"] {background:var(--eh-caution-bg);color:var(--eh-caution-fg);border-color:var(--eh-caution-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .theme-palette-audit .theme-audit-summary[data-state="ok"] {background:var(--eh-positive-bg);color:var(--eh-positive-fg);border-color:var(--eh-positive-line)}
  .theme-palette-audit .theme-audit-results {margin:0;padding:0;list-style:none;display:grid;gap:5px;color:var(--ink)}
  .theme-audit-results li {padding:7px 9px;background:var(--surface);border:1px solid var(--line);border-radius:7px;font-size:12px;overflow-wrap:anywhere}
  .theme-audit-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
  .theme-audit-actions .btn {min-height:44px;max-width:100%;white-space:normal;text-align:center}
  .theme-audit-actions small {flex:1 1 220px}
  .theme-settings-page-v2 .theme-live-preview .theme-preview-header {background:var(--preview-header-bg,var(--surface));color:var(--preview-header-text,var(--ink));gap:8px;min-width:0}
  .theme-live-preview .theme-preview-brand {min-width:0}
  .theme-live-preview .theme-preview-brand strong {color:var(--preview-header-text,var(--ink));white-space:normal;overflow-wrap:anywhere;min-width:0}
  .theme-live-preview .theme-preview-actions i {background:var(--preview-header-icon,var(--muted))}
  .theme-live-preview .theme-preview-content {color:var(--ink);min-width:0;padding:14px}
  .theme-live-preview .theme-preview-content p,.theme-live-preview .theme-preview-card small {font-size:12px;line-height:1.45;overflow-wrap:anywhere}
  .theme-live-preview .theme-preview-card strong {font-size:12px;overflow-wrap:anywhere}
  .theme-live-preview .theme-preview-tools {flex-wrap:wrap;min-width:0;gap:6px}
  .theme-live-preview .theme-preview-content button {min-height:44px;font-size:12px;max-width:100%;white-space:normal}
  .theme-settings-page-v2 .theme-color-grid label {min-width:0;gap:4px 8px;padding:8px}
  .theme-settings-page-v2 .theme-color-grid label :is(span,small,code) {overflow-wrap:anywhere;min-width:0}
  .theme-settings-page-v2 .theme-color-grid label code {font-size:11px}
  .theme-settings-page-v2 .theme-color-grid input[type=color] {width:44px;height:44px;max-width:100%;cursor:pointer}
  .theme-settings-page-v2 .theme-color-grid label {grid-template-columns:44px minmax(0,1fr)}
  @container eh-theme-main (max-width:720px) {
    .theme-settings-page-v2 :is(.theme-color-grid,.theme-color-grid.four,.theme-color-grid.five) {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  @container eh-theme-main (max-width:400px) {
    .theme-settings-page-v2 :is(.theme-color-grid,.theme-color-grid.four,.theme-color-grid.five) {grid-template-columns:minmax(0,1fr)}
    .theme-palette-audit .theme-audit-actions .btn {width:100%}
  }
}

/* R1059: compact authentication challenge and activation surfaces. */
@media screen {
  .auth-shell-security .auth-card-recovery {min-width:0;max-width:100%}
  .auth-shell-security .auth-recovery-form label {min-width:0;overflow-wrap:anywhere}
  .auth-shell-security .auth-recovery-form .auth-challenge-code {min-width:0;width:100%;font-size:16px!important;font-family:ui-monospace,monospace;letter-spacing:0;font-variant-numeric:tabular-nums;min-height:46px}
  .auth-shell-security .auth-recovery-form label small {display:block;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
  .auth-shell-security .auth-recovery-form .btn {min-height:44px;white-space:normal;text-align:center}
  .auth-shell-security .auth-recovery-note {font-size:12px;min-width:0;overflow-wrap:anywhere}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.auth-panel-icon,.auth-recovery-note .ui-icon) {color:var(--eh-info-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .auth-panel-icon {background:var(--eh-info-bg)!important;border-color:var(--eh-info-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.auth-activation-required,.auth-activation-required-icon,.auth-verification-panel.is-required) {background:var(--eh-caution-bg)!important;border-color:var(--eh-caution-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.auth-activation-required-icon,.auth-activation-required-copy small,.auth-verification-panel.is-required .auth-verification-copy strong .ui-icon) {color:var(--eh-caution-fg)!important}
}

/* R1060: settings search, accurate switch state and narrow content layout. */
@media screen {
  .settings-admin-page-v3 .settings-command-bar {min-width:0;container-type:inline-size;gap:8px;box-shadow:none!important}
  .settings-admin-page-v3 .settings-search-box {min-width:0;max-width:100%}
  .settings-admin-page-v3 .settings-search-box input {min-width:0;font-size:16px;max-width:100%}
  .settings-admin-page-v3 .settings-search-box [data-settings-search-clear] {min-width:44px;min-height:44px}
  .settings-admin-page-v3 .settings-search-results {min-width:0;max-width:calc(100% - 16px);border-radius:10px;box-shadow:0 4px 16px rgba(0,0,0,.12);overscroll-behavior:contain}
  .settings-admin-page-v3 .settings-search-results[hidden],.settings-admin-page-v3 [data-settings-search-clear][hidden] {display:none!important}
  .settings-search-summary {margin:0 0 5px;padding:8px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
  .settings-admin-page-v3 .settings-search-result {min-height:44px;padding:8px 10px;min-width:0;overflow-wrap:anywhere}
  .settings-admin-page-v3 .settings-search-result strong {font-size:13px;color:var(--ink)}
  .settings-admin-page-v3 .settings-search-result small {font-size:12px;color:var(--muted);line-height:1.4}
  .settings-admin-page-v3 .settings-search-result:focus-visible {outline:2px solid var(--link,#60a5fa);outline-offset:-2px}
  .settings-search-announcement {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .settings-admin-page-v3 .settings-sections {min-width:0;container-type:inline-size;container-name:eh-settings-content}
  .settings-admin-page-v3 :is(.settings-switch-grid,.article-setting-list,.sitemap-settings-grid)>label {min-width:0;max-width:100%;min-height:54px}
  .settings-admin-page-v3 :is(.switch,.article-setting-card,.sitemap-setting-card)>input[type=checkbox] {inset-inline-start:0;inset-block-start:0}
  .settings-admin-page-v3 :is(.switch,.article-setting-card,.sitemap-setting-card) :is(strong,small) {min-width:0;overflow-wrap:anywhere;white-space:normal}
  .settings-admin-page-v3 :is(.switch,.article-setting-card,.sitemap-setting-card) small {font-size:12px;line-height:1.4}
  .settings-admin-page-v3 :is(.switch>span,.article-setting-card>span:last-child,.sitemap-setting-card>span)::before {font-size:10px}
  .settings-admin-page-v3 :is(.switch,.article-setting-card,.sitemap-setting-card):has(>input:disabled) {cursor:not-allowed}
  .settings-admin-page-v3 :is(.switch:has(>input:disabled)>span,.article-setting-card:has(>input:disabled)>span:last-child,.sitemap-setting-card:has(>input:disabled)>span)::before {content:"Kilitli";background:var(--soft)!important;color:var(--ink)!important;border-color:var(--line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .settings-admin-page-v3 :is(.switch:not(:has(>input:checked)),.sitemap-setting-card:not(:has(>input:checked)))::before {background:#34465f!important;box-shadow:inset 0 0 0 1px #64748b!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .settings-admin-page-v3 .article-setting-card>input:checked+.setting-check {background:var(--brand)!important;box-shadow:inset 0 0 0 1px var(--brand)!important}
  @container eh-settings-content (max-width:600px) {
    .settings-admin-page-v3 :is(.settings-switch-grid,.article-setting-list,.sitemap-settings-grid) {grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
    .settings-admin-page-v3 :is(.switch,.article-setting-card,.sitemap-setting-card) {grid-template-columns:42px minmax(0,1fr);gap:8px!important;padding:9px 10px}
    .settings-admin-page-v3 :is(.switch>span,.article-setting-card>span:last-child,.sitemap-setting-card>span) {grid-template-columns:minmax(0,1fr);gap:4px;align-items:start}
    .settings-admin-page-v3 :is(.switch>span,.article-setting-card>span:last-child,.sitemap-setting-card>span)::before {grid-column:1;grid-row:auto;justify-self:start;margin:0}
  }
  @media(max-width:680px) {
    .settings-admin-page-v3 .settings-search-results {max-height:min(360px,45dvh)}
  }
}

/* R1061: category hierarchy search, readable status and branding chrome. */
@media screen {
  .category-hierarchy-panel {container-type:inline-size;container-name:eh-category-tree;min-width:0}
  .category-tree-tools {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px 12px;margin:0 0 12px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);min-width:0}
  .category-tree-tools[hidden],.category-tree-empty[hidden],.admin-category-root-card[hidden] {display:none!important}
  .category-tree-search {display:grid;gap:4px;min-width:0;font-size:12px;font-weight:700;color:var(--ink)}
  .category-tree-search input {width:100%;min-width:0;min-height:44px;font-size:16px}
  .category-tree-buttons {display:flex;flex-wrap:wrap;gap:6px;min-width:0}
  .category-tree-buttons .btn {min-height:44px;white-space:normal;font-size:12px;padding:7px 10px}
  .category-tree-result {grid-column:1/-1;margin:0;color:var(--muted);font-size:12px;overflow-wrap:anywhere}
  .category-tree-empty {padding:14px;border:1px solid var(--line);background:var(--surface);border-radius:10px;color:var(--muted);overflow-wrap:anywhere}
  .category-hierarchy-panel :is(.admin-category-summary-copy,.admin-category-child-title) :is(strong,small) {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:0}
  .category-hierarchy-panel :is(.admin-category-summary-copy,.admin-category-child-title) strong {font-size:13px}
  .category-hierarchy-panel :is(.admin-category-summary-copy,.admin-category-child-title) small {font-size:11px}
  .category-hierarchy-panel .admin-category-child-title {display:grid;gap:3px}
  .category-hierarchy-panel :is(.admin-category-root-toggle,.admin-category-root-static) {grid-template-columns:36px minmax(0,1fr) repeat(4,auto) 26px;min-width:0;gap:7px}
  .category-hierarchy-panel .admin-category-root-static {grid-template-columns:36px minmax(0,1fr) repeat(3,auto)}
  .category-hierarchy-panel :is(.admin-category-summary-order,.admin-category-summary-count,.admin-category-summary-news,.admin-category-meta>span) {font-size:11px;white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:100%}
  .category-hierarchy-panel :is(.admin-category-root-toggle,.admin-category-root-static)>.status {display:inline-flex;justify-self:start;min-width:0;white-space:normal;font-size:11px}
  .category-hierarchy-panel :is(.admin-category-root-toggle,.admin-category-root-static)>.admin-category-summary-news,.category-hierarchy-panel .admin-category-root-toggle>.admin-category-summary-count {display:inline-flex}
  .category-hierarchy-panel .admin-category-actions .btn {min-height:44px;min-width:0;white-space:normal;font-size:12px;overflow-wrap:anywhere;line-height:1.25}
  .category-hierarchy-panel .admin-category-actions form {min-width:0}
  .category-hierarchy-panel .admin-category-icon {width:36px;height:36px}
  .category-hierarchy-panel .admin-category-nested-group>summary {min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .category-hierarchy-panel .admin-category-root-toggle:focus-visible,.category-hierarchy-panel .admin-category-nested-group>summary:focus-visible {outline:2px solid var(--link,var(--brand));outline-offset:-3px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.admin-category-summary-order,.admin-category-summary-count,.admin-category-meta>span.is-order) {color:var(--eh-info-fg);background:var(--eh-info-bg);border-color:var(--eh-info-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.admin-category-meta>span.is-active,.admin-category-meta>span.is-home) {background:var(--eh-positive-bg);color:var(--eh-positive-fg);border-color:var(--eh-positive-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .admin-category-icon {color:color-mix(in srgb,var(--category-admin-color,#2563eb) 38%,#fff);background:color-mix(in srgb,var(--category-admin-color,#2563eb) 8%,var(--surface));border-color:var(--line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .branding-theme-chip.is-light {background:var(--soft);color:var(--ink);border-color:var(--line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .branding-theme-chip.is-footer {background:var(--eh-info-bg);color:var(--eh-info-fg);border-color:var(--eh-info-line)}
  @container eh-category-tree (max-width:1040px) {
    .category-hierarchy-panel .admin-category-root-row {grid-template-columns:minmax(0,1fr)}
    .category-hierarchy-panel .admin-category-root-actions {border-left:0;border-top:1px solid var(--line);padding:7px 9px}
    .category-hierarchy-panel .admin-category-root-actions .admin-category-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
    .category-hierarchy-panel .admin-category-root-actions .admin-category-actions .btn {width:100%;justify-content:center}
    .category-hierarchy-panel .admin-category-root-actions .btn-child-category {grid-column:auto}
  }
  @container eh-category-tree (max-width:680px) {
    .category-tree-tools {grid-template-columns:minmax(0,1fr)}
    .category-tree-buttons {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,90px),1fr))}
    .category-hierarchy-panel :is(.admin-category-root-toggle,.admin-category-root-static) {grid-template-columns:36px minmax(0,1fr) minmax(0,1fr) 24px;padding:9px}
    .category-hierarchy-panel .admin-category-summary-copy {grid-column:2/4;grid-row:1}
    .category-hierarchy-panel .admin-category-summary-chevron {grid-column:4;grid-row:1;width:24px}
    .category-hierarchy-panel :is(.admin-category-summary-order,.admin-category-summary-count,.admin-category-summary-news,.admin-category-root-toggle>.status,.admin-category-root-static>.status) {grid-column:span 2;grid-row:auto;justify-self:stretch;justify-content:center}
    .category-hierarchy-panel .admin-category-summary-order>span {display:inline}
    .category-hierarchy-panel .admin-category-root-static {grid-template-columns:36px minmax(0,1fr) minmax(0,1fr) 24px}
    .category-hierarchy-panel .admin-category-root-static .admin-category-summary-copy {grid-column:2/5}
    .category-hierarchy-panel .admin-category-child-main {grid-template-columns:36px minmax(0,1fr)}
    .category-hierarchy-panel .admin-category-child-main>.admin-category-actions {grid-column:1/-1;padding-left:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-hierarchy-panel .admin-category-child-main>.admin-category-actions .btn {width:100%}
    .category-hierarchy-panel .admin-category-root-children {padding:8px}
    .category-hierarchy-panel .admin-category-nested-list {padding:0 3px 5px}
    .category-hierarchy-panel .admin-category-nested-group {margin:0 4px 5px}
  }
  @container eh-category-tree (max-width:380px) {
    .category-hierarchy-panel .admin-category-root-actions .admin-category-actions {grid-template-columns:repeat(2,minmax(0,1fr))}
    .category-hierarchy-panel .admin-category-root-actions .btn-child-category {grid-column:1/-1}
  }
}

/* R1062: Web Push diagnostics — use actual content width, not viewport alone. */
.admin-body .notification-system-settings .push-background-health{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;margin:12px 0}
.admin-body .notification-system-settings .push-background-health article>div{min-width:0;overflow-wrap:anywhere}
.admin-body .notification-system-settings .push-background-health article small{font-size:11px}
.admin-body .notification-system-settings .notification-push-note{flex-wrap:wrap}
.admin-body .notification-system-settings .push-health-actions{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));gap:8px;margin:0;width:100%}
.admin-body .notification-system-settings .push-health-actions .btn{white-space:normal;overflow-wrap:anywhere;min-height:44px;height:auto;min-width:0;font-size:12px;line-height:1.3;justify-content:center;text-align:center}

/* R1063: menu workspace — preserve state and complete links on narrow panels. */
@media screen {
  .menu-builder-shell,.menu-builder-panel,.menu-library-panel,.menu-builder-item-main,.menu-builder-item-editor,.menu-inline-edit {min-width:0}
  .menu-builder-shell {display:flex;flex-wrap:wrap;gap:12px}
  .menu-builder-shell>.menu-library-panel {flex:1 1 240px;max-width:100%}
  .menu-builder-shell>.menu-builder-panel {flex:3 1 550px;max-width:100%}
  .menu-builder-panel {container-type:inline-size}
  .menu-builder-overview {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px;padding:0}
  .menu-builder-overview>div {display:grid;gap:2px;min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);overflow-wrap:anywhere}
  .menu-builder-overview dt {font-size:12px;color:var(--muted);line-height:1.3}
  .menu-builder-overview dd {margin:0;color:var(--ink);font-size:18px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
  .menu-builder-summary {min-height:44px;min-width:0;gap:8px}
  .menu-builder-summary-copy strong,.menu-builder-summary-copy small,.menu-builder-summary-copy em,.menu-location-card strong {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .menu-builder-summary-copy strong {font-size:13px;line-height:1.4}
  .menu-builder-summary-copy small {font-size:12px;line-height:1.4}
  .menu-builder-summary-copy em {display:inline-flex;font-size:10px;line-height:1.3;max-width:100%}
  .menu-builder-summary>.status {display:inline-flex;white-space:normal;justify-self:start}
  .menu-builder-summary-action {width:auto;min-width:0;min-height:36px;padding:5px 8px;font-size:11px;white-space:normal}
  .menu-builder-summary:focus-visible {outline:2px solid var(--brand);outline-offset:2px;border-radius:8px}
  .menu-sort-move {width:44px;height:44px}
  .menu-sort-status:empty {display:none}
  .menu-sort-status:not(:empty) {padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--soft);font-size:12px;overflow-wrap:anywhere}
  .menu-sort-status[data-state="success"] {background:#ecfdf3;color:#067647;border-color:#abefc6}
  .menu-sort-status[data-state="error"] {background:#fef3f2;color:#b42318;border-color:#fecdca}
  .menu-builder-panel .menu-category-sync-card :is(p,strong),.menu-builder-panel .menu-category-sync-card .btn {font-size:12px;overflow-wrap:anywhere;white-space:normal}
  .menu-builder-panel :is(.menu-category-sync-card .btn,.menu-inline-actions .btn,.menu-delete-form .btn) {min-height:44px;max-width:100%;white-space:normal}
  .menu-builder-item .menu-inline-grid :is(input:not([type=checkbox]),select) {min-width:0;width:100%;min-height:44px!important;height:auto!important;max-height:none!important;font-size:16px}
  .menu-builder-item .menu-inline-grid label {font-size:12px}
  .menu-builder-item .menu-icon-picker {min-width:0;padding:8px}
  .menu-builder-item .category-icon-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))}
  .menu-builder-item .category-icon-option {grid-template-columns:32px minmax(0,1fr) 20px;gap:6px;padding:6px!important}
  .menu-builder-item .category-icon-option>input[type=radio] {position:absolute!important;inset:0 auto auto 0!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;clip-path:inset(50%);overflow:hidden}
  .menu-builder-item .category-icon-option-visual {width:32px;height:32px}
  .menu-builder-item .category-icon-option :is(strong,small) {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .menu-builder-item .category-icon-option:focus-within {outline:2px solid var(--brand);outline-offset:1px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.menu-builder-summary-icon,.menu-location-card>span,.menu-category-sync-card>span,.menu-builder-summary-action,.category-icon-option-visual,.category-icon-compact-visual) {color:var(--eh-info-fg);background:var(--eh-info-bg);border-color:var(--eh-info-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .category-icon-option:has(input:checked) :is(.category-icon-option-visual,i) {background:#24476e;color:#eff6ff;border-color:#42658c}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .menu-sort-status[data-state="success"] {background:var(--eh-positive-bg);color:var(--eh-positive-fg);border-color:var(--eh-positive-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .menu-sort-status[data-state="error"] {background:var(--eh-negative-bg);color:var(--eh-negative-fg);border-color:var(--eh-negative-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .menu-builder-summary>.status-passive {background:var(--soft);color:var(--ink);border-color:var(--line)}
  @container (max-width:620px) {
    .menu-builder-overview {grid-template-columns:repeat(2,minmax(0,1fr))}
    .menu-builder-item,.menu-builder-item.is-child {grid-template-columns:minmax(0,1fr);gap:4px;padding:8px;margin-left:0}
    .menu-builder-item .menu-drag-handle {display:none}
    .menu-builder-summary {grid-template-columns:32px minmax(0,1fr);gap:6px}
    .menu-builder-summary-icon {width:32px;height:32px}
    .menu-builder-summary>.status {grid-column:2;grid-row:2}
    .menu-builder-summary-action {grid-column:2;grid-row:3;justify-self:start}
    .menu-builder-item .menu-inline-grid {grid-template-columns:minmax(0,1fr)}
    .menu-category-sync-card {grid-template-columns:36px minmax(0,1fr);gap:8px;padding:9px}
    .menu-category-sync-card>span {width:36px;height:36px}
    .menu-category-sync-card form {grid-column:1/-1;min-width:0}
    .menu-category-sync-card .btn {width:100%}
    .menu-builder-item-editor {padding:8px;gap:8px}
    .menu-builder-item :is(.menu-inline-actions .btn,.menu-delete-form .btn) {width:100%}
  }
}

/* R1065: one installation-card contract for public, reader and both panels.
   Basic route-level styles remain as a fallback; the permission has its own row. */
@media screen {
  .pwa-install-card.pwa-install-card-pro {box-sizing:border-box;grid-template-columns:52px minmax(0,1fr) auto;width:min(620px,calc(100vw - 36px));padding:12px;gap:9px 10px;border-radius:14px;background:var(--surface);color:var(--text)}
  .pwa-install-icon-shell {display:grid;place-items:center;width:52px;height:52px;padding:3px;border:1px solid var(--line);border-radius:12px;background:var(--soft);overflow:hidden;box-sizing:border-box}
  .pwa-install-icon-shell img {display:block;width:44px;height:44px;max-width:100%;object-fit:contain;border-radius:9px;background:transparent}
  .pwa-install-card-pro .pwa-install-copy {min-width:0;gap:3px}
  .pwa-install-card-pro .pwa-install-kicker {color:var(--brand);font-size:10px!important;font-weight:800;letter-spacing:.04em;text-transform:uppercase;overflow-wrap:anywhere}
  .pwa-install-card-pro .pwa-install-copy>strong {font-size:14px;line-height:1.35;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
  .pwa-install-card-pro .pwa-install-copy>small:not(.pwa-install-kicker) {font-size:11px;line-height:1.4;overflow-wrap:anywhere}
  .pwa-install-card-pro .pwa-install-push-state {grid-column:1/-1;display:flex;align-items:center;gap:7px;margin:0;padding:8px 2px 0;border-top:1px solid var(--line);color:var(--text);font-size:12px;font-weight:600;line-height:1.35;min-width:0}
  .pwa-install-push-state>span {min-width:0;white-space:normal;overflow-wrap:anywhere}
  .pwa-install-push-state .ui-icon {flex:0 0 16px;width:16px;height:16px;color:var(--brand)}
  .pwa-install-card-pro .pwa-install-actions {align-self:center;min-width:0;gap:6px}
  .pwa-install-card-pro .pwa-install-primary {min-height:44px;padding-inline:12px;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
  .pwa-install-card-pro .pwa-install-close {width:44px;height:44px;min-height:44px;flex:0 0 44px}
  .pwa-install-primary:disabled {opacity:.68;cursor:wait;transform:none}
  :is(.pwa-install-card-pro,.pwa-push-permission-card) button:focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .pwa-push-permission-card {box-sizing:border-box;max-width:calc(100vw - 20px);padding:12px;gap:10px;border-radius:14px}
  .pwa-push-permission-copy :is(strong,p) {overflow-wrap:anywhere}
  .pwa-push-permission-copy p {font-size:12px;line-height:1.45}
  .pwa-push-permission-copy .pwa-push-kicker {font-size:10px}
  .pwa-push-permission-actions .btn {min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .pwa-push-permission-close {width:44px;min-height:44px;flex-basis:44px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.pwa-install-card-pro .pwa-install-kicker,.pwa-install-push-state .ui-icon,.pwa-push-permission-copy .pwa-push-kicker,.notification-push-consent-icon) {color:var(--eh-info-fg)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.pwa-push-permission-icon,.notification-push-consent-icon) {background:var(--eh-info-bg);color:var(--eh-info-fg);border-color:var(--eh-info-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .pwa-push-permission-card.is-denied :is(.pwa-push-permission-icon,.pwa-push-kicker) {color:var(--eh-caution-fg)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .pwa-push-permission-card.is-denied .pwa-push-permission-icon {background:var(--eh-caution-bg);border-color:var(--eh-caution-line)}
  @media(max-width:680px) {
    .pwa-install-card.pwa-install-card-pro {left:10px;right:10px;width:auto;grid-template-columns:44px minmax(0,1fr);padding:10px}
    .pwa-install-icon-shell {width:44px;height:44px;padding:3px}
    .pwa-install-icon-shell img {width:36px;height:36px}
    .pwa-install-card-pro .pwa-install-actions {grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:minmax(0,1fr) 44px;width:100%}
    .pwa-install-card-pro .pwa-install-push-state {grid-row:2;padding-top:7px;font-size:11px}
    .pwa-install-card-pro .pwa-install-primary {width:100%}
    .pwa-push-permission-actions {display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:6px}
  }
  @media(max-width:430px) {
    .pwa-push-permission-actions {grid-template-columns:minmax(0,1fr) 44px}
    .pwa-push-permission-actions .btn.btn-ghost {grid-column:1;grid-row:2}
    .pwa-push-permission-close {grid-column:2;grid-row:1/3;width:44px;height:auto;align-self:stretch}
  }
  @media(max-height:400px) {
    :is(.pwa-install-card.pwa-install-card-pro,.pwa-push-permission-card) {max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain}
    .mobile-bottom-enabled :is(.pwa-install-card.pwa-install-card-pro,.pwa-push-permission-card) {max-height:calc(100dvh - 94px - env(safe-area-inset-bottom))}
  }
}

/* R1066: media library, native file controls and publisher media labels. */
@media screen {
  .admin-media-workspace {min-width:0;max-width:100%;container-type:inline-size}
  .admin-media-workspace .admin-media-stats {grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;margin-bottom:12px}
  .admin-media-workspace .admin-media-stat-card {padding:10px;gap:8px;min-height:64px}
  .admin-media-workspace .admin-media-stat-copy {min-width:0;overflow-wrap:anywhere}
  .admin-media-workspace .admin-media-stat-copy strong {font-size:21px}
  .admin-media-workspace .admin-media-section {padding:12px;margin-bottom:12px;border-radius:14px;min-width:0}
  .admin-media-workspace .admin-media-section-head {flex-wrap:wrap;gap:8px;margin-bottom:10px;padding-bottom:10px}
  .admin-media-workspace .admin-media-section-head>div>div {min-width:0;overflow-wrap:anywhere}
  .admin-media-workspace .admin-media-image-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:10px}
  .admin-media-workspace .admin-media-file-grid {grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px}
  .admin-media-workspace :is(.admin-media-card-body,.admin-media-file-card,.admin-media-file-meta,.media-metadata-form) {min-width:0;max-width:100%}
  .admin-media-workspace :is(.admin-media-card-body code,.admin-media-file-meta code,.admin-media-file-top strong) {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;min-width:0;user-select:text}
  .admin-media-workspace :is(.admin-media-card-body small,.admin-media-file-meta,.media-metadata-form label) {font-size:12px;overflow-wrap:anywhere}
  .admin-media-workspace .admin-media-card-body :is(.media-caption-note,.media-credit-note,.media-transfer-note) {font-size:12px!important;overflow-wrap:anywhere}
  .admin-media-workspace :is(.admin-media-card-actions,.media-metadata-form-actions) .btn {min-height:44px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
  .admin-media-workspace .media-metadata-form :is(input,textarea) {font-size:16px!important;min-height:44px!important;max-width:100%}
  .admin-media-workspace :is(audio,video) {max-width:100%}
  .admin-media-workspace audio {height:44px}
  .admin-media-workspace .admin-media-page-actions .btn {min-height:44px;white-space:normal;overflow-wrap:anywhere}
  .admin-media-workspace .admin-media-search-summary {overflow-wrap:anywhere}
  .admin-media-workspace .admin-media-pagination-footer {flex-wrap:wrap;min-width:0}
  .admin-media-workspace .admin-media-pagination-footer .pagination {max-width:100%;min-width:0;flex-wrap:wrap}
  .admin-media-workspace .admin-media-pagination-footer .pagination a {min-height:44px;min-width:44px}
  @container (max-width:420px) {
    .admin-media-workspace .admin-media-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    .admin-media-workspace .admin-media-stat-card {display:grid;grid-template-columns:1fr;gap:5px;align-content:start}
    .admin-media-workspace .admin-media-stat-icon {width:30px;height:30px}
    .admin-media-workspace .admin-media-page-actions {display:grid;grid-template-columns:minmax(0,1fr);width:100%}
    .admin-media-workspace .admin-media-page-actions .btn {width:100%}
    .admin-media-workspace .admin-media-section-head>a {width:100%;min-height:44px;white-space:normal}
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.admin-media-stat-icon,.admin-media-stat-card.is-active .admin-media-stat-icon,.admin-media-section-icon,.admin-media-file-top>span,.media-file-dropzone-icon,.media-transfer-note) {
    background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;border-color:var(--eh-info-line)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.admin-media-current-view>span,.media-credit-note .ui-icon,.media-caption-note .ui-icon,.admin-media-edit-toggle[aria-expanded="true"]) {color:var(--eh-info-fg)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.admin-media-cleanup-status.is-success,.admin-media-cleanup-status.is-error) :is(strong,span) {color:inherit}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .admin-media-cleanup-status.is-success {background:var(--eh-positive-bg);color:var(--eh-positive-fg);border-color:var(--eh-positive-line)}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .admin-media-cleanup-status.is-error {background:var(--eh-negative-bg);color:var(--eh-negative-fg);border-color:var(--eh-negative-line)}
  :is(.panel-body,.profile-content) input[type="file"] {max-width:100%;min-width:0;overflow:hidden}
  :is(.panel-body,.profile-content) input[type="file"]::file-selector-button {font:inherit;min-height:32px;margin-inline-end:8px;max-width:100%;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--ink);cursor:pointer;padding:4px 8px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.panel-body,.profile-content) input[type="file"]::file-selector-button {background:#26354b;color:#f1f5f9;border-color:#64748b}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .admin-media-workspace :is(audio,video) {color-scheme:dark}
}

/* R1068: account actions, settings navigation and shared role contrast. */
@media screen {
  .profile-page-modern .profile-hero-modern {display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:clamp(12px,2vw,20px);min-width:0}
  .profile-page-modern .profile-hero-modern>.profile-avatar {flex:0 0 auto;align-self:center}
  .profile-page-modern .profile-hero-modern>.profile-hero-copy {flex:1 1 200px;min-width:0}
  .profile-page-modern .profile-hero-copy h1 {overflow-wrap:anywhere;word-break:normal}
  .profile-page-modern .profile-hero-role-line {display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;min-width:0}
  .profile-page-modern .profile-hero-role-line>span:first-child {overflow-wrap:anywhere!important;word-break:normal!important;hyphens:none!important}
  .profile-page-modern .profile-hero-role-line>.profile-role-badge {height:auto;min-height:26px;max-width:100%;padding-block:5px;white-space:normal;line-height:1.25}
  .profile-page-modern .profile-role-badge>span {white-space:normal;overflow:visible;overflow-wrap:anywhere;text-overflow:clip}
  .profile-page-modern .profile-actions.profile-actions-pro {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 1 300px;width:300px;max-width:100%;min-width:0;gap:8px;margin:0 0 0 auto!important;align-items:stretch}
  .profile-page-modern .profile-actions-pro.profile-actions--member.profile-actions--apply-0 {grid-template-columns:minmax(0,1fr)}
  .profile-page-modern .profile-actions-pro.profile-actions--member.profile-actions--apply-2>.profile-action-logout {grid-column:1/-1}
  .profile-page-modern .profile-actions-pro>.profile-action,.profile-page-modern .profile-actions-pro>.profile-action-logout {width:100%;min-width:0;margin:0}
  .profile-page-modern .profile-actions-pro>.profile-action-logout {display:flex;align-items:stretch}
  .profile-page-modern .profile-actions-pro .profile-action {display:flex!important;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;height:auto;min-height:44px;padding:8px 9px;border-radius:10px;font-size:12px;line-height:1.25;white-space:normal;text-align:center;box-shadow:none;transition:background-color .15s,border-color .15s,color .15s}
  .profile-page-modern .profile-actions-pro .profile-action .ui-icon {flex:0 0 16px;width:16px;height:16px;margin:0}
  .profile-page-modern .profile-actions-pro .profile-action-label {min-width:0;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
  .profile-page-modern .profile-actions-pro .profile-action:focus-visible,.profile-settings-tabs a:focus-visible,.admin-body .directory-tabs a:focus-visible {outline:2px solid #60a5fa;outline-offset:2px}
  @media(max-width:900px) {
    .profile-page-modern .profile-hero-modern {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
    .profile-page-modern .profile-actions.profile-actions-pro {grid-column:1/-1;width:100%;margin:2px 0 0!important}
  }
  .profile-settings-content .profile-settings-tabs {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:6px;padding:6px;min-width:0}
  .profile-settings-content .profile-settings-tabs a {min-width:0;min-height:44px;padding:8px;gap:6px;font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:center;justify-content:center}
  .profile-settings-content .profile-settings-tabs .profile-settings-tab-link {grid-column:auto}
  .profile-settings-content .profile-settings-summary>div {min-width:0;overflow-wrap:anywhere}
  .profile-settings-content .profile-settings-summary>.btn {min-height:44px;white-space:normal;text-align:center}
  @media(max-width:760px) {
    .profile-settings-content .profile-settings-tabs {grid-template-columns:repeat(2,minmax(0,1fr))}
    .profile-settings-content .profile-settings-tabs .profile-settings-tab-link {grid-column:1/-1}
  }
  .admin-body .user-directory-title-row {flex-wrap:wrap}
  .admin-body .user-directory-title-row>div:first-child {min-width:0;flex:1 1 260px;overflow-wrap:anywhere}
  .admin-body .user-directory-page-actions {display:flex;flex-wrap:wrap;min-width:0;max-width:100%;gap:8px}
  .admin-body .user-directory-page-actions>.btn {min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;text-align:center;box-shadow:none}
  .admin-body .directory-tabs {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:6px;min-width:0;overflow:visible;margin-inline:0}
  .admin-body .directory-tabs a {min-width:0;min-height:44px;padding:8px;white-space:normal;overflow-wrap:anywhere;text-align:center}
  .admin-body .directory-tabs .ui-icon {flex:0 0 17px}
  @media(max-width:760px) {
    .admin-body .user-directory-title-row>div:first-child {flex:0 1 auto}
    .admin-body .user-directory-page-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
    .admin-body .user-directory-page-actions>.user-directory-create-btn {grid-column:1/-1}
    .admin-body .directory-tabs {grid-template-columns:repeat(2,minmax(0,1fr))}
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-member {--badge-accent:#cbd5e1}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-author {--badge-accent:#93c5fd}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-reporter {--badge-accent:#fca5a5}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-editor {--badge-accent:#c4b5fd}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-category_editor {--badge-accent:#99f6e4}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-chief_editor {--badge-accent:#fde68a}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-admin {--badge-accent:#cbd5e1}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-role-badge.role-super_admin {--badge-accent:#fda4af}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .user-presence-badge.is-online {--badge-accent:#a7f3d0}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.user-role-badge,.user-presence-badge) {background:color-mix(in srgb,var(--badge-accent,#cbd5e1) 8%,#111827)!important;color:var(--badge-accent,#cbd5e1)!important;border-color:color-mix(in srgb,var(--badge-accent,#cbd5e1) 30%,#334155)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .profile-settings-content .profile-settings-tabs a.is-active {background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;border-color:var(--eh-info-line)!important}
}

/* R1071: balance variable-length dashboard rows without placeholder cards. */
.admin-body :is(.dashboard-command-grid-twelve,.dashboard-quick-actions,.dashboard-priority-grid,.approval-dashboard-strip),
.profile-page-modern :is(.account-overview-grid,.profile-action-center-grid,.profile-dashboard-quick-grid,.profile-follow-overview-grid),
body.author-panel-body .author-command-grid {
  display:flex!important;flex-wrap:wrap;gap:10px!important;min-width:0;max-width:100%;
}
.admin-body :is(.dashboard-command-grid-twelve,.dashboard-quick-actions,.dashboard-priority-grid,.approval-dashboard-strip)>*,
.profile-page-modern :is(.account-overview-grid,.profile-action-center-grid,.profile-dashboard-quick-grid,.profile-follow-overview-grid)>*,
body.author-panel-body .author-command-grid>* {
  flex:1 1 190px;min-width:min(100%,190px);max-width:100%;box-sizing:border-box;
}
.admin-body :is(.dashboard-command-grid-twelve,.dashboard-quick-actions,.dashboard-priority-grid,.approval-dashboard-strip):empty{display:none!important}
.admin-body .dashboard-command-grid-twelve :is(strong,small),body.author-panel-body .author-command-grid :is(strong,small){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal;display:block;-webkit-line-clamp:unset;line-height:1.4}
/* Preserve existing payout rules and actions; layout uses available space. */
.payout-center{container-type:inline-size;min-width:0}
.payout-center .payout-overview-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}
.payout-center .payout-workspace{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:start}
.payout-center .payout-readiness-card{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:"copy progress" "chips chips";gap:12px;padding:16px}
.payout-center :is(.payout-overview-card,.payout-readiness-copy,.payout-account-card,.payout-request-panel,.payout-accounts-panel,.payout-policy-chips,.payout-calculation)>*{min-width:0;max-width:100%}
.payout-center .payout-overview-card{min-height:90px;padding:12px;box-shadow:none;gap:9px}
.payout-center :is(.payout-overview-card,.payout-account-copy,.payout-calculation,.payout-readiness-copy) :is(strong,small,em,code,p,h2){white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;word-break:normal}
.payout-center .payout-policy-chips{display:flex;flex-wrap:wrap;gap:6px}
.payout-center .payout-policy-chips>span{font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere;max-width:100%;border-radius:9px}
.payout-center .payout-policy-chips .ui-icon{flex-shrink:0}
.payout-center .payout-account-actions{display:flex;flex-wrap:wrap;gap:6px}
.payout-center .payout-account-actions form{flex:1 1 95px;min-width:0}
.payout-center .payout-account-actions .btn{min-height:44px;width:100%;font-size:12px;white-space:normal}
.payout-center .payout-quick-amounts{display:flex!important;flex-wrap:wrap;gap:6px!important}
.payout-center .payout-quick-amounts button{flex:1 1 115px;min-width:0;min-height:44px;white-space:normal;overflow-wrap:anywhere;font-size:12px}
.payout-center .payout-request-form :is(input:not([type=hidden]),select,textarea),.payout-center .payout-account-form :is(input,select){min-width:0;max-width:100%;font-size:16px}
.payout-center .payout-request-form [data-payout-submit]{min-height:44px;white-space:normal}
@container (max-width:850px){.payout-center .payout-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.payout-center .payout-workspace{grid-template-columns:minmax(0,1fr)!important}}
@container (max-width:580px){.payout-center .payout-readiness-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "progress" "chips"}.payout-center .payout-overview-card{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:6px}.payout-center .payout-overview-card>span{width:34px;height:34px}.payout-center .payout-overview-card strong{font-size:19px}.payout-center .payout-overview-card em{font-size:11px}}
@container (max-width:300px){.payout-center .payout-overview-grid{grid-template-columns:minmax(0,1fr)!important}}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .payout-center :is(.payout-policy-chips .is-warning,.payout-state-message:not(.is-locked)){background:#382c1a!important;border-color:#806334!important;color:#fde68a!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .payout-center :is(.payout-overview-card>span,.payout-readiness-icon,.payout-account-mark){color:color-mix(in srgb,var(--brand) 40%,#dbeafe)!important}
/* Limit columns on wide panels; let the last partial row fill the available width. */
.admin-body :is(.dashboard-command-grid-twelve,.dashboard-quick-actions,.approval-dashboard-strip)>*,body.author-panel-body .author-command-grid>*{flex-basis:max(190px,calc((100% - 40px)/5))}
.profile-page-modern :is(.profile-dashboard-quick-grid,.profile-action-center-grid,.profile-follow-overview-grid)>*{flex-basis:max(220px,calc((100% - 20px)/3));min-width:min(100%,220px)}

/* R1072: independent consecutive panels must not touch by default. Existing
   component-specific margins and nested grid layouts retain precedence. */
:where(.admin-body,.author-panel-body) :where(.panel-content) > :where(section.panel,article.panel) + :where(section.panel,article.panel){margin-block-start:16px}

/* R1073: payout header has independent title, account count and description. */
.payout-center .payout-accounts-heading{display:grid!important;grid-template-columns:38px minmax(0,1fr) max-content;grid-template-areas:"icon title count" "icon description description";align-items:start!important;gap:5px 10px!important;min-width:0}
.payout-center .payout-accounts-heading>.panel-head-icon{grid-area:icon;margin:0!important;align-self:start}
.payout-center .payout-accounts-heading>h2{grid-area:title;min-width:0;margin:0!important;line-height:1.25;overflow-wrap:break-word}
.payout-center .payout-accounts-heading>p{grid-area:description;margin:0!important;min-width:0;overflow-wrap:anywhere;line-height:1.5}
.payout-center .payout-accounts-heading>.payout-account-count{grid-area:count;justify-self:end;align-self:center;display:inline-flex!important;align-items:center;justify-content:center;min-width:max-content;max-width:none!important;white-space:nowrap!important;line-height:1.2;padding:6px 10px!important;margin:0!important;position:static!important;float:none!important}
@container (max-width:420px){.payout-center .payout-accounts-heading{grid-template-columns:36px minmax(0,1fr);grid-template-areas:"icon title" "icon count" "description description"}.payout-center .payout-accounts-heading>.payout-account-count{justify-self:start}}
body.author-panel-body .payout-center--publisher{width:100%;max-width:none;padding:0!important;margin:0;min-width:0}
body.author-panel-body .reporter-tool-grid{display:flex!important;flex-wrap:wrap;gap:10px!important}
body.author-panel-body .reporter-tool-grid>a{flex:1 1 220px;min-width:0;max-width:100%;overflow-wrap:anywhere}

/* R1074: editorial queue uses available panel width; preserve content/brand previews. */
@media screen {
  .admin-body .correction-report-admin{container-type:inline-size;gap:12px;min-width:0}
  .admin-body .correction-report-stats{display:flex;flex-wrap:wrap;gap:8px}
  .admin-body .correction-report-stat{flex:1 1 140px;min-width:0;min-height:64px;padding:10px;gap:4px 8px;box-shadow:none}
  .admin-body .correction-report-stat:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
  .admin-body .correction-report-card__body{gap:12px;padding:12px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .admin-body .correction-report-card__meta{padding:9px 12px}
  .admin-body .correction-report-action{padding:10px;gap:8px}
  .admin-body .correction-report-action :is(label,textarea,select){min-width:0;max-width:100%}
  .admin-body .correction-report-action :is(textarea,select){width:100%}
  .admin-body .correction-report-page-summary,.admin-body .correction-report-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--muted);font-size:12px;overflow-wrap:anywhere}
  .admin-body .correction-report-page-summary strong{color:var(--ink)}
  .admin-body .correction-report-pagination .btn{min-height:44px;white-space:normal;flex:0 1 auto}
  .admin-body .correction-report-pagination [aria-current]{margin-inline:auto;color:var(--ink);font-weight:700}
  @container(max-width:650px){
    .admin-body .correction-report-card__body{grid-template-columns:minmax(0,1fr)}
    .admin-body .correction-report-stat{flex-basis:120px}
    .admin-body .correction-report-card__meta time{margin-left:0;overflow-wrap:anywhere}
    .admin-body .correction-report-action :is(select,textarea){font-size:16px}
    .admin-body .correction-report-action .btn{min-height:44px}
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.status-expired,.status-cancelled){background:#283548!important;color:#e2e8f0!important;border-color:#475569!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .correction-report-card.is-new .correction-report-status{background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .correction-report-card.is-reviewing .correction-report-status{background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) :is(.correction-report-card.is-resolved .correction-report-status,.correction-report-resolution){background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .correction-report-stat.is-active>span{color:var(--eh-info-fg)!important;background:var(--eh-info-bg)!important}
}

/* R1075: compact table labels; the badge, not the news title, owns its intrinsic width. */
:where(.table-wrap,.table-scroll,.responsive-table) :is(.earning-type-chip,.earning-type){
  width:max-content;max-width:none;white-space:nowrap;word-break:normal;overflow-wrap:normal;
  justify-content:center;line-height:1.25;text-align:center;vertical-align:middle;
}
.author-earning-table :is(td[data-label="Tür"],td[data-label="Durum"]){vertical-align:middle}
.author-earning-table td[data-label="Haber"]{overflow-wrap:anywhere;word-break:normal}
.author-earning-table td[data-label="Durum"]>.status{width:max-content;white-space:nowrap;word-break:normal;overflow-wrap:normal;line-height:1.25}
@media(max-width:720px){
  /* Give the compact value its natural width while keeping the label visible. */
  .author-earning-table td:is([data-label="Tür"],[data-label="Durum"]){
    grid-template-columns:minmax(0,1fr) minmax(0,max-content);gap:8px;align-items:center;
  }
  .author-earning-table td:is([data-label="Tür"],[data-label="Durum"])>:is(.earning-type-chip,.status){
    justify-self:end;max-width:100%;white-space:normal;overflow-wrap:anywhere;
  }
  /* Unusually long translated/custom values may wrap instead of clipping. */
  :where(.table-wrap,.table-scroll,.responsive-table) :is(.earning-type-chip,.earning-type){
    max-width:100%;white-space:normal;overflow-wrap:anywhere;
  }
}
@media(max-width:720px){
  .mobile-card-table td:has(>:is(.earning-type-chip,.earning-type):only-child){
    grid-template-columns:minmax(0,1fr) minmax(0,max-content);gap:8px;
  }
  .mobile-card-table td>:is(.earning-type-chip,.earning-type):only-child{justify-self:end}
}

/* R1076: intrinsic-width news actions; never squeeze the icon/label into a fixed 76–88px track. */
.panel-body .author-news-table td[data-label="İşlem"] .author-news-actions{
  display:flex!important;flex-wrap:wrap;align-items:stretch;justify-content:flex-end;
  gap:6px!important;width:240px;max-width:100%;min-width:148px!important;
}
.panel-body .author-news-table .author-news-actions>:is(a.btn,form){
  flex:1 1 auto;min-width:0;width:auto;max-width:100%;margin:0;
}
.panel-body .author-news-table .author-news-actions>form{display:flex;align-items:stretch}
.panel-body .author-news-table .author-news-actions>form>.btn{width:100%}
.panel-body .author-news-table .author-news-actions:has(.publisher-delete-request-pending){min-width:148px}
.panel-body .author-news-table .publisher-delete-request-pending{
  flex:1 1 100%;width:100%;min-width:0;max-width:100%;min-height:34px;
  white-space:normal;text-align:center;justify-content:center;line-height:1.3;overflow-wrap:anywhere;
}
/* The same content-safe sizing applies to admin news and deletion approvals. */
.admin-body .news-management-panel .news-row-actions,
.admin-body .approval-delete-requests .approval-card footer{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,132px),1fr))!important;
  gap:6px;align-items:stretch;min-width:0;
}
.admin-body .news-management-panel .news-row-actions>:is(a,form),
.admin-body .approval-delete-requests .approval-card footer>:is(a,form){width:100%;min-width:0;max-width:100%;margin:0}
.admin-body :is(.news-management-panel .news-row-actions,.approval-delete-requests .approval-card footer)>form{display:flex;align-items:stretch}
.admin-body :is(.news-management-panel .news-row-actions,.approval-delete-requests .approval-card footer) .btn{width:100%}
.panel-body .author-news-table .author-news-actions .btn,
.admin-body :is(.news-management-panel .news-row-actions,.approval-delete-requests .approval-card footer) .btn{
  box-sizing:border-box;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:6px!important;min-height:36px!important;height:auto!important;min-width:0;max-width:100%;
  padding:8px 10px!important;font-size:11px!important;line-height:1.25!important;
  white-space:normal!important;text-align:center;word-break:normal;overflow-wrap:anywhere;
}
/* Direct anchors retain intrinsic widths; the old 100% mobile rule must not force them onto their own rows. */
.panel-body .author-news-table td[data-label="İşlem"] .author-news-actions>a.btn{width:auto!important}
:is(.author-news-actions,.news-row-actions,.approval-delete-requests .approval-card footer) .news-action-label{
  display:block!important;min-width:0;max-width:100%;white-space:normal;word-break:normal;overflow-wrap:anywhere;
}
:is(.author-news-actions,.news-row-actions,.approval-delete-requests .approval-card footer) :is(.btn,.publisher-delete-request-pending)>.ui-icon{
  flex:0 0 15px!important;width:15px!important;height:15px!important;margin:0!important;
}
@media(max-width:760px){
  .panel-body .mobile-card-table.author-news-table td[data-label="İşlem"] .author-news-actions{
    width:100%!important;max-width:100%!important;
  }
  .panel-body .author-news-table .author-news-actions .btn,
  .admin-body :is(.news-management-panel .news-row-actions,.approval-delete-requests .approval-card footer) .btn{min-height:44px!important}
}
@media(max-width:720px){
  .panel-body .mobile-card-table.author-news-table td[data-label="İşlem"] .author-news-actions{min-width:0!important}
}
/* A form's default intrinsic minimum can be smaller than its nested button. */
.panel-body .author-news-table td[data-label="İşlem"] .author-news-actions>:is(.author-news-delete-request-form,.publisher-delete-cancel-form){
  flex:1 1 128px!important;min-width:min(100%,128px)!important;width:auto;
}

/* R1077: keep table geometry intact; only the contents of a metric cell form a stack. */
.panel-body :is(.author-news-table,.live-broadcast-history) .publisher-metric,
.panel-body .author-news-table .publisher-status-stack {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
  min-width:0;max-width:100%;gap:3px;text-align:left;
}
.panel-body :is(.author-news-table,.live-broadcast-history) .publisher-metric>strong {
  font-variant-numeric:tabular-nums;line-height:1.35;max-width:100%;overflow-wrap:anywhere;
}
.panel-body :is(.author-news-table,.live-broadcast-history) .publisher-metric>small {
  margin:0;color:var(--muted);font-size:11px;line-height:1.4;max-width:100%;overflow-wrap:anywhere;
}
.panel-body .publisher-read-metric .publisher-metric-unit {font-size:10px;font-weight:600;color:var(--muted)}
.panel-body .publisher-read-metric .publisher-metric-note b {font-variant-numeric:tabular-nums;font-weight:750}
.panel-body .publisher-read-metric .publisher-metric-note.is-credited {color:var(--ink)}
@media (min-width:721px) {
  .panel-body .author-news-table td[data-label="Okuma / Kazançlı"],
  .panel-body .live-broadcast-history td:first-child {display:table-cell;vertical-align:middle}
  .panel-body .author-news-table table {min-width:940px}
  .panel-body .author-news-table .publisher-read-metric {min-width:110px}
  .panel-body .author-news-table .publisher-status-stack>small {max-width:180px;overflow-wrap:anywhere}
}
@media (max-width:720px) {
  .panel-body :is(.author-news-table,.live-broadcast-history) .publisher-metric,
  .panel-body .author-news-table .publisher-status-stack {align-items:flex-end;text-align:right;justify-self:end;grid-column:2;grid-row:1}
  .panel-body .live-broadcast-history .mobile-card-table td:before,
  .panel-body .author-news-table td:before {align-self:center}
}

:is(html[data-resolved-theme="dark"] body,body[data-resolved-theme="dark"],body[data-theme="dark"]) .author-news-table .publisher-editorial-feedback.is-rejected {color:#fca5a5}

/* R1078: compact contact inbox; keep message text and action targets intact. */
.admin-body .contact-inbox {display:grid;gap:12px;min-width:0;max-width:100%}
.admin-body .contact-inbox .page-title-row {margin:0;gap:10px;flex-wrap:wrap;align-items:center}
.admin-body .contact-page-count,.admin-body .contact-state {display:inline-flex;align-items:center;width:fit-content;max-width:100%;padding:5px 9px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);font-size:12px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.admin-body .contact-state[data-state="new"] {background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.admin-body .contact-state[data-state="replied"] {background:#ecfdf3;color:#067647;border-color:#abefc6}
.admin-body .contact-inbox .contact-message-filter {display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)!important;gap:10px;align-items:end;margin:0}
.admin-body .contact-inbox .contact-message-filter>label,.admin-body .contact-reply-grid>label {display:grid;gap:5px;min-width:0;width:100%;font-size:12px;font-weight:650;color:var(--ink)}
.admin-body .contact-inbox :is(input,select,textarea) {min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.admin-body .contact-inbox .eh-filter-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;min-width:0}
.admin-body .contact-inbox .contact-admin-list {gap:10px;min-width:0}
.admin-body .contact-inbox .contact-admin-card {padding:14px;min-width:0;margin:0;max-width:100%;box-sizing:border-box}
.admin-body .contact-inbox .contact-admin-card>header {display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start}
.admin-body .contact-card-heading {flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.admin-body .contact-card-heading h2 {font-size:16px;line-height:1.4;margin:6px 0 3px;overflow-wrap:anywhere}
.admin-body .contact-card-actions {display:flex;flex-wrap:wrap;align-items:stretch;gap:6px;min-width:0;max-width:100%}
.admin-body .contact-inbox .contact-card-actions>form {display:flex;flex:1 1 auto;width:auto;min-width:0;margin:0}
.admin-body .contact-inbox .contact-admin-message,.admin-body .contact-inbox .contact-admin-reply {margin:10px 0;padding:12px;border-radius:9px;overflow-wrap:anywhere;min-width:0;line-height:1.6}
.admin-body .contact-inbox .contact-admin-reply p {overflow-wrap:anywhere;color:var(--ink)}
.admin-body .contact-inbox .contact-reply-details {border:1px solid var(--line);border-radius:9px;background:var(--surface);min-width:0;max-width:100%}
.admin-body .contact-inbox .contact-reply-details>summary {display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:40px;box-sizing:border-box;cursor:pointer;color:var(--ink);font-weight:700;list-style:none}
.admin-body .contact-inbox .contact-reply-details>summary::-webkit-details-marker {display:none}
.admin-body .contact-inbox .contact-reply-details>summary::after {content:'+';margin-inline-start:auto;font-size:18px;line-height:1}
.admin-body .contact-inbox .contact-reply-details[open]>summary::after {content:'−'}
.admin-body .contact-inbox .contact-reply-form {padding:12px;margin:0;min-width:0;gap:10px;border-top:1px solid var(--line)}
.admin-body .contact-inbox .contact-reply-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:end}
.admin-body .contact-inbox .contact-pagination {display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;min-width:0;color:var(--muted);font-size:12px}
.admin-body .contact-inbox .btn {display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;height:auto!important;min-height:36px!important;min-width:0;max-width:100%;padding:8px 10px!important;text-align:center;white-space:normal!important;overflow-wrap:anywhere;line-height:1.3!important}
.admin-body .contact-inbox .btn .ui-icon,.admin-body .contact-reply-details .ui-icon {width:15px;height:15px;flex:0 0 15px;margin:0}
.admin-body .contact-inbox .contact-card-actions .btn,.admin-body .contact-inbox .contact-reply-actions .btn {width:100%}
.admin-body .contact-inbox :is(.btn,summary):focus-visible {outline:2px solid var(--brand);outline-offset:2px}
@media(max-width:1000px){.admin-body .contact-inbox .contact-message-filter {grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-body .contact-inbox .eh-filter-actions{grid-column:1/-1}}
@media(max-width:600px){.admin-body .contact-inbox .contact-message-filter,.admin-body .contact-inbox .contact-reply-grid{grid-template-columns:minmax(0,1fr)!important}.admin-body .contact-inbox .contact-card-actions{width:100%}.admin-body .contact-inbox .contact-admin-card{padding:10px}.admin-body .contact-inbox .btn,.admin-body .contact-inbox .contact-reply-details>summary{min-height:44px!important}}
/* Dark surfaces: preserve real content, logos, ad previews and toggle knobs. */
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .contact-state[data-state="new"] {background:var(--eh-info-bg)!important;color:var(--eh-info-fg)!important;border-color:var(--eh-info-line)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .contact-state[data-state="replied"] {background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .contact-admin-reply {background:var(--eh-positive-bg)!important;border-color:var(--eh-positive-line)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .contact-admin-reply>strong {color:var(--eh-positive-fg)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .news-management-action-count {background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important}

/* R1079: compact, theme-native SEO 404 workspace. */
.admin-body .nf-workspace{display:grid;gap:12px;min-width:0;max-width:100%;color:var(--ink)}
.admin-body .nf-heading{margin:0;gap:10px;flex-wrap:wrap;align-items:center}
.admin-body .nf-heading>div,.admin-body .nf-heading>form{min-width:0;max-width:100%}
.admin-body .nf-filter{display:grid!important;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto!important;gap:8px;align-items:end;margin:0;min-width:0}
.admin-body .nf-filter label{min-width:0;display:grid;gap:5px}
.admin-body .nf-filter :is(input,select){min-width:0;width:100%;background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.admin-body .nf-filter .eh-filter-actions{display:flex!important;gap:6px;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-width:0}
.admin-body .nf-panel{min-width:0;padding:0!important;overflow:hidden;background:var(--surface)!important;border-color:var(--line)!important}
.admin-body .nf-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:14px;border-bottom:1px solid var(--line)}
.admin-body .nf-summary h2{margin:0;font-size:16px;color:var(--ink)}
.admin-body .nf-summary span,.admin-body .nf-notice,.admin-body .nf-row small,.admin-body .nf-pagination span{color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.admin-body .nf-list{list-style:none;padding:0;margin:0;display:grid;min-width:0}
.admin-body .nf-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(108px,.6fr) minmax(118px,.8fr) minmax(0,1.2fr);align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);min-width:0;background:var(--surface)!important;color:var(--ink)!important}
.admin-body .nf-row>div{display:grid;gap:3px;min-width:0;align-content:center;overflow-wrap:anywhere}
.admin-body .nf-row:last-child{border-bottom:0}
.admin-body .nf-address code{display:block;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;word-break:normal;padding:5px 7px;background:var(--soft)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:6px;font-size:12px;line-height:1.45}
.admin-body .nf-hits strong{font-variant-numeric:tabular-nums;font-size:15px}
.admin-body .nf-dates strong{font-size:12px;font-variant-numeric:tabular-nums}
.admin-body .nf-action{justify-items:end}
.admin-body .nf-workspace .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;padding:8px 10px!important;min-height:36px!important;height:auto!important;max-width:100%;min-width:0;white-space:normal!important;line-height:1.3;text-align:center;overflow-wrap:anywhere;box-shadow:none!important}
.admin-body .nf-workspace .btn .ui-icon{flex:0 0 15px;width:15px;height:15px;margin:0}
.admin-body .nf-workspace :is(.btn,input,select):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.admin-body .nf-pagination{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px;border-top:1px solid var(--line)}
.admin-body .nf-notice{margin:0;padding:4px 8px}
@media(max-width:1200px){.admin-body .nf-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-body .nf-address{grid-column:1/-1}.admin-body .nf-action{grid-column:1/-1;justify-items:start}}
@media(max-width:1000px){.admin-body .nf-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}.admin-body .nf-filter .eh-filter-actions{grid-column:1/-1}}
@media(max-width:600px){.admin-body .nf-filter{grid-template-columns:minmax(0,1fr)!important}.admin-body .nf-filter .eh-filter-actions>*{flex:1}.admin-body .nf-workspace .btn{min-height:44px!important}.admin-body .nf-action .btn{width:100%}.admin-body .nf-heading>form{width:100%}.admin-body .nf-heading>form .btn{width:100%}}
.admin-body .nf-row :is(strong,small){min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}

/* R1080: bounded referral workspace, theme-native risk and action controls. */
.admin-body .referral-workspace,.admin-body .referral-workspace :is(.panel,.table-wrap){min-width:0;max-width:100%}
.admin-body .referral-workspace .admin-referral-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,142px),1fr));gap:8px;margin:12px 0}
.admin-body .referral-workspace .admin-referral-summary>div{padding:12px;border-radius:10px;box-shadow:none;background:var(--surface)!important;border-color:var(--line)!important}
.admin-body .referral-workspace .admin-referral-rule-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:8px;margin:10px 0}
.admin-body .referral-workspace .admin-referral-rule-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:10px;border-radius:8px;background:var(--soft)!important;border-color:var(--line)!important;overflow-wrap:anywhere}
.admin-body .referral-workspace .admin-referral-filter{display:grid!important;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:8px!important;min-width:0}
.admin-body .referral-workspace .admin-referral-filter .eh-filter-actions{grid-column:1/-1;justify-content:flex-end}
.admin-body .referral-workspace :is(input,select){min-width:0;max-width:100%;background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important}
.admin-body .referral-workspace .table-wrap{overflow-x:auto}
.admin-body .referral-workspace td :is(strong,small){max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere}
.admin-body .referral-workspace .referral-admin-actions{display:grid;gap:6px;min-width:0;max-width:100%;align-content:center}
.admin-body .referral-workspace :is(.referral-admin-actions form,.inline-admin-form){display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;max-width:100%;margin:0}
.admin-body .referral-workspace .referral-admin-actions select{flex:1 1 105px;min-height:36px;height:auto}
.admin-body .referral-workspace .btn{display:inline-flex!important;align-items:center;justify-content:center;gap:6px!important;min-height:36px!important;height:auto!important;min-width:0;max-width:100%;padding:7px 10px!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.3;text-align:center;box-shadow:none!important}
.admin-body .referral-workspace .btn .ui-icon{flex:0 0 15px;width:15px;height:15px;margin:0}
.admin-body .referral-workspace :is(.btn,input,select):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.admin-body .referral-workspace .referral-risk{display:inline-flex;max-width:100%;white-space:normal;overflow-wrap:anywhere;border:1px solid transparent;font-weight:750}
.admin-body .referral-workspace .referral-risk-clean{background:#ecfdf3;color:#067647;border-color:#b7e4c7}
.admin-body .referral-workspace .referral-risk-review{background:#fff7e6;color:#92400e;border-color:#f1d29c}
.admin-body .referral-workspace .referral-risk-blocked{background:#fef2f2;color:#991b1b;border-color:#fecaca}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .referral-workspace .referral-risk-clean{background:var(--eh-positive-bg)!important;color:var(--eh-positive-fg)!important;border-color:var(--eh-positive-line)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .referral-workspace .referral-risk-review{background:var(--eh-caution-bg)!important;color:var(--eh-caution-fg)!important;border-color:var(--eh-caution-line)!important}
:is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .referral-workspace .referral-risk-blocked{background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;border-color:var(--eh-negative-line)!important}
.admin-body .referral-workspace .referral-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:10px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.admin-body .referral-workspace .referral-page-note{padding:8px 12px;margin:0;color:var(--muted);font-size:12px}
@media(max-width:1100px){.admin-body .referral-workspace .admin-referral-filter{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){.admin-body .referral-workspace .admin-referral-filter{grid-template-columns:minmax(0,1fr)!important}.admin-body .referral-workspace .btn,.admin-body .referral-workspace .referral-admin-actions select{min-height:44px!important}.admin-body .referral-workspace .admin-referral-filter .eh-filter-actions>*{flex:1}.admin-body .referral-workspace .referral-admin-actions form>.btn{flex:1 1 auto}}

/* R1086 — shared live news archive (admin and reporter). */
.live-archive{min-width:0;display:grid;gap:10px;margin-top:14px;color:var(--ink)}
.live-archive .live-archive-heading h2{font-size:17px;line-height:1.3;margin:0;color:var(--ink)}
.live-archive .live-archive-heading p{font-size:12px;margin:3px 0 0;color:var(--muted)}
.live-archive .live-archive-filters{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end;gap:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.live-archive .live-archive-filters label{min-width:0;display:grid;gap:4px;font-size:12px;font-weight:700;color:var(--ink);margin:0}
.live-archive .live-archive-filters :is(input,select){box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:40px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)!important;color:var(--ink)!important;box-shadow:none}
.live-archive .live-archive-filters input::placeholder{color:var(--muted);opacity:1}
.live-archive .live-archive-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}
.live-archive .live-archive-actions .btn,.live-archive .live-news-manage-copy footer .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;max-width:100%;width:auto;padding:7px 10px;line-height:1.25;white-space:normal;text-align:center;overflow-wrap:anywhere}
.live-archive .btn .ui-icon{flex:none;width:15px;height:15px}
.live-archive :is(a,button,input,select):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.live-archive .live-news-list-summary{grid-template-columns:repeat(auto-fit,minmax(min(100%,125px),1fr));gap:8px;margin:0}
.live-archive .live-news-list-summary article{min-width:0;padding:10px;gap:8px;border-radius:10px;background:var(--surface);border-color:var(--line)}
.live-archive .live-news-list-summary article>span{flex:none;width:32px;height:32px;border-radius:8px;background:var(--soft);color:var(--ink)}
.live-archive .live-news-list-summary article>div{min-width:0;overflow-wrap:anywhere}
.live-archive .live-news-list-summary strong{font-size:20px;line-height:1.2}
.live-archive .live-news-manage-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:10px;align-items:stretch}
.live-archive .live-news-manage-card{min-width:0;display:flex;flex-direction:column;border-radius:10px;background:var(--surface)}
.live-archive .live-news-manage-media{aspect-ratio:16/8;flex:none}
.live-archive .live-news-manage-media em{max-width:calc(100% - 20px);overflow-wrap:anywhere}
.live-archive .live-news-manage-media em i{flex:none;background: #94a3b8}
.live-archive .live-news-manage-card.is-live .live-news-manage-media em i{background:#f87171}
.live-archive .live-news-manage-copy{flex:1;display:flex;flex-direction:column;min-width:0;padding:11px;overflow-wrap:anywhere}
.live-archive .live-news-manage-copy>small{color:var(--muted)}
.live-archive .live-news-manage-copy h2{font-size:16px;margin:5px 0 9px;overflow-wrap:anywhere}
.live-archive .live-news-manage-copy>div{gap:6px 10px}
.live-archive .live-news-manage-copy>div span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.live-archive .live-news-manage-copy footer{flex-direction:row;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding-top:9px}
.live-archive .live-news-manage-copy>div{margin-bottom:9px}
.live-archive .live-news-manage-copy footer .status{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.live-archive .live-news-empty{grid-column:1/-1;min-width:0;background:var(--surface);color:var(--ink)}
.live-archive .live-archive-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted);font-size:12px}
@media(max-width:760px){.live-archive .live-archive-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.live-archive .live-archive-filters label:first-child{grid-column:1/-1}.live-archive .live-archive-filters :is(input,select),.live-archive .live-archive-actions .btn,.live-archive .live-news-manage-copy footer .btn{min-height:44px}.live-archive .live-archive-actions .btn{flex:1 1 auto}}
@media(max-width:380px){.live-archive .live-archive-filters{grid-template-columns:minmax(0,1fr)}.live-archive .live-archive-filters label:first-child{grid-column:auto}}

/* R1087: bounded audit details, compact filter and theme-safe log surfaces. */
@media screen {
  .admin-body .eh-audit-r1087 .eh-audit-filters {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr) auto;gap:8px;align-items:end;padding:10px;margin:0;min-width:0;background:var(--surface);border-bottom:1px solid var(--line)}
  .admin-body .eh-audit-r1087 .eh-audit-filters label {display:grid;gap:4px;min-width:0;color:var(--ink);font-size:12px;font-weight:600;overflow-wrap:anywhere}
  .admin-body .eh-audit-r1087 .eh-audit-filters input {width:100%;min-width:0;box-sizing:border-box;min-height:40px;background:var(--surface)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:7px;padding:8px 10px}
  .admin-body .eh-audit-r1087 .eh-audit-filter-actions {display:flex;flex-wrap:wrap;gap:6px;min-width:0;align-items:center}
  .admin-body .eh-audit-r1087 .btn {min-height:40px;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;justify-content:center;gap:6px;box-sizing:border-box}
  .admin-body .eh-audit-r1087 .btn svg {flex:none}
  .admin-body .eh-audit-r1087 :is(a,button,input,pre):focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .admin-body .eh-audit-r1087 .eh-audit-table td:nth-child(5) {width:18%}
  .admin-body .eh-audit-r1087 .eh-audit-record-body {display:grid;gap:10px;padding:12px;min-width:0;justify-items:start}
  .admin-body .eh-audit-r1087 .eh-audit-meta {width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:8px;margin:0;min-width:0}
  .admin-body .eh-audit-r1087 .eh-audit-meta>div,.admin-body .eh-audit-r1087 .eh-audit-value {min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px;overflow-wrap:anywhere;box-sizing:border-box}
  .admin-body .eh-audit-r1087 .eh-audit-meta dt {font-size:12px;color:var(--muted)}
  .admin-body .eh-audit-r1087 .eh-audit-meta dd {margin:3px 0 0;font-weight:600}
  .admin-body .eh-audit-r1087 .eh-audit-values {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:8px;width:100%;min-width:0}
  .admin-body .eh-audit-r1087 .eh-audit-value h3 {margin:0 0 8px;font-size:14px;color:var(--ink)}
  .admin-body .eh-audit-r1087 .eh-audit-value pre {margin:0;max-width:100%;min-width:0;max-height:28rem;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;background:var(--soft)!important;color:var(--ink)!important;border:1px solid var(--line);border-radius:6px;padding:8px;font-size:12px;line-height:1.55;box-sizing:border-box}
  @container eh-audit (max-width:700px) {
    .admin-body .eh-audit-r1087 .eh-audit-filters {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
    .admin-body .eh-audit-r1087 .eh-audit-filter-actions {grid-column:1/-1}
  }
  @media(max-width:760px) {
    .admin-body .eh-audit-r1087 .eh-audit-filters {grid-template-columns:minmax(0,1fr)}
    .admin-body .eh-audit-r1087 .eh-audit-filter-actions .btn {flex:1 1 100px}
    .admin-body .eh-audit-r1087 :is(.btn,.eh-audit-filters input) {min-height:44px}
    .admin-body .eh-audit-r1087 .eh-audit-filters input {font-size:16px}
  }
}

@media screen {
  .admin-body .eh-audit-r1087 .eh-audit-user {display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}
  .admin-body .eh-audit-r1087 .eh-audit-table code {background:var(--soft);color:var(--ink);border-radius:4px;padding:2px 4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
}


/* R1088: account identity and role chip, independent of child order and page bundle. */
@media screen {
  .account-dropdown .account-dropdown-head.has-panel-close {
    display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:0;padding:8px 8px 12px;
  }
  .account-dropdown .account-dropdown-identity {
    display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;max-width:100%;line-height:1.3;
  }
  .account-dropdown .account-dropdown-name {
    display:block;max-width:100%;min-width:0;font-size:15px;font-weight:800;line-height:1.3;color:var(--ink);white-space:normal;overflow-wrap:anywhere;
  }
  .account-dropdown .account-role-badge {
    --account-role-accent:#475569;
    display:inline-flex!important;align-items:center;justify-content:flex-start;gap:5px;flex:0 1 auto;
    width:fit-content;max-width:100%;min-width:0;height:auto;min-height:24px;
    padding:4px 8px;border:1px solid color-mix(in srgb,var(--account-role-accent) 25%,var(--line));border-radius:7px;
    background:color-mix(in srgb,var(--account-role-accent) 7%,var(--surface));color:var(--account-role-accent);
    font-size:11px;font-weight:700;line-height:1.3;white-space:normal;box-shadow:none;box-sizing:border-box;
  }
  .account-dropdown .account-role-badge.role-author {--account-role-accent:#1d4ed8}
  .account-dropdown .account-role-badge.role-reporter {--account-role-accent:#b91c1c}
  .account-dropdown .account-role-badge.role-editor {--account-role-accent:#6d28d9}
  .account-dropdown .account-role-badge.role-category_editor {--account-role-accent:#0f766e}
  .account-dropdown .account-role-badge.role-chief_editor {--account-role-accent:#92400e}
  .account-dropdown .account-role-badge.role-admin {--account-role-accent:#334155}
  .account-dropdown .account-role-badge.role-super_admin {--account-role-accent:#9f1239}
  .account-dropdown .account-role-badge>.ui-icon {display:block;flex:0 0 13px;width:13px;height:13px;margin:0;color:inherit}
  .account-dropdown .account-role-badge>span {display:block;min-width:0;white-space:normal;overflow-wrap:anywhere;color:inherit;line-height:inherit}
  .account-dropdown .account-dropdown-content,.account-dropdown .account-dropdown-links {min-width:0;max-width:100%}
  .account-dropdown .account-dropdown-links>a>span:nth-child(2) {min-width:0;overflow-wrap:anywhere;white-space:normal}
  .account-dropdown :is(a,button):focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .account-dropdown .account-dropdown-logout button {min-height:44px}
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .account-dropdown {
    background:var(--surface,#101828)!important;border-color:var(--line,#334155)!important;color:var(--text,#d0d5dd)!important;
  }
  :is(html[data-resolved-theme="dark"] body,body[data-theme="dark"],body[data-resolved-theme="dark"],body.theme-dark) .account-dropdown .account-dropdown-logout button {
    background:var(--eh-negative-bg)!important;color:var(--eh-negative-fg)!important;
  }
  @media(max-width:680px) {
    .site-header .account-dropdown {max-height:calc(100vh - 82px)!important;max-height:calc(100dvh - 82px - env(safe-area-inset-bottom))!important;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;align-content:start}
    .account-dropdown .account-dropdown-head.has-panel-close {grid-template-columns:42px minmax(0,1fr) 44px;gap:9px;padding-inline:5px}
    .account-dropdown .header-panel-close {width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
    .account-dropdown .account-dropdown-links>a {min-height:44px}
  }
}

/* R1089 social integration archive: scoped, responsive, theme-native surfaces. */
.admin-body .eh-social-admin{display:grid;gap:12px;min-width:0;max-width:100%;container-type:inline-size}
.admin-body .eh-social-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.admin-body .eh-social-card{min-width:0;max-width:100%;margin:0;padding:12px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
.admin-body .eh-social-card .panel-head{margin:0 0 10px;gap:8px;flex-wrap:wrap}
.admin-body .eh-social-accounts,.admin-body .eh-social-details .form{display:grid;gap:8px;min-width:0}
.admin-body .eh-social-account{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;background:var(--soft);border:1px solid var(--line);border-radius:8px}
.admin-body .eh-social-account>div,.admin-body .eh-social-row>div{display:grid;min-width:0;gap:3px;justify-items:start;overflow-wrap:anywhere}
.admin-body .eh-social-account strong,.admin-body .eh-social-row strong{color:var(--ink);font-size:13px}
.admin-body .eh-social-account small,.admin-body .eh-social-row small,.admin-body .eh-social-note{color:var(--muted);font-size:12px;line-height:1.45;margin:0}
.admin-body .eh-social-details{margin-top:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.admin-body .eh-social-details summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:700;color:var(--ink);min-height:40px;padding:8px;list-style:none}
.admin-body .eh-social-details summary::-webkit-details-marker{display:none}
.admin-body .eh-social-details summary::after{content:'+';margin-inline-start:auto;font-size:18px;line-height:1}
.admin-body .eh-social-details[open] summary::after{content:'−'}
.admin-body .eh-social-details .form{padding:10px;border-top:1px solid var(--line);margin:0}
.admin-body .eh-social-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:8px;background:var(--soft);border:1px solid var(--line);border-radius:8px;padding:10px;margin-bottom:10px}
.admin-body .eh-social-filter label,.admin-body .eh-social-details label{min-width:0;max-width:100%;color:var(--text)}
.admin-body .eh-social-admin :is(input:not([type=checkbox]):not([type=hidden]),select,textarea){width:100%;min-width:0;max-width:100%;color:var(--ink);background:var(--surface);border-color:var(--line);border-radius:8px}
.admin-body .eh-social-filter-actions,.admin-body .eh-social-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.admin-body .eh-social-pagination{justify-content:space-between;padding-top:10px}
.admin-body .eh-social-admin .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;max-width:100%;white-space:normal;text-align:center;font-size:13px}
.admin-body .eh-social-admin .btn .ui-icon{flex-shrink:0}
.admin-body .eh-social-admin :is(summary,a,button,input,select,textarea):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.admin-body .eh-social-rows{list-style:none;margin:0;padding:0;min-width:0}
.admin-body .eh-social-row{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,.8fr) minmax(0,.4fr) minmax(0,1fr) minmax(0,1.3fr);gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:10px 2px;font-size:13px}
.admin-body .eh-social-status{display:inline-flex;align-items:center;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:700;color:var(--text);background:var(--soft);border:1px solid var(--line);line-height:1.4}
.admin-body .eh-social-status[data-state=sent]{color:#166534;background:#ecfdf3;border-color:#bbf7d0}
.admin-body .eh-social-status[data-state=failed]{color:#991b1b;background:#fef2f2;border-color:#fecaca}
.admin-body .eh-social-status[data-state=queued]{color:#92400e;background:#fffbeb;border-color:#fde68a}
.admin-body .eh-social-status[data-state=processing]{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.admin-body:is([data-theme=dark],.theme-dark,[data-resolved-theme=dark]) .eh-social-status[data-state=sent],html[data-resolved-theme=dark] .admin-body .eh-social-status[data-state=sent]{color:#a7f3d0;background:#16352b;border-color:#285647}
.admin-body:is([data-theme=dark],.theme-dark,[data-resolved-theme=dark]) .eh-social-status[data-state=failed],html[data-resolved-theme=dark] .admin-body .eh-social-status[data-state=failed]{color:#fecaca;background:#3b2228;border-color:#75404a}
.admin-body:is([data-theme=dark],.theme-dark,[data-resolved-theme=dark]) .eh-social-status[data-state=queued],html[data-resolved-theme=dark] .admin-body .eh-social-status[data-state=queued]{color:#fde68a;background:#382c1a;border-color:#72552a}
.admin-body:is([data-theme=dark],.theme-dark,[data-resolved-theme=dark]) .eh-social-status[data-state=processing],html[data-resolved-theme=dark] .admin-body .eh-social-status[data-state=processing]{color:#bfdbfe;background:#1b304a;border-color:#35587b}
@media(prefers-color-scheme:dark){.admin-body[data-theme=system]:not([data-resolved-theme=light]) .eh-social-status[data-state=sent]{color:#a7f3d0;background:#16352b;border-color:#285647}.admin-body[data-theme=system]:not([data-resolved-theme=light]) .eh-social-status[data-state=failed]{color:#fecaca;background:#3b2228;border-color:#75404a}.admin-body[data-theme=system]:not([data-resolved-theme=light]) .eh-social-status[data-state=queued]{color:#fde68a;background:#382c1a;border-color:#72552a}.admin-body[data-theme=system]:not([data-resolved-theme=light]) .eh-social-status[data-state=processing]{color:#bfdbfe;background:#1b304a;border-color:#35587b}}
@container (max-width:720px){.admin-body .eh-social-settings{grid-template-columns:minmax(0,1fr)}.admin-body .eh-social-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-body .eh-social-news,.admin-body .eh-social-row>div:last-child{grid-column:1/-1}.admin-body .eh-social-filter{grid-template-columns:minmax(0,1fr)}.admin-body .eh-social-filter-actions>*{flex:1}}
@media(max-width:760px){.admin-body .eh-social-card{padding:10px}.admin-body .eh-social-admin :is(.btn,summary,select,input:not([type=checkbox]):not([type=hidden])){min-height:44px}.admin-body .eh-social-pagination>*{flex:1}.admin-body .eh-social-settings{grid-template-columns:minmax(0,1fr)}.admin-body .eh-social-row{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-body .eh-social-news,.admin-body .eh-social-row>div:last-child{grid-column:1/-1}.admin-body .eh-social-filter{grid-template-columns:minmax(0,1fr)}}
.admin-body .eh-social-account>div>:is(strong,small),.admin-body .eh-social-row>div>:is(strong,small,span){min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* R1092 | Server-side news series archive: compact, theme-aware and wrap-safe. */
.news-series-admin-grid .series-server-filter {grid-template-columns:minmax(0,1fr) minmax(0,130px);gap:8px;padding:10px 0 12px}
.news-series-admin-grid .series-server-filter :is(input,select) {background:var(--surface);color:var(--ink);border-color:var(--line);transition:none;min-height:44px}
.news-series-admin-grid .series-filter-actions {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;min-width:0}
.news-series-admin-grid :is(.series-filter-actions,.series-pagination-actions) .btn {min-height:44px;white-space:normal;justify-content:center;gap:6px;min-width:0}
.news-series-admin-grid .news-series-admin-item {grid-template-columns:36px minmax(0,1fr);padding:10px;gap:8px;border-radius:8px;border-color:var(--line);background:var(--surface);opacity:1}
.news-series-admin-grid .news-series-admin-icon {width:36px;height:36px;border-radius:8px}
.news-series-admin-grid .news-series-admin-copy :is(strong,small,p) {min-width:0;overflow-wrap:anywhere}
.news-series-admin-grid .news-series-admin-actions {grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding-left:0;min-width:0}
.news-series-admin-grid .news-series-admin-actions :is(form,.btn) {width:auto;max-width:100%;min-width:0}
.news-series-admin-grid .news-series-admin-actions .btn {min-height:44px;white-space:normal;gap:5px}
.news-series-admin-grid .news-series-admin-actions .btn svg {flex-shrink:0}
.series-archive-pagination {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);min-width:0;background:var(--surface);color:var(--ink)}
.series-pagination-actions {display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.series-archive-note {font-size:12px;overflow-wrap:anywhere}
.news-series-admin-grid :is(a,button,input,select):focus-visible {outline:2px solid var(--primary);outline-offset:2px}
@media(max-width:600px){
  .news-series-admin-grid .series-server-filter {grid-template-columns:minmax(0,1fr)}
  .news-series-admin-grid .series-filter-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .news-series-admin-grid .news-series-admin-actions {justify-content:flex-start}
  .news-series-admin-grid .news-series-admin-actions :is(form,.btn) {flex:1 1 auto}
  .news-series-admin-grid .news-series-admin-actions form .btn {width:100%}
}
.admin-body .news-series-admin-grid .series-server-filter :is(input,select) {min-height:44px!important;height:auto;transition:none!important;background:var(--surface)!important;color:var(--ink)!important}

/* R1093 | Gallery archive and image manager: compact, theme-native controls. */
.admin-body .gallery-list-panel,.admin-body .gallery-manager {min-width:0;max-width:100%}
.admin-body .gallery-archive-filter {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:8px;align-items:end;padding:10px 12px;border-bottom:1px solid var(--line);background:var(--surface);color:var(--ink);min-width:0}
.admin-body .gallery-archive-filter label {display:grid;gap:5px;min-width:0;color:var(--muted);font-size:12px;font-weight:650}
.admin-body .gallery-archive-filter :is(input,select),.admin-body .gallery-manager :is(input:not([type=hidden]),select,textarea) {min-width:0;max-width:100%;background:var(--surface)!important;color:var(--ink)!important;border-color:var(--line)!important;transition:none!important}
.admin-body .gallery-archive-filter :is(input,select) {width:100%;min-height:44px;height:auto}
.admin-body .gallery-filter-actions,.admin-body .gallery-archive-nav {display:flex;gap:6px;flex-wrap:wrap;min-width:0}
.admin-body .gallery-list-panel :is(td strong,td small),.admin-body .gallery-manager :is(h2,strong,small) {min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
.admin-body .gallery-archive-footer {display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;min-width:0;padding:10px 12px;border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:12px}
.admin-body .gallery-archive-footer>small {flex-basis:100%}
.admin-body :is(.gallery-filter-actions,.gallery-archive-nav,.gallery-table-actions,.gallery-manager .form-actions,.gallery-item-delete-form,.gallery-upload-action) .btn {min-height:40px;max-width:100%;white-space:normal;gap:6px;justify-content:center}
.admin-body :is(.gallery-filter-actions,.gallery-archive-nav,.gallery-table-actions,.gallery-item-delete-form) .btn svg {flex-shrink:0}
.admin-body .gallery-item-card {min-width:0;max-width:100%;background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:8px}
.admin-body .gallery-item-card-body {min-width:0;overflow-wrap:anywhere;padding:8px}
.admin-body .gallery-item-card img {max-width:100%;object-fit:cover}
.admin-body :is(.gallery-list-panel,.gallery-manager) :is(input,select,textarea,a,button):focus-visible {outline:2px solid var(--primary,var(--brand));outline-offset:2px}
@media(max-width:1000px){.admin-body .gallery-archive-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-body .gallery-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:680px){
  .admin-body .gallery-archive-filter{grid-template-columns:minmax(0,1fr);padding:10px}
  .admin-body .gallery-filter-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-body :is(.gallery-filter-actions,.gallery-archive-nav,.gallery-table-actions,.gallery-item-delete-form,.gallery-manager .form-actions,.gallery-upload-action) .btn{min-height:44px!important}
  .admin-body table.admin-responsive-table .gallery-table-actions .btn{min-height:44px!important}
  .admin-body .gallery-item-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr))!important;gap:8px}
}

/* R1094: corporate archive controls use the active theme without a color flash. */
@media screen {
  .admin-body .eh-pages-filter {grid-template-columns:minmax(0,1.3fr) minmax(0,.85fr) minmax(0,.95fr) minmax(0,1fr)}
  .admin-body .eh-pages-filter :is(input,select),
  .admin-body .page-editor-form :is(input:not([type=checkbox]):not([type=hidden]):not([type=radio]),select,textarea) {
    background-color:var(--surface);color:var(--ink);border-color:var(--line);transition:none;min-width:0;max-width:100%;box-sizing:border-box
  }
  .admin-body .eh-pages-filter :is(input,select):focus-visible,
  .admin-body .page-editor-form :is(input,select,textarea):focus-visible {outline:2px solid var(--brand);outline-offset:2px}
  .admin-body .eh-pages-filter select option,.admin-body .page-editor-form select option {background:var(--surface);color:var(--ink)}
  .admin-body .eh-pages-limit {font-size:12px;color:var(--muted);overflow-wrap:anywhere}
  .admin-body .page-editor-actions .btn {min-height:44px;min-width:0;white-space:normal;overflow-wrap:anywhere;gap:6px}
  .admin-body .page-editor-actions .btn .ui-icon {flex-shrink:0}
  @container (max-width:900px) {.admin-body .eh-pages-filter {grid-template-columns:repeat(2,minmax(0,1fr))}}
  @container (max-width:480px) {.admin-body .eh-pages-filter {grid-template-columns:minmax(0,1fr)}}
  @media(max-width:480px) {.admin-body .eh-pages-filter {grid-template-columns:minmax(0,1fr)}}
}
@media screen {
  .admin-body .eh-pages-workspace .eh-pages-filter :is(input,select) {min-height:44px!important;height:auto!important;transition:none!important}
  .admin-body .page-editor-form .page-editor-actions .btn {min-height:44px!important;height:auto!important}
}
