.paperhub { --ph-ink: #152c52; --ph-muted: #526582; --ph-surface: #fff; --ph-tint: #f1f6ff; --ph-border: #d6e0f2; --ph-accent: #315df5; max-width: 1180px; margin-inline: auto; padding: 0 24px; color: var(--ph-ink); }
:root[data-theme="dark"] .paperhub { --ph-ink: #e4edff; --ph-muted: #afbdd3; --ph-surface: #18243a; --ph-tint: #202f4a; --ph-border: #3d506f; --ph-accent: #9dbbff; }
.paperhub *, .paperhub *::before, .paperhub *::after { box-sizing: border-box; }
.paperhub [hidden] { display: none !important; }
.paperhub button, .paperhub input { font: inherit; }
.paperhub button, .paperhub a, .paperhub summary { -webkit-tap-highlight-color: transparent; }
.paperhub :focus-visible { outline: 3px solid #0ca5c5; outline-offset: 4px; }
.paperhub button { cursor: pointer; border: 1px solid var(--ph-border); border-radius: 12px; padding: 10px 16px; background: var(--ph-surface); color: var(--ph-ink); min-height: 44px; }
.paperhub button:disabled { opacity: .45; cursor: default; }
.paperhub .ph-tabs { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--ph-border); background: var(--ph-surface); border-radius: 20px; margin-bottom: 30px; }
.paperhub .ph-tabs button { font-weight: 700; padding: 13px 22px; background: var(--ph-tint); }
.paperhub .ph-tabs button[aria-selected="true"] { color: #fff; background: #3b55ec; border-color: #3b55ec; box-shadow: 0 6px 18px -10px #315df5; }
.ph-edition { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; align-items: baseline; margin: 0 0 18px; }
.ph-edition h2 { font-size: clamp(23px, 3vw, 30px); line-height: 1.4; margin: 0; color: var(--ph-ink); }
.ph-edition p, .ph-note, .ph-date-note { font-size: 14px; color: var(--ph-muted); margin: 0; line-height: 1.7; }
.ph-tools { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: center; gap: 14px; }
.paperhub input { border: 1px solid var(--ph-border); border-radius: 12px; min-height: 46px; padding: 10px 14px; color: var(--ph-ink); background: var(--ph-surface); min-width: 0; width: 100%; }
.paperhub input::placeholder { color: var(--ph-muted); opacity: 1; }
.ph-date-nav { display: flex; align-items: center; gap: 8px; }
.ph-date-nav input { width: 155px; }
.ph-date-nav button { padding-inline: 13px; }
.ph-date-note { margin-top: 10px; }
.ph-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.paperhub .ph-tags button { font-size: 13px; border-radius: 999px; padding: 7px 13px; min-height: 38px; }
.paperhub .ph-tags button[aria-pressed="true"] { background: var(--ph-tint); border-color: var(--ph-accent); color: var(--ph-accent); }
.ph-note:not(:empty) { padding: 14px 18px; background: var(--ph-tint); border-radius: 12px; margin: 16px 0; }
.ph-status:not(:empty) { color: var(--ph-muted); line-height: 1.7; padding: 18px 0; }
.ph-status button { margin-left: 12px; }
.paper-list { display: grid; gap: 24px; margin-top: 22px; }
.paper-card { position: relative; min-width: 0; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--ph-border); border-radius: 24px; background: radial-gradient(ellipse at top right, rgba(36,195,218,.08), transparent 55%), var(--ph-surface); box-shadow: 0 18px 50px -40px #1d3b85; overflow-wrap: anywhere; }
.paper-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ph-muted); margin-bottom: 15px; }
.paper-meta time { margin-left: auto; }
.paper-number { color: var(--ph-accent); font-weight: 800; letter-spacing: .1em; }
.paperhub .paper-card h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.5; color: var(--ph-ink); letter-spacing: -.02em; }
.paper-original { margin: 0 0 18px; color: var(--ph-muted); font-size: 14px; line-height: 1.7; }
.paper-summary { font-size: 17px; line-height: 1.85; margin: 0 0 20px; color: var(--ph-ink); }
.paper-takeaway { padding: 16px 20px; border-left: 3px solid #0baacb; border-radius: 0 12px 12px 0; background: var(--ph-tint); }
.paper-takeaway span, .paper-field h4 { font-size: 14px; font-weight: 700; color: var(--ph-accent); }
.paper-takeaway p { margin: 6px 0 0; font-size: 16px; line-height: 1.85; }
.paper-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.paper-tags span { font-size: 12px; color: var(--ph-muted); border: 1px solid var(--ph-border); border-radius: 99px; padding: 4px 10px; background: var(--ph-tint); }
.paperhub summary { cursor: pointer; min-height: 44px; padding-block: 12px; color: var(--ph-accent); font-weight: 650; font-size: 15px; }
.paper-analysis { border-block: 1px solid var(--ph-border); }
.paper-analysis-body { padding-block: 8px 20px; }
.paper-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.paper-field h4 { margin: 14px 0 8px; }
.paper-field p, .paper-abstract p { font-size: 16px; line-height: 1.85; margin: 0 0 14px; }
.paper-evidence { border-left: 2px solid var(--ph-border); padding: 6px 18px; margin-block: 12px 18px; }
.paper-evidence blockquote { font-size: 14px; color: var(--ph-muted); margin: 10px 0; padding: 0; border: 0; font-style: normal; line-height: 1.8; }
.paper-evidence .paper-conditions { font-size: 14px; color: var(--ph-muted); }
.paper-abstract { padding: 0 18px; border: 1px solid var(--ph-border); border-radius: 12px; }
.paper-abstract dl { font-size: 12px; color: var(--ph-muted); display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.paper-abstract dd { margin: 0; }
.paper-scope { margin: 14px 0 0; font-size: 12px; color: var(--ph-muted); }
.paper-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.paper-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; font-size: 14px; padding: 8px 14px; background: var(--ph-tint); border: 1px solid var(--ph-border); border-radius: 10px; color: var(--ph-accent); text-decoration: none; font-weight: 650; }
.paper-links a:hover { border-color: var(--ph-accent); }
.ph-classics { display: grid; gap: 18px; margin-top: 24px; }
.ph-task { padding: 22px; border: 1px solid var(--ph-border); border-radius: 18px; background: var(--ph-surface); overflow-wrap: anywhere; }
.ph-task > summary { padding: 0; }
.ph-task > summary h3 { display: inline; font-size: 21px; color: var(--ph-ink); margin: 0; }
.ph-task > p { font-size: 15px; line-height: 1.8; color: var(--ph-muted); }
.ph-task-date { font-size: 12px; color: var(--ph-muted); }
.ph-trajectory { border-left: 2px solid var(--ph-border); margin: 22px 0 0 8px; padding-left: 22px; }
.ph-classic-item { position: relative; padding: 0 0 24px; }
.ph-classic-item::before { content: ''; position: absolute; left: -29px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ph-accent); border: 2px solid var(--ph-surface); }
.ph-classic-item h4 { color: var(--ph-ink); margin: 8px 0; font-size: 18px; line-height: 1.6; }
.ph-classic-item p { line-height: 1.85; font-size: 15px; color: var(--ph-muted); margin: 0; }
.ph-sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 700px) { .paperhub { padding-inline: 16px; } .ph-tools { grid-template-columns: 1fr; } .ph-date-nav { justify-content: space-between; } .ph-date-nav input { flex: 1; max-width: 210px; } .paper-field-grid { grid-template-columns: 1fr; gap: 0; } .paperhub .ph-tabs { gap: 8px; padding: 8px; } .paperhub .ph-tabs button { flex: 1; padding: 12px 8px; font-size: 14px; } .paper-card { border-radius: 18px; padding: 20px; } .paper-summary { font-size: 16px; } .ph-task { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .paperhub *, .paperhub *::before, .paperhub *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 480px) {
  .ph-date-nav { display: grid; grid-template-columns: 44px minmax(155px, 1fr) 44px; }
  .ph-date-nav input { width: 100%; max-width: none; }
  #highlight-latest { grid-column: 1 / -1; }
}
