
  .rs-wrap { max-width: 1040px; margin: 0 auto; color: var(--ink, inherit); }

  /* ---- shared ---- */
  .rs-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem 1rem; border-radius: 9px; border: 1px solid var(--rule, rgba(128,128,128,.3)); background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; white-space: nowrap; }
  .rs-btn:hover { background: rgba(128,128,128,.1); }
  .rs-btn--primary { background: var(--sepo-accent, #0b3d33); color: #fff; border-color: transparent; font-weight: 600; }
  .rs-btn--primary:hover { filter: brightness(1.12); background: var(--sepo-accent, #0b3d33); }
  .rs-btn--sm { padding: .35rem .7rem; font-size: .82rem; }
  .rs-btn--muted { opacity: .5; cursor: not-allowed; }
  .rs-like { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--rule, rgba(128,128,128,.3)); background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
  .rs-like:hover { border-color: #e0245e; color: #e0245e; }
  .rs-like.is-on { color: #e0245e; border-color: #e0245e; background: rgba(224,36,94,.08); }
  .rs-like.is-busy { opacity: .55; pointer-events: none; }
  .rs-like--sm { padding: .2rem .55rem; font-size: .82rem; }
  .rs-heart { line-height: 1; }
  .rs-like-n, .rs-dl-n { font-variant-numeric: tabular-nums; font-weight: 600; }
  .rs-dl-n { display: inline-flex; align-items: center; gap: .2rem; font-size: .82rem; opacity: .7; }
  .rs-dl-i { font-size: .9em; }
  .rs-tag { display: inline-block; font-size: .72rem; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--rule, rgba(128,128,128,.3)); opacity: .85; }
  .rs-tag--group { border-color: var(--sepo-accent, #0b3d33); color: var(--sepo-accent, #0b3d33); opacity: 1; }
  .rs-muted { opacity: .68; }
  .rs-empty { text-align: center; padding: 2.4rem 1rem; border: 1px dashed var(--rule, rgba(128,128,128,.3)); border-radius: 12px; opacity: .75; }

  /* ---- format tile ---- */
  .rs-thumb { position: relative; display: inline-flex; align-items: flex-end; justify-content: center; width: 62px; height: 78px; flex-shrink: 0; border-radius: 8px; background: rgba(128,128,128,.12) center/cover no-repeat; border: 1px solid var(--rule, rgba(128,128,128,.18)); overflow: hidden; }
  .rs-thumb--lg { width: 132px; height: 168px; border-radius: 10px; }
  .rs-format { font-size: .6rem; font-weight: 800; letter-spacing: .06em; padding: .12rem .4rem; border-radius: 4px 4px 0 0; background: rgba(128,128,128,.85); color: #fff; }
  .rs-thumb--lg .rs-format { font-size: .74rem; padding: .2rem .6rem; }
  .rs-format--pdf { background: #b3261e; }
  .rs-format--doc { background: #1a5fb4; }
  .rs-format--sheet { background: #1e7b45; }
  .rs-format--slides { background: #c2610a; }
  .rs-format--archive { background: #6a4bb0; }
  .rs-format--book { background: #0f7c8a; }
  .rs-format--image, .rs-format--text, .rs-format--other { background: #5a5a5a; }

  /* ---- listing ---- */
  .rs-toolbar { display: flex; gap: .6rem; align-items: center; margin: 1rem 0 .3rem; }
  .rs-search { flex: 1; padding: .6rem .85rem; border-radius: 10px; border: 1px solid var(--rule, rgba(128,128,128,.3)); background: transparent; color: inherit; font: inherit; }
  .rs-groups { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 .25rem; }
  .rs-group-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--rule, rgba(128,128,128,.28)); background: transparent; color: inherit; font: inherit; font-size: .82rem; cursor: pointer; }
  .rs-group-pill:hover { border-color: var(--sepo-accent, #0b3d33); }
  .rs-group-pill.is-on { background: var(--sepo-accent, #0b3d33); color: #fff; border-color: transparent; font-weight: 600; }
  .rs-group-n { font-size: .72rem; opacity: .7; font-variant-numeric: tabular-nums; }
  .rs-count { font-size: .8rem; opacity: .7; margin-bottom: .4rem; }
  .rs-list { list-style: none; margin: 0; padding: 0; }
  .rs-group-head { display: flex; align-items: baseline; gap: .45rem; padding: 1.1rem .2rem .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; border-bottom: 1px solid var(--rule, rgba(128,128,128,.15)); }
  .rs-group-head[hidden] { display: none; }
  .rs-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem .2rem; border-bottom: 1px solid var(--rule, rgba(128,128,128,.15)); }
  .rs-row[hidden] { display: none; }
  .rs-row-main { flex: 1; min-width: 0; }
  .rs-row-title { font-weight: 700; font-size: 1.02rem; color: inherit; text-decoration: none; }
  .rs-row-title:hover { color: var(--sepo-accent, #0b3d33); text-decoration: underline; }
  .rs-row-meta { font-size: .8rem; opacity: .7; margin-top: .2rem; }
  .rs-row-sum { font-size: .88rem; opacity: .8; margin-top: .35rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rs-row-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .45rem; }
  .rs-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; flex-shrink: 0; }
  .rs-row-stats { display: flex; align-items: center; gap: .5rem; }
  @media (max-width: 620px) {
    .rs-row { flex-wrap: wrap; }
    .rs-row-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
    .rs-row-sum { -webkit-line-clamp: 3; }
  }

  /* ---- pager ---- */
  .rs-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem; margin: 1.2rem 0 .5rem; }
  .rs-pager[hidden] { display: none; }
  .rs-page { min-width: 34px; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--rule, rgba(128,128,128,.28)); background: transparent; color: inherit; font: inherit; font-size: .85rem; cursor: pointer; }
  .rs-page:hover:not(:disabled) { border-color: var(--sepo-accent, #0b3d33); }
  .rs-page.is-on { background: var(--sepo-accent, #0b3d33); color: #fff; border-color: transparent; font-weight: 700; }
  .rs-page:disabled { opacity: .35; cursor: not-allowed; }
  .rs-page-gap { padding: 0 .2rem; opacity: .5; }

  /* ---- document page ---- */
  .rs-layout { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; }
  .rs-main { flex: 1; min-width: 300px; }
  .rs-side { width: 300px; flex-shrink: 0; }
  .rs-head { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1.2rem; }
  .rs-title { margin: 0 0 .35rem; font-size: 1.75rem; line-height: 1.2; }
  .rs-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; margin-bottom: .3rem; }
  .rs-abstract { font-size: .98rem; opacity: .85; margin: .5rem 0 0; }
  .rs-author { display: flex; gap: .75rem; align-items: center; padding: .8rem 0; margin: 1rem 0; border-top: 1px solid var(--rule, rgba(128,128,128,.15)); border-bottom: 1px solid var(--rule, rgba(128,128,128,.15)); }
  .rs-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: rgba(128,128,128,.18) center/cover no-repeat; flex-shrink: 0; }
  .rs-author-name { font-weight: 700; }
  .rs-author-name a { color: inherit; }
  .rs-author-sub { font-size: .82rem; opacity: .7; }
  .rs-section-h { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55; margin: 1.6rem 0 .5rem; }
  .rs-facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; font-size: .89rem; margin: 0; }
  .rs-facts dt { opacity: .6; }
  .rs-facts dd { margin: 0; }
  .rs-preview { width: 100%; height: 640px; border: 1px solid var(--rule, rgba(128,128,128,.2)); border-radius: 10px; background: rgba(128,128,128,.06); }
  .rs-cite { position: relative; margin-top: .5rem; padding: .8rem 2.6rem .8rem .9rem; border-radius: 10px; background: rgba(128,128,128,.09); font-size: .85rem; line-height: 1.5; }
  .rs-copy { position: absolute; top: .5rem; right: .5rem; border: 1px solid var(--rule, rgba(128,128,128,.3)); background: transparent; color: inherit; font: inherit; font-size: .72rem; padding: .2rem .45rem; border-radius: 6px; cursor: pointer; }
  .rs-copy:hover { background: rgba(128,128,128,.15); }
  .rs-panel { border: 1px solid var(--rule, rgba(128,128,128,.2)); border-radius: 14px; padding: 1.15rem; background: var(--bg-card, transparent); position: sticky; top: 1rem; }
  .rs-panel .rs-btn { width: 100%; }
  .rs-panel-stats { list-style: none; margin: .9rem 0 0; padding: 0; font-size: .86rem; }
  .rs-panel-stats li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid var(--rule, rgba(128,128,128,.12)); }
  .rs-panel-stats li:last-child { border-bottom: none; }
  .rs-panel-stats .k { opacity: .6; }
  .rs-panel-actions { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; }
  .rs-note { font-size: .78rem; opacity: .7; margin-top: .6rem; text-align: center; }
  .rs-related { margin-top: 2.5rem; }
  @media (max-width: 900px) { .rs-side { width: 100%; } .rs-panel { position: static; } .rs-preview { height: 420px; } }
