:root {
  color-scheme: light;
  --topbar-height: 72px;
  --bg: #edf2f5;
  --bg-accent: #f7fafc;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --border: rgba(15, 20, 25, 0.1);
  --border-strong: rgba(15, 20, 25, 0.16);
  --text: #0f1419;
  --muted: #5c6f80;
  --blue: #1677d8;
  --blue-soft: rgba(22, 119, 216, 0.12);
  --shadow: 0 20px 55px rgba(15, 20, 25, 0.08);
  --radius-shell: 28px;
  --radius-card: 22px;
  --radius-media: 20px;
}

.arxiv-shell {
  display: grid;
  overflow: hidden;
}

.timeline-header.is-arxiv {
  border-bottom-color: rgba(199, 102, 26, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 175, 82, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(251, 246, 239, 0.96));
}

.timeline-header-mark.is-arxiv {
  width: 136px;
  background: linear-gradient(135deg, #b31b1b 0%, #d2352c 100%);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 22px rgba(179, 27, 27, 0.2);
}

.timeline-header.is-arxiv .timeline-header-kicker {
  color: #b31b1b;
}

.timeline-header.is-arxiv .timeline-header-meta,
.timeline-header.is-arxiv .timeline-header-subtitle {
  color: #7b6856;
}

.arxiv-logo-svg {
  width: 102px;
  height: auto;
  max-width: 100%;
}

.arxiv-feed-list {
  display: grid;
  gap: 18px;
  padding: 24px 28px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.arxiv-feed-list .feed-page {
  display: grid;
  gap: 18px;
}

.arxiv-feed-card {
  display: grid;
  gap: 16px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 115, 82, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(89, 62, 34, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.arxiv-feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 108, 37, 0.22);
  box-shadow: 0 18px 40px rgba(89, 62, 34, 0.1);
}

.arxiv-feed-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.arxiv-feed-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.arxiv-feed-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.arxiv-feed-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 103, 42, 0.08);
  box-shadow: 0 8px 18px rgba(117, 92, 66, 0.06);
  font-size: 0.84rem;
  color: #7b6049;
}

.arxiv-feed-badge-category {
  background: rgba(229, 176, 123, 0.18);
  color: #7f4b1f;
  font-weight: 500;
}

.arxiv-feed-badge-id {
  background: rgba(242, 222, 199, 0.42);
  color: #8a6747;
  font-weight: 800;
}

.arxiv-feed-badge-votes {
  background: rgba(248, 241, 232, 0.92);
  color: #ab9277;
  font-weight: 500;
}

.arxiv-feed-published-at {
  color: #8f6741;
  font-size: 0.86rem;
  line-height: 1.2;
  font-weight: 500;
  white-space: nowrap;
}

.arxiv-feed-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.arxiv-feed-preview-shell {
  min-width: 0;
}

