/*! 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}
  }
}
