:root {
  --bg: #0e1218;
  --bg-elev: #171d27;
  --card: #1c2430;
  --line: #2b3544;
  --text: #eef3f8;
  --muted: #8d9aab;
  --accent: #ff4d4f;
  --accent-2: #ffb020;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 77, 79, 0.16), transparent 50%),
    radial-gradient(900px 400px at 100% 0%, rgba(255, 176, 32, 0.08), transparent 45%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(14, 18, 24, 0.86);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  display: block;
  flex: 0 0 auto;
  background-color: #f4f6f3;
  background-image: url("/static/image/logo-512.png?v=2");
  background-position: center;
  background-size: 36px 36px;
  background-repeat: no-repeat;
  color: transparent;
  font-size: 0;
}
.brand strong { display: block; font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a.is-active, .nav a:hover { color: var(--text); }

.hero { padding: 24px 0 8px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }
.status { color: var(--muted); font-size: 13px; margin: 8px 0 16px; }

.channels, .dates, .tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.channels::-webkit-scrollbar, .dates::-webkit-scrollbar { display: none; }
.history-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.history-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.date-bar {
  margin: 14px 0 4px;
  overflow: hidden;
}
.date-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: none;
}
.date-nav::-webkit-scrollbar { display: none; }
.date-nav .tab,
.date-step,
.date-picker {
  height: 34px;
  flex: 0 0 auto;
}
.date-nav .tab {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}
.date-step {
  display: grid;
  place-items: center;
  width: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elev);
  color: var(--accent-2);
  font: 700 23px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.date-step:hover:not(:disabled) {
  background: rgba(255, 176, 32, 0.12);
  border-color: rgba(255, 176, 32, 0.45);
}
.date-step:active:not(:disabled) { transform: scale(.94); }
.date-step:disabled { cursor: not-allowed; opacity: .32; }
.date-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
}
.date-picker:hover { border-color: rgba(255, 176, 32, 0.45); }
.date-step:focus-visible,
.date-picker:focus-within {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}
.date-picker-text {
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.date-picker-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  flex: 0 0 auto;
}
.date-picker-icon::before {
  content: "";
  position: absolute;
  left: -1.5px;
  right: -1.5px;
  top: 3px;
  border-top: 1.5px solid currentColor;
}
.date-picker input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.tab {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.tab.is-on { color: #fff; border-color: var(--accent); background: rgba(255, 77, 79, 0.18); }

.boards:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 12px;
}
@media (min-width: 860px) {
  .boards:not([hidden]) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .boards:not([hidden]) { grid-template-columns: repeat(3, 1fr); }
}

.board {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
  box-shadow: var(--shadow);
}
.board-head h2 { margin: 0 0 12px; font-size: 18px; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.board-list li:first-child { border-top: 0; }
.board-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.board-heat { color: var(--muted); font-size: 12px; white-space: nowrap; }
.board-more {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 0 4px;
  background: none;
  border: 0;
  color: var(--accent-2);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.grid:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-bottom: 12px;
}
@media (min-width: 720px) {
  .grid:not([hidden]) { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .grid:not([hidden]) { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 108px;
  position: relative;
}
.card:hover { border-color: #4a5a70; }
.thumb {
  width: 86px;
  height: auto;
  flex: 0 0 86px;
  align-self: flex-start;
  border-radius: 10px;
  object-fit: contain;
  background: #10151c;
  display: block;
}
@media (max-width: 719px) {
  .card { flex-direction: column; min-height: 0; }
  .thumb {
    width: 100%;
    flex: none;
    max-height: none;
  }
}
.thumb.is-empty {
  display: grid; place-items: center;
  color: var(--muted); font-size: 20px; font-weight: 700;
  background: #141b24;
}
.card-body { min-width: 0; flex: 1; padding-right: 28px; }
.rank {
  color: var(--accent-2); font-variant-numeric: tabular-nums;
  font-size: 12px; font-weight: 700; margin-right: 6px;
}
.card h2 {
  margin: 0 0 8px; font-size: 15px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { display: flex; gap: 8px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }

.read-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.board-list .read-btn { position: static; width: 28px; height: 28px; }
.read-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

.empty { text-align: center; color: var(--muted); padding: 48px 0 40px; }
.scroll-status { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 0 20px; }
.scroll-sentinel { height: 1px; }
.home-page { overflow-anchor: none; }
.home-page .scroll-status,
.home-page .scroll-sentinel,
.home-page .more-hot,
.home-page .ad-slot,
.home-page .ad-card,
.home-page .foot {
  overflow-anchor: none;
}

.ad-slot {
  min-height: 88px;
  border: 1px dashed #3a4658;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #6d7b8f;
  margin: 8px 0 24px;
  background: rgba(255, 255, 255, 0.02);
}
.ad-slot-label { font-size: 12px; letter-spacing: 0.08em; }

.ad-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 8px 0 32px;
}
.ad-kicker {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.ad-kicker span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
.ad-card h2 { margin: 0 0 8px; font-size: 20px; }
.ad-card p { margin: 0 0 14px; color: var(--muted); }
.ad-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
}
.ad-note { font-size: 12px !important; margin-top: 12px !important; }

.ad-app-bar {
  border-top: 1px solid var(--line);
}
.ad-app {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 0;
  font-size: 13px;
}
.ad-app-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
}
.ad-app-kicker span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
.ad-app-title { font-size: 14px; }
.ad-app-desc {
  margin-left: auto;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ad-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: transparent;
  pointer-events: none;
}
.ad-bottom-inner {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}
.ad-bottom a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}
.ad-bottom img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
}
.ad-bottom-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 18, 24, 0.62);
  color: #fff;
  font-size: 18px;
  line-height: 28px;
  padding: 0;
  cursor: pointer;
}
body.has-ad-bottom { padding-bottom: var(--ad-bottom-h, 88px); }
@media (max-width: 720px) {
  .ad-app-desc { display: none; }
}

