:root{--bg:#0b1020;--panel:rgba(255,255,255,.09);--line:rgba(255,255,255,.16);--text:#f8fafc;--muted:#b6c2d4;--violet:#8b5cf6;--teal:#22d3ee;--amber:#f59e0b;--coral:#fb7185}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:radial-gradient(circle at top left,#172554,var(--bg) 42%,#050816);color:var(--text);min-height:100vh}.bg-orb{position:fixed;width:380px;height:380px;border-radius:999px;filter:blur(70px);opacity:.28;z-index:-1}.orb-one{background:var(--violet);top:-80px;left:-60px}.orb-two{background:var(--teal);right:-120px;bottom:-100px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:22px 7vw}.brand{font-weight:800;letter-spacing:.3px;color:white;text-decoration:none;font-size:1.2rem}nav{display:flex;gap:18px;align-items:center}nav a{color:var(--muted);text-decoration:none}.container{width:min(1100px,88vw);margin:30px auto 80px}.card{background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.06));border:1px solid var(--line);border-radius:28px;padding:32px;box-shadow:0 24px 80px rgba(0,0,0,.25);backdrop-filter:blur(16px);margin-bottom:24px}.hero{padding:56px}.narrow{max-width:620px;margin-left:auto;margin-right:auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}.eyebrow{text-transform:uppercase;letter-spacing:.16em;color:var(--teal);font-weight:800;font-size:.74rem}h1{font-size:clamp(2rem,5vw,4.7rem);line-height:.95;margin:12px 0 18px}h2{font-size:2.4rem;margin:8px 0}p{color:var(--muted);font-size:1.05rem;line-height:1.65}.button{display:inline-block;border:0;border-radius:999px;background:linear-gradient(135deg,var(--violet),var(--coral));padding:12px 20px;color:white;text-decoration:none;font-weight:800;cursor:pointer}.button.ghost{background:transparent;border:1px solid var(--line)}.button.small{padding:8px 14px}.actions{display:flex;gap:12px;flex-wrap:wrap}form{display:grid;gap:16px}label{display:grid;gap:7px;color:#dbeafe;font-weight:700}input{width:100%;padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(0,0,0,.22);color:white}.error,.notice{padding:13px 15px;border-radius:14px}.error{background:rgba(251,113,133,.14);border:1px solid rgba(251,113,133,.4);color:#fecdd3}.notice{background:rgba(34,211,238,.12);border:1px solid rgba(34,211,238,.35);color:#cffafe}
:root {
  --bg: #070914;
  --panel: rgba(16, 20, 38, 0.82);
  --panel-2: rgba(22, 27, 52, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f3ff;
  --muted: #aeb6d9;
  --violet: #9b5cff;
  --cyan: #51d7ff;
  --amber: #ffbf4d;
  --coral: #ff667d;
  --emerald: #5be38b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 8%, rgba(125, 84, 255, .36), transparent 34%),
    radial-gradient(circle at 85% 70%, rgba(24, 214, 255, .18), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(255, 191, 77, .10), transparent 26%),
    #070914;
}

a { color: inherit; text-decoration: none; }

.bg-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(75px);
  opacity: .5;
  pointer-events: none;
}

.orb-one { background: #6c3cff; top: -120px; right: 18%; }
.orb-two { background: #00c2ff; bottom: -140px; right: -80px; }
.orb-three { background: #ff8a3d; bottom: 10%; left: 10%; opacity: .16; }

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 20, .62);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-weight: 800;
  letter-spacing: -.03em;
  font-size: 1.25rem;
}

.brand::before {
  content: "✦";
  color: var(--amber);
  margin-right: 10px;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
}

nav a:hover { color: var(--text); }

.shell {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  align-items: stretch;
}

.card {
  background: linear-gradient(180deg, var(--panel), rgba(11, 15, 30, .78));
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 330px;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(155, 92, 255, .32), transparent 28%),
    linear-gradient(135deg, transparent 0%, rgba(81, 215, 255, .08) 100%);
  pointer-events: none;
}

.hero-card > * { position: relative; z-index: 1; }

.kicker {
  color: var(--amber);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .75rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.07em;
  margin: 12px 0 16px;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 680px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.stat {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.stat b {
  display: block;
  font-size: 1.85rem;
  letter-spacing: -.04em;
}

.stat span {
  color: var(--muted);
  font-size: .82rem;
}

.searchbar {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-title h2 {
  margin: 0;
  letter-spacing: -.04em;
}

.grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}

.grid.two { grid-template-columns: 1.35fr .9fr; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.insight {
  min-height: 150px;
  position: relative;
  overflow: hidden;
}

.insight strong {
  display: block;
  font-size: 1.1rem;
  margin: 8px 0;
}

.insight p { color: var(--muted); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: .82rem;
}

.btn {
  display: inline-flex;
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--violet), var(--coral));
  box-shadow: 0 12px 36px rgba(155, 92, 255, .35);
  cursor: pointer;
}

.galaxy {
  min-height: 330px;
  position: relative;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(155, 92, 255, .18);
  border: 1px solid rgba(155, 92, 255, .45);
  box-shadow: 0 0 32px rgba(155, 92, 255, .35);
  font-size: .86rem;
}

.star.core {
  left: 46%;
  top: 42%;
  transform: translate(-50%, -50%);
  padding: 28px;
  font-size: 1.05rem;
  background: radial-gradient(circle, rgba(155,92,255,.65), rgba(155,92,255,.18));
}

.star:nth-child(2) { left: 18%; top: 22%; }
.star:nth-child(3) { right: 18%; top: 25%; }
.star:nth-child(4) { left: 15%; bottom: 24%; }
.star:nth-child(5) { right: 14%; bottom: 28%; }
.star:nth-child(6) { left: 42%; bottom: 12%; }

.dna-score {
  width: 190px;
  height: 190px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin: 10px auto 22px;
  background:
    radial-gradient(circle, rgba(81,215,255,.14), transparent 55%),
    conic-gradient(from 180deg, var(--violet), var(--cyan), var(--emerald), var(--amber), var(--violet));
  box-shadow: 0 0 55px rgba(81,215,255,.25);
}

.dna-score span {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #0a0d1d;
  font-size: 2.6rem;
  font-weight: 900;
}

.bar {
  margin: 14px 0;
}

.bar label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 7px;
}

.track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}

.fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.river {
  min-height: 230px;
  background:
    linear-gradient(90deg, transparent, rgba(81,215,255,.14), rgba(155,92,255,.18), transparent),
    repeating-linear-gradient(170deg, transparent 0 22px, rgba(255,255,255,.04) 23px 24px);
}

.garden {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  min-height: 210px;
}

.plant {
  text-align: center;
  color: var(--muted);
  flex: 1;
}

.plant .stem {
  margin: 0 auto 10px;
  width: 42px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--emerald), rgba(91,227,139,.18));
}

.plant:nth-child(1) .stem { height: 140px; background: linear-gradient(180deg, var(--violet), rgba(155,92,255,.18)); }
.plant:nth-child(2) .stem { height: 110px; }
.plant:nth-child(3) .stem { height: 86px; background: linear-gradient(180deg, var(--coral), rgba(255,102,125,.18)); }
.plant:nth-child(4) .stem { height: 58px; background: linear-gradient(180deg, var(--amber), rgba(255,191,77,.18)); }

.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.book {
  min-height: 180px;
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03)),
    radial-gradient(circle at 30% 20%, rgba(255,191,77,.26), transparent 35%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.book b { display: block; }
.book span { color: var(--muted); font-size: .82rem; }

form input[type="file"],
form input[type="text"],
form input[type="password"] {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.07);
  color: var(--text);
  margin: 8px 0 16px;
}

.notice {
  border: 1px solid rgba(81,215,255,.35);
  background: rgba(81,215,255,.12);
  padding: 14px 16px;
  border-radius: 16px;
  color: #d9f7ff;
}

@media (max-width: 1000px) {
  .hero, .grid.two, .grid.three, .stats, .books {
    grid-template-columns: 1fr;
  }

  nav { gap: 10px; font-size: .9rem; }
}
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:2rem;
    gap:2rem;
}

.library-toolbar{
    padding:1rem;
    margin-bottom:2rem;
}

.search-box{
    width:100%;
    padding:14px 18px;
    border-radius:14px;
    border:none;
    background:rgba(255,255,255,.06);
    color:white;
    font-size:1rem;
}