.arxiv-feed-preview {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(196, 108, 37, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, #f7efe4 0%, #efe2d1 100%);
  aspect-ratio: 1.42 / 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.arxiv-feed-preview-image,
.arxiv-feed-preview-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

.arxiv-feed-preview-image {
  object-fit: cover;
}

.arxiv-feed-preview-fallback {
  display: grid;
  place-items: center;
  color: #a7672f;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.arxiv-feed-side-meta,
.arxiv-feed-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.arxiv-feed-title {
  margin: 0;
  color: #16202a;
  font-size: 1.55rem;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.arxiv-feed-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.arxiv-feed-title a:hover {
  color: #a2581b;
}

.arxiv-feed-authors,
.arxiv-feed-summary,
.arxiv-feed-supporting {
  margin: 0;
}

.arxiv-feed-summary {
  color: #334256;
  font-size: 0.98rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.arxiv-feed-supporting {
  color: #66788d;
  font-size: 0.92rem;
  line-height: 1.55;
}

.arxiv-feed-taxonomy {
  color: #9d5e25;
  font-size: 0.84rem;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.arxiv-feed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.arxiv-feed-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(96, 122, 161, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #355e99;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(112, 139, 177, 0.08);
}

.arxiv-feed-link svg {
  width: 18px;
  height: 18px;
}

.arxiv-feed-link:hover {
  border-color: rgba(53, 94, 153, 0.22);
  background: rgba(248, 251, 255, 0.98);
}

.arxiv-feed-link.is-pdf {
  font-weight: 400;
}

.arxiv-round-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.arxiv-round-card {
  gap: 8px;
  padding: 14px 16px;
  border-radius: 18px;
}

.arxiv-round-card-head {
  margin-bottom: 2px;
}

.arxiv-round-card h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.arxiv-round-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .arxiv-feed-list {
    padding: 20px 20px 18px;
  }

  .arxiv-feed-main {
    grid-template-columns: 1fr;
  }

  .arxiv-feed-side {
    gap: 10px;
  }

  .arxiv-feed-title {
    font-size: 1.55rem;
  }

  .arxiv-round-directory {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html,
body,
#reader-root {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-y: auto;
  background:
    radial-gradient(circle at top left, rgba(22, 119, 216, 0.14), transparent 24%),
    linear-gradient(180deg, #f9fbfd 0%, var(--bg) 38%, #e7edf1 100%);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
}

body.image-viewer-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

#reader-root.reader-loading-shell {
  display: grid;
  place-items: center;
  padding: 32px;
}

.reader-loading-card,
.error-state {
  width: min(720px, calc(100vw - 32px));
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reader-loading-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #0f1419;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.reader-loading-brand {
  display: grid;
  justify-items: start;
  margin-bottom: 16px;
}

.reader-loading-brand-logo {
  display: block;
  width: 132px;
  height: 32px;
  object-fit: contain;
}

.reader-app {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 40;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.58);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 20, 25, 0.14);
  cursor: pointer;
  opacity: 0.82;
  backdrop-filter: blur(14px);
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.back-to-top:hover {
  opacity: 1;
  background: rgba(15, 20, 25, 0.68);
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15, 20, 25, 0.18);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(22, 119, 216, 0.36);
  outline-offset: 3px;
}

.back-to-top[hidden] {
  display: none;
}

.feed-debug-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(15, 20, 25, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #324452;
  box-shadow: 0 12px 28px rgba(15, 20, 25, 0.12);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.feed-debug-panel {
  position: fixed;
  left: 20px;
  bottom: 64px;
  z-index: 40;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(15, 20, 25, 0.14);
  backdrop-filter: blur(18px);
}

.feed-debug-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feed-debug-panel-head strong {
  font-size: 0.96rem;
}

.feed-debug-panel-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.feed-debug-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.feed-debug-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.feed-debug-list dt,
.feed-debug-list dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.feed-debug-list dt {
  color: var(--muted);
  font-weight: 700;
}

.feed-debug-list dd {
  color: var(--text);
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0 24px;
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
  background: rgba(249, 251, 253, 0.86);
  backdrop-filter: blur(18px);
}

.app-topbar-inner {
  width: min(932px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr) auto;
  align-items: center;
  justify-content: stretch;
  gap: 24px;
  min-height: var(--topbar-height);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  justify-self: start;
}

.app-brand-mark {
  display: block;
  width: 168px;
  height: 40px;
}

.app-brand-logo {
  display: block;
  width: 168px;
  height: 40px;
  object-fit: contain;
}

.app-source-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: start;
}

.source-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 700;
}

.source-tab.is-selected {
  border-bottom-color: #0f1419;
  color: #0f1419;
}

.app-topbar-spacer {
  min-width: 0;
}

.app-topbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  justify-self: end;
}

.topbar-inline-form {
  margin: 0;
}

.topbar-primary-link,
.topbar-ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.topbar-primary-link {
  border: 0;
  background: linear-gradient(135deg, #1c60f5 0%, #2b8cff 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(28, 96, 245, 0.24);
}

.topbar-primary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(28, 96, 245, 0.3);
}

.topbar-ghost-button {
  border: 1px solid rgba(44, 74, 115, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: #37506a;
  cursor: pointer;
}

.topbar-ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 96, 245, 0.22);
}

.topbar-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(28, 96, 245, 0.1);
  color: #1c60f5;
  font-size: 0.9rem;
  font-weight: 700;
}

.app-topbar-public {
  position: sticky;
  top: 0;
  z-index: 35;
  padding: 0 24px;
  border-bottom: 1px solid rgba(137, 156, 182, 0.14);
  background: rgba(247, 250, 255, 0.82);
  backdrop-filter: blur(18px);
}

.app-topbar-inner-public {
  width: min(1120px, calc(100vw - 48px));
}