.go-page { padding: 28px 0 64px; max-width: 720px; }
.go-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.go-cover {
  width: 100%;
  height: auto;
  display: block;
  background: #10151c;
  object-fit: contain;
}
.go-cover-fallback {
  width: 100%;
  height: 200px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(640px 260px at 18% -10%, rgba(255, 77, 79, 0.28), transparent 55%),
    linear-gradient(160deg, #1c2533, #121820);
}
@media (min-width: 720px) {
  .go-cover-fallback { height: 280px; }
}
.go-cover[hidden],
.go-cover-fallback[hidden],
.go-source-logo[hidden],
.go-cover-fallback img[hidden],
.go-cover-mark[hidden],
.go-origin[hidden],
.go-meta[hidden] { display: none !important; }
.go-cover-fallback img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #0e1218;
}
.go-cover-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ff4d4f, #ff7a45);
  font-size: 28px;
  font-weight: 800;
}
.go-cover-fallback strong { font-size: 18px; }
.go-body { padding: 20px 20px 16px; }
.go-source {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.go-source-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  background: #10151c;
}
.go-kicker { color: var(--accent-2); font-size: 13px; margin: 0; }
.go-page h1 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }
.go-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.go-meta li {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}
.go-meta li span { color: #6d7b8f; margin-right: 4px; }
.go-desc {
  color: #d5dee8;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 16px;
}
.go-origin {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg-elev);
}
.go-origin-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}
.go-origin a {
  color: var(--accent-2);
  word-break: break-all;
  font-size: 13px;
  line-height: 1.5;
}
.go-cta {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  margin: 8px 0 12px;
}
.go-tip { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 24px; }