.library-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:24px;
}

.library-card{
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.08);
    border-radius:22px;
    padding:24px;
    transition:.25s;
}

.library-card:hover{
    transform:translateY(-6px);
    border-color:#8b5cf6;
    box-shadow:0 18px 40px rgba(139,92,246,.25);
}

.library-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:18px;
    font-size:.85rem;
}

.source-tag{
    background:#6d4aff;
    color:white;
    padding:6px 10px;
    border-radius:999px;
}

.theme-tags{
    margin-top:18px;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.theme-tags span{
    padding:6px 12px;
    border-radius:999px;
    background:rgba(130,80,255,.18);
    color:#d7c6ff;
    font-size:.8rem;
}

.page-header{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.page-header h1{margin-bottom:8px}.page-header p{margin:0}.form-help{font-size:.9rem;margin:0}.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.report-grid div{padding:18px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.045)}.report-grid b{display:block;font-size:1.8rem}.report-grid span{color:var(--muted);font-size:.82rem}.import-history{display:grid;gap:9px}.history-row,.latest-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.history-row div,.latest-row div{display:grid;gap:4px}.history-row span,.latest-row span{color:var(--muted);font-size:.82rem}.status-tag{display:inline-flex;padding:6px 9px;border-radius:999px;background:rgba(81,215,255,.1);border:1px solid rgba(81,215,255,.25);font-size:.75rem;text-transform:uppercase}.status-tag.failed{background:rgba(255,102,125,.1);border-color:rgba(255,102,125,.3)}.status-tag.completed{background:rgba(91,227,139,.1);border-color:rgba(91,227,139,.3)}.library-toolbar{padding:16px}.library-filter{display:grid;grid-template-columns:1fr 180px auto;gap:10px;align-items:center}.library-filter select{height:46px;border-radius:14px;border:1px solid var(--line);background:#0b1020;color:white;padding:0 12px}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.library-card{display:block;padding:22px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,var(--panel),rgba(11,15,30,.78));transition:transform .18s ease,border-color .18s ease}.library-card:hover{transform:translateY(-3px);border-color:rgba(155,92,255,.55)}.library-top,.library-meta{display:flex;gap:10px;justify-content:space-between;color:var(--muted);font-size:.78rem}.library-card h3{font-size:1.35rem;margin:18px 0 8px}.library-subtitle{font-size:.92rem;min-height:44px}.library-meta{justify-content:flex-start;margin:14px 0}.source-tag{color:var(--cyan);font-weight:800}.theme-tags{display:flex;gap:7px;flex-wrap:wrap}.theme-tags span{padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.06);color:var(--muted);font-size:.75rem}.document-view{max-width:900px;margin:auto}.document-view h1{font-size:clamp(2.6rem,6vw,5.2rem)}.document-subtitle{font-size:1.35rem}.document-meta{display:flex;gap:14px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted)}.document-body{font-family:Georgia,serif;font-size:1.08rem;line-height:1.78;color:#edf0f5;margin-top:30px}.document-body img{max-width:100%;height:auto;border-radius:16px}.document-body .subscription-widget-wrap-editor{display:none}.back-link{color:var(--cyan)}.empty-state{grid-column:1/-1;text-align:center}.archive-orbit{position:relative;min-height:240px}.orbit-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:130px;height:130px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle,rgba(155,92,255,.7),rgba(155,92,255,.16));font-size:2rem;font-weight:900}.orbit-core span{display:block;font-size:.72rem;color:#ddd}.orbit-label{position:absolute;padding:9px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(81,215,255,.09)}.orbit-label.one{left:10%;top:20%}.orbit-label.two{right:10%;top:28%}.orbit-label.three{left:35%;bottom:8%}
@media(max-width:900px){.library-grid{grid-template-columns:repeat(2,1fr)}.report-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.page-header{display:block}.page-header .button{margin-top:14px}.library-grid{grid-template-columns:1fr}.library-filter{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}}
/* Library 2.0 cards */

.library-page-header {
    margin-bottom: 22px;
}

.library-toolbar {
    position: sticky;
    top: 18px;
    z-index: 10;
    padding: 14px;
    margin-bottom: 22px;
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.library-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px auto;
    gap: 12px;
    align-items: center;
}

.library-search-field {
    min-width: 0;
}

.library-filter .search-box,
.library-filter select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 10, 24, 0.78);
    color: white;
}