.marketing-document,
.auth-document {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.public-page-main {
  flex: 1;
}

.marketing-stage,
.auth-stage {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.marketing-stage {
  display: grid;
  gap: 28px;
}

.marketing-shell {
  overflow: hidden;
  border: 1px solid rgba(150, 174, 208, 0.18);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow:
    0 28px 58px rgba(64, 91, 132, 0.08),
    0 10px 22px rgba(120, 141, 170, 0.05);
  backdrop-filter: blur(16px);
}

.marketing-hero-panel {
  background:
    radial-gradient(circle at 78% 22%, rgba(50, 144, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.92) 0%, rgba(233, 241, 255, 0.88) 100%);
}

.marketing-features-panel {
  background: rgba(255, 255, 255, 0.86);
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 58px 52px 46px;
}

.marketing-copy {
  max-width: 460px;
}

.marketing-eyebrow {
  margin: 0 0 18px;
  color: #5f7f9f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-title {
  margin: 0;
  color: #15253f;
  font-size: clamp(2.75rem, 4vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.marketing-title-accent {
  display: inline-block;
  margin-left: 0.14em;
  color: #2477ff;
}

.marketing-lede {
  margin: 24px 0 34px;
  color: #62778d;
  font-size: 1.28rem;
  line-height: 1.75;
}

.hero-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c60f5 0%, #2a8aff 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(28, 96, 245, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.hero-primary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(28, 96, 245, 0.28);
}

.hero-visual {
  position: relative;
  min-height: 410px;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  background: rgba(91, 157, 255, 0.12);
  filter: blur(8px);
}

.hero-orbit-a {
  top: 38px;
  right: 110px;
  width: 240px;
  height: 240px;
}

.hero-orbit-b {
  right: 14px;
  bottom: 28px;
  width: 190px;
  height: 190px;
  background: rgba(114, 186, 255, 0.16);
}

.hero-device {
  position: absolute;
  inset: 0;
}

.hero-device-screen {
  position: absolute;
  top: 26px;
  left: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 320px;
  height: 190px;
  padding: 0 34px;
  border: 1px solid rgba(177, 210, 255, 0.66);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(225, 236, 255, 0.98));
  box-shadow:
    0 30px 45px rgba(124, 161, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: rotate(12deg);
}

.hero-device-ai {
  color: #2f7fff;
  font-size: 4.25rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.hero-device-ring {
  width: 82px;
  height: 82px;
  border: 14px solid rgba(43, 140, 255, 0.18);
  border-right-color: #2b8cff;
  border-top-color: #7ab8ff;
  border-radius: 999px;
}

.hero-device-base {
  position: absolute;
  right: 58px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 356px;
  height: 178px;
  border: 1px solid rgba(182, 209, 255, 0.78);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(219, 233, 255, 0.98));
  box-shadow:
    0 28px 40px rgba(127, 160, 209, 0.18),
    inset 0 -14px 24px rgba(68, 128, 243, 0.12);
}

.hero-device-base::before,
.hero-device-base::after {
  content: "";
  position: absolute;
  inset: auto 28px 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(86, 149, 255, 0.18);
  filter: blur(4px);
}

.hero-device-base::after {
  inset: auto 54px -20px;
  height: 32px;
  background: rgba(118, 158, 218, 0.16);
  filter: blur(10px);
}

.hero-device-logo {
  width: 208px;
  max-width: 78%;
  opacity: 0.95;
}

.hero-mini-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(189, 214, 255, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 34px rgba(126, 165, 221, 0.18);
  color: #4673a8;
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-mini-card svg {
  width: 20px;
  height: 20px;
  color: #287cff;
}

.hero-mini-card-top {
  top: 34px;
  right: 36px;
}

.hero-mini-card-right {
  top: 154px;
  right: 0;
}

.hero-mini-card-bottom {
  bottom: 18px;
  left: 22px;
}

.marketing-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 34px 42px 38px;
}

.feature-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-align: center;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(241, 247, 255, 0.96), rgba(222, 235, 255, 0.96));
  color: #2577ff;
  box-shadow: inset 0 0 0 1px rgba(177, 210, 255, 0.78);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h2 {
  margin: 2px 0 0;
  color: #1a2f4a;
  font-size: 1.22rem;
}

.feature-card p {
  max-width: 250px;
  margin: 0;
  color: #7b8ea5;
  font-size: 1rem;
  line-height: 1.75;
}

.marketing-footer {
  border-top: 1px solid rgba(137, 156, 182, 0.14);
  background: rgba(251, 253, 255, 0.72);
  backdrop-filter: blur(14px);
}

.marketing-footer-inner {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 0 28px;
  color: #8d9cb0;
  font-size: 0.92rem;
}

.marketing-footer-inner p {
  margin: 0;
}

.auth-stage {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--topbar-height) - 100px);
}

.auth-canvas {
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 0 44px;
  overflow: visible;
}

.auth-shell {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
}

.auth-shell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: min(760px, 86vw);
  height: min(520px, 64vh);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(111, 169, 255, 0.22) 0%, rgba(209, 226, 255, 0.34) 34%, rgba(240, 246, 255, 0.12) 58%, transparent 78%);
  transform: translate(-50%, -50%);
  filter: blur(18px);
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 42px 38px 34px;
  border: 1px solid rgba(168, 190, 221, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 26px 56px rgba(93, 118, 155, 0.1),
    0 8px 18px rgba(101, 131, 173, 0.05);
  backdrop-filter: blur(10px);
}

.auth-title {
  margin: 0 0 12px;
  color: #18293f;
  font-size: 2rem;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 32px;
  color: #93a1b4;
  font-size: 1rem;
  text-align: center;
}

.auth-error {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 83, 75, 0.16);
  border-radius: 12px;
  background: rgba(255, 242, 241, 0.9);
  color: #bf4f48;
  font-size: 0.94rem;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 22px;
}

.auth-field {
  display: grid;
  gap: 10px;
}

.auth-field span {
  color: #314863;
  font-size: 1rem;
  font-weight: 700;
}

.auth-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dbe4ee;
  border-radius: 12px;
  background: #fff;
  color: #172a3f;
  font: inherit;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-input::placeholder {
  color: #b6c0ce;
}

.auth-input:focus,
.password-toggle:focus-visible,
.login-submit:focus-visible,
.topbar-ghost-button:focus-visible,
.topbar-primary-link:focus-visible,
.hero-primary-link:focus-visible {
  outline: none;
  border-color: rgba(28, 96, 245, 0.36);
  box-shadow: 0 0 0 4px rgba(28, 96, 245, 0.12);
}

.password-field {
  position: relative;
}

