/* Read-first owner experience. Loaded after UI V2 and intentionally overrides the old dashboard shell. */
.reader-shell { background: #fff; color: #18202b; }
.owner-reader-app { min-height: 100vh; background: #fff; }
.owner-reader-header { position: sticky; z-index: 20; top: 0; min-height: 3.9rem; padding: 0.55rem clamp(0.85rem, 3vw, 1.8rem); display: grid; grid-template-columns: auto auto minmax(14rem, 28rem) auto; align-items: center; justify-content: center; gap: clamp(0.7rem, 2vw, 1.5rem); border-bottom: 1px solid #e8ebef; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); }
.owner-reader-brand { color: #1d2733; text-decoration: none; font-weight: 760; white-space: nowrap; }
.owner-reader-brand .brand-mark { width: 1.85rem; height: 1.85rem; border-radius: 0.48rem; font-size: 0.8rem; }
.owner-reader-nav { display: flex; align-items: center; gap: 0.2rem; }
.owner-reader-nav a { min-height: 2.35rem; display: inline-flex; align-items: center; padding: 0.35rem 0.72rem; border-radius: 0.5rem; color: #626d7b; text-decoration: none; font-size: 0.92rem; font-weight: 650; }
.owner-reader-nav a:hover { color: #1e4f91; background: #f4f7fb; }
.owner-reader-nav a.active, .owner-reader-nav a[aria-current="page"] { color: #173f76; background: #edf3fb; }
.owner-global-search { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem; margin: 0; }
.owner-global-search input { min-width: 0; min-height: 2.45rem; padding: 0.45rem 0.7rem; border: 1px solid #d8dde5; border-radius: 0.55rem; background: #fbfcfd; }
.owner-global-search button { min-height: 2.45rem; padding: 0.4rem 0.7rem; border-radius: 0.55rem; font-size: 0.84rem; }
.owner-settings { position: relative; }
.owner-settings > summary { width: 2.45rem; height: 2.45rem; display: grid; place-items: center; border-radius: 0.55rem; color: #697586; cursor: pointer; list-style: none; font-weight: 800; letter-spacing: 0.08em; }
.owner-settings > summary::-webkit-details-marker { display: none; }
.owner-settings > summary:hover, .owner-settings[open] > summary { background: #f2f4f7; color: #243140; }
.owner-settings-menu { position: absolute; right: 0; top: calc(100% + 0.45rem); width: 13rem; padding: 0.4rem; display: grid; gap: 0.12rem; border: 1px solid #dde2e8; border-radius: 0.7rem; background: #fff; box-shadow: 0 14px 38px rgba(20,30,45,0.13); }
.owner-settings-menu a, .owner-settings-menu button.secondary { min-height: 2.45rem; width: 100%; display: flex; align-items: center; padding: 0.45rem 0.65rem; border: 0; border-radius: 0.45rem; color: #374151; background: transparent; text-decoration: none; font-size: 0.88rem; font-weight: 550; }
.owner-settings-menu a:hover, .owner-settings-menu button.secondary:hover { background: #f5f7f9; color: #174b8a; }
.owner-settings-menu .logout-form { margin: 0.2rem 0 0; padding-top: 0.25rem; border-top: 1px solid #edf0f3; }
.mobile-reader-nav { display: none; }
.reader-owner-page { width: min(52rem, calc(100% - 2rem)); margin: 2.4rem auto 5rem; display: block; }
.reader-owner-page > * + * { margin-top: 2.4rem; }
.reader-page-heading { max-width: 44rem; margin-bottom: 2.5rem; }
.reader-page-heading .eyebrow, .reader-document-header .eyebrow { margin-bottom: 0.35rem; }
.reader-page-heading h1, .reader-document-header h1 { margin: 0; color: #17202a; font-size: clamp(1.9rem, 4vw, 2.45rem); line-height: 1.12; letter-spacing: -0.035em; }
.reader-page-heading > p:last-child { max-width: 42rem; margin: 0.7rem 0 0; color: #657081; font-size: 0.98rem; line-height: 1.7; }
.reader-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 1.25rem; }
.reader-heading-row > div { max-width: 42rem; }
.reader-heading-row > div > p:last-child { color: #657081; line-height: 1.65; }
.reader-heading-links, .reader-manage-menu { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.reader-heading-links a, .reader-small-action { color: #44617e; font-size: 0.88rem; text-decoration: none; white-space: nowrap; }
.reader-heading-links a:hover, .reader-small-action:hover { color: #174b8a; text-decoration: underline; }
.reader-section { padding: 0; border: 0; background: transparent; box-shadow: none; }
.reader-section-first { margin-top: 0 !important; }
.reader-section-heading { min-height: 2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: 0.55rem; border-bottom: 1px solid #e7eaee; }
.reader-section-heading h2 { margin: 0; color: #202a36; font-size: 1.05rem; letter-spacing: -0.01em; }
.reader-section-heading a { color: #6a7481; text-decoration: none; font-size: 0.82rem; }
.reader-section-heading a:hover { color: #174b8a; }
.reader-stream { display: grid; }
.reader-item { min-width: 0; padding: 1.15rem 0 1.2rem; border-bottom: 1px solid #edf0f3; }
.reader-stream.compact .reader-item { padding-top: 1rem; padding-bottom: 1rem; }
.reader-item h2, .reader-item h3 { margin: 0; color: #1b2531; font-size: 1.08rem; line-height: 1.4; }
.reader-item h2 a, .reader-item h3 a { color: inherit; text-decoration: none; }
.reader-item h2 a:hover, .reader-item h3 a:hover { color: #174b8a; }
.reader-item > p, .reader-item .article-reader-main > p { margin: 0.45rem 0 0; color: #3f4a58; font-size: 0.94rem; line-height: 1.7; }
.reader-secondary, .reader-change-line { color: #6a7481 !important; font-size: 0.88rem !important; }
.reader-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; margin-top: 0.55rem; color: #7b8490; font-size: 0.78rem; line-height: 1.45; }
.reader-meta a { color: #657b93; text-decoration: none; }
.reader-meta a:hover { color: #174b8a; }
.reader-attention { color: #8b4a00; font-weight: 700; }
.reader-state { color: #7b8490; font-size: 0.8rem; white-space: nowrap; }
.reader-state.changed { color: #a05700; font-weight: 700; }
.reader-empty { margin: 1rem 0 0; color: #7a8491; font-size: 0.9rem; }
.reader-document { max-width: 46rem; margin: 0 auto; }
.reader-document-header { margin-bottom: 2.1rem; }
.reader-document-header .reader-meta { margin-top: 0.75rem; }
.reader-body { color: #26313d; font-size: 1rem; line-height: 1.82; }
.reader-body > p:first-child { margin-top: 0; }
.reader-related, .reader-sources, .reader-focus-block { margin-top: 2.7rem; padding-top: 1.25rem; border-top: 1px solid #e8ebef; }
.reader-related h2, .reader-sources h2, .reader-focus-block h2 { margin: 0 0 0.8rem; color: #2a3541; font-size: 0.98rem; }
.reader-related-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.reader-related-links a { color: #365f8c; text-decoration: none; font-size: 0.9rem; }
.reader-related-links a:hover { text-decoration: underline; }
.reader-sources ul { margin: 0; padding-left: 1.15rem; }
.reader-sources li { margin: 0.4rem 0; color: #77808b; font-size: 0.86rem; line-height: 1.55; }
.reader-sources a { color: #4a6078; }
.reader-focus-block { margin-top: 1.8rem; padding: 1.25rem 0 0; }
.reader-focus-block > p { color: #33404e; line-height: 1.75; }
.reader-timeline { border-left: 1px solid #e4e8ed; margin-left: 0.25rem; padding-left: 1.2rem; }
.reader-change { position: relative; padding: 0.25rem 0 1.6rem; }
.reader-change::before { content: ""; position: absolute; left: -1.48rem; top: 0.55rem; width: 0.52rem; height: 0.52rem; border: 2px solid #fff; border-radius: 50%; background: #7c95b0; box-shadow: 0 0 0 1px #c9d2dc; }
.reader-change h3 { margin: 0.35rem 0; font-size: 1rem; }
.reader-change > p { margin: 0.35rem 0 0; color: #3b4654; line-height: 1.7; }
.reader-change-sources { margin-top: 0.5rem; font-size: 0.8rem; }
.reader-change-sources a { color: #6b7785; }
.reader-manage { margin-top: 2.8rem; padding-top: 1rem; border-top: 1px solid #edf0f3; }
.reader-manage > summary { width: fit-content; color: #7a8490; cursor: pointer; font-size: 0.84rem; font-weight: 650; }
.reader-manage[open] > summary { margin-bottom: 0.8rem; }
.reader-manage-menu a, .reader-manage-menu .link-button { color: #607080; font-size: 0.84rem; }
.reader-manage-menu form { margin: 0; }
.reader-reference-manage { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed #e2e6eb; }
.reader-reference-manage h3 { font-size: 0.9rem; }
.reader-reference-manage ul { padding-left: 1.15rem; }
.reader-reference-manage li { margin: 0.4rem 0; }
.reader-reference-manage form { display: inline; margin-left: 0.6rem; }
.reader-inline-form { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; }
.reader-inline-form label { width: 100%; }
.reader-inline-form select { width: auto; min-width: 8rem; }
.article-reader-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.article-reader-state { padding-top: 0.12rem; }
.article-reader-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem; align-items: start; }
.article-reader-primary-action { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.6rem; align-items: center; }
.article-reader-primary-action form { margin: 0; }
.article-reader-primary-action button { min-height: 2.35rem; padding: 0.42rem 0.8rem; font-size: 0.86rem; }
.article-reader-summary { color: #5b6673; font-size: 1.02rem; line-height: 1.75; }
.reader-search-page { margin-top: -0.4rem; }
.reader-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.reader-search-form input { min-height: 2.8rem; }
.reader-search-form button { min-height: 2.8rem; }
.search-reader-results .reader-item:first-child { padding-top: 0.9rem; }
.reader-shell .panel { box-shadow: none; }
.reader-shell .back-link { max-width: 46rem; margin-left: auto; margin-right: auto; font-size: 0.84rem; }
.reader-shell .pagination { margin-top: 1.5rem; }
.reader-shell .form-panel, .reader-shell .confirm-panel, .reader-shell .search-panel { max-width: 46rem; margin-left: auto; margin-right: auto; }

@media (max-width: 62rem) {
  .owner-reader-header { grid-template-columns: auto 1fr auto; justify-content: stretch; }
  .owner-reader-brand > span:last-child { display: none; }
  .owner-reader-nav { justify-self: start; }
  .owner-global-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .reader-owner-page { margin-top: 1.7rem; }
}

@media (max-width: 42rem) {
  .reader-shell { padding-bottom: calc(3.9rem + env(safe-area-inset-bottom)); }
  .owner-reader-header { min-height: 3.25rem; padding: 0.45rem 0.65rem; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.45rem; }
  .owner-reader-nav { display: none; }
  .owner-global-search { grid-column: 2; grid-row: 1; display: block; }
  .owner-global-search input { width: 100%; min-height: 2.3rem; font-size: 0.82rem; }
  .owner-global-search button { display: none; }
  .owner-settings > summary { width: 2.3rem; height: 2.3rem; }
  .owner-settings-menu { width: min(14rem, calc(100vw - 1rem)); }
  .mobile-reader-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 3.6rem; padding: 0.25rem 0 calc(0.25rem + env(safe-area-inset-bottom)); border-top: 1px solid #e1e5ea; background: rgba(255,255,255,0.98); box-shadow: 0 -8px 24px rgba(20,30,45,0.06); }
  .mobile-reader-nav a { min-height: 3.05rem; display: grid; place-items: center; color: #6d7783; text-decoration: none; font-size: 0.78rem; font-weight: 650; }
  .mobile-reader-nav a.active, .mobile-reader-nav a[aria-current="page"] { color: #174b8a; }
  .reader-owner-page { width: calc(100% - 1.2rem); margin: 1.25rem auto 2rem; }
  .reader-owner-page > * + * { margin-top: 2rem; }
  .reader-page-heading { margin-bottom: 1.8rem; }
  .reader-page-heading h1, .reader-document-header h1 { font-size: 1.85rem; }
  .reader-page-heading > p:last-child, .reader-heading-row > div > p:last-child { font-size: 0.92rem; }
  .reader-heading-row { align-items: flex-start; }
  .reader-item { padding: 1rem 0; }
  .reader-item h2, .reader-item h3 { font-size: 1.02rem; }
  .reader-item > p, .reader-item .article-reader-main > p { font-size: 0.9rem; }
  .article-reader-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .article-reader-state { padding: 0; }
  .article-reader-header { grid-template-columns: 1fr; gap: 0.8rem; }
  .article-reader-primary-action { justify-content: flex-start; }
  .reader-document { max-width: none; }
  .reader-related, .reader-sources, .reader-focus-block { margin-top: 2.1rem; }
  .reader-manage { margin-top: 2.2rem; }
  .reader-search-form { grid-template-columns: 1fr; }
}