.library-filter .search-box {
    padding: 0 16px;
}

.library-filter select {
    padding: 0 12px;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.library-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(139, 92, 246, 0.13),
            transparent 15rem
        ),
        linear-gradient(
            160deg,
            rgba(25, 31, 53, 0.96),
            rgba(10, 15, 30, 0.94)
        );
    color: inherit;
    text-decoration: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.library-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.85),
        rgba(81, 215, 255, 0.55),
        transparent
    );
    opacity: 0;
    transition: opacity 0.2s ease;
}

.library-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow:
        0 24px 55px rgba(0, 0, 0, 0.24),
        0 0 32px rgba(139, 92, 246, 0.12);
}

.library-card:hover::before {
    opacity: 1;
}

.library-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.78rem;
}

.source-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(81, 215, 255, 0.24);
    border-radius: 999px;
    background: rgba(81, 215, 255, 0.08);
    color: var(--cyan);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.library-card-content {
    flex: 1;
}

.library-card h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.library-subtitle {
    display: -webkit-box;
    min-height: auto;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.library-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 22px 0 18px;
}

.library-meta span {
    display: grid;
    gap: 2px;
    color: var(--muted);
    font-size: 0.72rem;
}

.library-meta strong {
    color: #f7f8fc;
    font-size: 0.9rem;
}

.library-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
}

.theme-tags span {
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.72rem;
}

.theme-tags .status-published {
    border-color: rgba(91, 227, 139, 0.25);
    background: rgba(91, 227, 139, 0.08);
    color: #89e7aa;
}

.theme-tags .status-draft {
    border-color: rgba(255, 186, 73, 0.28);
    background: rgba(255, 186, 73, 0.08);
    color: #ffc66a;
}

.library-open-arrow {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.09);
    color: #c9a7ff;
    font-size: 1.05rem;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.library-card:hover .library-open-arrow {
    transform: translateX(3px);
    background: rgba(139, 92, 246, 0.18);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 60px 30px;
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    color: #c6a4ff;
    font-size: 1.6rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1000px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .library-filter {
        grid-template-columns: 1fr;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .library-card {
        min-height: auto;
    }
}
/* Document reader */

.document-reader {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.document-hero {
    padding: 18px 0 34px;
    border-bottom: 1px solid var(--line);
}

.document-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 34px 0 18px;
}

.document-hero h1 {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.document-subtitle {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.55;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 28px;
    padding: 0;
    border: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.document-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 54px;
    align-items: start;
    padding-top: 42px;
}

.document-content {
    min-width: 0;
}

.document-body {
    margin: 0;
    color: #edf0f5;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.82;
}

.document-body > *:first-child {
    margin-top: 0;
}

.document-body h2,
.document-body h3,
.document-body h4 {
    color: #fff;
    line-height: 1.2;
}

.document-body h2 {
    margin-top: 2.4em;
    font-size: 1.8rem;
}

.document-body h3 {
    margin-top: 2em;
    font-size: 1.4rem;
}

.document-body p {
    margin: 0 0 1.45em;
}

.document-body blockquote {
    margin: 2rem 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid rgba(139, 92, 246, 0.7);
    color: #d8d9e4;
    font-style: italic;
}

.document-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 18px;
}

.document-body a {
    color: var(--cyan);
}

.document-sidebar {
    position: sticky;
    top: 28px;
    display: grid;
    gap: 14px;
}

.document-sidebar-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(139, 92, 246, 0.12),
            transparent 12rem
        ),
        rgba(15, 21, 40, 0.86);
}

.document-details {
    display: grid;
    gap: 0;
    margin: 16px 0 0;
}

.document-details div {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.document-details div:last-child {
    border-bottom: 0;
}

.document-details dt {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.document-details dd {
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
}

.document-library-button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .document-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .document-sidebar {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 620px) {
    .document-hero h1 {
        font-size: 2.7rem;
    }

    .document-layout {
        padding-top: 28px;
    }

    .document-body {
        font-size: 1.04rem;
    }
}