.auth-input-password {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8391a5;
  cursor: pointer;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.password-toggle.is-active {
  color: #1c60f5;
}

.login-submit {
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #1c60f5 0%, #2b8cff 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(28, 96, 245, 0.2);
}

.auth-help-link {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-top: 22px;
  color: #2b7cff;
  font-size: 0.98rem;
  font-weight: 700;
}

.admin-document {
  min-height: 100vh;
}

.admin-stack {
  display: grid;
  gap: 24px;
  padding: 24px 28px 28px;
}

.admin-banner {
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.65;
}

.admin-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.admin-banner p {
  margin: 0;
}

.admin-banner-success {
  border: 1px solid rgba(32, 143, 87, 0.14);
  background: rgba(240, 253, 246, 0.92);
  color: #18714a;
}

.admin-banner-error {
  border: 1px solid rgba(214, 83, 75, 0.16);
  background: rgba(255, 242, 241, 0.92);
  color: #bf4f48;
}

.admin-banner-secret {
  border: 1px solid rgba(22, 119, 216, 0.14);
  background: linear-gradient(180deg, rgba(243, 249, 255, 0.96), rgba(233, 244, 255, 0.94));
  color: #1f4f7a;
}

.admin-secret-value {
  display: block;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #0f1419;
  color: #f7fbff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: break-all;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-card,
.admin-record {
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(15, 20, 25, 0.05);
}

.admin-card {
  padding: 22px;
}

.admin-card h3,
.admin-record h3,
.admin-empty-state h3 {
  margin: 0;
}

.admin-card-muted {
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.92), rgba(241, 246, 252, 0.96));
}

.admin-rule-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-form-span-2 {
  grid-column: 1 / -1;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-collection {
  display: grid;
  gap: 14px;
}

.admin-record {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.admin-menu-link {
  gap: 12px;
}

.admin-menu-link-icon {
  color: inherit;
}

.admin-menu-link-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.admin-record-head,
.admin-record-title,
.admin-record-meta,
.admin-code-row,
.admin-record-delete-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-record-head {
  justify-content: space-between;
  align-items: flex-start;
}

.admin-record-title h3 {
  font-size: 1.08rem;
  color: #1a2f4a;
}

.admin-record-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-record-meta {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 20, 25, 0.06);
  color: #516477;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-pill.is-admin {
  background: rgba(22, 119, 216, 0.12);
  color: var(--blue);
}

.admin-record-delete-form {
  display: inline-flex;
  justify-content: flex-end;
  margin-top: 0;
}

.admin-record-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-primary-button,
.admin-danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.admin-primary-button {
  border: 1px solid rgba(28, 96, 245, 0.16);
  background: linear-gradient(135deg, #1c60f5 0%, #2b8cff 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(28, 96, 245, 0.2);
}

.admin-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(28, 96, 245, 0.26);
}

.admin-primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.admin-primary-button-wide {
  min-width: 132px;
  padding: 0 24px;
}

.admin-danger-button {
  border: 1px solid rgba(191, 79, 72, 0.18);
  border-radius: 12px;
  background: rgba(255, 246, 245, 0.92);
  color: #bf4f48;
}

.admin-danger-button:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 79, 72, 0.3);
  box-shadow: 0 12px 24px rgba(191, 79, 72, 0.08);
}