.date-cal {
  position: relative;
  overflow: hidden;
}
.date-cal input[type="date"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-bottom: 12px;
}
.feed-date-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.feed-date-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.feed-date-divider span {
  flex: 0 0 auto;
}
@media (min-width: 720px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); }
}
.story {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
}
.story.no-cover { min-height: 160px; }
.story:hover { border-color: #4a5a70; }
.story-cover {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #10151c;
  display: block;
}
@media (min-width: 720px) {
  .story-cover {
    width: auto;
    max-width: 100%;
    max-height: 30vh;
    margin-inline: auto;
  }
}
.story-body { padding: 12px 14px 16px; padding-right: 44px; }
.story h2 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story .read-btn { top: 12px; right: 12px; background: rgba(14, 18, 24, 0.72); }
.more-hot { text-align: center; padding: 8px 0 20px; }
.more-hot a { color: var(--accent-2); }

.foot {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted); font-size: 13px;
}
.foot-links, .foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; }

.foot.site-footer-ready {
  padding: 42px 0 28px;
  background: #0b0f15;
}
.foot .site-footer {
  display: block;
}
.site-footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.8fr);
  gap: 56px;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}
.footer-brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.footer-independence {
  margin: 18px 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  color: #aab5c2;
  font-size: 13px;
  line-height: 1.8;
}
.footer-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.footer-link-group h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14px;
}
.footer-link-group nav {
  display: grid;
  gap: 10px;
}
.footer-link-group a,
.footer-legal a {
  color: var(--muted);
  transition: color 0.16s ease;
}
.footer-link-group a:hover,
.footer-legal a:hover { color: var(--text); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.footer-bottom {
  display: grid;
  gap: 8px;
  padding-top: 20px;
}
.footer-bottom p {
  margin: 0;
  color: #778495;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 820px) {
  .site-footer-top { grid-template-columns: 1fr; gap: 34px; }
  .footer-groups { gap: 22px; }
}
@media (max-width: 560px) {
  .foot.site-footer-ready { padding-top: 32px; }
  .footer-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-link-group:last-child { grid-column: 1 / -1; }
  .footer-legal { gap: 10px 16px; }
}

.page-prose { padding: 38px 0 72px; max-width: none; }
.page-prose h1 { margin: 0 0 20px; font-size: 30px; }
.page-prose h2 {
  margin: 34px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 20px;
}
.page-prose h3 { margin: 24px 0 8px; font-size: 16px; }
.page-prose p, .page-prose li { color: var(--muted); line-height: 1.8; }
.page-prose > p,
.page-prose > ul,
.page-prose > ol,
.page-prose > blockquote { max-width: 960px; }
.page-prose ul, .page-prose ol { padding-left: 22px; }
.page-prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.page-prose blockquote {
  margin: 20px 0 26px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 77, 79, 0.05);
  padding: 12px 16px;
  color: #c8d2dd;
  line-height: 1.8;
}
.page-prose code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  padding: 2px 5px;
  color: #dce5ee;
  font-size: 0.9em;
}

