:root {
  --ink: #f9fafb;
  --muted: #aeb8c8;
  --night: #1f2937;
  --night-deep: #121924;
  --line: rgba(255, 255, 255, 0.11);
  --orkut-pink: #ed4e95;
  --orkut-pink-soft: #ff8aba;
  --orkut-blue: #6aa6df;
  --paper: #f5f7fb;
  --paper-ink: #18202c;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(237, 78, 149, 0.2), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(106, 166, 223, 0.16), transparent 25rem),
    var(--night-deep);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.support-banner { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 11px 24px; color: #301122; background: var(--orkut-pink-soft); font-size: .98rem; font-weight: 800; }
.support-banner[hidden] { display: none; }
.support-banner p { margin: 0; }
.support-banner a, .support-link { color: inherit; background: transparent; border: 0; font: inherit; font-weight: 900; cursor: pointer; }
.banner-close, .dialog-close { border: 0; background: transparent; font-size: 1.3rem; cursor: pointer; }
dialog { max-width: 420px; color: var(--paper-ink); border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
dialog::backdrop { background: rgba(0,0,0,.62); }.pix-key { padding: 12px; background: #f5e4ec; border-radius: 8px; overflow-wrap: anywhere; }
.pix-qr { display: block; width: 220px; max-width: 100%; margin: 18px auto; padding: 10px; background: white; border-radius: 10px; }
.top-nav { display: flex; align-items: center; gap: 16px; font-size: .8rem; }.top-nav a { text-decoration: none; }.top-nav .language { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--orkut-pink-soft); font-weight: 800; }
.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { display: block; color: var(--orkut-pink-soft); font-size: 1.4rem; letter-spacing: -0.04em; }
.brand small { display: block; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-mark { position: relative; display: block; width: 40px; height: 40px; }
.brand-mark i { position: absolute; display: block; border: 3px solid var(--orkut-pink); border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 25px; height: 25px; left: 0; top: 9px; }
.brand-mark i:nth-child(2) { width: 20px; height: 20px; right: 0; top: 1px; border-color: var(--orkut-blue); }
.brand-mark i:nth-child(3) { width: 11px; height: 11px; right: 3px; bottom: 1px; }
.menu-separator { height: 24px; width: 1px; background: var(--line); }.author-link { color: #fff; padding: 8px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font-size: .84rem; font-weight: 800; text-decoration: none; }
.author-link span { color: var(--muted); }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 84px 0 52px; max-width: 970px; }
.eyebrow { margin: 0 0 15px; color: var(--orkut-pink-soft); font-size: 0.73rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 900px; margin-bottom: 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.8rem, 7vw, 5.7rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.98; }
.hero-copy { max-width: 730px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.6; }
.search-form { max-width: 900px; margin-top: 42px; }
.search-form label { display: block; margin-bottom: 9px; font-size: 0.82rem; font-weight: 700; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-row input { min-width: 0; padding: 18px 20px; color: var(--paper-ink); background: var(--paper); border: 2px solid transparent; border-radius: 13px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22); font: inherit; font-size: 1rem; outline: none; }
.search-row input:focus { border-color: var(--orkut-pink); }
.search-row button, .primary-action { padding: 0 25px; color: white; background: var(--orkut-pink); border: 0; border-radius: 13px; cursor: pointer; font: inherit; font-weight: 800; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.search-row button:hover, .primary-action:hover { background: #ff5da5; transform: translateY(-1px); }
.search-help { margin: 10px 3px 0; color: var(--muted); font-size: 0.78rem; }
.search-help code { color: var(--ink); }
.archive-stats { display: flex; gap: 12px; margin-top: 36px; }
.archive-stats div { min-width: 150px; padding: 15px 18px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line); border-radius: 12px; }
.archive-stats strong { display: block; font-size: 1.4rem; }
.archive-stats span { color: var(--muted); font-size: 0.72rem; }
.index-coverage { max-width: 900px; margin-top: 28px; padding: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 14px; }
.coverage-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.coverage-heading .eyebrow { margin: 0; }
.coverage-heading > span { color: var(--muted); font-size: 0.7rem; }
.coverage-heading i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: #6ed6a0; border-radius: 50%; box-shadow: 0 0 0 3px rgba(110, 214, 160, 0.12); }
.letter-progress { display: grid; grid-template-columns: repeat(14, minmax(32px, 1fr)); gap: 7px; }
.letter-chip { position: relative; display: grid; min-height: 34px; place-items: center; color: #707b8d; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 8px; font-size: 0.76rem; font-weight: 800; }
.letter-chip.indexed { color: #d7ffea; background: rgba(62, 185, 119, 0.16); border-color: rgba(110, 214, 160, 0.48); }
.letter-chip:not(.indexed).running { color: #ffe1ef; background: rgba(237, 78, 149, 0.15); border-color: rgba(237, 78, 149, 0.5); }
.letter-chip:not(.indexed).waiting { color: #ffe4a8; background: rgba(231, 177, 55, 0.12); border-color: rgba(231, 177, 55, 0.38); }
.letter-chip.reviewing::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 5px; height: 5px; border-radius: 50%; background: #f27cb7; box-shadow: 0 0 0 2px rgba(242, 124, 183, 0.2); }
.letter-chip b { position: absolute; right: 3px; top: 1px; color: #78e2aa; font-size: 0.55rem; }
.notice { margin-bottom: 25px; padding: 15px 18px; border-radius: 12px; }
.notice-error { color: #ffdbe9; background: rgba(237, 78, 149, 0.12); border: 1px solid rgba(237, 78, 149, 0.35); }
.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: 22px; align-items: start; padding-bottom: 70px; }
.results-panel, .detail-panel { background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24); }
.results-panel { padding: 28px; }
.detail-panel { position: sticky; top: 20px; padding: 28px; min-height: 300px; }
.results-panel .eyebrow, .detail-panel .eyebrow { color: #b92e6b; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.section-heading h2, .detail-panel h2 { margin-bottom: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -0.025em; }
.results-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.bulk-export { padding: 9px 12px; color: white; background: #a52960; border-radius: 9px; font-size: 0.72rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bulk-export:hover { background: var(--orkut-pink); }
.query-chip { max-width: 230px; overflow: hidden; text-overflow: ellipsis; padding: 7px 10px; color: #6f394f; background: #f8dce9; border-radius: 999px; font-size: 0.72rem; white-space: nowrap; }
.result-list { display: grid; gap: 10px; }
.result-card { display: grid; grid-template-columns: 42px 1fr auto; gap: 15px; align-items: center; padding: 17px; border: 1px solid #dfe4ec; border-radius: 13px; transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease; }
.result-card:hover, .result-card.is-selected { border-color: var(--orkut-pink); box-shadow: 0 10px 28px rgba(33, 42, 55, 0.08); transform: translateY(-1px); }
.result-card.is-selected { background: #fff7fb; }
.result-letter { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--orkut-blue); border-radius: 50%; font-weight: 800; }
.result-content { min-width: 0; }
.result-content h3 { margin: 4px 0 6px; font-size: 1rem; }
.result-content p { display: -webkit-box; overflow: hidden; margin: 0; color: #667085; font-size: 0.82rem; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.result-meta { display: flex; gap: 6px; color: #8a6474; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }
.select-link { padding: 8px 0 8px 12px; color: #a52960; font-size: 0.78rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.detail-description { color: #586273; font-size: 0.92rem; line-height: 1.58; max-height: 230px; overflow: auto; }
.detail-panel dl { margin: 24px 0; border-top: 1px solid #dfe4ec; }
.detail-panel dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #dfe4ec; font-size: 0.78rem; }
.detail-panel dt { color: #7d8797; }
.detail-panel dd { margin: 0; font-weight: 700; }
.primary-action, .secondary-action { display: block; padding: 14px 16px; text-align: center; }
.secondary-action { margin-top: 8px; color: #4b596d; border: 1px solid #ccd4df; border-radius: 12px; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.export-note { margin: 15px 2px 0; color: #7d8797; font-size: 0.7rem; line-height: 1.45; }
.selection-placeholder { display: grid; min-height: 240px; place-content: center; text-align: center; color: #697586; }
.selection-placeholder span, .empty-state span { color: var(--orkut-pink); font-size: 2rem; }
.empty-state { padding: 60px 20px; text-align: center; color: #697586; }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid #dfe4ec; color: #697586; font-size: 0.76rem; text-align: center; }
.pagination a { color: #a52960; font-weight: 800; text-decoration: none; }
.pagination a:last-child { text-align: right; }
.digger, .partnerships { display: grid; grid-template-columns: .55fr 1.45fr; gap: 30px; padding: 55px 0; border-top: 1px solid var(--line); }
.digger h2 { max-width: 700px; font-family: Georgia, serif; font-size: clamp(1.8rem, 4vw, 3.1rem); font-weight: 500; letter-spacing: -.04em; }.digger p { max-width: 680px; color: var(--muted); line-height: 1.7; }.digger span { color: var(--orkut-pink-soft); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }.digger-links{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.digger-links a{padding:9px 13px;border:1px solid var(--orkut-pink-soft);border-radius:8px;color:var(--ink);font-size:.86rem;font-weight:800;text-decoration:none}.digger-links a:hover{background:var(--orkut-pink-soft);color:#fff}.partner-shelf { display: flex; flex-wrap: wrap; gap: 14px; }.partner-shelf a { display: grid; width: min(280px, 100%); min-height: 104px; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .04); }.partner-shelf a:last-child { background: #080b12; }.partner-shelf img { display: block; max-width: 100%; max-height: 66px; object-fit: contain; }.partner-shelf a:last-child img { max-height: 72px; }
.content-page { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }.content-page p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 42px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 0.76rem; }
.citation { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0; border-top: 1px solid var(--line); }.citation div { display:grid; grid-template-columns:1fr 1fr; gap:20px; }.citation p:not(.eyebrow) { color:var(--muted); line-height:1.65; font-size:.83rem; }
footer nav { display: flex; gap: 16px; }
footer a { color: var(--ink); text-decoration: none; }

@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .detail-panel { position: static; grid-row: 1; }
  .digger, .partnerships { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 72px; }
  .author-link span { display: none; }
  .top-nav { gap: 9px; font-size: .7rem; }.top-nav .author-link { display: none; }.support-banner { justify-content: flex-start; gap: 9px; }
  .hero { padding-top: 54px; }
  h1 { font-size: 2.75rem; }
  .search-row { grid-template-columns: 1fr; }
  .search-row button { padding: 15px; }
  .archive-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .archive-stats div { min-width: 0; }
  .archive-stats div:last-child { grid-column: 1 / -1; }
  .results-panel, .detail-panel { padding: 18px; border-radius: 14px; }
  .section-heading { display: block; }
  .results-actions { align-items: flex-start; margin-top: 12px; }
  .query-chip { display: inline-block; }
  .coverage-heading { display: block; }
  .coverage-heading > span { display: block; margin-top: 8px; }
  .letter-progress { grid-template-columns: repeat(7, 1fr); }
  .result-card { grid-template-columns: 36px 1fr; }
  .result-letter { width: 34px; height: 34px; }
  .select-link { grid-column: 2; padding: 2px 0; }
  footer { display: block; }
}