.admin-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.admin-code-row {
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.admin-code-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-code-value {
  margin: 0;
  color: #1c60f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
}

.admin-empty-state {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 24px;
  border: 1px dashed rgba(15, 20, 25, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reader-shell {
  padding: 10px 24px 24px;
}

.reader-layout {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 188px minmax(0, 720px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.reader-left {
  /* Let the sidebar column stretch to the main content height so sticky can pin while scrolling. */
  align-self: stretch;
  min-height: 0;
}

.side-rail-inner {
  position: sticky;
  top: calc(var(--topbar-height) + 18px);
  display: grid;
  gap: 12px;
  padding: 8px 0;
}

.side-menu {
  display: grid;
  gap: 8px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0 12px 14px;
  border-left: 2px solid transparent;
  color: #647789;
  font-size: 1rem;
  font-weight: 700;
  transition: color 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.menu-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

.menu-link.is-selected {
  border-left-color: var(--blue);
  color: var(--blue);
}

.menu-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-link-icon svg {
  width: 1rem;
  height: 1rem;
}

.side-rail-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.reader-main {
  min-width: 0;
  overflow: visible;
}

.timeline-shell {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-shell);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.timeline-header {
  padding: 28px 30px 24px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 253, 0.96));
}

.timeline-header-main,
.author-panel-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.timeline-header-main {
  width: 100%;
}

.timeline-header-copy {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.timeline-header-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: #0f1419;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.timeline-header-mark .general-channel-icon,
.menu-link-icon .general-channel-icon {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.timeline-header-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.timeline-header-kicker,
.article-preview-kicker,
.round-card-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-header-copy h2,
.detail-section h3,
.section-heading h3,
.round-card h3,
.empty-state h3,
.error-state h1 {
  margin: 0;
}

.timeline-header-meta,
.timeline-header-subtitle,
.section-heading p,
.muted-copy,
.author-note,
.round-card p,
.feed-summary-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-header-meta {
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline-header-subrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.timeline-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.timeline-header-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  white-space: nowrap;
  text-align: right;
}

.header-action-link,
.article-source-link,
.inline-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 1px;
  border-radius: 4px;
  color: rgba(22, 119, 216, 0.74);
  font-weight: 500;
  white-space: nowrap;
  text-decoration-line: underline;
  text-decoration-color: rgba(22, 119, 216, 0.22);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.header-action-link:hover,
.article-source-link:hover,
.inline-action-link:hover {
  color: rgba(15, 95, 177, 0.9);
  text-decoration-color: rgba(15, 95, 177, 0.42);
}

.tweet-list {
  display: grid;
  overflow-anchor: none;
}

.feed-spacer {
  height: 0;
}

.feed-page-placeholder {
  display: grid;
  padding: 24px;
  gap: 0;
}

.feed-page-loading,
.feed-loading-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.feed-loading-state {
  padding: 16px 28px 28px;
}

.tweet-card-skeleton {
  pointer-events: none;
}

.tweet-avatar-skeleton,
.skeleton-line {
  background: linear-gradient(90deg, rgba(15, 20, 25, 0.06) 0%, rgba(15, 20, 25, 0.12) 50%, rgba(15, 20, 25, 0.06) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.tweet-avatar-skeleton {
  border-radius: 50%;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line + .skeleton-line {
  margin-top: 10px;
}

.skeleton-line-title {
  width: 42%;
  height: 16px;
}

.skeleton-line-short {
  width: 28%;
}

.skeleton-line-medium {
  width: 64%;
}

.round-directory,
.overview-stack {
  display: grid;
  gap: 20px;
  padding: 24px 28px 28px;
}

.round-directory {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.round-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 28px 28px;
}

.round-page-link,
.round-pagination-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
}

.round-page-link {
  gap: 7px;
  min-width: 98px;
  padding: 8px 14px;
  border: 1px solid rgba(15, 20, 25, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}

.round-page-link svg {
  width: 17px;
  height: 17px;
}

.round-page-link:hover {
  border-color: rgba(22, 119, 216, 0.28);
  background: var(--blue-soft);
  color: var(--blue);
  transform: translateY(-1px);
}

.round-page-link.is-disabled {
  border-color: rgba(15, 20, 25, 0.06);
  background: rgba(15, 20, 25, 0.04);
  color: rgba(92, 111, 128, 0.48);
  pointer-events: none;
}

.round-page-link.is-next svg {
  order: 2;
}

.round-pagination-status {
  min-width: 118px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.round-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 20px;
  background: var(--bg-accent);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.round-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 216, 0.24);
  box-shadow: 0 16px 32px rgba(15, 20, 25, 0.06);
}

.round-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.round-card-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.overview-section {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.stats-grid,
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.stats-grid-large {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stats-grid div,
.detail-list div {
  padding: 16px;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 18px;
  background: var(--bg-accent);
}

.stats-grid dt,
.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.stats-grid dd,
.detail-list dd {
  margin: 8px 0 0;
  font-size: 1.18rem;
  font-weight: 700;
}

.tweet-card {
  padding: 18px 24px 20px;
  border-bottom: 1px solid rgba(15, 20, 25, 0.08);
  transition: background-color 160ms ease;
}

.tweet-list > .tweet-card:last-child,
.feed-page:last-child > .tweet-card:last-child {
  border-bottom: 0;
}

.tweet-card:hover {
  background: rgba(15, 20, 25, 0.015);
}

.tweet-card-feed {
  cursor: pointer;
}

.tweet-card-feed:focus-visible {
  outline: 2px solid rgba(22, 119, 216, 0.38);
  outline-offset: -2px;
}

.general-feed-card {
  padding: 20px 28px 22px;
}

.general-feed-content,
.general-detail-content {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.general-feed-title {
  margin: 0;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: 0;
}

.general-detail-title {
  font-size: 2rem;
  line-height: 1.18;
}

.general-feed-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.general-feed-summary-row {
  display: grid;
  gap: 18px;
  align-items: start;
}

.general-feed-summary-row.has-cover {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.general-feed-summary {
  margin: 0;
  color: #334451;
  font-size: 0.98rem;
  line-height: 1.72;
}

.general-detail-body {
  min-width: 0;
}

.general-feed-cover-trigger {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 20, 25, 0.05);
  cursor: zoom-in;
}

.general-feed-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.general-detail-cover-trigger {
  margin-top: 4px;
}

.general-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.general-feed-meta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.general-feed-meta-link:hover {
  text-decoration: underline;
}

.general-feed-meta-link svg {
  width: 15px;
  height: 15px;
}

.general-feed-meta-separator {
  color: rgba(92, 111, 128, 0.58);
}

.tweet-context {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 60px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .general-feed-summary-row.has-cover {
    grid-template-columns: minmax(0, 1fr) 138px;
  }
}

.tweet-context-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(92, 111, 128, 0.12);
  font-size: 12px;
}

.tweet-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
}

.tweet-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f1419, #324452);
  color: #fff;
  font-weight: 700;
  font-size: 1.08rem;
}

.tweet-content,
.author-panel-copy {
  min-width: 0;
}

.tweet-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.tweet-author-line {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.tweet-author-name {
  font-weight: 700;
}

.tweet-author-handle,
.tweet-time,
.tweet-divider {
  color: var(--muted);
}

.author-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.author-badge-header {
  margin-left: 2px;
}

.author-badge-card {
  margin-left: 6px;
}

.badge-svg {
  display: block;
  width: 1.06rem;
  height: 1.06rem;
  flex: 0 0 auto;
}

.badge-svg-personal {
  fill: #1d9bf0;
}

.author-card-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.author-card-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.tweet-text {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.65;
}

.tweet-text a,
.article-body a,
.link-list a {
  display: inline;
  color: rgba(22, 89, 148, 0.78);
  font-weight: 400;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration-line: underline;
  text-decoration-color: rgba(22, 89, 148, 0.24);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.tweet-text a:hover,
.article-body a:hover,
.link-list a:hover {
  color: rgba(15, 95, 177, 0.92);
  text-decoration-color: rgba(15, 95, 177, 0.52);
}

.tweet-account-meta {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.tweet-account-note {
  margin: 0;
  color: #73879a;
  font-size: 0.88rem;
  line-height: 1.45;
}

.tweet-text p,
.article-body p,
.article-body ul,
.article-body pre,
.article-body blockquote,
.article-body figure {
  margin: 0 0 16px;
}

.tweet-text p:last-child,
.article-body p:last-child,
.article-body ul:last-child,
.article-body pre:last-child,
.article-body blockquote:last-child,
.article-body figure:last-child {
  margin-bottom: 0;
}

.article-preview {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: var(--bg-accent);
}

.article-preview-detail {
  grid-template-columns: 240px minmax(0, 1fr);
}

.article-preview.is-coverless {
  grid-template-columns: minmax(0, 1fr);
}

.article-cover,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.article-cover {
  min-height: 140px;
  background: #f0f4f6;
}

.image-viewer-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
  transform: translateZ(0);
}

.image-viewer-trigger:focus-visible {
  outline: 3px solid rgba(22, 119, 216, 0.38);
  outline-offset: 3px;
}

.article-preview-cover-trigger {
  min-height: 140px;
}

.article-preview-cover-trigger .article-cover {
  display: block;
}

.media-card-trigger {
  height: 100%;
}

.media-card-trigger img,
.article-preview-cover-trigger img,
.article-media .image-viewer-trigger img {
  transition: transform 180ms ease, filter 180ms ease;
}

.media-card:hover .media-card-trigger img,
.article-preview-cover-trigger:hover img,
.article-media .image-viewer-trigger:hover img {
  filter: saturate(1.04);
  transform: scale(1.015);
}

.media-card-trigger:active img,
.article-preview-cover-trigger:active img,
.article-media .image-viewer-trigger:active img {
  transform: scale(0.995);
}

.article-preview-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.article-preview-copy h3,
.article-preview-copy p {
  margin: 0;
}

.media-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.media-grid-feed {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-grid-detail {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.media-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-media);
  border: 1px solid var(--border);
  background: #f0f4f6;
  aspect-ratio: 16 / 10;
}

.tweet-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: #7c8f9f;
  font-size: 0.88rem;
  line-height: 1.3;
}

.tweet-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.tweet-meta-item svg {
  width: 15px;
  height: 15px;
}

.tweet-meta-item.is-link:hover {
  color: rgba(22, 89, 148, 0.82);
}

.tweet-meta-separator {
  color: rgba(92, 111, 128, 0.45);
}

.detail-shell {
  display: grid;
  gap: 0;
  overflow: visible;
}

.plain-tweet-detail-shell {
  display: grid;
  gap: 0;
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  margin: 14px 18px 0;
  color: var(--text);
  transition: background-color 160ms ease, color 160ms ease;
}

.detail-back-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.detail-back-icon svg {
  width: 22px;
  height: 22px;
}

.detail-back-title {
  font-size: 1rem;
  font-weight: 700;
}

.detail-back-link:hover {
  color: var(--blue);
}

.detail-back-link:hover .detail-back-icon {
  background: rgba(15, 20, 25, 0.06);
}

.detail-back-link:focus-visible {
  outline: 3px solid rgba(22, 119, 216, 0.32);
  outline-offset: 2px;
}

.tweet-card-detail {
  border-bottom: 0;
}

.tweet-card-plain-detail {
  border-bottom: 0;
}

.article-detail-shell {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.article-detail-content {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 20px 30px 34px;
}

.arxiv-detail-content {
  gap: 16px;
}

.arxiv-detail-meta {
  display: grid;
  gap: 10px;
}

.arxiv-detail-title {
  font-size: 1.95rem;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.arxiv-detail-subtitle,
.arxiv-detail-authors,
.arxiv-detail-taxonomy {
  margin: 0;
}

.arxiv-detail-subtitle {
  color: #455a74;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
}

.arxiv-detail-authors {
  color: #66788d;
  font-size: 0.98rem;
  line-height: 1.65;
}

.arxiv-detail-taxonomy {
  color: #9d5e25;
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 700;
}

.arxiv-detail-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.article-author-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.article-author-copy {
  min-width: 0;
}

.article-detail-cover {
  margin: 0;
  width: min(100%, 640px);
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  background: #f0f4f6;
}

.article-detail-cover-trigger {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.article-detail-cover-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.article-detail-cover-trigger img {
  transition: transform 180ms ease, filter 180ms ease;
}

.article-detail-cover-trigger:hover img {
  filter: saturate(1.04);
  transform: scale(1.01);
}

.article-detail-cover-trigger:active img {
  transform: scale(0.995);
}

.article-detail-title {
  margin: 0;
  font-size: 1.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.article-detail-body {
  padding-top: 2px;
  min-width: 0;
}

.article-detail-footer {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.article-detail-footer .tweet-meta-row {
  margin-top: 0;
}

.entry-admin-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(191, 79, 72, 0.16);
  border-radius: 16px;
  background: rgba(255, 247, 246, 0.58);
}

.plain-tweet-detail-shell > .entry-admin-actions {
  margin: 14px 28px 28px;
}

.entry-admin-copy {
  min-width: 0;
  color: #8a504b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.entry-admin-copy strong {
  color: #53312e;
  font-size: 0.92rem;
  white-space: nowrap;
}

.entry-admin-status {
  display: block;
  margin-top: 2px;
  color: #2f6f55;
  font-weight: 700;
}

.entry-admin-status.is-error {
  color: #bf4f48;
}

.entry-admin-status.is-pending {
  color: #5c6470;
}

.entry-admin-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.entry-delete-form,
.entry-wechat-publish-form {
  margin: 0;
}

.entry-delete-button,
.entry-wechat-publish-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(191, 79, 72, 0.24);
  border-radius: 12px;
  background: #fff;
  color: #bf4f48;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(191, 79, 72, 0.08);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.entry-wechat-publish-button {
  border-color: rgba(47, 111, 85, 0.24);
  color: #2f6f55;
  box-shadow: 0 10px 22px rgba(47, 111, 85, 0.08);
}

.entry-delete-button:hover {
  transform: translateY(-1px);
  border-color: rgba(191, 79, 72, 0.38);
  box-shadow: 0 14px 26px rgba(191, 79, 72, 0.12);
}

.entry-wechat-publish-button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 111, 85, 0.38);
  box-shadow: 0 14px 26px rgba(47, 111, 85, 0.12);
}

.entry-wechat-publish-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.detail-section {
  padding: 0 28px 28px;
}

.detail-section + .detail-section {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.author-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-accent);
}

.author-panel-copy {
  display: grid;
  gap: 2px;
}

.author-panel-copy span {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-body {
  line-height: 1.8;
  font-size: 1.02rem;
  min-width: 0;
}

.article-body > * {
  max-width: 100%;
  min-width: 0;
}

.article-body h4 {
  margin: 28px 0 12px;
  font-size: 1.12rem;
}

.article-body pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: #11161b;
  color: #f8fbfd;
}

.article-body ul {
  padding-left: 22px;
}

.article-body blockquote {
  padding: 0 0 0 16px;
  border-left: 3px solid rgba(22, 119, 216, 0.28);
  color: var(--muted);
}

.article-media {
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f0f4f6;
}

.article-media .image-viewer-trigger {
  max-width: 100%;
  min-width: 0;
}

.article-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 58px 24px 32px;
  background: rgba(15, 20, 25, 0.82);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-frame {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 104px);
  margin: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.965);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.image-viewer.is-open .image-viewer-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 156px);
  border-radius: 16px;
  background: #11161b;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  object-fit: contain;
  transform: translateZ(0);
}

.image-viewer-caption {
  max-width: min(760px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.image-viewer-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.image-viewer-count[hidden],
.image-viewer-nav[hidden] {
  display: none;
}

.image-viewer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  transition: background-color 160ms ease, opacity 180ms ease, transform 180ms ease;
}

.image-viewer.is-open .image-viewer-close {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.image-viewer-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: background-color 160ms ease, opacity 180ms ease, transform 180ms ease;
}

.image-viewer-nav-prev {
  left: 24px;
  transform: translate(-6px, -50%) scale(0.96);
}

.image-viewer-nav-next {
  right: 24px;
  transform: translate(6px, -50%) scale(0.96);
}

.image-viewer.is-open .image-viewer-nav-prev,
.image-viewer.is-open .image-viewer-nav-next {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.image-viewer-close svg {
  width: 22px;
  height: 22px;
}

.image-viewer-nav svg {
  width: 26px;
  height: 26px;
}

.image-viewer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.image-viewer.is-open .image-viewer-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translate(0, -50%) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .image-viewer,
  .image-viewer-frame,
  .image-viewer-close,
  .image-viewer-nav,
  .media-card-trigger img,
  .article-preview-cover-trigger img,
  .article-detail-cover-trigger img,
  .article-media .image-viewer-trigger img {
    transition: none;
  }
}

.image-viewer-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.36);
  outline-offset: 3px;
}

.image-viewer-nav:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.36);
  outline-offset: 3px;
}

.link-list {
  margin: 0;
  padding-left: 22px;
}

.link-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.link-list li + li {
  margin-top: 8px;
}

.empty-state,
.error-state {
  padding: 40px 28px;
}

.x-logo-svg {
  width: 22px;
  height: 22px;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1180px) {
  .app-topbar-inner {
    width: min(876px, calc(100vw - 40px));
    grid-template-columns: 176px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .reader-layout {
    width: min(1000px, calc(100vw - 40px));
    grid-template-columns: 176px minmax(0, 680px);
    gap: 20px;
  }

  .app-topbar-inner-public,
  .marketing-stage,
  .auth-stage,
  .marketing-footer-inner {
    width: min(1000px, calc(100vw - 40px));
  }

  .marketing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.94fr);
    padding: 46px 40px 30px;
  }

  .marketing-features {
    padding-left: 36px;
    padding-right: 36px;
  }

  .stats-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  #reader-root {
    min-height: 100%;
  }

  .reader-app {
    min-height: 100vh;
  }

  .app-topbar {
    padding: 0 12px;
  }

  .app-topbar-inner,
  .reader-layout,
  .app-topbar-inner-public,
  .marketing-stage,
  .auth-stage,
  .marketing-footer-inner {
    width: min(100%, 1000px);
  }

  .app-topbar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: auto;
    padding: 8px 0;
  }

  .app-topbar-inner-public {
    flex-direction: row;
    align-items: center;
    min-height: var(--topbar-height);
    padding: 0;
  }

  .app-brand-mark,
  .app-brand-logo {
    width: 148px;
    height: 35px;
  }

  .app-topbar {
    position: sticky;
    top: 0;
  }

  .reader-shell {
    padding: 10px 12px 20px;
  }

  .reader-layout {
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reader-main {
    overflow: visible;
  }

  .app-topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .app-topbar-inner-public .app-topbar-actions {
    width: auto;
    justify-content: flex-end;
  }

  .marketing-stage {
    padding: 20px 0 26px;
    gap: 20px;
  }

  .marketing-hero {
    grid-template-columns: 1fr;
    padding: 36px 26px 28px;
  }

  .marketing-copy {
    max-width: none;
  }

  .hero-visual {
    min-height: 360px;
    width: min(100%, 460px);
    margin: 0 auto;
  }

  .marketing-features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 28px 24px 32px;
  }

  .feature-card {
    justify-items: start;
    text-align: left;
  }

  .feature-card p {
    max-width: none;
  }

  .auth-stage {
    min-height: auto;
    padding: 24px 0 28px;
  }

  .auth-canvas {
    padding: 36px 0 42px;
  }

  .auth-card {
    padding: 34px 24px 28px;
  }

  .side-rail-inner {
    position: static;
    padding: 0;
  }

  .side-menu {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .menu-link {
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
  }

  .menu-link:hover {
    transform: none;
  }

  .menu-link.is-selected {
    border-color: rgba(22, 119, 216, 0.28);
    background: var(--blue-soft);
  }

  .timeline-header,
  .tweet-card,
  .feed-summary,
  .round-directory,
  .round-pagination,
  .overview-stack,
  .article-detail-content,
  .detail-section,
  .admin-stack {
    padding-left: 18px;
    padding-right: 18px;
  }

  .timeline-shell {
    border-radius: 24px;
  }

  .article-preview,
  .article-preview-detail {
    grid-template-columns: 1fr;
  }

  .admin-form-grid,
  .admin-record-head,
  .admin-code-row {
    grid-template-columns: 1fr;
  }

  .admin-record-head,
  .admin-code-row {
    display: grid;
  }

  .admin-record-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-record-delete-form,
  .admin-primary-button,
  .admin-danger-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .side-menu,
  .stats-grid,
  .detail-list,
  .stats-grid-large,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-header-main,
  .author-panel-head {
    grid-template-columns: 1fr;
  }

  .timeline-header-main,
  .author-panel-head {
    display: grid;
  }

  .tweet-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tweet-context {
    margin-left: 0;
  }

  .article-author-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .article-author-row .tweet-avatar {
    width: 44px;
    height: 44px;
  }

  .article-detail-title {
    font-size: 1.55rem;
  }

  .arxiv-detail-footer {
    justify-content: flex-start;
  }

  .article-detail-cover-image {
    max-height: 420px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }

  .feed-debug-toggle {
    left: 14px;
    bottom: 14px;
  }

  .feed-debug-panel {
    left: 14px;
    bottom: 56px;
  }

  .image-viewer {
    padding: 58px 14px 22px;
  }

  .image-viewer-frame {
    width: calc(100vw - 28px);
  }

  .image-viewer-image {
    max-height: calc(100vh - 142px);
    border-radius: 12px;
  }

  .image-viewer-close {
    right: 14px;
  }

  .image-viewer-nav {
    width: 42px;
    height: 42px;
  }

  .image-viewer-nav-prev {
    left: 10px;
  }

  .image-viewer-nav-next {
    right: 10px;
  }

  .app-topbar-actions {
    gap: 8px;
  }

  .topbar-primary-link,
  .topbar-ghost-button {
    min-width: 78px;
    height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .topbar-user-chip {
    height: 36px;
    padding: 0 12px;
  }

  .marketing-title {
    font-size: 2.35rem;
  }

  .marketing-title-accent {
    display: inline;
    margin-left: 0.1em;
  }

  .marketing-lede {
    margin: 18px 0 26px;
    font-size: 1.04rem;
    line-height: 1.7;
  }

  .hero-primary-link {
    min-width: 132px;
    height: 46px;
  }

  .hero-visual {
    min-height: 296px;
  }

  .hero-device-screen {
    top: 16px;
    left: 18px;
    width: 220px;
    height: 136px;
    padding: 0 22px;
  }

  .hero-device-ai {
    font-size: 3rem;
  }

  .hero-device-ring {
    width: 58px;
    height: 58px;
    border-width: 10px;
  }

  .hero-device-base {
    right: 10px;
    bottom: 18px;
    width: 248px;
    height: 126px;
  }

  .hero-mini-card {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 0.84rem;
  }

  .hero-mini-card-top {
    top: 10px;
    right: 8px;
  }

  .hero-mini-card-right {
    top: 118px;
    right: -2px;
  }

  .hero-mini-card-bottom {
    bottom: 2px;
    left: 6px;
  }

  .auth-title {
    font-size: 1.7rem;
  }

  .auth-subtitle {
    margin-bottom: 24px;
  }

  .auth-card {
    padding: 30px 18px 24px;
    border-radius: 22px;
  }

  .marketing-footer-inner {
    padding-bottom: 22px;
  }
}