.nav-page { padding-bottom: 44px; }
.nav-block {
  margin: 16px 0 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(28, 36, 48, 0.72);
  box-shadow: var(--shadow);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 0 6px; font-size: 22px; }
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  padding: 8px 12px;
}
.nav-search span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}
.nav-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.nav-search input::placeholder { color: #667386; }
.nav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .nav-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .nav-grid { grid-template-columns: repeat(3, 1fr); }
}
.nav-card {
  min-height: 188px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 46px 14px 14px;
  background:
    linear-gradient(180deg, rgba(28, 36, 48, 0.92), rgba(23, 29, 39, 0.98));
  background-size: cover;
  background-position: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.nav-card::before,
.nav-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 77, 79, 0.08), rgba(255, 176, 32, 0.04));
  pointer-events: none;
}
.nav-card > *,
.nav-detail > * { position: relative; }
.nav-card:hover,
.nav-card.is-selected { border-color: var(--accent-2); }
.nav-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}
.nav-card p {
  margin: 0 0 12px;
  color: #cfdae6;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-card .read-btn {
  background: rgba(14, 18, 24, 0.72);
  font-size: 18px;
  line-height: 1;
}
.nav-rank {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 36px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #10151c;
  border: 1px solid var(--line);
  color: var(--accent-2);
  font-weight: 800;
  overflow: hidden;
}
.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-tags span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(14, 18, 24, 0.46);
  color: #d8e1eb;
  padding: 4px 8px;
  font-size: 12px;
}
.nav-detail {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(28, 36, 48, 0.9), rgba(23, 29, 39, 0.98));
  background-size: cover;
  background-position: center;
  padding: 18px;
}
.nav-detail-head {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px 12px;
  align-items: center;
}
.nav-detail-head h3 {
  margin: 0;
  font-size: 22px;
}
.nav-detail-head p {
  grid-column: 2;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.nav-detail-desc {
  color: #d5dee8;
  line-height: 1.8;
  margin: 14px 0;
}
.nav-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.nav-actions button {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
}
.ai-card { min-height: 170px; }
.ai-profile-cover {
  background-size: cover;
  background-position: center;
}
.ai-content {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.ai-content h2 {
  margin: 18px 0 8px;
  font-size: 18px;
}
.ai-content p,
.ai-content li {
  color: #d5dee8;
  line-height: 1.85;
}
.ai-content ul {
  margin: 0;
  padding-left: 20px;
}
@media (max-width: 719px) {
  .section-head { display: block; }
  .nav-search { margin-top: 14px; }
  .nav-block { padding: 16px; }
  .nav-card { min-height: 160px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-page { padding-top: 28px; }
.nav-search-hub {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 36, 48, 0.78);
  box-shadow: var(--shadow);
  padding: 22px;
}
.engine-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
}
.engine-tabs::-webkit-scrollbar { display: none; }
.engine-tabs button,
.nav-kind-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.engine-tabs button {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 15px;
}
.engine-tabs button:hover { color: var(--text); }
.engine-tabs button.is-on {
  background: #f2f5f3;
  color: #102f31;
  font-weight: 700;
}
.engine-form {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  border: 1px solid #3a4656;
  border-radius: 8px;
  background: #101720;
  padding: 8px 10px 8px 20px;
}
.engine-search-icon {
  width: 20px;
  height: 20px;
  border: 3px solid #83909f;
  border-radius: 50%;
  position: relative;
}
.engine-search-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  background: #83909f;
  right: -7px;
  bottom: -4px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.engine-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 17px;
}
.engine-form input::placeholder { color: #748091; }
.engine-form button {
  min-width: 96px;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.search-suggestions {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}
.search-suggestions strong {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}
.suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion-list button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: #d8e1eb;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.suggestion-list button:hover,
.suggestion-list button.is-featured {
  border-color: var(--accent-2);
  color: var(--text);
}
.recent-head { display: flex; align-items: center; gap: 12px; }
.recent-head button {
  border: 0;
  background: transparent;
  color: var(--accent-2);
  padding: 0 0 10px;
  cursor: pointer;
}
.nav-kind-tabs {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  border-bottom: 1px solid var(--line);
}
.nav-kind-tabs button {
  position: relative;
  padding: 13px 18px;
  font-size: 16px;
  font-weight: 700;
}
.nav-kind-tabs button.is-on { color: var(--text); }
.nav-kind-tabs button.is-on::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.nav-block {
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.section-head { align-items: center; margin-bottom: 16px; }
.section-head h1 { margin: 0 0 6px; font-size: 24px; }
.nav-filter {
  display: block;
  width: min(320px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-elev);
  padding: 10px 12px;
}
.nav-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}
.nav-card {
  min-height: 172px;
  border-radius: 8px;
}
.nav-card:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.nav-card h2 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}
.nav-card-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

@media (max-width: 719px) {
  .date-bar { margin-top: 10px; }
  .date-nav { gap: 5px; }
  .date-nav .tab { padding: 0 9px; }
  .date-step { width: 30px; }
  .date-picker { min-width: 126px; gap: 6px; }
  .nav-page { width: min(100% - 24px, var(--max)); padding-top: 16px; }
  .nav-search-hub { padding: 14px; }
  .engine-tabs { padding-bottom: 12px; }
  .engine-form {
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    min-height: 58px;
    padding: 6px 6px 6px 14px;
  }
  .engine-form input { font-size: 15px; }
  .engine-form button { min-width: 68px; min-height: 44px; }
  .nav-kind-tabs { margin-top: 20px; }
  .nav-kind-tabs button { flex: 1; text-align: center; }
  .section-head { display: block; }
  .nav-filter { margin-top: 14px; }
  .nav-block { padding: 20px 0 0; }
}

.promo-page,
.promo-stats { padding: 28px 0 72px; max-width: 720px; }
.promo-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.promo-kicker span {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}
.promo-page h1,
.promo-stats h1 { margin: 0 0 10px; font-size: clamp(24px, 4vw, 30px); }
.promo-lead { margin: 0 0 18px; color: var(--muted); line-height: 1.7; }
.promo-count {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 14px;
}
.promo-count strong { color: var(--accent-2); font-size: 20px; }
.promo-count em { display: block; margin-top: 6px; font-style: normal; color: var(--text); }
.promo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 16px;
}
.promo-card h2 { margin: 0 0 14px; font-size: 18px; }
.promo-steps { margin: 0 0 16px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px dashed var(--accent-2);
  border-radius: 12px;
  background: rgba(255, 176, 32, 0.08);
}
.promo-code span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.promo-code strong { font-size: 28px; letter-spacing: 0.12em; }
.promo-copy {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
}
.promo-form label { display: block; margin: 0 0 14px; font-size: 14px; }
.promo-form small { color: var(--muted); font-size: 12px; }
.promo-form input[type="text"],
.promo-form input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--text);
  padding: 12px 14px;
}
.promo-form input[type="file"] { padding: 10px; }
.promo-preview {
  display: block;
  width: min(100%, 360px);
  margin: -4px 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.promo-flash {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.promo-flash.is-ok { background: rgba(46, 160, 90, 0.16); color: #b7ebc6; }
.promo-flash.is-err { background: rgba(255, 77, 79, 0.14); color: #ffc1c2; }
.promo-ip-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}
.promo-ip-head strong { color: var(--text); font-size: 16px; }
.promo-tag {
  border: 1px solid #2ea05a;
  color: #b7ebc6;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.promo-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.promo-row p { margin: 0 0 4px; }
.promo-row img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #10151c;
}
.promo-form .ad-btn[disabled] { opacity: 0.6; cursor: wait; }
.promo-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  margin: 0 0 4px;
  scrollbar-width: none;
}
.promo-tabs::-webkit-scrollbar { display: none; }
.promo-tab-state {
  margin-left: 6px;
  border-radius: 999px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
}
.promo-tab-state.is-done {
  color: #b7ebc6;
  border-color: #2ea05a;
}
.promo-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(255, 77, 79, 0.14);
  border: 1px solid rgba(255, 77, 79, 0.45);
}
.promo-app span { color: var(--muted); font-size: 13px; }
.promo-app strong { font-size: 24px; letter-spacing: 0.04em; }
.promo-app:hover { border-color: var(--accent); }
.promo-md p,
.promo-md li { color: var(--muted); line-height: 1.8; }
.promo-md p { margin: 0 0 10px; }
.promo-md ol, .promo-md ul { margin: 0 0 4px; padding-left: 20px; }
.promo-md a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.promo-qr { text-align: center; margin-bottom: 12px; }
.promo-qr img {
  width: min(100%, 280px);
  height: auto;
  border-radius: 16px;
  background: #fff;
}
.promo-qr p { margin: 12px 0 10px; color: var(--muted); font-size: 14px; }
.promo-scan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promo-scan li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--text);
  font-size: 12px;
  background: var(--bg-elev);
}
.promo-status-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.promo-done {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--bg-elev);
  color: var(--muted);
  line-height: 1.7;
}
.promo-done strong { color: var(--text); }
